Remove PowerGenie to allow background apps to receive push notifications

Search This thread

klaus27

Senior Member
Aug 2, 2009
313
55
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:
adb shell pm uninstall --user 0 com.huawei.powergenie

To enable it again:
adb shell cmd package install-existing com.huawei.powergenie


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.
 
Last edited:

klaus27

Senior Member
Aug 2, 2009
313
55
Are there any downsides in doing this? I would like to know before I uninstall this.

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.
 

Darkat70

Senior Member
Dec 1, 2010
1,663
476
Have your battery stats gone, someone used adb to remove the app but battery performance usage has gone

Sent from my HUAWEI LYA-L09 using XDA Labs
 

Darkat70

Senior Member
Dec 1, 2010
1,663
476
I got the error too, but my app is HwPowergenieEngine3.apk

Sent from my HUAWEI LYA-L09 using XDA Labs
 

Attachments

  • Screenshot_20190120_112311_org.broeer.huaweipowermongo.jpg
    Screenshot_20190120_112311_org.broeer.huaweipowermongo.jpg
    153.3 KB · Views: 4,534
  • Screenshot_20190120_112616_pl.solidexplorer2.jpg
    Screenshot_20190120_112616_pl.solidexplorer2.jpg
    200.3 KB · Views: 4,486

Darkat70

Senior Member
Dec 1, 2010
1,663
476
Yes, you are right. I mean I can see all stats, just per app usage is not there anymore

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.

Sent from my HUAWEI LYA-L09 using XDA Labs

---------- 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. ☹️

Sent from my HUAWEI LYA-L09 using XDA Labs
 

Darkat70

Senior Member
Dec 1, 2010
1,663
476
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.
 
Last edited:
  • Like
Reactions: paalkr

Darkat70

Senior Member
Dec 1, 2010
1,663
476
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.

Sent from my HUAWEI LYA-L09 using XDA Labs
 

klaus27

Senior Member
Aug 2, 2009
313
55
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.

Sent from my HUAWEI LYA-L09 using XDA Labs


I guess you are doing this for a reason, right? Are your background apps working now?
 

Darkat70

Senior Member
Dec 1, 2010
1,663
476
I guess you are doing this for a reason, right? Are your background apps working now?

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.

Sent from my HUAWEI LYA-L09 using XDA Labs
 

klaus27

Senior Member
Aug 2, 2009
313
55
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.

Sent from my HUAWEI LYA-L09 using XDA Labs

Sorry, I meant background notifications of your apps. For me it was Blackberry
 

Darkat70

Senior Member
Dec 1, 2010
1,663
476
Sorry, I meant background notifications of your apps. For me it was Blackberry

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.

Sent from my HUAWEI LYA-L09 using XDA Labs
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    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:
    adb shell pm uninstall --user 0 com.huawei.powergenie

    To enable it again:
    adb shell cmd package install-existing com.huawei.powergenie


    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.
    6
    probably better use this, so you can re-enable it later without a hard-reset (if you want)

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

    re-enable:
    Code:
    pm enable --user 0 <Package Name>

    Package Name:
    Code:
    com.huawei.powergenie
    3
    Are there any downsides in doing this? I would like to know before I uninstall this.

    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.
    2
    The power saving function that is baked into powergenie is causing this brightness uniformity issues. When the amount of white on the screen becomes higher than a certain value, the brightness on some parts of the screen is lowered to save battery. So this causes the irregularities. Powergenie is only causing problems for me, brightness dimming in apps, screen irregularities, forced closing apps and so on... I'm really better off without powergenie. It has had no impact on my battery so far.
    2
    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.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone