• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[FRAMEWORK MODS] Disable Screen On/Off on USB plug + Center Clock + others 11/27/2016

Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    The mods listed below are for the "V" version of Google Pixel XL images.

    They probably work for non-XL as well as "U" and "X" images, but I can't guarantee this. I would definitely NOT flash this if you're on "N" or anything else.
    Do note this is my first time providing framework mods, so... yeah. :eek:

    Installing this mod probably won't wipe any data or pre-configured settings, but I can't guarantee that either.

    The mod may or may not conflict with WETA framework mods, I'm not sure. Please let me know?

    • ---Disable screen wake-on when unplug or plug USB
    • ---Disable IME Switcher Notification
    • ---Enable all rotations
    • ---Enable lockscreen rotation
    • ---Disable safe media volume
    • ---Centered Clock
    • ---Enable double-tap to wake (no idea if it works or not, may require kernel)

    UPDATE: @Tulsadiver has added battery percentage/numeral options.
    Please see post #7 for his zip and give him some thanks!

    I'm going to eventually explore more mods, such as getting the 1% battery icon and adjusting status bar icon/clock/battery sizes.

    Download the framework-res.apk and SystemUIGoogle.apk here:

    To install, you'll need a file browser with root privileges.
    I use Root Explorer and that's what these directions are for.

    Before proceeding, I do recommend that you copy your original framework-res and SystemUIGoogle to your PC in case you need to restore them.

    1) Download the zip from link above.
    2) Extract the zip on your PC.
    3) Copy both APK files to your /sdcard.
    4) Open Root Explorer and locate the files.

    5) Copy both APK's to the /system_root/system folder.

    6) Long press each APK and go to Root Explorer settings to change permissions.

    7) Change permissions to RW/R/R for both APK's.

    8) Copy Framework-res.apk to /system_root/system/framework and replace the existing file.
    Your phone will automatically reboot.

    9) Let phone boot back up and test to make sure you're okay.
    10) Copy SystemUIGoogle.apk to /system_root/system/priv-app/SystemUIGoogle folder and replace the existing file.
    Your UI will quickly restart.
    I highly recommend manually initiating a full reboot son afterward to avoid UI force-closes.

    I hope you enjoy this mod! :)

    Many thanks to the folks in this thread for helping me get this far:

    CZ_Eddie, any plans to release an updated center clock mod?

    I made an attempt at a framework-res.apk and an assortment of systemui.apk mods if you would like to try them. Cc is for center clock. Some have ampm. These are for the latest version NMF26Q

    I'm going to eventually explore more mods, such as getting the 1% battery icon and adjusting status bar icon/clock/battery sizes.

    You can already get battery percentage in the battery icon, via System UI Tuner. See screenshots below for reference.

    Steps to enable System UI Tuner:
    1. Pull down the Notification drawer.
    2. Long Press the Cog icon (Settings)
    3. Cog should spin and phone should give some haptic feedback with a toast about System UI Tuner being enabled.
    4. Settings>System UI Tuner (right above 'About Phone'). 
    5. Tap 'Status Bar' and scroll down.
    6. Tap 'Battery'.
    7. Choose 'Always show percentage'.


    Thank you, that's not what I'm looking for.
    That percentage inside the battery sucks.
    People with bad eyes can't see it at all.
    I'm looking for the larger numbers you got all by theirselves with a percentage symbol next to it.
    Like what you saw in Marshmallow's System UI Tuner options.
    And ideally, I want to get rid of the percentage symbol too.

    I was thinking about getting a Pixel if they ever come on sale and was cruising around. I'm not trying to but-in but i hate to see someone wanting a mod and just ignore it. Again, I don't have this phone but if you want to try these out to see if they work, feel free. Credit goes to this OP. All I did was use his framework and systemui and try to add battery percent to it. I also tried to remove the percent symbol on one and adjust the keyguard statusbar to the same height as the statusbar. Try them at your own risk and OP, if they work, you are welcome to offer them yourself on your main post.
    Pasting the WETA systemuigoogle.apk for center clock is supposed to work. Hasn't for me, though. The UI never reboots so the clock never moves. Substratum possibly interferes

    No substratum here. Just XML modding. I did just disable signature checks in the services.jar. This is necessary on my phone when flashing individual xml's instead of the whole apk. Maybe it would help.

    You need to wipe dalvik after installing this and it takes a while to boot if someone wants to try it. It goes in the framework folder.