yashsingh1/xdaforums huggingface dataset:
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
The situation is this. With EMUI, there are 2 ways the system can stop your background apps from working. The first is the default Android way and the second is the Huawei PowerGenie. This tries to measure the wakelocks, the temperature, power consumption, network utilization of the apps and kicks them quite quickly if they keep running in the background. This PowerGenie has some whitelisted package codes of apps that won't get touched by it, like Google system apps, Facebook, Beidu, ... . Unfortunately this is not editable.

I myself was in a situation where my third party calendar apps did not work and my Blackberry UEM (and HUB+ app) did not show me any work emails. Quite bad.

The only solution was to "remove" the PowerGenie app. Because this is living on the system app (read-only), it will still be in place. I have tried to wrap it up in an easy to use APP, but Android prohibits that unfortunately. So despite that the APP showed you "Done", it did not work.

Here is what you need to do for preperation:

- enable developer menu (click on the build number until you see a toast)

- enter dev options, turn on ADB debugging

- install google Android SDK

- connect your mobile through USB to your laptop/computer and run "adb shell" to see the connectivity is there. If not, follow one of the million tutorials

To disable PowerGenie:

To enable it again:

One word regarding impact on battery:

It is quite likely that you will find an application on your phone which is relying on running in the background from time to time. Appplication developers might have actually implemented techniques to avoid their app from being killed, because people might quickly point their finger to the app developer and not to the Android battery saver. Imagine if PowerGenie kills those apps every couple of seconds and the apps are getting restarted due to timers, events, whatever, that causes a bigger drain to your battery than it would actually help you.

On the other hand, if you have a rogue app running which is spinning like crazy, there won't be a PowerGenie saving you from it. Get one of the million battery apps and track you usage. Wakelock detector might help.

Caveat:

There is one caveat with this method though. You will lose the ability to see in your official battery settings menu, which app consumed how much battery. This is unfortunately linked to the PowerGenius app. However, apart from that there are only benefits, as Android will behave like you would expect it to.

Opportunities:

Using the above commands, you can quickly disable other system apps as well. The Huawei Launcher for instance, "com.huawei.android.launcher", but make sure you have another launcher installed upfront. But it's always good to know those apps will remain on your system and one ADB command will bring them back.
[Huawei Mate 20 Pro Themes, Apps, and Mods] carburano:
Thanks for your file but it gives error on my m20pro
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Hey, what error do you get?

Can you please open an adb shell and issue this command to see if you have the "com.huawei.powergenie" file?

pm list packages -f
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sammath:
Are there any downsides in doing this? I would like to know before I uninstall this.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Nope. No force close, no notable difference in battery consumption.

What I learned though. I disabled battery optimization for every app apart from a few games. This has greatly improved battery life for me. I guess Huawei is forcefully closing apps that will start automatically straight after which has a counter wise effect.

2 days, 19 hours was my longest. All with battery optimization turned off.
[Huawei Mate 20 Pro Themes, Apps, and Mods] carburano:
yes it was there but now i disabled it via adb
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
I tried disabling via ADB (just to see what difference it made) but after a restart it still seems to be active.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grondah:
I'd be interested in the longer term implications of uninstalling seeing as disabling doesn't want to work.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Have your battery stats gone, someone used adb to remove the app but battery performance usage has gone
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
I got the error too, but my app is HwPowergenieEngine3.apk
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Ah great, thanks. I will modify and upload again
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Yes, you are right. I mean I can see all stats, just per app usage is not there anymore
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Cool thanks that works, my stats disappeared too, then I installed gsam battery monitor and when I checked the stats again they're back, also power genie 3 APK is still in the system app root folder, but when I click on it says do I want to update the app. I checked with the brightness up on manual mode with Gmail and chrome it doesn't dim. So Power genie doesn't seem to be working.

I uninstalled gsam battery monitor and the stats are still there.

---------- Post added at 12:20 PM ---------- Previous post was at 12:04 PM ----------

Spoken too soon, I did a reboot it defaults to Auto brightness again, reset to manual mode and opened Gmail it dimmed again. ☹️
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Tried uninstalling via abd but it says failure not installed. Very annoying.

Edit fixed by using adb shell pm uninstall --user 0 com.huawei.powergenie

