yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 20 Pro Themes, Apps, and Mods] bubobih:
disable google framework and reboot phone. Also reinstall (or clear all data from that apps) and relogin. Then u will have push notifications working. Bad side, u will not have working google play store.

Its strange but when u fully enable all google (notifications doesent work) when u disable framework google playstore doesent work but notifications work. Ofc u need to flush apk data or reinstall and relogin. Tested on mate 30 pro.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Ipse_Tase:
I have to eat my words and recant...back to non working notifications from "Professional reminder" and Textra. Plus still having unexpected wake up locks at night. Not sure wtf happened, but this is one thing that I absolutely hate about this otherwise good phone.

Fcuk..back to the drawing board.

Oh well.
[Huawei Mate 20 Pro Themes, Apps, and Mods] nounusedname:
Thanks OP disabled PowerGenie, helps a lot with apps not getting nuked in background, also seems to help battery life a bit :eek:

But sadly Gmail notifications still do not come in instantly, had to disable Doze for that.
[Huawei Mate 20 Pro Themes, Apps, and Mods] nhadzky096:
After disabling the powerginie it seems that the force closing problems still exist on my tablet.
[Huawei Mate 20 Pro Themes, Apps, and Mods] stormy_gale:
Running an Huawei Psmart 2019 unrooted EMUI 10.

I started to get my sat nav dropping out after about 15-20 mins, all the normal optimisation settings set/turned off

Applied the procedure as OP all working great now.

Good find @klaus27.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Cra974:
Je pense que powergenie est bien désinstallé sur mon Huawei P 30 lite puisque j'ai plus grand chose qui apparait dans le menu Parametre/batterie de mon téléphone.

Lorsque je rendre la commande ci-dessous pour ré-installer Powergenie , on m'affiche :

PS C:\Users\MOUTOUSSAMY\Downloads\platform-tools_r30.0.5-windows\platform-tools> adb install --user 0 com.huawei.powergenie

Performing Push Install

adb.exe: need APK file on command line

on peut-on trouver ce fichier Apk?
[Huawei Mate 20 Pro Themes, Apps, and Mods] webpatrick:
try:

adb shell

cmd package install-existing com.huawei.powergenie
[Huawei Mate 20 Pro Themes, Apps, and Mods] beatschubser:
(tbd - wrong thread)
[Huawei Mate 20 Pro Themes, Apps, and Mods] Helium Lee:
By doing this , you can may solve the problem of force closing, however , it can lead to a shorter battery time. After removed the application, my device (HUAWEI Mate 20 X) need to be charged for an hour every day, or it will shutdown because of low battery.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Klkling:
Assuming an app is white listed in app launch.

Is power genie more 'permissive' if an app is running as foreground service (with sticky notification visible to user) or does it get killed regardless ?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Helium Lee:
This is a good question. If you are using Android on Huawei Devices, application running with sticky notification visible to users won't be killed. However, most of Huawei's Devices are able to update to Harmony OS, if you do so, then sticky notification seems to be useless.
[Huawei Mate 20 Pro Themes, Apps, and Mods] imfuzzyyy:
thank you really help by disabling com.huawei.powergenie latest emui will observe battery life
[Huawei Mate 20 Pro Themes, Apps, and Mods] ostracizado:
Is powergenie - or some alike - still present in Emui12?
[Huawei Mate 20 Pro Themes, Apps, and Mods] ancola66:
Yes it still exists, Like mine on Harmony OS3 (Similar to Emui 12). You can only disable it with Tool ADB AppControl but not remove it, so every time you restart your phone you have to disable it.
[Huawei Mate 20 Pro Themes, Apps, and Mods] darksmokzz:
This seems to have worked for me on my Huawei P30 lite with EMUI 10. I would have appreciated a slightly more detailed walkthrough as I do this kinda stuff just to fix issues - not on a daily basis. I had to use CMD instead of Shell for some reason (this is the second issue I had that I fixed this way, for some reason no commands you guys put here work for me in shell but they work with command prompt). Still, I appreciate it.

