新买了个电话手表,可能因为出于节电考虑,系统限制无法保持在app内和wifi的连接。本人准大一学生,业余方向是linux和fpga,对安卓系统一窍不通,求大佬指点。
logcat看了一下日志,发现和这些有关
一、5分钟不使用就关闭wifi
#系统ui每隔一段时间检测一下wifi状态
07-13 18:25:11.498 1059 2100 I WifiService: getWifiEnabledState uid=10022
# zx是服务还是程序,不清楚,service list和package name都找不到
07-13 18:25:11.500 1275 1275 I zx : wifi enabled state: true, using :true
#zx这玩意不断地计时5分钟关闭wifi
07-13 18:25:11.501 1275 1275 I zx : wifi state enabled and using, need to disable after 5 minutes
完整日志如下:
[ 07-13 18:36:06.201 1059: 7075 I/WifiService ]
getWifiEnabledState uid=10022
wifi enabled state: true, using :true
wifi state enabled and using, need to disable after 5 minutes
二、锁屏3分钟自动回主页
07-13 18:26:14.791 1059 1106 D WizPowerExtImpl: myDIAL [disable]: screen off, setting 1 ==> 0
#发现锁屏
07-13 18:26:14.805 1059 1106 D WizPowerExtImpl: quality = 0
#WizPowerExtImpl是服务还是程序,不清楚,service list和package name都找不到
07-13 18:26:14.805 1059 1106 D WizPowerExtImpl: autoHome, set alarm 3min before auto return home, current =xxxx
#设定3分钟计时给alarm manager
07-13 18:29:14.807 1059 1266 D WizPowerExtImpl: autoHome, start to return home now!
#3分钟到自动返回主页
完整日志如下:
[ 07-13 18:39:41.487 1059: 1106 I/PowerManagerService ]
Unrecognized alarm listener com.wiz.server.power.e@b3cd70e
Alarm Manager信息如下:
Batch{5b85362 num=1 start=10080770 end=10080770 flgs=0x9}:
ELAPSED_WAKEUP #0: Alarm{8af8cf3 type 2 when 10080770 android}
tag=*walarm*:WizPowerExtImpl.autoHome
type=2 whenElapsed=+1m49s43ms when=+1m49s43ms
window=0 repeatInterval=0 count=0 flags=0x9
operation=null
listener=android.app.AlarmManager$ListenerWrapper@6a33db0
离线
已经解决,很多东西都在settings的三张表里和getprop里
离线