r/jailbreakdevelopers • u/Squidkingdom Developer • Aug 25 '20
[Open Source Release] PowerUp - Made from the ground up for learning developers.
Hey guys,
I just released PowerUp, which does all of the following when you are charging if you choose to enable it:
Sleeps the system using built in IOKit methods, often incorrectly referred to as hibernation.
Turns on aeroplane plane mode.
Enables low power mode.
Throttles the system using methods in thermalmonitord.
Stops and saves screen recordings.
Turns off flashlight.
Kills all open applications.
Blocks input passthrough.
Turns off display.
I built this tweak to be open source so that developers that are trying to learn tweak dev can see a variety of concepts at play such as: Prefs & Cephei & Custom Cells Multiple Preference Panes UI Overlays Modifying Existing UI Toggling Flashlight Getting Charging Data Airplane / LPM detction and toggling Respringing
And a little more complicated things such as: Running commands on the right proccess Running commands as root MSHookFunction IOKit functions and subties
I had 0 knowledge of obj-c, c, ios, or tweaks at all a year ago, when i made my first post here. So this is a cool moment, and I hope I can make that journey easier.
Its fully code commented to the best of my abiity.
It can be found at https://github.com/JB-NSStudio/PowerUp
Pull Requests are more than welcome, and if you have any questions about the code, feel free to dm me on twitter @Squidkingdom
Thanks, Squiddy :)
2
2
1
u/Deni-Khalikov Aug 25 '20
Thank you for this, will be taking a look soon as I want to get into tweak developing as well!
0
4
u/wes_hamster Aug 25 '20
Cool! Useful stuff in there