设备:
手机端:小米2SC
电视盒子:mele卓影A2000
1、dnsmasq域名劫持经常失败:
现象:
开启wifi热点后确实执行了dnsmasq命令,但是域名劫持失败。
原因:
wifi热点开启命令执行后直接执行了dnsmasq命令,当热点开启过程时间很短时域名劫持可以成功;但是启动稍慢即会被系统启动的dnsmasq命令给杀掉并覆盖;所以会导致无效。
解决方案:
开启dnsmasq前定时检查wifi热点是否已经开启成功,成功后再kill掉系统启动的dnsmasq进程,再使用自定义的配置文件执行dnsmasq命令。
2、手机端wifi热点启动频繁失败(开机启动尤甚):
手机端现象:
启用dnsmasq(启用wifiap,等待系统启动了dnsmasq进程,杀掉该进程,然后另外启动一个dnsmasq进程):
关闭移动数据时开启wifi热点失败频率很小。
当开启移动数据时,现象如下:
开启wifi热点后重启dnsmasq服务,会导致wifi热点开启失败,甚至出错,在系统设置中再开启也会失败,必须重启设备才可用。
开启wifi热点后不对dnsmasq作任何操作,wifi热点开启不会失败。日志如下(第88行到90行,显示wifiap已成功开启,到了第117行和120行,则wifiap已经被自动关闭;):
- 05-05 09:38:04.699: I/BatteryStatsImpl(641): Start partial wakelock AlarmManager(uid=10056, pid=641) nesting 3
- 05-05 09:38:04.699: I/BatteryStatsImpl(641): Stop partial wakelock AlarmManager(uid=10056, pid=641) nesting 2
- 05-05 09:38:05.170: D/WifiStateMachine(641): DriverUnloadedState{ what=131084 when=0 }
- 05-05 09:38:05.170: D/WifiStateMachine(641): DefaultState{ what=131084 when=0 }
- 05-05 09:38:05.170: D/WifiStateMachine(641): DriverUnloadedState{ what=131074 when=-1ms arg1=1 }
- 05-05 09:38:05.170: D/WifiService(641): setWifiEnabled: false pid=2248, uid=10019
- 05-05 09:38:05.180: D/WifiStateMachine(641): DefaultState{ what=131074 when=-6ms arg1=1 }
- 05-05 09:38:05.190: D/WifiStateMachine(641): DriverUnloadedState{ what=131073 when=-4ms arg1=12 }
- 05-05 09:38:05.190: D/WifiStateMachine(641): DriverLoadingState
- 05-05 09:38:05.190: D/WifiStateMachine(641): DriverLoadingState{ what=131093 when=-6ms obj=* ID: -1 SSID: zerogameAP BSSID: null PRIO: 0
- 05-05 09:38:05.190: D/WifiStateMachine(641): KeyMgmt: WPA_PSK Protocols:
- 05-05 09:38:05.190: D/WifiStateMachine(641): AuthAlgorithms:
- 05-05 09:38:05.190: D/WifiStateMachine(641): PairwiseCiphers:
- 05-05 09:38:05.190: D/WifiStateMachine(641): GroupCiphers:
- 05-05 09:38:05.190: D/WifiStateMachine(641): PSK: *
- 05-05 09:38:05.190: D/WifiStateMachine(641): eap:
- 05-05 09:38:05.190: D/WifiStateMachine(641): phase2:
- 05-05 09:38:05.190: D/WifiStateMachine(641): identity:
- 05-05 09:38:05.190: D/WifiStateMachine(641): anonymous_identity:
- 05-05 09:38:05.190: D/WifiStateMachine(641): password:
- 05-05 09:38:05.190: D/WifiStateMachine(641): client_cert:
- 05-05 09:38:05.190: D/WifiStateMachine(641): engine:
- 05-05 09:38:05.190: D/WifiStateMachine(641): engine_id:
- 05-05 09:38:05.190: D/WifiStateMachine(641): key_id:
- 05-05 09:38:05.190: D/WifiStateMachine(641): ca_cert:
- 05-05 09:38:05.190: D/WifiStateMachine(641): IP assignment: UNASSIGNED
- 05-05 09:38:05.190: D/WifiStateMachine(641): Proxy settings: UNASSIGNED
- 05-05 09:38:05.190: D/WifiStateMachine(641): LinkAddresses: [] Routes: [] DnsAddresses: []
- 05-05 09:38:05.190: D/WifiStateMachine(641): }
- 05-05 09:38:05.190: I/BatteryStatsImpl(641): Start partial wakelock WifiStateMachine(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.200: D/WifiStateMachine(641): setWifiApState: enabling
- 05-05 09:38:05.450: D/Tethering(641): sendTetherStateChangedBroadcast 1, 0, 0
- 05-05 09:38:05.450: D/WifiStateMachine(641): DriverLoadingState{ what=131101 when=-1ms obj=android.net.wifi.WifiStateMachine$TetherStateChange@43940190 }
- 05-05 09:38:05.450: D/WifiStateMachine(641): DefaultState{ what=131101 when=-2ms obj=android.net.wifi.WifiStateMachine$TetherStateChange@43940190 }
- 05-05 09:38:05.450: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 4
- 05-05 09:38:05.470: D/Tethering(641): InitialState.processMessage what=4
- 05-05 09:38:05.470: D/Tethering(641): sendTetherStateChangedBroadcast 0, 0, 0
- 05-05 09:38:05.470: D/WifiStateMachine(641): DriverLoadingState{ what=131101 when=0 obj=android.net.wifi.WifiStateMachine$TetherStateChange@439e28e8 }
- 05-05 09:38:05.480: D/WifiStateMachine(641): DefaultState{ what=131101 when=0 obj=android.net.wifi.WifiStateMachine$TetherStateChange@439e28e8 }
- 05-05 09:38:05.480: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.480: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.490: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 4
- 05-05 09:38:05.500: D/WifiStateMachine(641): Driver load successful
- 05-05 09:38:05.500: D/WifiStateMachine(641): DriverLoadingState{ what=131075 when=0 }
- 05-05 09:38:05.500: D/WifiStateMachine(641): DriverLoadedState
- 05-05 09:38:05.500: I/TrafficManageService(1938): mina checkNormalTrafficStatus
- 05-05 09:38:05.500: D/WifiStateMachine(641): DriverLoadedState{ what=131093 when=-3m4s443ms obj=* ID: -1 SSID: zerogameAP BSSID: null PRIO: 0
- 05-05 09:38:05.500: D/WifiStateMachine(641): KeyMgmt: WPA_PSK Protocols:
- 05-05 09:38:05.500: D/WifiStateMachine(641): AuthAlgorithms:
- 05-05 09:38:05.500: D/WifiStateMachine(641): PairwiseCiphers:
- 05-05 09:38:05.500: D/WifiStateMachine(641): GroupCiphers:
- 05-05 09:38:05.500: D/WifiStateMachine(641): PSK: *
- 05-05 09:38:05.500: D/WifiStateMachine(641): eap:
- 05-05 09:38:05.500: D/WifiStateMachine(641): phase2:
- 05-05 09:38:05.500: D/WifiStateMachine(641): identity:
- 05-05 09:38:05.500: D/WifiStateMachine(641): anonymous_identity:
- 05-05 09:38:05.500: D/WifiStateMachine(641): password:
- 05-05 09:38:05.500: D/WifiStateMachine(641): client_cert:
- 05-05 09:38:05.500: D/WifiStateMachine(641): engine:
- 05-05 09:38:05.500: D/WifiStateMachine(641): engine_id:
- 05-05 09:38:05.500: D/WifiStateMachine(641): key_id:
- 05-05 09:38:05.500: D/WifiStateMachine(641): ca_cert:
- 05-05 09:38:05.500: D/WifiStateMachine(641): IP assignment: UNASSIGNED
- 05-05 09:38:05.500: D/WifiStateMachine(641): Proxy settings: UNASSIGNED
- 05-05 09:38:05.500: D/WifiStateMachine(641): LinkAddresses: [] Routes: [] DnsAddresses: []
- 05-05 09:38:05.500: D/WifiStateMachine(641): }
- 05-05 09:38:05.500: D/WifiStateMachine(641): SoftApStartingState
- 05-05 09:38:05.500: I/BatteryStatsImpl(641): Stop partial wakelock WifiStateMachine(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.510: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 2
- 05-05 09:38:05.520: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.520: E/(169): Cmd: ssid Argument :zerogameAP
- 05-05 09:38:05.520: E/(169): Cmd: security_mode Argument :2
- 05-05 09:38:05.540: I/TrafficManageService(1938): mina checkNormalTrafficStatus
- 05-05 09:38:05.550: E/(169): Cmd: wpa_passphrase Argument :12345678
- 05-05 09:38:05.550: E/(169): INI FILE PROP NOT PRESENT: Use default path (null)
- 05-05 09:38:05.560: E/hostapd(8114): Configuration file: /data/misc/wifi/hostapd.conf
- 05-05 09:38:05.570: I/hostapd(8114): rfkill: Cannot open RFKILL control device
- 05-05 09:38:05.630: W/Netd(169): No subsystem found in netlink event
- 05-05 09:38:05.630: D/NetlinkEvent(169): Unexpected netlink message. type=0x11
- 05-05 09:38:05.711: D/Tethering(641): sendTetherStateChangedBroadcast 1, 0, 0
- 05-05 09:38:05.711: E/hostapd(8114): Using interface wlan0 with hwaddr 68:df:dd:c9:b5:d0 and ssid 'zerogameAP'
- 05-05 09:38:05.711: D/WifiStateMachine(641): SoftApStartingState{ what=131101 when=-2ms obj=android.net.wifi.WifiStateMachine$TetherStateChange@43956758 }
- 05-05 09:38:05.711: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.731: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 2
- 05-05 09:38:05.741: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.741: I/TrafficManageService(1938): mina checkNormalTrafficStatus
-
- 05-05 09:38:05.761: D/WifiStateMachine(641): Soft AP start successful
- 05-05 09:38:05.761: D/WifiStateMachine(641): SoftApStartingState{ what=131094 when=0 }
- 05-05 09:38:05.761: D/WifiStateMachine(641): setWifiApState: enabled
-
- 05-05 09:38:05.761: D/WifiStateMachine(641): SoftApStartedState
- 05-05 09:38:05.761: D/WifiStateMachine(641): SoftApStartedState{ what=131101 when=-3m4s706ms obj=android.net.wifi.WifiStateMachine$TetherStateChange@43956758 }
- 05-05 09:38:05.771: D/Tethering(641): Tethering wlan0
- 05-05 09:38:05.771: D/WifiStateMachine(641): TetheringState
- 05-05 09:38:05.771: D/Tethering(641): InitialState.processMessage what=2
- 05-05 09:38:05.781: D/Tethering(641): sendTetherStateChangedBroadcast 0, 0, 0
- 05-05 09:38:05.781: D/WifiStateMachine(641): TetheringState{ what=131101 when=-1ms obj=android.net.wifi.WifiStateMachine$TetherStateChange@43904220 }
- 05-05 09:38:05.781: D/TetherController(169): addV6RtrAdvIface: len = 1. Iface: wlan0
- 05-05 09:38:05.781: D/TetherController(169): Router advertisement daemon stopped
- 05-05 09:38:05.781: D/TetherController(169): Router advertisement daemon running
- 05-05 09:38:05.781: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.791: D/Tethering(641): Tethered wlan0
- 05-05 09:38:05.791: D/WifiStateMachine(641): TetheringState{ what=131101 when=0 obj=android.net.wifi.WifiStateMachine$TetherStateChange@438cc318 }
- 05-05 09:38:05.791: D/WifiStateMachine(641): TetheredState
- 05-05 09:38:05.791: D/radish(8116): Interfaces found:
- 05-05 09:38:05.791: D/radish(8116): wlan0
- 05-05 09:38:05.791: E/radish(8116): Need at least 2 interfaces
- 05-05 09:38:05.791: D/Tethering(641): sendTetherStateChangedBroadcast 0, 1, 0
- 05-05 09:38:05.791: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 2
- 05-05 09:38:05.791: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.801: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.801: I/TrafficManageService(1938): mina checkNormalTrafficStatus
- 05-05 09:38:05.801: D/Tethering(641): TetheredState.processMessage what=11
- 05-05 09:38:05.801: D/WifiStateMachine(641): TetheredState{ what=131101 when=0 obj=android.net.wifi.WifiStateMachine$TetherStateChange@42fea090 }
-
- 05-05 09:38:05.801: E/WifiStateMachine(641): Tethering reports wifi as untethered!, shut down soft Ap
- 05-05 09:38:05.801: D/WifiStateMachine(641): TetheredState{ what=131096 when=-1ms }
- 05-05 09:38:05.801: D/WifiStateMachine(641): Untethering before stopping AP
- 05-05 09:38:05.801: D/WifiStateMachine(641): setWifiApState: disabling
-
- 05-05 09:38:05.801: D/PhoneStatusBar(1081): addNotification score=0; pkg=android
- 05-05 09:38:05.811: D/Tethering(641): sendTetherStateChangedBroadcast 0, 0, 1
- 05-05 09:38:05.811: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.811: I/TrafficManageService(1938): mina checkNormalTrafficStatus
- 05-05 09:38:05.811: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 2
- 05-05 09:38:05.821: I/BatteryStatsImpl(641): Start partial wakelock NetworkStats(uid=1000, pid=641) nesting 3
- 05-05 09:38:05.821: I/TrafficManageService(1938): mina mTrafficStatsReceiver onReceive
- 05-05 09:38:05.821: I/TrafficManageService(1938): mina checkNormalTrafficStatus
- 05-05 09:38:05.821: I/BatteryStatsImpl(641): Stop partial wakelock NetworkStats(uid=1000, pid=641) nesting 2
- 05-05 09:38:05.831: E/hostapd(8114): Wireless event: cmd=0x8c02 len=22
- 05-05 09:38:05.831: E/hostapd(8114): PNO: Custom wireless event: 'SOFTAP.enabled'
- 05-05 09:38:05.831: D/Tethering(641): Untethering wlan0
- 05-05 09:38:05.831: E/Tethering(641): Tried to Untethered an errored iface :wlan0, ignoring
- 05-05 09:38:05.831: E/WifiStateMachine(641): Untether initiate failed!
- 05-05 09:38:05.831: D/WifiStateMachine(641): SoftApStoppingState
- 05-05 09:38:05.831: D/WifiStateMachine(641): SoftApStoppingState{ what=131074 when=-32ms arg1=11 }
- 05-05 09:38:05.921: W/SignalStrength(1210): Signal before validate=SignalStrength: 12 0 -1 -1 -1 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 cdma
- 05-05 09:38:05.921: W/SignalStrength(1210): Signal after validate=SignalStrength: 12 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 cdma
- 05-05 09:38:05.961: I/PushService(1179): 2014-05-05 09:38:05,975 - [INFO::PushService] - SMACK: RCV (1112050704): <message chid='5' from='xiaomi.com' to='50118773606@xiaomi.com/anBTmk8x' id='BkDT1399253884082' s='1' type='push'><s>3+kTcGjki8ii4i0IdAsfRjxAA5CTI/vuStXF1+UyGI8SyUkWaCfnAijQYR6CMxhUWmfsBiHOB8Z4QxzYBzhvHuoDjPt426iTqG+XAQl//yr2TWS1nb2zfX20DQS3fvaxgcefLExBcWli7XOk+LeXHG5UV8N8nf0gh5rV1368M2nGunuUuDAIltzlVtFspjvkYzN/hL3ovOv7LRkpkMiCr8hDlf2kBaXYgv8DT+1nphdWOI15E6U0SJcacXy5A+EadMFRA1Iun7gsQq6jYJqui2+Xj0pSJkhPHilgKQfSCo1VtX9mKtCDlu92d2UjF1VWdhWnZp+ufGKgeiORYbBgeCeFgJxmYJkRcBmp7cobt3c0599gfaqCTd0/lFpN0jPJZ6JK9Z+UqTyzoKtjSIbaCZFKEeCSLuzRWfg=</s></message>
- 05-05 09:38:05.981: D/dalvikvm(173): WAIT_FOR_CONCURRENT_GC blocked 0ms
- 05-05 09:38:05.981: I/ActivityManager(641): Start proc com.xiaomi.o2o for broadcast com.xiaomi.o2o/com.xiaomi.mipush.sdk.PushServiceReceiver: pid=8118 uid=10113 gids={1015, 3003, 1028}
- 05-05 09:38:06.011: D/dalvikvm(173): GC_EXPLICIT freed 37K, 49% free 9701K/18691K, paused 4ms+2ms, total 28ms
- 05-05 09:38:06.011: D/dalvikvm(173): WAIT_FOR_CONCURRENT_GC blocked 0ms
- 05-05 09:38:06.021: I/Sensors(335): sns_pwr.c(307):releasing wakelock
- 05-05 09:38:06.031: D/dalvikvm(173): GC_EXPLICIT freed <1K, 49% free 9701K/18691K, paused 2ms+1ms, total 19ms
- 05-05 09:38:06.031: D/dalvikvm(173): WAIT_FOR_CONCURRENT_GC blocked 0ms
- 05-05 09:38:06.051: D/dalvikvm(173): GC_EXPLICIT freed <1K, 49% free 9701K/18691K, paused 1ms+1ms, total 17ms
- 05-05 09:38:06.051: D/ActivityThread(8118): setTargetHeapUtilization:0.25
- 05-05 09:38:06.051: D/ActivityThread(8118): setTargetHeapIdealFree:8388608
- 05-05 09:38:06.051: D/ActivityThread(8118): setTargetHeapConcurrentStart:2097152
- 05-05 09:38:06.171: I/ActivityThread(8118): Pub com.xiaomi.o2o.dbcache: com.xiaomi.o2o.db.O2OProvider
- 05-05 09:38:06.211: D/PushService(1179): 2014-05-05 09:38:06,220 - [DEBUG::PushService] - onStart() with intent.Action = null
- 05-05 09:38:06.241: D/PushService(1179): 2014-05-05 09:38:06,260 - [DEBUG::PushService] - onStart() with intent.Action = com.xiaomi.mipush.SEND_MESSAGE
- 05-05 09:38:06.251: D/PushService(1179): 2014-05-05 09:38:06,262 - [DEBUG::PushService] - try send mi push message XmPushActionContainer(action:UnSubscription, encryptAction:true, isRequest:true, pushAction:08 00 01 00 00 00 04 02 00 02 01 02 00 03 01 0B 00 04 00 00 00 60 D5 1C 29 E6 C4 29 75 F7 B2 5B 34 7F B3 B2 E7 50 07 74 DF D9 E0 73 DB DA 08 E1 E8 5F 31 9E 51 85 BC E6 82 6E EB C8 3A 48 8B E1 CA 3C 60 C3 1B 30 A0 38 AD C9 06 2B DF 31 47 60 03 38 F7 C1 CC 3E 0D CC A0 08 C4 4A 4F 9C 90 B9 B1 F8 B0 FE 3E 1C 8F BD DE 6D 0E 77 A1 90 F2 B9 1E CB F8 4D 30 42, appid:2882303761517158937, packageName:com.xiaomi.o2o, target:Target(channelId:5, userId:50118773606, server:xiaomi.com, resource:anBTmk8x))
- 05-05 09:38:06.251: I/PushService(1179): 2014-05-05 09:38:06,263 - [INFO::PushService] - SMACK: SENT (1112050704): <message id="o5lX7-118" to="xiaomi.com" from="50118773606@xiaomi.com/anBTmk8x" chid="5" type="push" s="1"><s>HEus8U1Rr4VnXjML4EHa1hyvRSZuZchG+SLDREpqJcwqoJr4s16CMrUbz8x2a4NS3vfDLKtuHqInFPVd9z12l77pSBjB2TYBSQ/5R2K6aQKmyWFLB22BfB38EW1m+axTcax/QtooFSajLr4GxF3BugeoKO7Xlotulhxdm4ycxkZEuRe7oXukDVCuyrvyW+9vIou9w+B0CZbH1AULSq/uJBpR1/GMz/Oo3qrCVfDrtPs7rl1IbdmyR6OmkR5FYOJWGxy7DMgHfFKrFRsKXQD6vAuroFQ4SbTKiRJBTtcXuhZE3qFQLCnQ</s></message>
- 05-05 09:38:06.251: D/O2OLoginManager(8118): account has login
- 05-05 09:38:06.251: V/xiaomi(8118): receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
- 05-05 09:38:06.251: V/xiaomi(8118): processing a message, action=UnSubscription
- 05-05 09:38:06.261: W/ExtraActivityManagerService(641): No longer want com.xiaomi.o2o (pid 8118) for more free memory
- 05-05 09:38:06.531: I/Sensors(335): sns_pwr.c(279):acquiring wakelock
- 05-05 09:38:06.882: D/dalvikvm(2248): GC_CONCURRENT freed 6182K, 29% free 19128K/26823K, paused 2ms+3ms, total 52ms
- 05-05 09:38:06.892: I/PushService(1179): 2014-05-05 09:38:06,907 - [INFO::PushService] - SMACK: RCV (1112050704): <message chid='5' from='xiaomi.com' to='50118773606@xiaomi.com/anBTmk8x' id='MRiW1399253886204' s='1' type='push'><s>qOKv5C8wopRzWrepcoYIhFSilr4nT/E+F6E7t/6Jh3l0DIETQtbXgxd2uAX37s2GZ2/PSqqUppYWIOFkXitxaJ8OdBU/UGZLcKnUZ8Smgx7ZKRBzCSRXcxAcgSvNeui+Zqe8LTd5JHfBI7ElbFc3CAdEn0T+xMYQCv5pPLxjRaNEI584NA03AVr28hOxW8OpP9Sqwexuvxpq5Ar1rU5cZ8jxzjWOULxixoeV2S78m0W60q7NEWmnO/xVcahzGxLjGqH9tVQJAIzw6eisbXka+Yhri0BlTjpKTQlouDWx1a0n4s8fXwDGJ8ki/QlPbV2JPSGMGGIAlhZJhsk413Kc9PsZj0IfAqtfQoyZqzXnWmy2y169yzr3fbN7EmketVbZOANn8kNSPFf/eSn6IiXSFnS5WclZRViasas=</s></message>
- 05-05 09:38:06.922: I/ActivityManager(641): Start proc com.xiaomi.o2o for broadcast com.xiaomi.o2o/com.xiaomi.mipush.sdk.PushServiceReceiver: pid=8151 uid=10113 gids={1015, 3003, 1028}
- 05-05 09:38:06.952: E/jdwp(8151): Failed sending reply to debugger: Broken pipe
- 05-05 09:38:06.962: D/ActivityThread(8151): setTargetHeapUtilization:0.25
- 05-05 09:38:06.962: D/ActivityThread(8151): setTargetHeapIdealFree:8388608
- 05-05 09:38:06.962: D/ActivityThread(8151): setTargetHeapConcurrentStart:2097152
- 05-05 09:38:07.072: I/ActivityThread(8151): Pub com.xiaomi.o2o.dbcache: com.xiaomi.o2o.db.O2OProvider
- 05-05 09:38:07.102: D/PushService(1179): 2014-05-05 09:38:07,116 - [DEBUG::PushService] - onStart() with intent.Action = null
- 05-05 09:38:07.122: D/PushService(1179): 2014-05-05 09:38:07,138 - [DEBUG::PushService] - onStart() with intent.Action = com.xiaomi.mipush.SEND_MESSAGE
- 05-05 09:38:07.132: D/O2OLoginManager(8151): account has login
- 05-05 09:38:07.132: D/PushService(1179): 2014-05-05 09:38:07,141 - [DEBUG::PushService] - try send mi push message XmPushActionContainer(action:UnSubscription, encryptAction:true, isRequest:true, pushAction:08 00 01 00 00 00 04 02 00 02 01 02 00 03 01 0B 00 04 00 00 00 60 35 A6 B3 22 41 60 A6 9A 7A 64 A4 49 E9 33 EF 85 51 52 59 A1 B9 5B 26 D6 E2 A8 F7 21 0C 33 0C 50 FA 5C B4 0E AE C5 A3 7E 7E E0 37 7E 0E 47 E9 DD EC 7E C7 14 A4 65 CC 6A 8B F2 B2 27 49 E6 29 D9 74 D0 D0 50 B9 1D 68 B3 0F 6E 08 A4 4C 0F EA B3 EC 46 E8 67 DC 8D D5 AB EB D6 C6 E9 41 ED 78 95, appid:2882303761517158937, packageName:com.xiaomi.o2o, target:Target(channelId:5, userId:50118773606, server:xiaomi.com, resource:anBTmk8x))
- 05-05 09:38:07.132: I/PushService(1179): 2014-05-05 09:38:07,141 - [INFO::PushService] - SMACK: SENT (1112050704): <message id="o5lX7-119" to="xiaomi.com" from="50118773606@xiaomi.com/anBTmk8x" chid="5" type="push" s="1"><s>RW4URECXp63Hqo75ViURcodg4mt2dbhLJbNNHk6yM6fyAqI18UJorFmPtxElWox8ipm1qI7xGi7q13fZv8uLYTJrAdC6U5HlJCusyym3GSplIoIq3WbCSBhcS+1RR1k6F0AROTRJf0fuzjh+p3JU6GgDT5BAwjPepNpr4GVVjUHlJ3aAy0NlChrAg0sh/+rDo+y2CKwfqHe4g4yrfzNJ8KFjCAFhz6AtLJHDtxxwnsdw8Y7zwk77LccuabaNBgy6U+0Hinnt1+578Q3DjkVBHA0fb4exTbiBsi4Lod84fjTxWvXCVKpY</s></message>
- 05-05 09:38:07.132: V/xiaomi(8151): receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
- 05-05 09:38:07.142: V/xiaomi(8151): processing a message, action=UnSubscription
- 05-05 09:38:07.142: W/ExtraActivityManagerService(641): No longer want com.xiaomi.o2o (pid 8151) for more free memory
- 05-05 09:38:07.192: I/System.out(2248): check wifiAp status: 1
- 05-05 09:38:07.683: I/PushService(1179): 2014-05-05 09:38:07,696 - [INFO::PushService] - SMACK: RCV (1112050704): <message chid='5' from='xiaomi.com' to='50118773606@xiaomi.com/anBTmk8x' id='Xsna1399253887105' s='1' type='push'><s>FSRkxXKuC+nqyAHveIxQ2Xz26VkJgekkxCGtbXntt1EhaUvoIW4n5+6UpbVCVBdjR06iKom6z0pVci1NkhqCXR1c+A/FHqqEUYJgzvh60JQgxXwXBkq6EYBaRkiieELfzVefEYdMBSW1tFdDl0nC9stUquB3p+0wFuArWrgWqzIQvZR8jaFSzljgaw6WzeYRawipqoBP77BOL2BqglS69EddARUmUJo5VmMKXMFvNn4155EcCXPvfOu5y9azWnrSit93gx9+YbVkY2iEakmS6uM7Mj01OPrfW6BRomyvCsp5G8EUYu2NRa8bhn1vy26jNbWXnZn/TDpikx3wIiLSqRH3ZAKpFc1RDa3/chaFqvbH11x3uH0028ddiWkgF4l8id1pK1uwepz3FUCGuzG4ft0RKtI/5bjWpac=</s></message>
- 05-05 09:38:07.743: I/ActivityManager(641): Start proc com.xiaomi.o2o for broadcast com.xiaomi.o2o/com.xiaomi.mipush.sdk.PushServiceReceiver: pid=8171 uid=10113 gids={1015, 3003, 1028}
- 05-05 09:38:07.763: D/ActivityThread(8171): setTargetHeapUtilization:0.25
- 05-05 09:38:07.763: D/ActivityThread(8171): setTargetHeapIdealFree:8388608
- 05-05 09:38:07.763: D/ActivityThread(8171): setTargetHeapConcurrentStart:2097152
- 05-05 09:38:07.853: I/ActivityThread(8171): Pub com.xiaomi.o2o.dbcache: com.xiaomi.o2o.db.O2OProvider
- 05-05 09:38:07.913: D/PushService(1179): 2014-05-05 09:38:07,922 - [DEBUG::PushService] - onStart() with intent.Action = null
- 05-05 09:38:07.933: D/PushService(1179): 2014-05-05 09:38:07,947 - [DEBUG::PushService] - onStart() with intent.Action = com.xiaomi.mipush.SEND_MESSAGE
- 05-05 09:38:07.943: D/PushService(1179): 2014-05-05 09:38:07,950 - [DEBUG::PushService] - try send mi push message XmPushActionContainer(action:UnSubscription, encryptAction:true, isRequest:true, pushAction:08 00 01 00 00 00 04 02 00 02 01 02 00 03 01 0B 00 04 00 00 00 60 E5 CC DC 24 BC E3 B6 01 C6 B4 B8 D1 2D 8F FD 32 A5 1D F1 1F 72 BF 16 2F 81 5C 86 67 96 5C 29 F4 CF B1 66 2F 48 2C FB 28 A9 C4 D7 53 53 FB EA B1 07 23 23 85 08 4D F7 83 02 FF 55 20 BE F7 4F 6A 6C E4 F7 35 E3 1D 9C 50 6D D4 6C 9D 05 A6 3E 6C A6 D8 1B 54 B5 E2 28 D6 19 E0 DE 0A 4C 1D 66 2D, appid:2882303761517158937, packageName:com.xiaomi.o2o, target:Target(channelId:5, userId:50118773606, server:xiaomi.com, resource:anBTmk8x))
- 05-05 09:38:07.943: D/O2OLoginManager(8171): account has login
- 05-05 09:38:07.943: I/PushService(1179): 2014-05-05 09:38:07,951 - [INFO::PushService] - SMACK: SENT (1112050704): <message id="o5lX7-120" to="xiaomi.com" from="50118773606@xiaomi.com/anBTmk8x" chid="5" type="push" s="1"><s>YObhRlV8szrwBCSlt/md8tuZdOqcg1x1myZurNKw/EF5wA8OzrEnv4weRAo3OpFe8GxXZG/Bg1/C3Jws4fIH05upfSXjbklSejw7BluYR7NGc/weIA9OyzpbmE1ixLnQBpruy/cYAWA/A8d5SYiwNH61nugU1ztY4TJdS/P8zZy0PkTKLhtrkWa5+WWEBVV9EO1zJD2cnOAOytTU6FBVUnwUQehU2g9K4bwEFT8fQsrZ80BJmlceXCwlSJwjKbGV1MFOqkrbL1+nOnZStfxiE+8KiAbs9Y6RWZwar3zkt4hYYIav4vIx</s></message>
-
- 05-05 09:38:07.953: V/xiaomi(8171): receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
- 05-05 09:38:07.953: V/xiaomi(8171): processing a message, action=UnSubscription
- 05-05 09:38:07.963: W/ExtraActivityManagerService(641): No longer want com.xiaomi.o2o (pid 8171) for more free memory
- 05-05 09:38:08.433: I/PushService(1179): 2014-05-05 09:38:08,407 - [INFO::PushService] - SMACK: RCV (1112050704): <message chid='5' from='xiaomi.com' to='50118773606@xiaomi.com/anBTmk8x' id='ayWC1399253887901' s='1' type='push'><s>/AhqSKuEWBhDcPR1FZBAhyxMQ0ALT/0xQ68vvwi3QC1PjlqAcNauAbfFp5uFuTfUWHtIGLjSMLVsZGpsIBZ3izAVyDhCCbHO8Jg8snXYPikcs1gtlF2QWKAoMdxQEOcZq2yTB0e1FHc3t86+3F2PHobh/+K1CWQOw32fnnKNT+pbYwvCxjCMY7c541GszNSWa66wxnrjwYddrlHjbU++eFhPTic7fM4NxvDYXIDnShjYzbJb/F/4XZKaLE1acFWrqEKeCl+9ghs9pV81Vi5mqH0hrfRioxjX5HHCvOzHpOKopON00/MfQd9fPbVZ2CjUMBmmO1QHx7CoaHDAaX+OuLyEC21E962lw+G2KK6oa50rHNWJwKIH5JmcMcggIg+nv2rsBi/ZobBK/ZA76Ai+X/+aJyCRK7jd0S4=</s></message>
- 05-05 09:38:08.463: I/ActivityManager(641): Start proc com.xiaomi.o2o for broadcast com.xiaomi.o2o/com.xiaomi.mipush.sdk.PushServiceReceiver: pid=8195 uid=10113 gids={1015, 3003, 1028}
- 05-05 09:38:08.484: D/ActivityThread(8195): setTargetHeapUtilization:0.25
- 05-05 09:38:08.484: D/ActivityThread(8195): setTargetHeapIdealFree:8388608
- 05-05 09:38:08.494: D/ActivityThread(8195): setTargetHeapConcurrentStart:2097152
- 05-05 09:38:08.584: I/ActivityThread(8195): Pub com.xiaomi.o2o.dbcache: com.xiaomi.o2o.db.O2OProvider
- 05-05 09:38:08.614: D/PushService(1179): 2014-05-05 09:38:08,628 - [DEBUG::PushService] - onStart() with intent.Action = null
- 05-05 09:38:08.654: D/PushService(1179): 2014-05-05 09:38:08,666 - [DEBUG::PushService] - onStart() with intent.Action = com.xiaomi.mipush.SEND_MESSAGE
- 05-05 09:38:08.654: D/O2OLoginManager(8195): account has login
- 05-05 09:38:08.664: D/PushService(1179): 2014-05-05 09:38:08,670 - [DEBUG::PushService] - try send mi push message XmPushActionContainer(action:UnSubscription, encryptAction:true, isRequest:true, pushAction:08 00 01 00 00 00 04 02 00 02 01 02 00 03 01 0B 00 04 00 00 00 60 24 20 9C BD 09 48 B8 CD 40 5B 81 E2 FC 53 8E 69 03 D5 2B 63 BC B1 2E C4 B0 6B DD 6F BF 70 8B A8 A1 7A B5 5A 9A F3 0D 9E 88 EA 1A 01 70 FB 12 C5 B3 5F 75 AA 3F F0 D9 A6 12 C2 56 63 5C 2D 7F 17 43 80 2C 82 2F B7 9F A0 31 CB 23 2B 22 97 8C AF 8D D6 CF 8F B5 21 43 40 1F 24 E2 55 DB BA FA A1, appid:2882303761517158937, packageName:com.xiaomi.o2o, target:Target(channelId:5, userId:50118773606, server:xiaomi.com, resource:anBTmk8x))
- 05-05 09:38:08.664: I/PushService(1179): 2014-05-05 09:38:08,671 - [INFO::PushService] - SMACK: SENT (1112050704): <message id="o5lX7-121" to="xiaomi.com" from="50118773606@xiaomi.com/anBTmk8x" chid="5" type="push" s="1"><s>kPdobNgvLj0ZL0gCM1tFxoUBD6K5v9M3RgslqkLlpitqzO1joTptR3cZOsHiUUzzften+vLgeNVi3LEeYZGmr4YJFrOV7xeMCsUwDm1ONgVme3YEX+/NYGJCDs3meiRl7vSMHuVre4xofK1b1mQzvJas6mbES777zKpVuPpIbpQBmcWMLdX2+EuDPm/ZdOhXGUzAwgrLv5Oxw0RfRcQRCHkipIkVkVhacpq5nKUkm77RMj+2jQkOMzWlcn6W1OGv9lMy+kT5kYl7FDm72baArBbgkNOJtkoDX8j4kMipA+6LXGZHSe87</s></message>
- 05-05 09:38:08.664: V/xiaomi(8195): receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
- 05-05 09:38:08.674: V/xiaomi(8195): processing a message, action=UnSubscription
- 05-05 09:38:08.674: W/ExtraActivityManagerService(641): No longer want com.xiaomi.o2o (pid 8195) for more free memory
- 05-05 09:38:09.194: I/System.out(2248): check wifiAp status: 2
- 05-05 09:38:09.324: I/PushService(1179): 2014-05-05 09:38:09,339 - [INFO::PushService] - SMACK: RCV (1112050704): <message chid='5' from='xiaomi.com' to='50118773606@xiaomi.com/anBTmk8x' id='1bfu1399253888616' s='1' type='push'><s>0QGDW2T8axadJbqKSB79/t9JkWBwvBjeoU0Dj2fIwDEwRBkrd2fzOicX9zBrt2tv+x1RSLPy7MvUvKL+eNwtmql6MXAXJMCHDcE/iOfZdSGcZ7YviNQSWJlvIXeAmaiSSabWV8e8SlnCQ5pAFdURS7iG/zpvAfUxlX56QP1lIgknpaRG6iXwSAhdWRwvs+jY007AjtjtJUJ99Q4iKmSV3UpWfAQBo7w90u1dqdIc745YKdNyJzLbCgMi18YGLo6+9qLO1Lm6jToGb0+blxqYDWxHf2DQryDQ/pF8Yb4nOeJGyVTGMuy8196EHb1SiYX1nSGs4GVkTxV2V+lGKN9ojpateFhXhh7bR89uPqfW2YQd1xNzDyQz7+JoCoA3RuCSJd6h2mMYx4BFUvaSm8+Jzxe3/vXn4rgnajE=</s></message>
- 05-05 09:38:09.354: I/ActivityManager(641): Start proc com.xiaomi.o2o for broadcast com.xiaomi.o2o/com.xiaomi.mipush.sdk.PushServiceReceiver: pid=8230 uid=10113 gids={1015, 3003, 1028}
- 05-05 09:38:09.405: D/ActivityThread(8230): setTargetHeapUtilization:0.25
- 05-05 09:38:09.405: D/ActivityThread(8230): setTargetHeapIdealFree:8388608
- 05-05 09:38:09.405: D/ActivityThread(8230): setTargetHeapConcurrentStart:2097152
- 05-05 09:38:09.515: I/ActivityThread(8230): Pub com.xiaomi.o2o.dbcache: com.xiaomi.o2o.db.O2OProvider
- 05-05 09:38:09.575: D/PushService(1179): 2014-05-05 09:38:09,583 - [DEBUG::PushService] - onStart() with intent.Action = null
- 05-05 09:38:09.615: D/PushService(1179): 2014-05-05 09:38:09,626 - [DEBUG::PushService] - onStart() with intent.Action = com.xiaomi.mipush.SEND_MESSAGE
- 05-05 09:38:09.615: D/PushService(1179): 2014-05-05 09:38:09,628 - [DEBUG::PushService] - try send mi push message XmPushActionContainer(action:UnSubscription, encryptAction:true, isRequest:true, pushAction:08 00 01 00 00 00 04 02 00 02 01 02 00 03 01 0B 00 04 00 00 00 60 A4 83 F5 A9 6E 0F 0C 75 5F 08 35 62 7D 75 2C 90 53 C0 6B 18 E3 C3 C3 F5 C2 D2 51 C7 A9 09 D7 E0 C6 1E FF 10 A2 13 ED 6C 98 1B E7 03 A6 1F DD AA 8C 48 B4 67 3F 35 0E 3C CF 41 8D 44 01 06 90 94 B2 42 EC AF 0E 2F 9E 94 BA 52 B6 79 D9 BF 69 28 70 37 2C 42 28 B8 74 1E EC 45 31 1A F5 7D 12 75, appid:2882303761517158937, packageName:com.xiaomi.o2o, target:Target(channelId:5, userId:50118773606, server:xiaomi.com, resource:anBTmk8x))
- 05-05 09:38:09.615: I/PushService(1179): 2014-05-05 09:38:09,629 - [INFO::PushService] - SMACK: SENT (1112050704): <message id="o5lX7-122" to="xiaomi.com" from="50118773606@xiaomi.com/anBTmk8x" chid="5" type="push" s="1"><s>UNEPk5IAOjNk/CUIZGRGpR6hXgThQLsC3Jc8GYy+9LdEzvfBF3+eVzNynyWtYPVMlhzZN2qBVkAHFuYwQgbkJQzqfi2mJcecEUxsyZBhlQCU6b0WWYW4iENGyF0qdhi3CG2IrNouaATTrHuA+cr/Rsb9WLIoSP8I3EFxOQnso24ehbJ42VXcUd17SDWbhVHt19xcPSBvngV8N1KQ2my0zXzMxuxXB14lBqIyGHi8ifDn7v+9nReQ7TfCQU6jbiJQWiCVYqZwV4thaENw/0sLFR+EqWehC6GI2EP3QWlHIPbGCj6jo4FH</s></message>
- 05-05 09:38:09.625: D/O2OLoginManager(8230): account has login
- 05-05 09:38:09.625: V/xiaomi(8230): receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
- 05-05 09:38:09.625: V/xiaomi(8230): processing a message, action=UnSubscription
- 05-05 09:38:09.635: W/ExtraActivityManagerService(641): No longer want com.xiaomi.o2o (pid 8230) for more free memory
- : E/(): Device disconnected: 1
- : E/(): Device disconnected
不启用dnsmasq:
基本不会失败;
解决方案:
未知;
3、大量错误log产生:
现象:
"/system/bin/dnsmasq --conf-file=/data/data/com.zerogame.byod/etc/dnsmasq.conf"
执行这两条命令后会产生大量错误信息:'dnsmasq: Unknown cmd '''
解决方案:
执行命令后不要关闭shell;
4、电视盒子wifi启动失败:
启用dnsmasq时现象:
启动wifi失败,出错日志:
E/WifiHW(153): insmod rt5370sta ko failed!
E/WifiStateMachine(153): Failed to load driver!
E/WifiStateMachine(153): DriverFailedState
加载驱动失败;多试几次基本上就会好;
关闭dnsmasq和wifilock:
D/MediaReceiver mMonitor(714): run. isCount:false, diskCount:0
D/WifiHW(153): faied to read proc/net/wireless
D/WifiHW(153): insmod wifi driver...
E/WifiHW(153): timeout, register netdevice wlan0 failed.
E/WifiStateMachine(153): Failed to load driver!
E/WifiStateMachine(153): DriverFailedState
D/Responsor(584): #################updateAvailable()..available = true, mSwitch = true
D/Responsor(584): #################updateAvailable()..mIpAddress = 192.168.1.153
再次启动又出现加载驱动失败的情况,多次启动后,终于成功。
结论:
电视盒子端不管启用dnsmasq还是不启用dnsmasq,都有失败的可能,失败原因一样,都是加载驱动失败导致。
手机端关闭移动数据后基本没有问题,不关闭移动数据失败率较高。