[Guide] Completely replace Power Manager with AOSP battery screen - ZTE Axon 7 Themes, Apps, and Mods

Use any system app remover to delete the Power Manager app.
Decompile SystemUI_ZTE and open smali/com/android/systemui/statusbar/phone/QuickStatusBarHeader.smali
Find method
Code:
:method public onClick(Landroid/view/View;)V
Go down to :cond_2 and replace where it says "com.zte.powersavemode.PowerSummary" with "com.android.settings.Settings$PowerUsageSummaryActivity"
Recompile SystemUI_ZTE.
Decompile Settings_ZTE and open res/xml/zte_main_settings.xml
Find the power manager line
and replace with
Code:
<com.android.settings.zte.IconPreference android:icon="@drawable/battery_90" android:isIndicator="true" android:title="@string/power_usage_summary_title" android:key="battery" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
Recompile Settings_ZTE.

if you havn't tested it then why did you post it? Irresponsible!

KyJelly69 said:
if you havn't tested it then why did you post it? Irresponsible!
Click to expand...
Click to collapse
It can still be used for as a starting point for those who have no idea what to do. You can try it and tell me if it works. The worst thing that can happen is it just doesn't work, in which case I'll ask the mods to close this thread.

bkores said:
It can still be used for as a starting point for those who have no idea what to do. You can try it and tell me if it works. The worst thing that can happen is it just doesn't work, in which case I'll ask the mods to close this thread.
Click to expand...
Click to collapse
It's always nice trying to help others in some way. Showing some appreciation to our Axon 7 community trough such actions (tutorials, etc. ) should be really appreciated. But people often forget to see your intention and want this "product" served. I appreciate!

Do you know a easy way to delete the power manager? i want to use 3rd party power profiles like AKT or HelixEngine

Predatorhaze said:
Do you know a easy way to delete the power manager? i want to use 3rd party power profiles like AKT or HelixEngine
Click to expand...
Click to collapse
And what does AKT have in common with a power manager??? :laugh:
The power manager is just the thing that ZTE made in order to kill apps after screen off and all that stuff. AKT just tunes the processors' governors to make them stay at the lowest speed possible at all times

Choose an username... said:
And what does AKT have in common with a power manager??? :laugh:
The power manager is just the thing that ZTE made in order to kill apps after screen off and all that stuff. AKT just tunes the processors' governors to make them stay at the lowest speed possible at all times
Click to expand...
Click to collapse
And what about smart power in our axon7? It also tunes the cpu and gpu...so I bet it conflict with akt

Predatorhaze said:
And what about smart power in our axon7? It also tunes the cpu and gpu...so I bet it conflict with akt
Click to expand...
Click to collapse
nah. and you can just disable smart power if you feel like it. dammit there's even a quick settings tile for that

Choose an username... said:
nah. and you can just disable smart power if you feel like it. dammit there's even a quick settings tile for that
Click to expand...
Click to collapse
no there is no quick settings tile for that (B35) and when i disable smart power it will set on performance power,the power manager in axon 7 is not only screen locking.But Maybe you are right and it will not conflict,but just restricted due kernel features

Related

What apps are there to customise LED on/off duration?

The LED behaviour on my Nexus 6P is weird. It flashes ON for half a second then OFF for 3 seconds. I want to change this so that the LED stays ON for a second and OFF for another second.
I used to be able to do this with GravityBox + Xposed when I was on Marshmallow but now I'm on Nougat and am looking for an alternative.
Is there any app that allows me to do this? I have root. I'm willing to modify some files if needed.
incognitonk said:
The LED behaviour on my Nexus 6P is weird. It flashes ON for half a second then OFF for 3 seconds. I want to change this so that the LED stays ON for a second and OFF for another second.
I used to be able to do this with GravityBox + Xposed when I was on Marshmallow but now I'm on Nougat and am looking for an alternative.
Is there any app that allows me to do this? I have root. I'm willing to modify some files if needed.
Click to expand...
Click to collapse
Have you checked out "LightFlow" I haven't used the app in a while because my current device doesn't have an LED, But the app might help you out, worth a shot.
Critical Detox said:
Have you checked out "LightFlow" I haven't used the app in a while because my current device doesn't have an LED, But the app might help you out, worth a shot.
Click to expand...
Click to collapse
I don't think it has the feature I'm looking for.
Thanks though.
None do. That I know of. I had to edit it in the code for my device.
zelendel said:
None do. That I know of. I had to edit it in the code for my device.
Click to expand...
Click to collapse
Any chance you could share with me what you did? I should be able to handle it if it's not too complex.

