Skip to content

A iOS profiler(non-jailbreak) to get iOS runtime hardware information.

License

Notifications You must be signed in to change notification settings

junjie1475/iOS-Profiler

Repository files navigation

iOS porfiler

A dylib to get cpu power usage & P/E cluster frequency from a iOS application(non-jailbreak).https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/doc/recount.md (XNU documentation)

How to inject library into IPAs

  1. Get a decrypted IPA for the app you want to measure. (e.g https://decrypt.day/).
  2. Use the dylib I provided or compile it youself (instruction below).
  3. Use a ipa inject tool to inject the dylib into the IPA
  4. Sign the app and play...

How to get the log?

  1. Open console.app in your Mac
  2. Select your Device from left panel.
  3. Search for inject.c: . NOTE: The default sample interval is 1 second.

Command to build the dyamic library

clang -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch arm64 -dynamiclib -lproc -o inject_*.dylib inject_*.c

Tools to inject dylib into app's macho file.

  1. use scarlet to inject dylib directly on your phone.
  2. https://github.com/paradiseduo/inject
  3. https://github.com/EamonTracey/iPatch (GUI)

Snipaste_2023-05-10_14-06-15 Snipaste_2023-06-13_18-47-26

About

A iOS profiler(non-jailbreak) to get iOS runtime hardware information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages