[Android Q&A, Help & Troubleshooting] bladeMaster86:
Hi, i have problem with running wifi on my huawei p8 lite the button stays inactive the phone is rooted i try to reflash with the [Mod] [ ALE-L21 C432B600 DS ] [Android 6] [EMUI 4.0.3] , but the problem is still unresolved can any one help me ?

Logcat logs with wifi occurrance

Line 1: Search "^.*(wifi|Wifi).*$" (85 hits in 3 files)

Line 3:	Line 15: device_name=hisiwifi

Line 5:	Line 1: 05-21 17:07:34.373 3029 3356 E WifiStateMachine: Error! unhandled message{ when=-1ms what=131157 target=com.android.internal.util.StateMachine$SmHandler }

Line 6:	Line 2: 05-21 17:07:34.722 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 7:	Line 3: 05-21 17:07:34.723 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 8:	Line 4: 05-21 17:07:44.733 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 9:	Line 5: 05-21 17:09:47.610 3029 3356 E WifiStateMachine: Fail to set up pno, want false now false

Line 10:	Line 6: 05-21 17:09:47.695 3029 3381 E hwintelligencewifi: DefaultState MSG_SCREEN_ON

Line 11:	Line 7: 05-21 17:09:47.965 25571 25571 I art : Rejecting re-init on previously-failed class java.lang.Class<com.huawei.netassistant.wifisecure.HsmWifiDetectManager$HsmWifiDetectListener>

Line 12:	Line 8: 05-21 17:09:47.966 25571 25571 I art : Rejecting re-init on previously-failed class java.lang.Class<com.huawei.netassistant.wifisecure.HsmWifiDetectManager$HsmWifiDetectListener>

Line 14:	Line 247: 05-21 17:07:34.373 3029 3356 E WifiStateMachine: Error! unhandled message{ when=-1ms what=131157 target=com.android.internal.util.StateMachine$SmHandler }

Line 15:	Line 261: 05-21 17:07:34.722 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 16:	Line 263: 05-21 17:07:34.723 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 17:	Line 356: 05-21 17:07:44.732 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 18:	Line 358: 05-21 17:07:44.733 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 19:	Line 458: 05-21 17:07:54.744 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 20:	Line 460: 05-21 17:07:54.744 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 21:	Line 506: 05-21 17:08:04.754 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 22:	Line 508: 05-21 17:08:04.754 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 23:	Line 531: 05-21 17:08:14.755 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 24:	Line 533: 05-21 17:08:14.758 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 25:	Line 593: 05-21 17:08:24.757 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 26:	Line 595: 05-21 17:08:24.757 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 27:	Line 673: 05-21 17:08:34.763 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 28:	Line 675: 05-21 17:08:34.764 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 29:	Line 705: 05-21 17:08:44.773 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 30:	Line 707: 05-21 17:08:44.773 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 31:	Line 743: 05-21 17:08:54.782 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 32:	Line 745: 05-21 17:08:54.783 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 33:	Line 790: 05-21 17:09:04.792 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 34:	Line 792: 05-21 17:09:04.793 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 35:	Line 1012: 05-21 17:09:07.147 3029 3356 E WifiStateMachine: Fail to set up pno, want false now false

Line 36:	Line 1018: 05-21 17:09:07.163 3029 3381 E hwintelligencewifi: DefaultState MSG_SCREEN_OFF mIsAutoOpenSearch = false

Line 37:	Line 1070: 05-21 17:09:07.329 3029 3356 E WifiStateMachine: Error! unhandled message{ when=-1ms what=131156 target=com.android.internal.util.StateMachine$SmHandler }

Line 38:	Line 1129: 05-21 17:09:47.610 3029 3356 E WifiStateMachine: Fail to set up pno, want false now false

Line 39:	Line 1145: 05-21 17:09:47.695 3029 3381 E hwintelligencewifi: DefaultState MSG_SCREEN_ON

Line 40:	Line 1184: 05-21 17:09:47.965 25571 25571 I art : Rejecting re-init on previously-failed class java.lang.Class<com.huawei.netassistant.wifisecure.HsmWifiDetectManager$HsmWifiDetectListener>

Line 41:	Line 1185: 05-21 17:09:47.966 25571 25571 I art : Rejecting re-init on previously-failed class java.lang.Class<com.huawei.netassistant.wifisecure.HsmWifiDetectManager$HsmWifiDetectListener>

Line 42:	Line 1195: 05-21 17:09:47.994 25571 25571 I art : Rejecting re-init on previously-failed class java.lang.Class<com.huawei.netassistant.wifisecure.HsmWifiDetectManager$HsmWifiDetectListener>

Line 43:	Line 1200: 05-21 17:09:48.026 22256 22256 I HwOUC : [main-1]WifiAutoDownloadManageService onCreate()(hwouc/WifiAutoDownloadManageService.java:40)

Line 44:	Line 1206: 05-21 17:09:48.032 3029 3941 W System.err: java.lang.SecurityException: WifiService: Neither user 10053 nor current process has android.permission.CHANGE_WIFI_STATE.

Line 45:	Line 1209: 05-21 17:09:48.032 3029 3941 W System.err:	at com.android.server.wifi.WifiServiceImpl.enforceChangePermission(WifiServiceImpl.java:671)

Line 46:	Line 1210: 05-21 17:09:48.032 3029 3941 W System.err:	at com.android.server.wifi.WifiServiceImpl.getWifiServiceMessenger(WifiServiceImpl.java:1838)

Line 47:	Line 1211: 05-21 17:09:48.032 3029 3941 W System.err:	at android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:558)

