To start off, credit goes to @GioBozza, @CappyT, @pioccd, @TotemFallico, @SimoIanni. They made this mod. All I did was port it to the V20.
ORIGINAL THREAD (go drop a "Thanks"): https://xdaforums.com/nexus-6p/development/wakeblock-blocking-drain-late-t3526313
Next, some caveats:
Instructions (READ THROUGH THEM FIRST):
(If you have TWRP 3.1.1-1, you'll have to keep the backups on your device somewhere, since it doesn't support MTP right now!)
If all went well, your phone will boot successfully and you'll have some pretty fine control over your wakelocks. If not, restore your backups using the TWRP file manager and try again.
If you have any questions about the installation process, ask here. Otherwise, ask on the linked thread.
ORIGINAL THREAD (go drop a "Thanks"): https://xdaforums.com/nexus-6p/development/wakeblock-blocking-drain-late-t3526313
Next, some caveats:
- Neither I nor the users mentioned above take any responsibility for anything that goes wrong with you installing this.
- I have personally tested this on the H918 on the 10k firmware. I see no reason for it not to work on other variants, BUT MAKE BACKUPS!!!
- This mod is unofficial, and will remain so, meaning I may not be able to update it for every release, whether that be a new Android version for the V20, or a new mod version.
- This is for STOCK ONLY.
- This mod requires ROOT.
- Again, MAKE BACKUPS!!!!!!!!!
Instructions (READ THROUGH THEM FIRST):
- Backup `/system/framework/services.jar` and `/system/framework/oat/arm64/services.odex` (The latter is only relevant for ODEXed ROMs).
- Download and install the app from the linked thread.
- Download the `services.jar` file attached or linked in this post.
- Copy it to your device somewhere safe (such as `/sdcard/`).
- Use either the command line or a root file explorer to copy the downloaded JAR to `/system/framework/`, overwriting the current one. (YOU MADE A BACKUP, RIGHT?)
- Make sure its permissions are set to 0644 (rw-r--r--).
- Use either the command line or a root file explorer to delete the `services.odex` file that you made a backup of I'm sure C_C.
- Reboot.
(If you have TWRP 3.1.1-1, you'll have to keep the backups on your device somewhere, since it doesn't support MTP right now!)
If all went well, your phone will boot successfully and you'll have some pretty fine control over your wakelocks. If not, restore your backups using the TWRP file manager and try again.
If you have any questions about the installation process, ask here. Otherwise, ask on the linked thread.
Attachments
Last edited: