No description
Find a file
2020-05-20 16:27:27 +02:00
app Remove instructions dialog 2020-05-20 16:20:07 +02:00
appkillermanager Remove KillerManagerUtils, convert SystemUtils to kotlin 2020-05-20 16:27:27 +02:00
DOCS Add thanks to readme and apk for spony investigation 2018-08-22 09:38:46 +02:00
gradle/wrapper Update dependencies 2020-05-16 14:22:17 +02:00
IMG Add Samsung lollipop help message 2018-08-20 17:11:30 +02:00
.gitignore initial commit 2018-04-18 13:27:25 +02:00
build.gradle Configure kotlin in project 2020-05-17 14:26:22 +02:00
CHANGELOG.md Deploy version 2.1.1 2018-08-21 09:11:52 +02:00
gradle.properties Update dependencies 2020-05-16 14:22:17 +02:00
gradlew Update dependencies 2020-05-16 14:22:17 +02:00
gradlew.bat Update dependencies 2020-05-16 14:22:17 +02:00
memo.txt add informations 2018-08-21 13:50:00 +02:00
MEMO_HELPING_MESSAGE.md Change strings 2018-07-25 15:03:14 +02:00
README.md Add gitter chat 2018-08-22 11:38:06 +02:00
settings.gradle initial commit 2018-04-18 13:27:25 +02:00
table_device_package.xlsx Add informations 2018-08-17 11:52:08 +02:00

Join the chat at https://gitter.im/AppKillerManager Apache 2.0 License Download

AppKillerManager

Android library to handle App killer manager, agressive power saving mode or battery optimization (Xiaomi, Huawei, letv, ...) and prevent from : not showing notification, services not start at boot, etc

This library will open the right settings of the user phone and prompt him to add your app to whitelist.

Android Custom Roms made sometimes your apps unfunctional due to :

  • Your App is killed when it's not in foreground
  • Notification message do not appear
  • Your services is killed by agressive power saving mode

###If you want to help me do not hesitate to test on your phone and add issue if somethings not work properly

Please if you have a ZTE, Meizu, Oppo, OnePlus, HTC, Letv test this library to help me, Thanks a lot ! =)

Current Compatibility :

  • Samsung (TESTED)
  • Huawei (TESTED)
  • Xiaomi (TESTED)
  • Meizu ( NOT TESTED)
  • OnePlus (NOT TESTED)
  • Letv (NOT TESTED)
  • HTC (NOT TESTED)
  • Asus (TESTED)
  • ZTE (NOT TESTED)

TODO

  • Oppo
  • Vivo
  • Add Tests auto with avd and intent testing
  • Add hability to customize dialog
  • Add screenshot and "settings path" of the intent action for all phones on ReadMe
  • Add a table of possiblities and function unavailable/ not necessary on each device

Usage

Step 1

Add it on your Android app
dependencies {
    implementation 'com.thelittlefireman:AppKillerManager:2.1.1'
}

Step 2

Use with a custom dialog:

    public void startDialog(KillerManager.Actions actions) {
        new DialogKillerManagerBuilder().setContext(this).setAction(actions).show();
    }

Or use it directly :

// Open the corresponding Power Saving Settings
KillerManager.doActionPowerSaving(MyContext);
// Open the corresponding Auto Start permission Settings
KillerManager.doActionAutoStart(MyContext);
// Open the corresponding Notification permission Settings
KillerManager.doActionNotification(MyContext);

Tab of which activity is open when you call functions

FUNCTIONS Huawei Samsung (<5.0) Samsung (>5.0) Asus Xiaomi Letv ZTE Meizu HTC OnePlus
Power Saving Settings N/A NOT AVAILABLE : NO WHITELIST !
Auto Start permission Settings N/A N/A N/A N/A
Notification permission Settings N/A N/A N/A N/A

Maintainers

thelittlefireman

TODO :

  • Test on all devices
  • Add differents settings for autostartservice/notifications/permissions
  • Add custom messages for more explaination on what user need to do on manufacturer "settings Activity"
  • Add custom image for each device and each languages

DEBUG/HELPING INFORMATIONS :

###Get the current activity name :

$> adb shell
$> dumpsys activity activities | grep mFocusedActivity
or to get more result
$> dumpsys activity activities | grep Activity

###Start an activity :

$> adb shell
$> #by component name
$> am start -n com.samsung.memorymanager/com.samsung.memorymanager.RamActivity  --user 0
$> #by action
$> am start -a com.exemple.Action --user 0

more information http://imsardine.simplbug.com/note/android/adb/commands/am-start.html

Phone tested :

(EasyMode) = Go directly to package (app) ?

PHONE ANDROID OS CUSTOM ROM AutoStart(EasyMode) PowerSavingMode(EasyMode)
Huawei HONOR 4X Android 4.4 EMUI 3.0.1 OK (No)
Huawei P9 LITE Android 6.0 EMUI 4.1 OK (No)
Samsung S7 edge Android 7.0 N/A OK
Samsung Xcover Android 5.1 N/A OK
Samsung S4 mini Android 4.4 N/A N/A
Xiaomi Mi mix Android 6.0.1 MIUI 8.0 OK (No) OK (Yes)
ANDROID OS CUSTOM ROM AutoStart EasyMode AutoStart List PowerSavingMode EasyMode PowerSavingMode List
Android 4.4 EMUI 3.0.1 ACTION huawei.intent.action.HSM_PROTECTED_APPS
Android 6.0.1 EMUI 4.1 ACTION huawei.intent.action.HSM_PROTECTED_APPS
Android 6.0.1 MIUI 8.0 ACTION miui.intent.action.OP_AUTO_START INTENT "com.miui.powerkeeper", "com.miui.powerkeeper.ui.HiddenAppsConfigActivity" extras : package_name,package_level ACTION miui.intent.action.POWER_HIDE_MODE_APP_LIST

THANKS TO:

Sylvain BORELLI

dirkam

henrichg

SOURCES/HELPING TOOLS :

backgroundable-android

TamingTask

CRomAppWhitelist

permission

AndroidPopWinPermission