Now app battery stats have gone.

Let's see how battery performance is.

The HwPowergenieEngine3 is still available in root, so I'm guessing if we reinstall that app it will bring back the auto dimming and app stats.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Ok so I have noticed that if I go to phone manager, it's always at 100% optimisation, where before it always seemed to drop down to 95%

Also I have noticed that I have got 5hrs sot with 46% battery left, where l have had 6hr 30 mins on previous occasions.

I will have to keep monitoring the battery performance.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
I guess you are doing this for a reason, right? Are your background apps working now?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
No they are gone, I'm using Gsam battery monitor for a few days to see what apps are using the most, at the moment Facebook and for some reason Nova launcher are the top 2 culprits.

Although if I go to apps then power usage I think stats are still visible there.
[Huawei Mate 20 Pro Themes, Apps, and Mods] klaus27:
Sorry, I meant background notifications of your apps. For me it was Blackberry
[Huawei Mate 20 Pro Themes, Apps, and Mods] webpatrick:
probably better use this, so you can re-enable it later without a hard-reset (if you want)

disable:

pm disable-user --user 0 <Package Name>

re-enable:

pm enable --user 0 <Package Name>

Package Name:

com.huawei.powergenie
[Huawei Mate 20 Pro Themes, Apps, and Mods] Darkat70:
Yes I've got background notifications

I have noticed that now my battery will go right down to 1 percent before shutting down, where before it would shut down at 6 percent. Auto brightness still activates itself on reboot though. But there's certainly overall better performance with power genie gone.
[Huawei Mate 20 Pro Themes, Apps, and Mods] the gladiator:
I removed PowerGenie using the command in the OP. Maybe battery drain is a little bit higher (at night now 2.2% per hour, when before it was 1.6% per hour) but I have now real time notifications AND update of the notification counter badge !!!!

I thank very much the OP and all the people who gave his input and added value in this thread.
[Huawei Mate 20 Pro Themes, Apps, and Mods] fantomatico:
Great. Works on my Honor 8 with EMUI 8.

Thanks
[Huawei Mate 20 Pro Themes, Apps, and Mods] obyogoby:
[HELP] Notification Delay on Mate 20

[MENTION=1936648]klaus27[/MENTION] I have a mate 20. I have to press the power button to turn on the screen to receive notification otherwise notification will be delayed for like 10 mins.

Have changed the notification setting, Apps permission and battery setting but no help. I even followed your instruction to disable powergenie but it is still the same.

Also try factory reset but no luck.

Mostly I have this issue on Gmail and Reolink which is used to connect back to my security cameras at home.

Can you guys give me a hand?
[Huawei Mate 20 Pro Themes, Apps, and Mods] ntelas:
I have had this phone for 10 months to only now learn that disabling the some times annoying optimization of huawei is possible.

I will test this and hopefully it will fix all my previous problems with apps. Theoretically android should kill power intensive apps anyway, so I believe it will work fine without it. Thanks OP.
[Huawei Mate 20 Pro Themes, Apps, and Mods] arsenal74:
I disabled this, seemed to work and there are no software items showing under battery settings. There is however still a power genius app running when I look at running services under developer options.

Is that correct or did I do it wrong?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
Same here. Adb uninstalled power genie , but after reboot a process is still running.
[Huawei Mate 20 Pro Themes, Apps, and Mods] prefor:
How can you see it's still running?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
Developer options > running services. However , I just stopped that service within that menu manually. View attachment 4883801View attachment 4883803
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sajaddd:
Not working at all. I've wasted like 2 hours surfing here for nothing. I've already used adbshell command and it says "success" but nothing has changed since then.

It keeps killing apps in the background and I can't use almost any app I want.

Huawei y5 lite 2018 dra-lx5 EMUI 8 android 8.1

---------- Post added at 01:56 PM ---------- Previous post was at 01:47 PM ----------

Battery option is there in the settings, so what did it disable? I can open battery setting and it's all there with no change.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
The only thing it seems to disable after adb removal is logging of the "power usage" of apps.

After you adb uninstalled it, did you go and stop the process in developer options , running apps?

Also did you follow the usual process for apps that you don't get notifications for via the battery optimization and launch record settings,?

