[T-Mobile Samsung Galaxy S6] wow_nik:
Hi All,

Need some help in getting my wifi and bluetooth back to normal. It's over a month now and all my attempts have failed! I would really appreciate some ideas here. Thank you, and sorry for long thread.

Phone info:

Samsung galaxy S6 SM-G920T (T-Mobile), firmware version: NRD90M.G920TUVS6FRC1, stock OS with root and TWRP recovery

Situation:

Bluetooth does not turn ON at all

Wifi takes a long time to turn ON, and only way to turn it ON is from settings (quick access tile does not work)

Wifi does not remember any password

All other functions work correctly, and the phone is now lightning fast after factory reset

Details and Steps Taken:

Rooted my phone a month ago, and started changing config. Took OS and app backup only, but no EFS/other partition backup.

Turned OFF "Allow OEM Unlock" - don't ask why :(

This (I believe) resulted in WIFI not remembering passwords, so after reviewing potential solutions, I changed "Secure.Storage" value in build.prop to "0"

Took backup of WPA_supplicant.conf and deleted the file

Problem was not resolved, and I had to restart the phone

Restart resulted in FRP lock - to resolve this I re-installed the OS from stock firmware from Sammobile; Yet - no luck on wifi and bluetooth, error still persisted

I reviewed the system log and found tons of errors (listed below). Based on errors, I tried:

Copying libbluetooth_jni.so library file to '/system/lib' and '/system/vendor/lib' folders

Changing 'semGetAllowBluetoothMode' value to "True" - this reduced some errors (refer below)

Validating file / folder permissions for the /efs partition - they seem to be appropriate, but I cannot confirm since there is no reference

I have also tried using SmartSwitch - but it doesn't recognize phone in download mode. It backups the apps, etc. though

Also wiped the system partition once using TWRP, and re-imaged. Yet no luck.

My hunch currently for these errors is:

The /efs permissions became incorrect or partition became corrupt due to some configuration I performed

The system lost its encryption key when the "OEM unlock" was disabled, and thus cannot read any files from the /system and /efs partition (the device was NOT encrypted, but I am thinking /efs is always encrypted by system - correct me if I am wrong)

System log snippets:

Bluetooth Related Log:

Bluetooth GATT service:

BtGatt.GattService: [GSIM LOG]: gsimLogHandler: null, msg: MESSAGE_LOAD_PREF

Bluetooth Adapter Service:

BluetoothAdapterService: onProfileServiceStateChanged() serviceName=com.android.bluetooth.gatt.GattService, state=12, Message sending

semGetAllowBluetoothMode:

Resolved this error by updating the value to "True" in build.prop. Was this the right fix, or is it supposed to get value = 2.

DevicePolicyManagerService: semGetAllowBluetoothMode - value retunrs : 2

Wifi error log:

WifiHW : ##################### set firmware type 0 #####################
WifiHW : ==========[WIFI] SEMCO MODULE ===========
WifiHW : TEMP_FAILURE_RETRY complete
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 208 Softap operation succeeded
WifiMonitor: killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
WifiHW : supplicant_name : p2p_supplicant
WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
WifiWatchdogStateMachine: Unhandled message { when=0 what=135173 arg1=2 target=com.android.internal.util.StateMachine$SmHandler } in state NotConnectedState
WifiMonitor: startMonitoring(wlan0) failed!
WifiStateMachine: Failed to setup control channel, restart supplicant
WifiHAL : wifi_event_loop: Read after POLL returned 4, error no = 0
WifiHAL : wifi_cleanup: Read after POLL returned 4, error no = 2
WifiHAL : Event processing terminated
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 219 Softap operation succeeded
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 229 Softap operation succeeded
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 240 Softap operation succeeded
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 248 Softap operation succeeded
WifiHAL : wifi_event_loop: Read after POLL returned 4, error no = 11
NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 256 Softap operation succeeded
WifiStateMachine: Failed 6 times to start supplicant, unload driver
WifiStateMachine: sendErrorBroadcast code:10
WifiController: WifiControllerWifi turn on failed