Great tutorial on how to stop apps from refreshing when in the background and to stop apps from refreshing when you switch between apps on android. Thanks!
[Huawei Mate 20 Pro Themes, Apps, and Mods] Tom Brady 1:
How to disable it ? What code you use i tried many but it doesn't work
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
Disabling powergenie is definitely not working for me. Not sure I actually want to uninstall it though.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
you could download it first.

adb pull /system/app/PowerGenie.apk .

or something similar
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
But unless you're rooted you can't push it back as you can't just reinstall a system app.
[Huawei Mate 20 Pro Themes, Apps, and Mods] webpatrick:
You cannot install it if you're not rooted, cause it's a system app and it's still sitting there in system space.

---------- Post added at 09:16 AM ---------- Previous post was at 09:08 AM ----------

Then PowerGenie is probably not your problem.

I have done the following:

Settings > Battery > App launch > Manage all automatically : OFF

And for my apps to keep alive:

Settings > Apps > Apps > 3-dot menu > Special Access > Battery optimization > find apps you want not to allow battery optimization (be aware of the drop-down at the top)
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
What I meant was trying to disable powergenie via ADB doesn't work, it's still enabled for me.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
I have tried all those batter optimization exclusions for months. Evaluated all special permissions. Nothing helped. Only removing powergenie helped.

I did not pull it, so I can't test if that's true. But anyway, I am not missing it
[Huawei Mate 20 Pro Themes, Apps, and Mods] webpatrick:
here is the apk

zip is the whole system/app/HwPowerGenieEngine3 folder
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
I'm a bit of fence after uninstalling it, need to test more but on the first run, i got pretty amazing battery stats and much better performance.

Today the battery life were a bit lower, though it's been 1d 10h since the charge, so i'm not sure if ideal consumption is worse or better.

Also, i have 3 apps that force close after a while, this was kinda ok before uninstalling powerGenie...

More testing will be conducted, please post your XP as well.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
I finally gave in and removed it, I'm also on the fence. I'm not sure if I'm getting worse battery life or if I'm just being paranoid where I'm checking it and messing about.

Will have to keep an eye on it.

(The one app ideally wanted to have notifications working still doesn't so powergenie wasn't the issue with that one lol)
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Let's put it this way. PowerGenie force closed apps in the background after 30 seconds or so. If apps have triggers configured (like alarm or network change, whatever), they had to be started again which causes more juice than just leaving them running.

So in that regard, the battery life can be even better than before.

But if you have misbehaving apps, PowerGenie would have saved you from them draining your battery. I think things like Greenify or Wakelock detector can help identify those and put them to rest.

force closes aren't caused by lack of PowerGenie. Only made visible. I would get rid of the apps, or turn off the force close notification in the dev settings. (it used to be there, didn't check on Huawei though)
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
PowerGenie is not the only power saving layer in the EMUI system. You still have to go to your battery settings, open app starts and disable the "protection/management" from the app in question. I have left the ticks for everything I rarely use (like games) and unticked everything else.

Additionally if you go to app settings, open 3 dot menu, special access, battery optimization, pick your app and set "not allowed" or similar (not using an english rom).

If you have done both, your app should be happily running in the background. :cowboy:
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Well i have two power draining dating apps, that refreshes more quickly on other phones, but less in the mate, so PowerGenie probably helped with power consumption.

Also need to monitor the idle drain, i lost 5% in span of six hours and half, ebb though mobile data was off.
[Huawei Mate 20 Pro Themes, Apps, and Mods] TomPiXX:
Don't know why some people have such problems with background notifications.

I've never noticed something like that.

Messengers work fine and apps which scheduled events, too.

