Created
February 2, 2022 18:20
-
-
Save ChiChou/7ca58630db05dc16122422151f65fee9 to your computer and use it in GitHub Desktop.
Keep iPhone awake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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