Fully harness the display of lg g6

1. Follow this thread and enable full display: https://forum.xda-developers.com/nexus-6p/general/guide-hide-navigation-bar-status-bar-app-t3509747
2. Enable force long display in svc menu
3. download fingerprint quick action in playstore to use fingerprint as back and home button
4. if you want more control, download button mapper in playstore, assign volume down button hold for recents, and volume up button hold for toggle notification
sadly battery drain is an issue
enjoying full screen is the best, i wish phone manufactures enable some buttons at the back, imagine a near bezel less display fully utilized
preview: https://youtu.be/6sm2q2jgEyA
more screenshots please, I suppose some apps might have 2 big black bars on top and bottom
pham_dang said:
more screenshots please, I suppose some apps might have 2 big black bars on top and bottom
Click to expand...
Click to collapse
there wont be if u enable force long display
pham_dang said:
more screenshots please, I suppose some apps might have 2 big black bars on top and bottom
Click to expand...
Click to collapse
here's a youtube video
https://youtu.be/6sm2q2jgEyA
Oh man more people should be trying this, looks wayyyyyyy better. I strongly recommend you leave the status bar . However just try to hide every thing, then leave the status bar and hide navigation bar only, u'll see what I really mean
pham_dang said:
Oh man more people should be trying this, looks wayyyyyyy better. I strongly recommend you leave the status bar . However just try to hide every thing, then leave the status bar and hide navigation bar only, u'll see what I really mean
Click to expand...
Click to collapse
im just experimenting for now, i wish some phone manufacturer can create a phone like this with more button controls at the back, im still observing if there are any battery drains
dinoypeter said:
im just experimenting for now, i wish some phone manufacturer can create a phone like this with more button controls at the back, im still observing if there are any battery drains
Click to expand...
Click to collapse
I don't think there would be any serious battery drains
pham_dang said:
I don't think there would be any serious battery drains
Click to expand...
Click to collapse
can you check if ur android system usage is high?
pham_dang said:
I don't think there would be any serious battery drains
Click to expand...
Click to collapse
maybe just my imagination
dinoypeter said:
can you check if ur android system usage is high?
Click to expand...
Click to collapse
very well jugdement there, so I've been only using it for 3-4 hours this morning (in cluding standby time), android system takes up to 4% (normally its around 5-6% at the end of the day). I'll however keep this hidden navigation bar till the end of the day. I'll update soon
So there you go, it does drain some serious battery there. Very sad :crying:
http://imgur.com/oPlehHV
Have you tried pie control instead of fingerprint control? It still leaves the whole screen for displaying content.
Sent from my LG-H870DS using XDA-Developers Legacy app
EMJI79 said:
Have you tried pie control instead of fingerprint control? It still leaves the whole screen for displaying content.
Sent from my LG-H870DS using XDA-Developers Legacy app
Click to expand...
Click to collapse
I've used many pie apps from root to no root and this app won me over hands down the best
https://play.google.com/store/apps/details?id=org.de_studio.recentappswitcher.pro
ghost0211 said:
I've used many pie apps from root to no root and this app won me over hands down the best
https://play.google.com/store/apps/details?id=org.de_studio.recentappswitcher.pro
Click to expand...
Click to collapse
Does it have home button?
OK it has. Settings user interface is a bit awkward at first.
What do use to make navigation bar disappear?
EMJI79 said:
Does it have home button?
OK it has. Settings user interface is a bit awkward at first.
What do use to make navigation bar disappear?
Click to expand...
Click to collapse
Home button.... How about you click on the link I sent you, lazy ass haha
I used the adb command to enable immersive and toggle it with ntiles app
ghost0211 said:
Home button.... How about you click on the link I sent you, lazy ass haha
I used the adb command to enable immersive and toggle it with ntiles app
Click to expand...
Click to collapse
I know it sounds crazy but it wasn't a default settings :angel:
Will look about adb for immersive mode when I have time.
Did you solve the battery drain some people experienced?
Hey you should link to the non payed app version for people to try first...
EMJI79 said:
I know it sounds crazy but it wasn't a default settings :angel:
Will look about adb for immersive mode when I have time.
Did you solve the battery drain some people experienced?
Hey you should link to the non payed app version for people to try first...
Click to expand...
Click to collapse
Nothing noticeable but its only been a day since I enabled it.
And most people know that "pro" means there's a free version because they understand got play stores work but note taken
pham_dang said:
So there you go, it does drain some serious battery there. Very sad :crying:
http://imgur.com/oPlehHV
Click to expand...
Click to collapse
Did you keep with immersive or was it really too much battery drain at the end of the day?
EMJI79 said:
Did you keep with immersive or was it really too much battery drain at the end of the day?
Click to expand...
Click to collapse
I immediately put everything back to normal haha. Well if you are OK with battery drain, you should forever have it that way cause the screen is just so pleasant to stare at
I have tried the Nexus P thread way to hide the navigation bar (except for YouTube and whatsapp) and then use xda LMT 2.8 pie app and it is working great for me, without extra drain as of today.
I turned each app into 18:9.
Sent from my LG-H870DS using XDA-Developers Legacy app

