Huawei

On some phones with EMUI 9+ (Android P+) Huawei introduced a new task killer app called PowerGenie which kills everything not whitelisted by Huawei and does not give users any configuration options. See below how to config it.

Basic setting

App Launch on some EMUI 8, 9 and 10 devices (Huawei P20, Huawei P20 Lite, Huawei Mate 10…)

  • "Phone settings > Battery > App" launch and then set Pomodoro app to “Manage manually” and make sure everything is turned on.

1. Phone settings > Battery > App launch
This feature may or may not be available for all devices or labeled differently.

2. Turn off “Manage all autmatically”

3. Make sure to ENABLE all toggles.

Startup manager

Startup manager seems to be a new kid on the block, preventing apps run automatically after the phone starts up.

  • Go to "Settings > All > Startup manager"

1. "Phone settings > All > Startup manager" and allow the Pomodoro app.

Advanced for specific devices

EMUI 9+ devices

Classic battery optimization

Open "Settings", and search for and access "Battery optimization". Touch the little "inverted triangle" next to Don’t allow, touch "All apps", locate and touch "Pomodoro" app, and select Don’t allow.

PowerGenie

Huawei is extremely inventive in breaking apps on their devices. In addition to all the non-standard power management measures described below, they introduced a new task killer app build right into EMUI 9 on Android Pie.

It is called PowerGenie and it kills all apps that are not on its whitelist. You cannot add custom apps on their pre-defined whitelist. This means there is no other way to fix proper app functionality on Huawei than uninstalling PowerGenie.

Unfortunately this is a system app and can only be fully uninstalled using ADB (Android Debug Bridge) Source: XDA.

You need to:

  1. install ADB on your computer

  2. Connect your phone with a data cable

  3. Enable Developer options

  4. Enable USB debugging within Developer options on your device

  5. Run the following commands on your computer:
    adb shell pm uninstall -k --user 0 com.huawei.powergenie
    adb shell pm uninstall -k --user 0 com.huawei.android.hwaps
    If apps keep getting killed try running:
    adb shell pm stopservice hwPfwService
    We did not yet have this confirmed but it is possible you can alternatively just disable PowerGenie in
    "Phone settings > Apps". This setting would need to be re-applied every time you reboot your device.

EMUI 5.X and 8.X

Classic battery optimization

Open Settings, and search for and access Ignore battery optimization. Touch the little inverted triangle next to Allow, touch All apps, locate and touch the app, and select Allow.


EMUI 6+ devices (and some EMUI 5 devices)

  • Phone settings > Advanced Settings > Battery manager > Power plan set to Performance

  • Phone Settings > Advanced Settings > Battery Manager > Protected apps – set Pomodoro app as Protected

  • Phone Settings > Apps > Pomodoro app > Battery > Power-intensive prompt [uncheck] and Keep running after screen off [check]

  • Phone settings > Apps > Advanced (At the bottom) > Ignore optimisations > Press Allowed > All apps > Find your app on the list and set to Allow

Huawei P9 Plus

  • Phone settings > Apps > Settings > Special access > Ignore battery optimisation > select allow for your app.

Huawei Honor 9 Lite, Huawei Mate 9 Pro

  • Phone settings > Battery > Launch and then set your app to “Manage manually” and make sure everything is turned on.

Source: dontkillmyapp