r/jailbreakdevelopers • 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 :)

52 Upvotes

5 comments sorted by

4

u/wes_hamster Aug 25 '20

Cool! Useful stuff in there

2

u/augustobob Aug 25 '20

Thanks, I'm trying to learn some tweak development and you'll help me a lot

2

u/Silfalion Aug 25 '20

You’re a wholesome person!

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

u/[deleted] Aug 25 '20

[deleted]

1

u/[deleted] Sep 14 '20

liar. cheat. jerk. thief