Stop warning me, i'm a grown man

Why does Samsung feel is necessary to warn me that my headphones are getting louder and could possibly damage my hearing?
Now even the brightness level has to warn me that I am making the screen bright
I am a grown Azz man with two children a mortgage and a job. I'm pretty sure I can handle the responsibility of not blowing my eardrums out, or burning my retina with my Note 8.
What's even worse is now the threshold warning is even lower for the headphone volume. It used to be about 80% now its about 60%.
The one thing I miss it out custom roms is that we used to be able to disable that. Is there any mods available to stop those warnings? Probably the most frustrating thing about modern Samsung devices in my opinion
/Rant
Turning it off is already built in...Settings>Sounds and Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Namuh said:
Turning it off is already built in...Settings>Sounds and Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
Amazing!!! Didn't know that!!! Thanks!
Namuh said:
Turning it off is already built in...Settings>Sounds and Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
You'll see that won't stop the notification message after reboot. That's a parental control to lock it to a set max where children cannot go past without a PIN code.
There is another way using tasker and autotools.
True. Hopefully Samsung fixes it in a future update... ? This way works for now though unless I go the tasker route later on. I don't reboot my phone often this soon into the phones life anyway, and it's not a huge pain to go into the settings and change it until my next reboot.
Namuh said:
True. Hopefully Samsung fixes it in a future update... ? This way works for now though unless I go the tasker route later on. I don't reboot my phone often this soon into the phones life anyway, and it's not a huge pain to go into the settings and change it until my next reboot.
Click to expand...
Click to collapse
Once you click OK, you'll be fine until next reboot without dealing with that step.
In this very subforum is a tasker trick that seems to fix it for most folks.
Compusmurf said:
You'll see that won't stop the notification message after reboot. That's a parental control to lock it to a set max where children cannot go past without a PIN code.
There is another way using tasker and autotools.
Click to expand...
Click to collapse
I'm glad you got this to work for you. I've updated the OP to say that you must hit the "play" button to test this before it will work. I tested this by turning it off, rebooting, then allowing the popup to come back. Then I tried simply re-enabling this event and rebooting. The popup came back. It did not start working again until I hit play to test it. Then it survived every reboot again.
To the OP I'd say visit my thread here to get it to turn off forever.
Namuh said:
Turning it off is already built in...Settings>Sounds and Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
I followed the same pattern but doesn't seems to have the 3 dots menu? Any ideas?
Namuh said:
Turning it off is already built in...Settings>Sounds and Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
why don't I have this option?
fanie.dry said:
why don't I have this option?
Click to expand...
Click to collapse
Not too sure. Are you using Secure Folder or Google Now Launcher? If so try uninstalling them, restart, and try again.
Namuh said:
Not too sure. Are you using Secure Folder or Google Now Launcher? If so try uninstalling them, restart, and try again.
Click to expand...
Click to collapse
I don't see how a launcher has anything to do with it. Using Nova.
Secure Folder I am using, but also don't see the connection.
fanie.dry said:
I don't see how a launcher has anything to do with it. Using Nova.
Secure Folder I am using, but also don't see the connection.
Click to expand...
Click to collapse
Know issue where secure folder can cause problems with third party launchers...such as menu items disappearing....
fanie.dry said:
why don't I have this option?
Click to expand...
Click to collapse
If you're in the EU, that volume limiter thing is a regulation, so you can't disable it normally.
Sent from my Samsung SM-N950F using XDA Labs
OhayouBaka said:
If you're in the EU, that volume limiter thing is a regulation, so you can't disable it normally.
Sent from my Samsung SM-N950F using XDA Labs
Click to expand...
Click to collapse
I'm in South Africa, so probably same rule apply
/sad panda
The EU or International version only warns about high headphone volume the once after reboot. This is the case with my N950N. Once you click OK It never comes up again until you reboot. From what I can gather this is what the option in the 3 dots does on the Snapdragon version. Stops it coming up every single time. The International version does not have the 3 dot menu because that option to stop the warning coming up every single time is already enabled by default.
i dont have that option as well
In most case it's not because they care so much about our well being. They place these sort of obstacles there for legal purposes. Pressing "ok" is basically signing a release of liability for any hearing damages caused by our increasing of the volume. I wouldn't bet on them fixing this any time soon.
Go into developer settings and turn off absolute volume?
Wow.. how sad.. never knew this.. THANKS!
youre clearly not if you made this thread..