I installed power genie back.
[Huawei Mate 20 Pro Themes, Apps, and Mods] demon2112:
can I die this to get rid of figital balance?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Sajaddd:
OMG can't believe I fixed this! :D

I uninstalled powergenie but for me and specifically my phone model, this method won't work by only uninstalling it. I had to wipe cache partition too. I did that and I'm getting push notifications as well. No more apps killed in the background and I'm getting almost 2x faster speed than before + more battery life.

*My phone has 1GB of ram and it starts killing background apps when ram usage is more than about 90 percent, but seldom happens. Quite satisfied

Topic author, thanks
[Huawei Mate 20 Pro Themes, Apps, and Mods] timos:
is it removable on emui 10? The procedure does not work.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
Why did you quote my post?
[Huawei Mate 20 Pro Themes, Apps, and Mods] jpmaas:
it works for 10 too, at least for me.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grumpy Cat:
Had a bit of a play around with this and found removing it caused negative results on my Mate 10 so I reinstalled it. It didn't fix my casting issues with YouTube, it didn't improve battery life, it didn't keep my apps in memory any more efficiently without it and I found that removing powergenie actually had a hit on system performance. Bit of a shame really, I was hoping this would fix a few problems but not in my case.
[Huawei Mate 20 Pro Themes, Apps, and Mods] matolog:
Hi,

I have the same issue with missing notifications. (mate20pro with latest 9x android and 9.1.x emui)

I turned on all notifications and run "power mode" in battery saver (dont have any third party app for battery saving, virus blocking, etc). All is in manual mode and regards many tutorials should working - but isnt - i have no gmail notifications. Even tried few time uninstall app and install again, but no result.

I ran adb shell pm uninstall power genie (uninstall was succesfull, after repeat command - returns message, that is no more app for user) & restart phone few times and again check all settings but still dont have any notifications.

(as temporary solution I start to use Blue Mail - on this one notifications are working ok)

Any idea what is with Gmail app notifications ??
[Huawei Mate 20 Pro Themes, Apps, and Mods] NekoMichi:
No, but you can with the command:

adb shell pm uninstall -k --user 0 com.huawei.parentcontrol
[Huawei Mate 20 Pro Themes, Apps, and Mods] punkhawaiian:
After uninstall I use AccuBattery Pro and it allows you to see individual app power use. My notifications all work now and want to say thanks for sharing this.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
What's your Accubattery % per hour during sleep?
[Huawei Mate 20 Pro Themes, Apps, and Mods] punkhawaiian:
Not sure where that is here is a screenshot.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
See my screen shot. But take the screen shot after you wake up in the morning and not having used the phone for more than 5 hours or so..View attachment 4908481
[Huawei Mate 20 Pro Themes, Apps, and Mods] punkhawaiian:
battery drain over night

Charger right before
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
Doesn't look too bad, although it was measuring the duration of approx 4 hours of being "untouched".

The other app I recommend is GSAM. That has an inbuilt option to check battery usage from various set points, like from when last unplugged, last screen off or my favourite for before going to bed , "from now".

View attachment 4909893
[Huawei Mate 20 Pro Themes, Apps, and Mods] faisal.fmq:
How did you reinstall?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Limeybastard:
Here you go..

View attachment 4910085
[Huawei Mate 20 Pro Themes, Apps, and Mods] faisal.fmq:
Thank you so much, got it installed.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grumpy Cat:
So I take it removing it caused performance issues?

I would have got back to you sooner but it was Christmas yesterday and I was really freaking drunk.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Grumpy Cat:
Uninstalled on my p9 lite and I think everything is running a bit snappier.

Funny how uninstalling it on a flagship phone can cripple it but on a mid range phone it can make it faster.
[Huawei Mate 20 Pro Themes, Apps, and Mods] faisal.fmq:
Yeah, for some weird reason animation of the system we're bad and were jitters all around, plus I found no benefit of removing as the notifications showing was same as before
[Huawei Mate 20 Pro Themes, Apps, and Mods] Alertfoundation:
I'm really curious about this.