Line 48:	Line 1212: 05-21 17:09:48.032 3029 3941 W System.err:	at com.android.server.wifi.HwWifiService.onTransact(HwWifiService.java:284)

Line 49:	Line 1214: 05-21 17:09:48.034 22256 22256 E WifiManager: WifiServiceMessenger == null

Line 50:	Line 1215: 05-21 17:09:48.051 22256 22256 I HwOUC : [main-1]isMeteredWifi is false(hwouc/HwOucUtility.java:3249)

Line 51:	Line 1304: 05-21 17:09:50.053 22256 22256 I HwOUC : [main-1]WifiAutoDownloadManageService ServiceHandler(hwouc/WifiAutoDownloadManageService.java:228)

Line 52:	Line 1305: 05-21 17:09:50.053 22256 22256 I HwOUC : [main-1]WifiAutoDownloadManageService ServiceHandler stop service(hwouc/WifiAutoDownloadManageService.java:231)

Line 53:	Line 1306: 05-21 17:09:50.057 22256 22256 I HwOUC : [main-1]WifiAutoDownloadManageService, onDestroy(hwouc/WifiAutoDownloadManageService.java:149)

Line 54:	Line 1308: 05-21 17:09:51.754 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 55:	Line 1310: 05-21 17:09:51.756 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 56:	Line 1360: 05-21 17:09:57.948 3029 3356 E WifiStateMachine: Fail to set up pno, want false now false

Line 57:	Line 1368: 05-21 17:09:57.967 3029 3381 E hwintelligencewifi: DefaultState MSG_SCREEN_OFF mIsAutoOpenSearch = false

Line 58:	Line 1465: 05-21 17:10:01.763 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 59:	Line 1467: 05-21 17:10:01.764 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 60:	Line 1547: 05-21 17:10:04.486 3029 3356 E WifiStateMachine: Fail to set up pno, want false now false

Line 61:	Line 1549: 05-21 17:10:04.516 3029 3381 E hwintelligencewifi: DefaultState MSG_SCREEN_ON

Line 62:	Line 1848: 05-21 17:10:08.571 3029 3029 I WifiProJNI: ######### NOTIFY_MCC:284 ########

Line 63:	Line 2010: 05-21 17:10:11.627 3029 3029 I WifiProJNI: ######### NOTIFY_MCC:284 ########

Line 64:	Line 2098: 05-21 17:10:11.764 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 65:	Line 2100: 05-21 17:10:11.765 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 66:	Line 2466: 05-21 17:10:17.394 3029 3029 I WifiProJNI: ######### NOTIFY_MCC:284 ########

Line 67:	Line 2552: 05-21 17:10:21.769 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 68:	Line 2554: 05-21 17:10:21.770 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 69:	Line 2629: 05-21 17:10:31.772 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 70:	Line 2631: 05-21 17:10:31.773 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 71:	Line 2637: 05-21 17:10:31.779 3029 3029 I WifiProJNI: ######### NOTIFY_MCC:284 ########

Line 72:	Line 2814: 05-21 17:10:41.786 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 73:	Line 2816: 05-21 17:10:41.788 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 74:	Line 2827: 05-21 17:10:42.058 3029 3029 I WifiProJNI: ######### NOTIFY_MCC:284 ########

Line 75:	Line 2930: 05-21 17:10:51.798 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 76:	Line 2932: 05-21 17:10:51.800 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 77:	Line 3040: 05-21 17:11:01.804 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 78:	Line 3042: 05-21 17:11:01.804 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 79:	Line 3103: 05-21 17:11:11.815 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 80:	Line 3105: 05-21 17:11:11.816 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 81:	Line 3129: 05-21 17:11:21.826 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 82:	Line 3131: 05-21 17:11:21.828 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 83:	Line 3179: 05-21 17:11:31.833 3029 3029 I WifiProJNI: ######### CMD_QUERY_PKTS ########

Line 84:	Line 3181: 05-21 17:11:31.834 3029 3383 W WifiProJNI: poll before: g_monitor_fd =155

Line 85:	Line 3187: 05-21 17:11:33.020 3462 3462 I ToolBoxView: onItemClick name=com.android.systemui.statusbar.toolbox.control.WifiTracker

Line 86:	Line 3276: 05-21 17:11:37.053 7871 7871 W AccessPointFilter:	at com.android.settings.wifi.AccessPointFilter.initialFilter(AccessPointFilter.java:52)

Line 87:	Line 3277: 05-21 17:11:37.053 7871 7871 W AccessPointFilter:	at com.android.settings.wifi.WifiSettingsHwBase.onActivityCreated(WifiSettingsHwBase.java:255)

Line 88:	Line 3278: 05-21 17:11:37.053 7871 7871 W AccessPointFilter:	at com.android.settings.wifi.WifiSettings.onActivityCreated(WifiSettings.java:320)

Line 89:	Line 3315: 05-21 17:11:37.265 3029 3119 I ActivityManager: Displayed com.android.settings/.Settings$WifiSettingsActivity: +356ms

dmesgLogs

Line 642: [12411.397356s][2017:05:21 17:07:35][pid:1,cpu0,init]init: avc: granted { set } for property=hw.wifipro.dns_fail_count scontext=u:r:netd:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service

Line 648: [12411.639818s][2017:05:21 17:07:35][pid:1,cpu0,init]init: avc: granted { set } for property=hw.wifipro.dns_fail_count scontext=u:r:netd:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service

Line 650: [12411.642259s][2017:05:21 17:07:35][pid:1,cpu0,init]init: avc: granted { set } for property=hw.wifipro.dns_fail_count scontext=u:r:netd:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service