tap to wake up the screen

Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
m0sett1 said:
Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
Click to expand...
Click to collapse
Check this, go to Motion control => Pick up => Wake up device
If available in your device then might be similar.
Using third-party app is not recommended, can cause battery drain.
kilroystyx said:
Check this, go to Motion control => Pick up => Wake up device
If available in your device then might be similar.
Using third-party app is not recommended, can cause battery drain.
Click to expand...
Click to collapse
tks for your reply, but the p20 lite seems to be not include this feature
mine does have the feature... under motion control
SeerePetrova said:
mine does have the feature... under motion control
Click to expand...
Click to collapse
he's asking for the tap to wake up feature and not the pick to wake up feature
touns_j said:
he's asking for the tap to wake up feature and not the pick to wake up feature
Click to expand...
Click to collapse
He replied that his phone seems do not has the feature pick up to wake up device.
And yours, does it have this feature?
kilroystyx said:
He replied that his phone seems do not has the feature pick up to wake up device.
And yours, does it have this feature?
Click to expand...
Click to collapse
sorry but no , seems you didn't read the OP, he's asking for the tap to wake up feature which the p20 lite doesn't have instead he got referred to the pick up the wake feature which again wasn't what he asked about in the first place and so when he replied his phone doesn't have that feature he was referring to the tap to wake up feature
m0sett1 said:
Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
Click to expand...
Click to collapse
The only one I used a long time ago was KnockOn (you can find it on XDA) but I don't know if it would work on this device.
Or perhaps going for Tasker, maybe it has something to allow wake on tap.
Just for the kick, is the feature important for your daily use? I personally find the raise to wake more functional
There is no DT2W option. Just FP sensor for that.
P20 Lite does not have touch to wake. Only stock alternative is pickup to wake.
i find this, https://www.xda-developers.com/enable-double-tap-to-wake-on-huawei-and-honor-devices/ . anyone try it?

[APP] Tasker

Good night from Spain! Hope you are having a good quarentine (who has it).
These days I was trying to dive in Tasker a bit and I did 2 modules that I will attach in files. All of them are FULLY CUSTOMIZABLE once you saved in your Tasker profiles repository:
1.- Shake the phone to open/close torch
2.- Activate autorotate in Youtube, Maps, Google Photos and GCam. Deactivate when leave the apps
3.- Night with no data/wifi connexion + when display off
4.- Display off goes to 2G data
5.- Maybe the king... All 120hz except Youtube, Maps, Camera, some games... to 60hz
Sorry, most of you couldn't enter to see the tasks in tasknet, so I've posted as attached files
I just get an error when trying to import the 120Hz -> 60Hz one.. :silly:
stiffis said:
I just get an error when trying to import the 120Hz -> 60Hz one.. :silly:
Click to expand...
Click to collapse
Uop... idk man. Did you copied the .XML to Profiles folder¿?
uriii13 said:
Uop... idk man. Did you copied the .XML to Profiles folder¿?
Click to expand...
Click to collapse
Yes, ofc ?
stiffis said:
Yes, ofc
Click to expand...
Click to collapse
So weird! I'm reuploading it...
uriii13 said:
So weird! I'm reuploading it...
Click to expand...
Click to collapse
Thanks, can't wait to test it out ?
uriii13 said:
So weird! I'm reuploading it...
Click to expand...
Click to collapse
Still doesn't work.. ?
stiffis said:
Still doesn't work..
Click to expand...
Click to collapse
1st: Try to resee if you have every optimization battery unabled and every step disabled that Tasker says you have to disable (everything related to the battery in your phone, etc.)
2nd: if these is correct, look at my task try to make it by your own; I've heard sometimes Tasker can 'crash' some profiles if you have copied it.
uriii13 said:
1st: Try to resee if you have every optimization battery unabled and every step disabled that Tasker says you have to disable (everything related to the battery in your phone, etc.)
2nd: if these is correct, look at my task try to make it by your own; I've heard sometimes Tasker can 'crash' some profiles if you have copied it.
Click to expand...
Click to collapse
1. Battery optimization is disabled
2. How do I do that?
Weird how importing your other shared tasks worked fine, like the shake to activate torch
stiffis said:
1. Battery optimization is disabled
2. How do I do that?
Weird how importing your other shared tasks worked fine, like the shake to activate torch
Click to expand...
Click to collapse
PM
Display off turns to 2G.
It means whenever the display turns off cellular will switch from 4G to 2G?
And which apps do i download? All?
stiffis said:
Still doesn't work.. ?
Click to expand...
Click to collapse
I have tested out the torch profile. It works. The only downside I feel is that it doesn't work when phone screen is off. Anyway to enable even when the screen is off?
HermesHidayat said:
Display off turns to 2G.
It means whenever the display turns off cellular will switch from 4G to 2G?
And which apps do i download? All?
Click to expand...
Click to collapse
Just Tasker, the 1st and yes, it's changing from 4g to 2g when your screen is off, and viceversa. I tryied to apply with an action called "device idle" but is more strict than the normal Deep sleep, so it's not working a lot. Now we should check if our battery increases slightly or not, because I don't know if changing between 2g-4g is wasting baterry too.
nipun03 said:
I have tested out the torch profile. It works. The only downside I feel is that it doesn't work when phone screen is off. Anyway to enable even when the screen is off?
Click to expand...
Click to collapse
Yes! Just configure the monitoring files. Tasker reminds you each X to do it. You have to allow tasker to be completely full on background. If it doesn't work, just uninstall and reinstall Tasker and allow everything again (Powermaster autostart, not closing apps, no battery optimization, etc.). It worked for me when I had probs in the past
i like this
uriii13 said:
Good night from Spain! Hope you are having a good quarentine (who has it).
These days I was trying to dive in Tasker a bit and I did 2 modules that I will attach in files. All of them are FULLY CUSTOMIZABLE once you saved in your Tasker profiles repository:
1.- Shake the phone to open/close torch
2.- Activate autorotate in Youtube, Maps, Google Photos and GCam. Deactivate when leave the apps
3.- Night with no data/wifi connexion + when display off
4.- Display off goes to 2G data
5.- Maybe the king... All 120hz except Youtube, Maps, Camera, some games... to 60hz
Click to expand...
Click to collapse
Please, can someone automate this in "Tasker" for me (script etc, or make an auto start apk, this solve VoLTE problem definitely)? Thanks!
1. Command *#*#3642623344#*#* in phone keyboard
2. Disable VoLTE
3. Enable VoLTE
MelquiXDA said:
Please, can someone automate this in "Tasker" for me (script etc, or make an auto start apk, this solve VoLTE problem definitely)? Thanks!
1. Command *#*#3642623344#*#* in phone keyboard
2. Disable VoLTE
3. Enable VoLTE
Click to expand...
Click to collapse
Sorry, I'm not using tasker now.

Categories

Resources