[LG G6 Questions and Answers] dantpe:
Hello everyone! :D

I've had my G6 for two years now and have been quite happy with it, but it's started getting slow in the last few months and the battery wasn't that great, so I was looking forward to upgrading to Pie. The phone is a branded version (P4P), but I use it in a different country now, so I decided to use H87030a_00_OPEN_EU_OP_0829.kdz to finally get rid of the branding. I used LGUP's upgrade function, all went well, but the phone wouldn't start up, and got stuck on the LG logo. Since the animation was moving I waited for more than an hour, but finally restarted the phone forcibly, waited again - still stuck at the logo, restarted and flashed again, waited. No success.

So I flashed it back to P4P branded H87020k, after which it started up properly, so I decided to try another kdz, even though it's a branded one: H87030a_00_WIN_IT_OP_0905.kdz (as it was described as an upgrade from v20k, not v20j). The update went well, the phone started up after a few minutes on the logo, and all seemed well... apart from the WiFi, that was still off, and wouldn't go on no matter how I tried to turn it on. I thought it was a problem with the kdz and waited out until finally today H87030a_00_P4P_PL_OP_0905.kdz came out, so I flashed it hoping that it would fix the problem, but WiFi is still no go.

It seems that the misc partition is OK, since a correct (

and consistent with BT

) MAC address shows up in logcat (even though it shows up as 02:00:00:00:00:00 in advanced Wi-Fi settings) (I've replaced the ending with ** for privacy reasons):

10-02 23:49:43.624 10863 10863 D WifiSettings: [onSwitchToggled] isChecked = true
10-02 23:49:43.631 10863 10863 D LDBHelper: LDBHelper : Bundle[{extend_integer=1, pkg_name=com.android.settings, app_name=LGSettings, feature_name=LGSettings_WiFiEnabler}]
10-02 23:49:43.631 1653 2506 I WifiService: getWifiApEnabledState uid=1000
10-02 23:49:43.646 1653 2506 D WifiServiceImplEx: setWifiEnabled: true pid=10863, uid=1000, package= com.android.settings, App Lable : Innstillinger
10-02 23:49:43.646 1653 2506 I LgeWlanMonitoring: event : 0, idx : 0, name : EVENT_WIFI_ENABLE
10-02 23:49:43.660 1653 2440 W ActivityManager: Sending non-protected broadcast com.lge.wifi.monitoring.action from system 1653:system/1000 pkg android
10-02 23:49:43.669 1653 2506 I WifiServerServiceExt: VoiceRegState = 0, DataRegState = 0
10-02 23:49:43.669 1653 2506 D WifiService: setWifiEnabled: true pid=10863, uid=1000, package=com.android.settings
10-02 23:49:43.669 1653 2506 I WifiService: setWifiEnabled package=com.android.settings uid=1000 enable=true
10-02 23:49:43.669 1653 2506 V LGSettingsProvider: call_put(global:wifi_on=1) calling package = android callingUserId : 0
10-02 23:49:43.670 1653 1653 D WifiService: WifiToggleHandler msg.what: 0 , on : 1
10-02 23:49:43.670 1653 2433 D WifiController: StaDisabledState, message: { when=-1ms what=155656 arg1=1 target=com.android.internal.util.StateMachine$SmHandler }
10-02 23:49:43.670 1653 2433 D WifiController: StaEnabledState.enter()
10-02 23:49:43.671 1653 2433 V LGSettingsProvider: call_put(global:wifi_saved_state=0) calling package = android callingUserId : 0
10-02 23:49:43.671 1653 2433 D WifiController: ENTER DeviceActiveState
10-02 23:49:43.672 1653 2434 D WifiStateMachinePrime: received a message in WifiDisabledState: { when=-1ms what=0 target=com.android.internal.util.StateMachine$SmHandler }
10-02 23:49:43.672 1653 2434 D WifiStateMachinePrime: Switching from WifiDisabledState to ClientMode
10-02 23:49:43.672 1653 2434 D WifiStateMachinePrime: Entering ClientModeActiveState
10-02 23:49:43.673 1653 2434 D WifiClientModeManager: entering IdleState
10-02 23:49:43.673 1653 1861 I WifiService: requestActivityInfo uid=1000
10-02 23:49:43.673 1653 1861 I WifiService: reportActivityInfo uid=1000
10-02 23:49:43.673 1653 1861 I WifiService: getSupportedFeatures uid=1000
10-02 23:49:43.673 1653 2434 D WifiStateMachine: DefaultState !CMD_SET_HIGH_PERF_MODE rt=940118/940118 0 0
10-02 23:49:43.673 1653 2434 D WifiStateMachine: setSuspendOptimizations: 2 true
10-02 23:49:43.673 1653 2434 D WifiStateMachine: mSuspendOptNeedsDisabled 0
10-02 23:49:43.674 1653 2434 D WifiStateMachinePrime: State changed from client mode. state = 2
10-02 23:49:43.674 1653 2434 D WifiStateMachine: setting wifi state to: 2
10-02 23:49:43.674 1653 1861 D WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
10-02 23:49:43.677 2519 2769 I NetworkController: onReceive: intent=Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 (has extras) }
10-02 23:49:43.678 2519 2769 I NetworkController.WifiSignalController: mCurrentState.enabled = false, mCurrentState.connected = false, mCurrentState.detailedState = null, mCurrentState.inetCondition = 0
10-02 23:49:43.678 2519 2769 I AbsQuickSettingsHandlerBase: Got action android.net.wifi.WIFI_STATE_CHANGED for wifi
10-02 23:49:43.679 1653 2506 I WifiService: getWifiEnabledState uid=10146
10-02 23:49:43.681 1653 1838 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 (has extras) } to com.wireless.macchanger/.WIFIEnabled
10-02 23:49:43.683 1653 1653 D WifiProfileMgrReceiver: handleEvent : android.net.wifi.WIFI_STATE_CHANGED
10-02 23:49:43.683 1653 1653 E WifiProfileMgrReceiver: WifiProfileMgrReceiver, ERROR!!!!!
10-02 23:49:43.683 1653 1653 E WifiProfileMgrReceiver: Do not match OP/COUNTRYCODE
10-02 23:49:43.683 1653 1653 I WifiProfileMgrReceiver: getOperatorCode() : P4P, getCountryCode() : PL
10-02 23:49:43.683 1653 1653 I WifiProfileMgrReceiver: getSimOperatorCode() : P4P, getSimCountryCode() : PL
10-02 23:49:43.683 1653 1653 I WifiServerServiceExt: WIFI_STATE_CHANGED_ACTION [2]
10-02 23:49:43.685 1653 1653 D WifiRunTimeConfig: Action :android.net.wifi.WIFI_STATE_CHANGED
10-02 23:49:43.686 1653 1653 D LGWifiP2pService: Wifi enabled=false, P2P Interface availability=true
10-02 23:49:43.686 1653 2443 D LGWifiP2pService: P2pDisabledState{ when=0 what=143377 target=com.android.internal.util.StateMachine$SmHandler }
10-02 23:49:43.686 1653 2443 D LGWifiP2pService: DefaultState{ when=-1ms what=143377 target=com.android.internal.util.StateMachine$SmHandler }
10-02 23:49:43.687 1653 2506 I WifiService: getWifiEnabledState uid=1000
10-02 23:49:43.688 1653 1838 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 (has extras) } to com.wireless.macchanger/.AirPlaneReceiver
10-02 23:49:43.689 1653 2443 D WifiAsyncChannel.LGWifiP2pService: sendMessage sendMessage message=131205
10-02 23:49:43.690 1653 2506 I WifiService: getWifiEnabledState uid=1000
10-02 23:49:43.691 1653 2506 I WifiService: getWifiApEnabledState uid=1000
10-02 23:49:43.693 2897 2897 D WfdLanP2p: brHandleP2pOnOFFStateChanged(1)
10-02 23:49:43.694 2519 2769 I AbsQuickSettingsHandlerBase: Got action android.net.wifi.p2p.STATE_CHANGED for wifi
10-02 23:49:43.693 1653 1838 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 (has extras) } to se.prisjakt.pricespy/com.schibsted.spt.tracking.sdk.receivers.ConnectivityReceiver
10-02 23:49:43.709 3717 3717 D AspP2pStateMachine: WifiP2pState is changed : false
10-02 23:49:43.709 3717 3882 D AspP2pStateMachine: DefaultState: ASP_ENABLE(DISABLE)
10-02 23:49:43.709 582 582 E android.hardware.wifi@1.0-service: wifi_load_driver is done(timeout): Success
10-02 23:49:43.710 3717 3717 D LGP2pBroadcastReceiver: WifiP2pState is changed : false
10-02 23:49:43.710 3717 3928 D LGP2pStateMachine: LGP2pDisabledState: message.what=9457668
10-02 23:49:43.710 3717 3928 D LGP2pStateMachine: LGP2pDefaultState: message.what=9457668
10-02 23:49:43.710 3717 3928 D LGP2pStateMachine: LGP2pDefaultState - [9457668] is not handled.
10-02 23:49:43.716 582 582 E android.hardware.wifi@1.0-service: isDualInterfaceSupported() is false.
10-02 23:49:43.717 1653 1842 I ActivityManager: Start proc 14990:com.lge.ia.task.smartsetting/u0a159 for broadcast com.lge.ia.task.smartsetting/.detector.WifiContextDetector
10-02 23:49:43.722 582 582 I android.hardware.wifi@1.0-service: Wifi HAL started
10-02 23:49:43.724 1653 2434 I WifiVendorHal: Device Manager onStatusChanged. isReady(): true, isStarted(): true
10-02 23:49:43.725 1653 2434 I WifiVendorHal: Vendor Hal started successfully
10-02 23:49:43.725 1653 2434 D WificondControl: Wificond handle already retrieved
10-02 23:49:43.726 1653 2443 I WifiP2pNative: Registering for interface available listener
10-02 23:49:43.736 14990 14990 E sk.smartsettin: Not starting debugger since process cannot load the jdwp agent.
10-02 23:49:43.743 1021 1021 E wificond: Cannot set RW to "/data/misc/wifi/PerProviderSubscription.conf": Operation not permitted
10-02 23:49:43.755 1653 2810 I WifiService: getWifiEnabledState uid=10102
10-02 23:49:43.757 14989 14989 I WIFIFTM : [wififtmd] Call wifi_initialize_config
10-02 23:49:43.757 14989 14989 I LGFTMITEM: [GET_FTM][id=6], offset=24576
10-02 23:49:43.758 1653 2443 I HalDevMgr: Do not skip creating NAN iface
10-02 23:49:43.758 14989 14989 E WIFIFTM : Wifi MAC Address = 88:36:5f:**:**:**
10-02 23:49:43.759 14989 14989 E WIFIFTM : wifi_check_config compare "cur_etheraddr=88:36:5f:**:**:**
10-02 23:49:43.759 14989 14989 E WIFIFTM : lpc=0
10-02 23:49:43.759 14989 14989 E WIFIFTM : ": cur_etheraddr=88:36:5f:**:**:**
10-02 23:49:43.759 14989 14989 I WIFIFTM : [wififtmd] wifi_check_optinfo enter
10-02 23:49:43.759 14989 14989 I lgerft_v2_wlan: LGE_RFT_UpdateOTPInfo : LGE_RFT_UpdateOTPInfo >>>>>
10-02 23:49:43.759 14989 14989 I lgerft_v2_wlan: LGE_RFT_UpdateOTPInfo : >>>> firmware path(/vendor/etc/firmware/fw_bcmdhd_mfg.bin)
10-02 23:49:43.759 14989 14989 E bcmwl_wlan: wl_ioctl_do : >>>> error : socket create
10-02 23:49:43.759 14989 14989 I bcmwl_wlan: wl_if_updown : [wl up]
10-02 23:49:43.759 14989 14989 E bcmwl_wlan: wl_ioctl_do : >>>> error : socket create
10-02 23:49:43.759 14989 14989 E lgerft_v2_wlan: LGE_RFT_UpdateOTPInfo : >>>> error: if up (1)
10-02 23:49:43.759 14989 14989 I WIFIFTM : [wififtmd] is_otp_written = 0
10-02 23:49:43.766 1653 2443 D WifiP2pNative: P2P InterfaceAvailableListener true
10-02 23:49:43.766 1653 2443 D LGWifiP2pService: Wifi enabled=false, P2P Interface availability=true, Number of clients=9
10-02 23:49:43.791 14990 14990 I sk.smartsettin: The ClassLoaderContext is a special shared library.
10-02 23:49:43.824 14990 14990 V LIA_CAEngine_AppRecommendContentProvider: AppRecommendContentProvider onCreate()
10-02 23:49:43.849 668 668 I MiniDump: -------------------------------------------------------------------------------
10-02 23:49:43.849 668 668 I MiniDump: [0] Handle | Comp Type | Alpha | Disp Frame (LTRB) | Source Crop (LTRB) | Name
10-02 23:49:43.849 668 668 I MiniDump: 0x7abe3a6000 | Device | 1.000 | 0 0 1440 2880 | 0.0 0.0 1440.0 2880.0 | com.android.settings/com.[...]settings.Settings@10863#0
10-02 23:49:43.849 668 668 I MiniDump: 0x7ac06d7000 | Device | 1.000 | 0 0 1440 96 | 0.0 0.0 1440.0 96.0 | StatusBar@2519#0
10-02 23:49:43.849 668 668 I MiniDump: 0x7abe2d1000 | Device | 1.000 | 0 2672 1440 2880 | 0.0 0.0 1440.0 208.0 | NavigationBar@2519#0
10-02 23:49:43.853 14990 14990 V LIA_LocationDBProvider: LocationDBProvider onCreate()
10-02 23:49:43.862 14990 14990 D LIA_WifiContextDetector: onReceive action = com.lge.broadcast.android.net.wifi.WIFI_STATE_CHANGED state= 2
10-02 23:49:43.866 14990 14990 V LIA_LGIFTTT: isRecipeOn key_home_recipe_status false
10-02 23:49:43.866 14990 14990 V LIA_LGIFTTT: isRecipeOn key_work_recipe_status false
10-02 23:49:43.866 14990 14990 D LIA_ContextDetector: onUpdate Wi-Fi on
10-02 23:49:43.873 14990 15008 D LIA_DetectorService: onHandleIntent Wi-Fi on
10-02 23:49:43.874 14990 15008 D LIA_LocationDBManagerDBHelper: make new DBHelper
10-02 23:49:43.877 14990 15008 D LIA_Recommender: onStatusChanged category= 0, value= Wi-Fi on
10-02 23:49:43.878 15003 15003 D wpa_supplicant: wpa_supplicant v2.7-devel-9
10-02 23:49:43.879 15003 15003 D wpa_supplicant: Global control interface '@android:vendor_wpa_wlan0'
10-02 23:49:43.879 15003 15003 D wpa_supplicant: Using Android control socket 'vendor_wpa_wlan0'
10-02 23:49:43.880 15003 15003 D wpa_supplicant: Initing hidl control
10-02 23:49:43.880 15003 15003 I wpa_supplicant: Processing hidl events on FD 4
10-02 23:49:43.881 14990 15008 V LIA_SenseLocation: getCurrentPlaceId HOME, id :
10-02 23:49:43.881 14990 15008 V LIA_LocationDBManagerDBAdapter: getSelectionQuery table TB_DEVICE_STATUS searchType 15
10-02 23:49:43.883 15003 15003 I wpa_supplicant: Successfully initialized wpa_supplicant
10-02 23:49:43.883 1653 5257 I SupplicantStaIfaceHal: IServiceNotification.onRegistration for: android.hardware.wifi.supplicant@1.0::ISupplicant, default preexisting=false
10-02 23:49:43.885 1653 5257 I android_os_HwBinder: HwBinder: Starting thread pool for default::android.hardware.wifi.supplicant@1.0::ISupplicant
10-02 23:49:43.885 14990 15008 V LIA_PlaceLogReader: getAllLogs()
10-02 23:49:43.885 14990 15008 V LIA_LocationDBManagerDBAdapter: getSelectionQuery table TB_PLACE_TIME_PROFILE searchType 14
10-02 23:49:43.885 1653 5257 I SupplicantStaIfaceHal: Completed initialization of ISupplicant.
10-02 23:49:43.888 14990 15008 V LIA_PlaceLogReader: get() result.size=8
10-02 23:49:43.888 14990 15008 V LIA_PlaceLogReader: get() result.size after select place=0
10-02 23:49:43.888 14990 15008 V LIA_SettingRecommenderImpl: device log size= 81
10-02 23:49:43.888 14990 15008 V LIA_SettingRecommenderImpl: place log size= 0
10-02 23:49:43.889 14990 15008 V LIA_SettingRecommenderImpl: screen log size= 1
10-02 23:49:43.889 14990 15008 D LIA_SettingRecommenderImpl: cannot recommend where too little information
10-02 23:49:43.889 14990 15008 D LIA_Recommender: no recommend: Wi-Fi on is not frequent
10-02 23:49:43.889 14990 15008 D LIA_Recommender: onStatusChanged category= 2, value= Wi-Fi on
10-02 23:49:43.889 14990 15008 V LIA_SenseLocation: getCurrentPlaceId WORK, id :
10-02 23:49:43.889 14990 15008 V LIA_LocationDBManagerDBAdapter: getSelectionQuery table TB_DEVICE_STATUS searchType 15
10-02 23:49:43.892 14990 15008 V LIA_PlaceLogReader: getAllLogs()
10-02 23:49:43.892 14990 15008 V LIA_LocationDBManagerDBAdapter: getSelectionQuery table TB_PLACE_TIME_PROFILE searchType 14
10-02 23:49:43.893 14990 15008 V LIA_PlaceLogReader: get() result.size=8
10-02 23:49:43.893 14990 15008 V LIA_PlaceLogReader: get() result.size after select place=0
10-02 23:49:43.893 14990 15008 V LIA_SettingRecommenderImpl: device log size= 81
10-02 23:49:43.893 14990 15008 V LIA_SettingRecommenderImpl: place log size= 0
10-02 23:49:43.893 14990 15008 V LIA_SettingRecommenderImpl: screen log size= 1
10-02 23:49:43.893 14990 15008 D LIA_SettingRecommenderImpl: cannot recommend where too little information
10-02 23:49:43.893 14990 15008 D LIA_Recommender: no recommend: Wi-Fi on is not frequent
10-02 23:49:43.894 14990 15008 V LIA_DeviceLogger: DeviceLogger.log: DeviceSettingProfile [profileId=-1, timestamp=1570052983894, , settingStatus=Wi-Fi on, deviceTypeOrdinal=0]
10-02 23:49:43.896 14990 15008 D LIA_LocationDBManagerDBAdapter: insert start
10-02 23:49:43.896 14990 15008 D LIA_LocationDBManager: insertSettingInfo ID = 275
10-02 23:49:43.958 1653 2434 D HalDevMgr: createIface: ifaceType=0, lowPriority=false
10-02 23:49:43.964 1653 2434 D HalDevMgr: executeChipReconfiguration: ifaceCreationData={chipInfo={chipId=0, availableModes=[{.id = 0, .availableCombinations = [{.limits = [{.types = [0], .maxIfaces = 1}, {.types = [2], .maxIfaces = 1}]}]}, {.id = 1, .availableCombinations = [{.limits = [{.types = [1], .maxIfaces = 1}]}]}], currentModeIdValid=false, currentModeId=0, ifaces[1].length=0, ifaces[0].length=0, ifaces[2].length=0, ifaces[3].length=0), chipModeId=0, interfacesToBeRemovedFirst=[]), ifaceType=0
10-02 23:49:43.968 1653 2434 D HalDevMgr: isModeConfigNeeded=true
10-02 23:49:44.479 578 822 D sensors_hal_Ctx: poll:polldata:1, sensor:2, type:5, x:163.000000 y:0.000000 z:0.000000
10-02 23:49:44.479 578 822 D sensors_hal_Util: waitForResponse: timeout=0
10-02 23:49:44.482 1653 1987 I AutomaticBrightnessControllerEx: [MultiALC] lux = 163.0, time = 940926
10-02 23:49:44.679 578 822 D sensors_hal_Ctx: poll:polldata:1, sensor:2, type:5, x:160.000000 y:0.000000 z:0.000000
10-02 23:49:44.680 578 822 D sensors_hal_Util: waitForResponse: timeout=0
10-02 23:49:44.682 1653 1987 I AutomaticBrightnessControllerEx: [MultiALC] lux = 160.0, time = 941126
10-02 23:49:44.882 1653 1987 I AutomaticBrightnessControllerEx: [MultiALC] lux = 159.0, time = 941326
10-02 23:49:44.951 582 582 I WifiHAL : Initializing wifi
10-02 23:49:44.952 582 582 I WifiHAL : Creating socket
10-02 23:49:44.960 582 582 I WifiHAL : Initialized Wifi HAL Successfully; vendor cmd = 103
10-02 23:49:44.969 1653 1975 I EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: true
10-02 23:49:44.969 1653 1975 D Tethering: interfaceStatusChanged wlan0, true
10-02 23:49:44.977 582 582 I android.hardware.wifi@1.0-service: Adding interface handle for wlan0
10-02 23:49:44.977 582 582 E android.hardware.wifi@1.0-service: Failed to register radio mode change callback
10-02 23:49:44.977 582 582 I android.hardware.wifi@1.0-service: Configured chip in mode 0
10-02 23:49:44.979 582 582 E android.hardware.wifi@1.0-service: Failed to set DFS flag; DFS channels may be unavailable.
10-02 23:49:44.984 1653 2434 D HalDevMgr: createIfaceIfPossible: iface=wlan0
10-02 23:49:44.984 1653 2434 D HalDevMgr: createIfaceIfPossible: added cacheEntry={name=wlan0, type=0, destroyedListeners.size()=1, creationTime=941428, isLowPriority=false}
10-02 23:49:44.987 1653 2434 I HalDevMgr: Do not skip creating NAN iface
10-02 23:49:45.000 1653 2434 D WifiNative: fst disabled
10-02 23:49:45.000 1653 2434 D WifiNative: FST disabled, not creating FST interface
10-02 23:49:45.000 1653 2434 D WificondControl: Setting up interface for client mode
10-02 23:49:45.000 1653 2434 D WificondControl: Wificond handle already retrieved
10-02 23:49:45.004 1021 1021 I wificond: create scanner for interface with index: 9
10-02 23:49:45.004 1021 1021 I wificond: subscribe scan result for interface with index: 9
10-02 23:49:45.008 486 486 W hwservicemanager: getTransport: Cannot find entry android.hardware.wifi.offload@1.0::IOffload/default in either framework or device manifest.
10-02 23:49:45.011 1021 1021 E wificond: No Offload Service available
10-02 23:49:45.011 1021 1021 I wificond: Offload HAL not supported
(continues in the comment below)

Do you have an idea why it switches off automatically when I try to switch it on, and what I can do about it?

Thanks for your help!

PS. I have found a possible solution here, but it requires rooting the phone, and I'd rather not. I might consider rooting and unrooting, if there's really no other way.

rm /data/misc/wifi/config
mkdir /data/misc/wifi/config