3

Is it possible to hook into a framework, e.g. CoreLocation, so that all the apps that link to the framework see the patch?

Currently I can hook into a specific app by the following steps:

  • create a iphone/tweak in Theos
  • set the bundle identifier to the target app
  • call %hook classname that interacts with the framework

However this only exposes the tweak to a single app. Can I patch the framework directly? What bundle identifier should I use in this case?

Wei Shi
  • 4,945
  • 8
  • 49
  • 73

1 Answers1

5

Every framework has Info.plist file with CFBundleIdentifier key. To hook processes linking to CoreLocation.framework enter com.apple.corelocation as bundle filter.

creker
  • 9,400
  • 1
  • 30
  • 47