forked from gitter-badger/AppKillerManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memo.txt
105 lines (76 loc) · 5.27 KB
/
memo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Huawei - Only Pre-EMUI 5.0 / Android 7 - Go to Settings > "Protected apps", check your app.
Sony - Tap on the battery icon. Go to Power Management > STAMINA mode > Apps active in standby > Add your app.
Asus - Check your app in the Auto-start Manager.
Xiaomi - Security (App) > Permissions > Autostart - Enable your app
*New Xiaomi - Settings > Developer Options. Disable "memory optimization". To enabled Developer Options go to Settings > About. Tap on MIUI 8 times.
Oppo - Go to Settings > "Security settings" > "Data saving" and enable your app.
Samsung - Disable battery usage optimizations
new Intent().setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity")),
new Intent().setComponent(new ComponentName("com.letv.android.letvsafe", "com.letv.android.letvsafe.AutobootManageActivity")),
new Intent().setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity")),
new Intent().setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.permission.startup.StartupAppListActivity")),
new Intent().setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.startupapp.StartupAppListActivity")),
new Intent().setComponent(new ComponentName("com.oppo.safe", "com.oppo.safe.permission.startup.StartupAppListActivity")),
new Intent().setComponent(new ComponentName("com.iqoo.secure", "com.iqoo.secure.ui.phoneoptimize.AddWhiteListActivity")),
new Intent().setComponent(new ComponentName("com.iqoo.secure", "com.iqoo.secure.ui.phoneoptimize.BgStartUpManager")),
new Intent().setComponent(new ComponentName("com.vivo.permissionmanager", "com.vivo.permissionmanager.activity.BgStartUpManagerActivity")),
new Intent().setComponent(new ComponentName("com.asus.mobilemanager", "com.asus.mobilemanager.MainActivity"))
more info
https://stackoverflow.com/questions/34149198/how-to-enable-auto-start-for-my-app-in-xiaomi-programmatically
https://stackoverflow.com/questions/31638986/protected-apps-setting-on-huawei-phones-and-how-to-handle-it
https://github.com/dirkam/backgroundable-android
secures pref
samsung
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.samsung.android.sm", "com.samsung.android.sm.ui.battery.BatteryActivity"));
try {
getActivity().startActivity(intent);
} catch (ActivityNotFoundException ex) {
Toast.makeText(getActivity(), "Smart manager not installed on this device", Toast.LENGTH_LONG)
.show();
}
Go to Smart manager
click on battery,
click on Detail,
turn off App optimisation.
https://stackoverflow.com/questions/37205106/how-do-i-avoid-that-my-app-enters-optimization-on-samsung-devices
ASUS ?
https://stackoverflow.com/questions/42293365/not-receiving-gcm-notifications-once-app-is-killed-on-xiaomi-and-lenovo-devices
com.huawei.android.smartpowerprovider
https://www.google.fr/search?q=http%3A%2F%2Fcom.huawei.android.smartpowerprovider%2F&ie=utf-8&oe=utf-8&client=firefox-b&gfe_rd=cr&dcr=0&ei=u7vMWqqrMOzS8AeJvqjQCw
https://code.briarproject.org/akwizgran/power-detective
https://code.briarproject.org/akwizgran/briar/issues/1088
requires com.huawei.systemmanager.permission.ACCESS_INTERFACE or com.huawei.systemmanager.permission.ACCESS_INTERFACE
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
Build.BRAND.equalsIgnoreCase("Honor")
Build.BRAND.equalsIgnoreCase("Letv")
Build.BRAND.equalsIgnoreCase("xiaomi")
https://github.com/ttdevs/KillMe
https://github.com/YougaKing/TamingTask
https://github.com/WanghongLin/CRomAppWhitelist !!!!!!!!!!
https://github.com/by123/permission/blob/master/app/src/main/java/android/by/com/permission/constant/GuideConst.java
https://github.com/xingda920813/HelloDaemon/issues/11
https://github.com/xingda920813/HelloDaemon/blob/master/hellodaemon/src/main/java/com/xdandroid/hellodaemon/IntentWrapper.java
https://stackoverflow.com/questions/41804070/how-to-protect-background-service-alarms-to-be-kill-in-newly-launched-devices-in/41804270
----- miui ----
// permission
https://stackoverflow.com/questions/33818970/how-to-open-app-permission-settings-in-miui-devices-programmatically
https://gist.github.com/olegcherr/dc79af4a0a82473e560e1b191a2bea02
private static boolean isIntentAvailable(Intent intent, Context context) {
return intent != null && context.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() > 0;
}
// permissions
https://github.com/jokermonn/permissions4m/blob/master/permissions4m-api/src/main/java/com/joker/api/support/manufacturer/XIAOMI.java
// to check !!
https://programtalk.com/vs/?source=AndroidPopWinPermission/permssion/src/main/java/io/github/bunnbylue/permssion/EmotionUIHelper.java
https://github.com/czy1121/settingscompat
ouai mais gal�re
https://github.com/CankingApp/XiaomiPJ
//permissions
https://github.com/jokermonn/permissions4m#help
screenshot and info about path :
http://nine-faq.9folders.com/categories/2758-troubleshooting
redit info and talk ;
https://www.reddit.com/r/androiddev/comments/7wkcvm/as_a_developer_how_the_hell_do_you_deal_with/
// check auto start
https://stackoverflow.com/questions/39366231/how-to-check-miui-autostart-permission-programatically