Did anyone manage to get it's pre-defined app whitelist?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Ipse_Tase:
Folks...any of you that have disabled Power Genie on EMUI 9.1 had to re-enable it on EMUI 10? Will the update restore the app status or it will stay disabled?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Ipse_Tase:
Well...I guess no one did...or maybe no one got EMUI 10...or maybe no one got a Mate 20 pro :silly:
[Huawei Mate 20 Pro Themes, Apps, and Mods] stranded.eu:
disabling the power genie on P20 Lite running latest EMUI 9.1 update (December 2019) affects performance significantly.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Alertfoundation:
Is it just me or besides killing apps it also prevents apps from auto-start even screen is on and app is not on foreground.

App launch is manually and allowing the other three options
[Huawei Mate 20 Pro Themes, Apps, and Mods] garabatopuntocom:
Can't delete Huawei Launcher

Hello, I have a new mediapad m6 and i could eliminate power genie by ADB command but not com.huawei.android.launcher . Delete file internal error. Any idea? Thank you
[Huawei Mate 20 Pro Themes, Apps, and Mods] Troney88:
How do you know you have done it

Hi not long upgraded from p20 pro to p30 pro emui 10. I fellow the steps to stop powergenie from operating. How do you know it has worked?? All I got from the terminal once I did all the following steps was success. Also am I mint to restart the phone Anybody can help ?? Thanks
[Huawei Mate 20 Pro Themes, Apps, and Mods] stefan asenov:
начертайте
[Huawei Mate 20 Pro Themes, Apps, and Mods] choovick:
P30 Pro MEUI 10 it comes back after reboot

It comes back after reboot for me.

Steps:

1. Get into shell:

adb shell

2. List it:

pm list packages | grep powergenie

You'll see it is there

3. Delete it:

pm uninstall --user 0 com.huawei.powergenie

4. List again

pm list packages | grep powergenie

no longer there

5. reboot

6. List again, and it will show up

pm list packages | grep powergenie

Does this mean that reboot reverts change, or i'm missing something?
[Huawei Mate 20 Pro Themes, Apps, and Mods] choovick:
Did this again today, rebooted and it seems to be removed. Please ignore me...
[Huawei Mate 20 Pro Themes, Apps, and Mods] noone606:
Reenabling it battery life was that bad without it

on emui 10.0.0.180

guess ill be stuck missing signal mesages when playing pokemon

again

ffs
[Huawei Mate 20 Pro Themes, Apps, and Mods] wetfloor77:
Maye 30 Disable PowerGenie

