Git Product home page Git Product logo

appkillermanager's Introduction

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

appkillermanager's People

Contributors

thelittlefireman avatar indrih17 avatar

Stargazers

 avatar Evgeny Nizamiev avatar Vad Avdeev avatar Jacob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.