Is there a scenario / app for testing purposes?
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
For me it's Blackberry UEM
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
Found this on another thread (can't remember where) but if you've uninstalled a package you CAN reinstall it by entering the following in an adb shell

cmd package install-existing com.huawei.powergenie

Just tested and it works.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
This is a great find, i'm still testing how phone operates with the powergenie uninstalled, so far it is faster a bit, no weird performance limiting and i fixed my idle drain, turns out to be rouge app that powergenie used to to shut down, so it had some use.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
I'm still not quite sure myself. I think I'm leaning towards slightly worse battery myself but will leave it enabled again for a few days to get a feel.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
I'm not sure too, I'll test it two more days and we'll see.

It might help in killing some rogue apps, otherwise we have to monitor it ourselves, but without powergenie, the phone is definitely smoother and have less wierd issues
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Some nice results...
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
Hey, I tried the APK and it prompted all done.. does the mean Power Genie is uninstalled... What change will I see in the settings??? Can you send a screenshot of changes .. please?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
The only change you'll see is that the app battery usage stats won't be available.
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
Do you mean this software section which I see here?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
That's right. If it's uninstalled properly the software usage shouldn't show anything after rebooting. It will likely just say 0% or <0.2% (that's what mine showed)
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
Thanks man.. I am pretty noob when it comes to the adb stuff... could you please guide me what do I have to do...I have MacBook.. or do I need Windows for this?

I'm only getting 4 hr SOT with no heavy usage as such... I'm disappointed... Even idle drain is so much that I'm fed up.. I'm on LYA-L29 if that's helpful.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
I've never used ADB on Mac but follow the guide here to install.

I'm assuming the command to uninstall is the same:

adb shell pm uninstall --user 0 com.huawei.powegenie
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
Thanks man :good: Done! Now this should be it ..As you said it shows 0.3% software in that section...now I should monitor the SOT... Right?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
Yeah, and you could install something like GSAM Battery Monitor if you want to keep an eye on apps to make sure there isn't a rogue one running in the background.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Hmtsjmftsch:
If you only get 4hrs SOT then that is not caused by powergenie. You most likely have a rogue app that keeps waking up your cpu. I suggest you first check the per app battery usage or use an app to see if you have an app that causes many wakelocks
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
If you have Facebook installed that's a killer, I went to battery / app launch set Facebook to manual and turned launch on start / secondary launch / run in background off
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
I've noticed a huge drain overnight but couldn't pinpoint as to what.

I removed powergenie from my mate 9 and mate 20 pro, in span of 8 hours, mate 9 lost 2% and mine 10%.

The night before, the mate 20 lost 2% only, nothing changed, i think there is an issue with Android Pie as of wide and maybe huawei implementation, need to check further.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Nilleiz:
Could it be that this has to do with the non linear battery consumption? Like when at 100% the battery "drains slower" than on 50%?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
On lower percentage it does, like 10% and lower, but i tested it twice on 44%.

One time it drained 2% the other 10%, and on my mate 9 it drain 2%.

I noticed many have issues with Android Pie and media apps consuming too much battery, I'm investigating that.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Guys, could anyone with a german Mate 20 pro pull the powergenie apk from a german phone and ping it over?

I have decompiled the phone and seen a whitelist of apps that should not get kicked. Maybe there is an intent we can use to add custom apps, which would eliminate the need to have the PowerGenie removed. But no guarantee :).
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
I found it, nevermind
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I lost 3 % in 4 hour tonight where the other night I was still on 100% after 5 hour. Weird.

Tomorrow I'm going to clear all apps then reboot and see what I lose. I'm pretty sure something is running. Maybe auto sync or notifications.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
I have updated the front page with all the information I have. Unfortunately the APP I published does not work as Android seems to prohibit running those commands (with an actual action involved) from a non-system app. You have to use the ADB commands specified.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Phone stays quite a lot of 100% before it goes down, so that's not good indication.

Drain your battery to 80-40% and then see how the idle time is.