Can someone post a guide to disable PowerGenie on the Mate 30 5G Chinese?
[Huawei Mate 20 Pro Themes, Apps, and Mods] killerkamatis:
Will factory reset bring it back?
[Huawei Mate 20 Pro Themes, Apps, and Mods] killerkamatis:
So i uninstalled it anyway, im still having notif problems with viber and microsoft teams. :(
[Huawei Mate 20 Pro Themes, Apps, and Mods] NekoMichi:
On EMUI 10, I'm not sure if Huawei replaced PowerGenie with something else or if they've tried to obfuscate its presence somehow, but I'm getting some strange results.

Tested devices:

- P30 Pro VOG-L09 on 10.0.0.186 (C431)

- Honor View20 PCT-L29 on 10.0.0.183(C432)

Before I made any changes to PowerGenie using ADB, here are my observations:

- "Power Genius" or "PowerGenie" does not appear under the apps list, even when "show system processes" is selected

- "Power Genius" or "PowerGenie" does not appear in the running services list under the developer settings

- System management apps like Skit aren't able to detect the existence of any apps called "Power Genius" or "PowerGenie" under the system apps list

- Under the battery management settings, I'm still getting per-app usage stats

- I'm still getting apps being killed in the background even when they're supposed to have running services and there's plenty of free RAM remaining

- adb shell pm list packages shows that com.huawei.powergenie is installed even though it doesn't show up on any of my app settings lists

I'm also having issues uninstalling it via ADB, every time I use adb shell pm uninstall -k --user 0 com.huawei.powergenie it says the package is successfully uninstalled, but rebooting the device brings it back. I suspect that Huawei may have changed the app's title in the manifest file as an obfuscation measure. ADB indicates that PowerGenie is installed and running but from the user side I can't find any traces of it using its previous app title.
[Huawei Mate 20 Pro Themes, Apps, and Mods] cris2d2:
I have P40 Lite with GMS installed and running (except Google Pay and a few others I don't mind), without errors from Play Services or Play Protect.

I've noticed that a few apps aren't showing push notifications, like Yahoo Mail, Outlook Mail, OLX etc. I removed Powergenie like in the first post and battery stats for Software are gone (don't mind).

I can confirm that after restart running again ADB command to uninstall Powergenie gives the error "Failure [not installed for 0]". So, it seems that for P40 Lite ADB command is indeed removing the app.

It remains to test if push notifications from certain apps are influenced by this removal.

LE: it seems that none of the apps that didn't show push notifications BEFORE removing PowerGenie are showing push notifications AFTER PowerGenie removal. So, the ADB command had no effect on my P40 Lite.
[Huawei Mate 20 Pro Themes, Apps, and Mods] cetko22:
Yes, i am using youtbe vancend and it shuts down, or when i am in some call in messenger it shuts down after some time.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Bluesmanniak:
Y5 (2019)

I've got Huawei Y5(2019) and EMUI 9.1.0.270

A few weeks ago I've noticed that after "darc screen" system kills my internet radio apps!

I've done exactly what Klaus proposed at the first post:

adb shell pm uninstall --user 0 com.huawei.powergenie

and it worked! PowerGennie disappeared from the systems apps list and my radio internet apps was working great :)

But after awhile, 2-3 weeks(?) the problem came back. I checked the systems apps list but PowerGennie is not there. So... I tried to... install it again by "adb shell cmd package install-existing com.huawei.powergenie" and than uninstall this again by "adb shell pm uninstall --user 0 com.huawei.powergenie". Well, not very smart but looks that it worked, just for a day or two. Today the problem still exists, maybe after restart (I always switch off phone for the night) this proccess come back from memory? Maybe any other proccess kills my apps?

Any idea what to do? Please help...
[Huawei Mate 20 Pro Themes, Apps, and Mods] Pickkaju1984:
:laugh:
[Huawei Mate 20 Pro Themes, Apps, and Mods] kamesenin888:
hello, I am one of the users that got a p40 pro, I installed the google services, but whatsapp is an app that keeps closing, I am using fouawhatsapp first then changed to fmwhatsapp to see if that was the problem, I did the works, manual in app launch, not optimized in special access, and now I removed the power genie, still at random times whatsapp closes and I get no notifications, any other ideas?
[Huawei Mate 20 Pro Themes, Apps, and Mods] eroneko:
Just tested on the latest EMUI 10.1 Chinese version. It still works and stays disabled after reboot. It's called HAware now.

Also, there's an error spamming PG Server is not found in logcat.
[Huawei Mate 20 Pro Themes, Apps, and Mods] kermex:
Off topic: why do you use both Yahoo! Mail and Outlook Mail?! They're doing the same thing.
[Huawei Mate 20 Pro Themes, Apps, and Mods] cris2d2:
I didn't say I was using those apps at the same time. I was just mentioning the apps I've used that didn't send push notifications ?
[Huawei Mate 20 Pro Themes, Apps, and Mods] Kancermeister:
It is possible that the "intelligent saving plan" is responsible for this effect

Actually, on my P8Lite it was enough to switch the energy saving plan to normal (Settings> Energy saving) and add a sensitive application to the protected ones (Settings> Energy saving> Protected applications). It is possible that this will work the same with other models.

I am not related to the Huawei brand, I do not like my smartphone and I want to exchange it for another one at the earliest opportunity.
[Huawei Mate 20 Pro Themes, Apps, and Mods] Ipse_Tase:
Adding to an old thread that might not interest anyone at this point, but in the spirit of sharing...

I got a bit curious (also frustrated with WearOS waking up the phone at night for no apparent reason) and re-enabled PowerGenie.

I wiped out the Optimizer data, so I had to go and disable power monitoring for the apps I want notifications from and also put them in manual management.

Fingers crossed, so far so good....0.25-0.3% /hr at night (but with data and wifi off), notifications seem to work for my email client, Textra, Whatsapp...

You may want to go experiment if you have some rogue app chewing up battery.