如果想要「好好的」使用 Google Fit 作为记步应用程序,请不要把 GooglePlay 的唤醒权限卡得太死
经常折腾 Android 和 Xposed 框架的用户可能会对 Amplify 这款软件不会陌生,这是一款控制 Android 后天唤醒用的 Xposed 框架软件,利用它,可以方便的限制国产毒瘤和 Google Play 服务毒瘤(无论是否有墙。有墙因为撞墙,没墙因为后台不停定位)唤醒次数和时限。因此网上也有人给出了一份详尽的设置清单,具体如下:
Aggressive Unbounce Wakelock/Alarm Blocking Settings
Started off with this document http://coolapk.com/r/1sc3 great resource, but not quite enough ^_^
Thought I'd share my Unbounce setup, getting amazing battery life, as little as 0.4%/hr drain overnight.
Unbounced ALARMS
Quote:
com.android.internal.telephony.data-stall = 600
android.content.syncmanager.SYNC_ALARM = 600
com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR = 3600
com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_D ETECTION = 3600
android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED = 900
com.google.android.intent.action.SEND_IDLE = 3600
com.google.android.gms.nlp.ALARM_WAKEUP_SENSOR_UPL OADER = 2400
com.google.android.gms.nlp.ALARM_IN_OUT_DOOR_COLLE CTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_S_COLLECTO R = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLL ECTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLL ECTION_TRIGGER = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_CALIBRATIO N_COLLECTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_CACHE_UPDA TER = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVE_COL LECTOR = 2400
Unbounced WAKELOCKS
Quote:
GCoreFlp = 2400
*net_scheduler* = 2400
RILJ = 1600
Wakeful StateMachine: GeofencerStateMachine = 2400
NfcService:mRoutingWakeLock = 2400
NetworkStats = 2400
NlpWakeLock = 3600
LocationmanagerService = 2400
Icing = 900
UlrDispatchingService = 240
GpsLocationProvider = 600
NlpCollectorWakeLock = 1800
wake:com.google.android.gms/..config.ConfigFetchService = 1800
Event Log Service = 7200
Checkin Service = 3600
Event Log handoff = 2400
Checkin Handoff = 3600
SystemUpdateService = 3600
DownloadManager = 240
wake:com.google.android.gms/.auth.be.proximity.authorization.userpresence.User PresenceService = 99999
Haven't noticed any negative side effects so far, all calls still coming, still getting GCM PUSH from my apps, accounts still syncing.
可以看到,这份清单对于「Android 系统」和「Google Play 服务」这两个应用程序的后台唤醒卡得很死,甚至有些十几分钟才能唤醒一次。
于是我就按照这份设置清单简单设置了以下,效果拔群!熄屏时电量下降速度到了一个非常令人可以接受的范围。
然后我们来扣个题。要使用 Google Fit 作为记步应用程序,首先我们要知道它计步的原理。Google Fit 不是用其本身在后台唤醒,而是结合 Google Play 服务后台提供计步数据和位置信息。如果只是限制定位频率,实际上这款插件默认的设置就可以了,既限制了耗电,又不影响任何功能。但是,如果你凶残的使用了上述的唤醒限制,那么恭喜你!你的 Google Fit 再也无法计步了!
所以,除非你不用 Google Fit 计步,否则,还是不要这么作死的好。
Aggressive Unbounce Wakelock/Alarm Blocking Settings
Started off with this document http://coolapk.com/r/1sc3 great resource, but not quite enough ^_^
Thought I'd share my Unbounce setup, getting amazing battery life, as little as 0.4%/hr drain overnight.
Unbounced ALARMS
Quote:
com.android.internal.telephony.data-stall = 600
android.content.syncmanager.SYNC_ALARM = 600
com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR = 3600
com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_D ETECTION = 3600
android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED = 900
com.google.android.intent.action.SEND_IDLE = 3600
com.google.android.gms.nlp.ALARM_WAKEUP_SENSOR_UPL OADER = 2400
com.google.android.gms.nlp.ALARM_IN_OUT_DOOR_COLLE CTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_S_COLLECTO R = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLL ECTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLL ECTION_TRIGGER = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_CALIBRATIO N_COLLECTOR = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_CACHE_UPDA TER = 2400
com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVE_COL LECTOR = 2400
Unbounced WAKELOCKS
Quote:
GCoreFlp = 2400
*net_scheduler* = 2400
RILJ = 1600
Wakeful StateMachine: GeofencerStateMachine = 2400
NfcService:mRoutingWakeLock = 2400
NetworkStats = 2400
NlpWakeLock = 3600
LocationmanagerService = 2400
Icing = 900
UlrDispatchingService = 240
GpsLocationProvider = 600
NlpCollectorWakeLock = 1800
wake:com.google.android.gms/..config.ConfigFetchService = 1800
Event Log Service = 7200
Checkin Service = 3600
Event Log handoff = 2400
Checkin Handoff = 3600
SystemUpdateService = 3600
DownloadManager = 240
wake:com.google.android.gms/.auth.be.proximity.authorization.userpresence.User PresenceService = 99999
Haven't noticed any negative side effects so far, all calls still coming, still getting GCM PUSH from my apps, accounts still syncing.
可以看到,这份清单对于「Android 系统」和「Google Play 服务」这两个应用程序的后台唤醒卡得很死,甚至有些十几分钟才能唤醒一次。
于是我就按照这份设置清单简单设置了以下,效果拔群!熄屏时电量下降速度到了一个非常令人可以接受的范围。
然后我们来扣个题。要使用 Google Fit 作为记步应用程序,首先我们要知道它计步的原理。Google Fit 不是用其本身在后台唤醒,而是结合 Google Play 服务后台提供计步数据和位置信息。如果只是限制定位频率,实际上这款插件默认的设置就可以了,既限制了耗电,又不影响任何功能。但是,如果你凶残的使用了上述的唤醒限制,那么恭喜你!你的 Google Fit 再也无法计步了!
所以,除非你不用 Google Fit 计步,否则,还是不要这么作死的好。
评论
发表评论