urbandroid-team / dont-kill-my-app

Android vendors, don't kill my app!
Creative Commons Attribution 4.0 International
1.25k stars 2.57k forks source link

Huawei EMUI 5 feedback #183

Open sandorex opened 4 years ago

sandorex commented 4 years ago

I have been fiddling with my phone for a while trying to find a way to disable the devil incarnate hwPfwService and here are my findings, note that some of these require root access My phone is Huawei P9 Lite L21 and version is EMUI 5 (Android 7.0)

The service hwPfwService can be stopped using pm stopservice hwPfwService (has to be done every boot), after this i've seen an improvement and apps stay working for hours and havent seen them quit unexpectedly except activities seem to be loaded again (note that the testing has not been very through yet)

After a while i found out the dreaded powergenie was also present so i tried disabling it using pm disable-user --user 0 com.huawei.powergenie and it worked until reboot and i still needed to kill the process, so i looked for another solution and tried removing /system/app/HwPowerGenieEngine3 (and accidentally deleting it altogether) but the powergenie now restarts every time is killed and cannot be uninstalled cause its not a package again (it does this also if you kill it without uninstalling it)

Ill provide an update in some time so i can test how it performs

sandorex commented 4 years ago

Additional information gathered: There is also com.huawei.systemmanager which i removed by deleting /system/priv-appy/HwSystemManager