---------- Post added at 08:02 PM ---------- Previous post was at 08:00 PM ----------

Excellent, i've been monitoring apps more regularly since it's gone, media apps tend to eat more juice so i need to watch out, tinder especially:D:D
[Huawei Mate 20 Pro Themes, Apps, and Mods] alterbang:
I found this method to be pretty effective, without needing to disable powergenie
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Brought back powergenie, see if the idle drain continue .
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Tried that, didn't work for me :(
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I don't think I need powergenie back, my benefits outway anything else, I don't think I have a standby drain problem, I barely lose much and my WiFi location services and auto sync and rotation is always on.

So far I have 13hrs 27min of time since last charge 2 hr 15min screen on time. Battery is at 75%

Gsam says that 1hr 15 minutes was staying awake von light doze though, that's interesting to see what caused this.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
What is annoying when you reboot the system, all the stats for battery resets, auto brightness resets and minimum DPI in dev options resets, I usually set minimum to 450dpi
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Today I have 9 hrs 17m off charge, 6hr 14m screen on time. 2hrs 59m watching huawei video tv shows. 20min phone. 1hr 23m light doze, wifi, location and mobile data active, 1hr 24m Facebook

I still have 40% battery.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
My idle drain was 4% over span on 9%, still need to test it more.

I have the L29 version, even though i use 1 sim, it might affect it somehow, yet mine Mate 9 got a bit better standby with android Oreo.
[Huawei Mate 20 Pro Themes, Apps, and Mods] cordonbleu:
Same for me. The phone works like a charm now. No screen dimming and apps stay in memory. Battery is also good. Yesterday I went from .184 to .187. I cleared the cache partition after the update and have no problems so far.

Also the Gsam battery monitor stats? I thought you could change a setting in whether you see the stats from 'since unplugged from charger' or 'since full charge'. Think you should set it to since full charge then?

I also have the L29 version and only use one sim. Compared to my Mate 8, battery life of the M20Pro is slightly better.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Yes you can change it with the triangle at the bottom of the screen.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Well today i lost 2% in span of 6 hours so i guess it's ok.
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
I'm getting much better battery life now but could you please assist me as to what settings have you done in apps special access and app launch sections??

I mean what extra settings except removing power genie. Would be really helpful. Thanks ?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Better battery life, when you see it? Idle or while in use?.

I've put my dating apps on auto manage, same with sammy browser.

The apps you want to keep in memory, make sure you manual launch them in the app launch menu, and disable battery optimization for them.
[Huawei Mate 20 Pro Themes, Apps, and Mods] vapotrini:
Thank you OP, as this is the only way to get all of notifications to come in on time. Whitelisting simply doesn't work with some apps.

That said, it most certainly affects my battery life. Prior to uninstalling powegenie, I'd never even once seen under 10 hours SOT with my Mate 20x. Since uninstalling, I consistently get about 9+ hours. Reenabled power genie and now it's back up to 10+. A small price to pay imo
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
That's because it won't close all those apps that send lot of wakelocks and work in background, most likely social media apps and dating apps
[Huawei Mate 20 Pro Themes, Apps, and Mods] vapotrini:
Yeah, makes perfect sense that it wouldn't be as good when it's enabled.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
I think better off with powergenie
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I'm actually getting all notifications, when power genie was enabled I wasn't, Google opinion rewards is one example. For me I'm 200% better performance without it.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Yeah i can see that, but the battery drain may hamper the happiness a bit hehe
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
Thanks for the reply. Just to be clear let's say if I want facebook to be in memory, I should put it on manual launch and disable battery optimisation . Correct?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sammath:
Took the plunge and deleted it yesterday, battery life already was amazing with power genie still installed, I just got annoyed by the dimming in certain apps.

