FORUMS

Remove PowerGenie to allow background apps to receive push notifications

313 posts
Thanks Meter: 52
 
By klaus27, Senior Member on 16th January 2019, 08:50 AM
Post Reply Email Thread
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:
Quote:

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

To enable it again:
Quote:

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.
The Following 23 Users Say Thank You to klaus27 For This Useful Post: [ View ] Gift klaus27 Ad-Free
16th January 2019, 11:30 PM |#2  
carburano's Avatar
Senior Member
Flag Rimini, Italy
Thanks Meter: 6,279
 
Donate to Me
More
Thanks for your file but it gives error on my m20pro
17th January 2019, 07:29 AM |#3  
klaus27's Avatar
OP Senior Member
Thanks Meter: 52
 
More
Quote:
Originally Posted by carburano

Thanks for your file but it gives error on my m20pro

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
19th January 2019, 10:11 AM |#4  
Senior Member
Flag Nijmegen
Thanks Meter: 199
 
More
Are there any downsides in doing this? I would like to know before I uninstall this.
19th January 2019, 10:18 AM |#5  
klaus27's Avatar
OP Senior Member
Thanks Meter: 52
 
More
Quote:
Originally Posted by Sammath

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.
The Following 3 Users Say Thank You to klaus27 For This Useful Post: [ View ] Gift klaus27 Ad-Free
19th January 2019, 01:41 PM |#6  
carburano's Avatar
Senior Member
Flag Rimini, Italy
Thanks Meter: 6,279
 
Donate to Me
More
Quote:
Originally Posted by 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

yes it was there but now i disabled it via adb
19th January 2019, 02:01 PM |#7  
Grondah's Avatar
Senior Member
Thanks Meter: 95
 
More
I tried disabling via ADB (just to see what difference it made) but after a restart it still seems to be active.
19th January 2019, 11:50 PM |#8  
Grondah's Avatar
Senior Member
Thanks Meter: 95
 
More
I'd be interested in the longer term implications of uninstalling seeing as disabling doesn't want to work.
20th January 2019, 12:20 AM |#9  
Darkat70's Avatar
Senior Member
Thanks Meter: 432
 
More
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
20th January 2019, 12:27 AM |#10  
Darkat70's Avatar
Senior Member
Thanks Meter: 432
 
More
I got the error too, but my app is HwPowergenieEngine3.apk

Sent from my HUAWEI LYA-L09 using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20190120_112311_org.broeer.huaweipowermongo.jpg
Views:	3918
Size:	153.3 KB
ID:	4689917   Click image for larger version

Name:	Screenshot_20190120_112616_pl.solidexplorer2.jpg
Views:	3880
Size:	200.3 KB
ID:	4689918  
20th January 2019, 09:54 AM |#11  
klaus27's Avatar
OP Senior Member
Thanks Meter: 52
 
More
Quote:
Originally Posted by Darkat70

I got the error too, but my app is HwPowergenieEngine3.apk

Sent from my HUAWEI LYA-L09 using XDA Labs

Ah great, thanks. I will modify and upload again
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes