Skip to content

Android library to handle flaky App killer manager (Xiaomi, Huawei, letv, ...) and prevent from : not showing notification, services not start at boot, etc

Notifications You must be signed in to change notification settings

indrih17/AppKillerManager

 
 

Repository files navigation

Old chat https://gitter.im/AppKillerManager Apache 2.0 License Download

AppKillerManager

Telegram chat

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 (TESTED)
  • OnePlus (TESTED)
  • Letv (NOT TESTED)
  • HTC (NOT TESTED)
  • Asus (TESTED)
  • ZTE (NOT TESTED)
  • VIVO (NOT TESTED)
  • OPPO (NOT TESTED)
  • Lenovo (TESTED)

TODO

  • Add Tests auto with avd and intent testing
  • Add hability to customize dialog
  • Add "Tutorial Activity type"
  • Add screenshot and "settings path" of the intent killerManagerAction 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
implementation "indrih17.app-killer-manager:app-killer-manager:$app_killer_version"

Step 2

Introduce in your app. Example

Maintainers

thelittlefireman

Indrih

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"

DEBUG/HELPING INFORMATIONS :

###Get the current activity name :

$> adb shell

If you see the error

adb server version (41) doesn't match this client (39); killing...

Then enter next command:

sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
$> dumpsys activity activities | grep mFocusedActivity
or to get more result
$> dumpsys activity activities | grep Activity

###Get all permissions

$> adb shell pm list permissions

###Start an activity :

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

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

Phone tested :

PHONE ANDROID OS CUSTOM ROM
Huawei HONOR 4X Android 4.4 EMUI 3.0.1
Huawei P9 LITE Android 6.0 EMUI 4.1
Huawei P10 Lite Android 8.0 EMUI 8.0.0
Samsung S7 edge Android 7.0
Samsung Xcover Android 5.1
Samsung Galaxy J4 Android 9.0 One UI 1.0
Samsung S4 mini Android 4.4
Meizu M6 Note 7.1.2 Flyme 7.1.2
Meizu M6T Android 7.0 Flyme 6.3.4.6
Meizu M811H Android 7.0 Flyme 6.3.4.6
Xiaomi Mi mix Android 6.0.1 MIUI 8.0
Asus ZenFon-2 ZE500KL Android 6.0.1
OnePlus 3T Android 6.0.1 OxygenOS 3.5.4
OnePlus 3T Android 7.1.1 OxygenOS 4.5.1
OnePlus 3T Android 8.0 OxygenOS 5.0.6
OnePlus 3T Android 9.0 OxygenOS 9.0.5

THANKS TO:

Sylvain BORELLI

dirkam

henrichg

SOURCES/HELPING TOOLS :

backgroundable-android

TamingTask

CRomAppWhitelist

permission

AndroidPopWinPermission

About

Android library to handle flaky App killer manager (Xiaomi, Huawei, letv, ...) and prevent from : not showing notification, services not start at boot, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Kotlin 83.8%
  • Shell 11.1%
  • Batchfile 5.1%