Let's see how this goes.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Indeed, but giving Factbook a free roam like that is a bad idea
[Huawei Mate 20 Pro Themes, Apps, and Mods] kps@2019:
I agree. But I don't know how you guys are getting 10+ hours of battery life... I'm only getting 5-7 hrs after heavy use I must say. I really want to know what you guys are doing that I don't.

I have powergenie uninstalled as a matter of fact. Just want to know what settings are best to get best out of this device.

If you could be so kindly send me some screenshots of your apps > special access settings and app launch settings I'll get to the root of it.

Also is your display setting is set to auto or FHD+ manually?

So many questions ...
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
Take on account that SOT is NOT the important factor, each phones uses different network, different cell towers, apps and endnotes builds, and obviously your usage is different.

I usually get 8hr to 9hr before i reach in between 5 to 10%, on a span on 1d use, but that's with moderate or light gaming.

There is no magic spell tbh, you can use FHD+, put all your social and dating apps on manual or auto launch, depends what kind of apps you wanna keep in background, maintain a manual control over brightness, don't run the Facebook app, use Facebook lite if it's needed.

Not much more than that can be done, powergenie removal might help or actually decrease the SOT, since you need to manage everything by yourself.
[Huawei Mate 20 Pro Themes, Apps, and Mods] dominicstg2:
So removing power gene is good for battery? I debloated from a mate 20x list and it was going well untill my phone died and I ended up in a bootloop
[Huawei Mate 20 Pro Themes, Apps, and Mods] Derpling:
How it ended it bootloop? hardware fail?

I'm not sure removing powergenie is beneficial, but some say otherwise.

I'm still undecided.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sammath:
I do have to say without power saving enabled (the light one) its standby drain has become 0 as before it would drain about 3 to 4 percent overnight.
[Huawei Mate 20 Pro Themes, Apps, and Mods] dominicstg2:
Is this with power gene disabled
[Huawei Mate 20 Pro Themes, Apps, and Mods] dominicstg2:
These are the apps I froze found it on a mate 20 X forum View attachment 4699905View attachment 4699906View attachment 4699907
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sammath:
Yeah, disabled
[Huawei Mate 20 Pro Themes, Apps, and Mods] dominicstg2:
Oh alright I might try it then
[Huawei Mate 20 Pro Themes, Apps, and Mods] Kasemx94:
hey how did you freeze those apps? and do you feel like It helps with battery life?

cause I only had my device for 10 days or so and im only getting 5/6 hours SOT and ive only just managed to adjust the whole ''manage automatically settings and battery optimisation''
[Huawei Mate 20 Pro Themes, Apps, and Mods] dominicstg2:
App freezer but I was have slot of issues battery was bad, when it died it ended in a boot loop so I reset and just froze Gmail, Facebook and chrome
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
If you use the Full Facebook App & Mobile Data it drains the battery life like a high performance V8 engine sucks fuel.

Shocking.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I did a manual update to .187 and uninstall the power genie again, now gsam battery monitor doesn't show individual app usage. Before update I was getting maybe 4% app usage now it's like 25% that's on standby.

I also lost about 3% in standby over 3 hours where previous I was losing about 1% in 5 or so hours.

I'm going to reinstall powergenie and see what the difference is.

Edit: charged to 100% I got 10mins before dropping to 99%

Reinstall powergenie, charged back to 100% currently at 33mins still at 100%

The only annoying part is this automatic dimming, but I think I'll have to live with it.
[Huawei Mate 20 Pro Themes, Apps, and Mods] cordonbleu:
Maybe you need to grant gsam permission again? I'm on .187 and gsam is working and showing app usage. Also, my drain is normal with powergenie uninstalled. I'm glad so, because I really can't live with the dimming. Removing powergenie was the thing that kept me hold on to this phone. If the dimming couldn't be solved I'd been on another phone right now.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sammath:
Yeah, same for me, it's still showing the apps drain on my gsam. Maybe it's the permission like the poster above me pointed out?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I used ADB to get more stats for GSM battery, pretty good shows heaps of information as well as every app.