Skip to content

Instantly share code, notes, and snippets.

@ChiChou
Created February 2, 2022 18:20
Show Gist options
  • Save ChiChou/7ca58630db05dc16122422151f65fee9 to your computer and use it in GitHub Desktop.
Save ChiChou/7ca58630db05dc16122422151f65fee9 to your computer and use it in GitHub Desktop.
Keep iPhone awake
// frida -U --attach-frontmost -l awake.js
ObjC.schedule(ObjC.mainQueue, () => {
try {
ObjC.classes.UIApplication.sharedApplication().setIdleTimerDisabled_(ptr(1))
} finally {
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment