1. Source Setting Path
- vendor\sprd\platform\frameworks\native\data\etc\appPowerSaveConfig.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> <app_powersave_config> <package name="com.pp.assistant" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="1" secondarylaunch="1" lockscreencleanup="1" consumertype="0" /> <package name="com.spreadtrum.itestapp" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="com.comcat.activity" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="com.sprd.sleepwakeuptest" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="sprdtest.message" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="com.greenpoint.android.mc10086.activity" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="com.jio.emiddleware" optimize="1" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="2" consumertype="0" /> <package name="com.test.autoreboot" optimize="0" alarm="0" wakelock="0" network="0" autolaunch="2" secondarylaunch="2" lockscreencleanup="0" consumertype="0" />
Field meaning
- optimize: Whether to apply battery optimization, where 0 means white list (not optimized), 1 means black list (optimized)
- alarm: Whether standby wake-up optimization, where 0 means automatic, 1 means blacklist (optimization), 2 means white list (non-optimization)
- wakelock: Whether to sleep on standby, where 0 means automatic, 1 means blacklist (optimization), 2 means white list (non-optimization)
- network: Is there a data networking restriction, where 0 is for automation, 1 is for blacklist (optimization), and 2 is for whitelist (non-optimization)
- autolaunch: Whether to self-start management, where 1 means blacklist (prohibition), 2 means whitelist (permission)
- secondarylaunch: Whether to associate startup, where 1 represents blacklist (prohibition) and 2 represents whitelist (permission)
- Locks creencleanup: Whether to lock screen cleanup, where 0 means blacklist and 1 means whitelist
- consumertype: