phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

[Lenovo s5 ] [Remove SU] wifi and hotspot cannot turn on #933

Open tyasws opened 4 years ago

tyasws commented 4 years ago

Any fix for this?

tyasws commented 4 years ago

please delete su, go back normal rom

phhusson commented 4 years ago

I'm sorry, I don't understand what you're asking.

Anyway, please provide logs for wifi not working.

tyasws commented 4 years ago

---- Nov 19, 2019 8:00:48 AM ----

11-19 07:58:59.282 1704 2932 E InputDispatcher: Window handle Window{d1088ce u0 Clear Log} has no registered input channel

11-19 07:59:02.479 755 755 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0, with Raise=0

11-19 07:59:03.231 1704 2932 I WifiService: setWifiEnabled package=com.android.systemui uid=10098 enable=true

11-19 07:59:03.233 1704 1850 I WifiService: getSupportedFeatures uid=1000

11-19 07:59:03.237 778 868 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only

11-19 07:59:03.237 1704 2941 I WifiService: getWifiEnabledState uid=10098

11-19 07:59:03.237 755 3969 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0

11-19 07:59:03.239 1704 2113 I WifiVendorHal: Vendor Hal started successfully

11-19 07:59:03.239 1704 2113 E SupplicantStaIfaceHal: checkHalVersionByInterfaceName: called but mServiceManager is null

11-19 07:59:03.239 1704 2113 E HalDevMgr: createStaIface: Stopping wifi

11-19 07:59:03.240 772 772 I android.hardware.wifi@1.0-service: Wifi HAL stopped

11-19 07:59:03.240 1704 2113 E HalDevMgr: createStaIface: Starting wifi

11-19 07:59:03.241 772 772 I android.hardware.wifi@1.0-service: Wifi HAL started

11-19 07:59:03.243 1704 2113 E HalDevMgr: createStaIface: Creating iface

11-19 07:59:03.243 1704 2114 I WifiP2pNative: Registering for interface available listener

11-19 07:59:03.243 755 3969 E msm8916_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present

11-19 07:59:03.243 755 3969 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14

11-19 07:59:03.243 755 3969 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 14, sample_rate 48000, snd_device_be_idx -14

11-19 07:59:03.255 772 772 E android.hardware.wifi@1.0-service: finit_module return: -1: Required key not available

11-19 07:59:03.264 772 772 I chatty : uid=1010 wifi@1.0-servic identical 1 line

11-19 07:59:03.273 772 772 E android.hardware.wifi@1.0-service: finit_module return: -1: Required key not available

11-19 07:59:03.273 772 772 E android.hardware.wifi@1.0-service: Failed to load WiFi driver

11-19 07:59:03.274 1704 2113 E HalDevMgr: executeChipReconfiguration: configureChip error: 9 ()

11-19 07:59:03.274 1704 2113 E WifiVendorHal: Failed to create STA iface

11-19 07:59:03.274 1704 2113 E WifiVendorHal: createStaIface(l.405) returns null

11-19 07:59:03.274 1704 2113 E WifiNative: Failed to create STA iface in vendor HAL

11-19 07:59:03.274 1704 2113 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

11-19 07:59:03.275 1704 2113 E WifiNative: Could not get Iface object for interface null

11-19 07:59:03.276 1704 2286 I WifiService: getWifiEnabledState uid=10098

11-19 07:59:03.277 1704 2113 I WifiVendorHal: Device Manager onStatusChanged. isReady(): true, isStarted(): true

11-19 07:59:03.278 1704 2113 I WifiVendorHal: Device Manager onStatusChanged. isReady(): true, isStarted(): true

11-19 07:59:03.278 1704 2113 I WifiVendorHal: Device Manager onStatusChanged. isReady(): true, isStarted(): true

11-19 07:59:03.279 1704 2116 I WifiScanningService: wifi driver unloaded

11-19 07:59:03.279 1704 2113 I WifiScanRequestProxy: Scanning is disabled

11-19 07:59:03.281 1704 2114 I WifiP2pNative: Registering for interface available listener

11-19 07:59:03.281 1704 2114 I WifiP2pNative: Registering for interface available listener

11-19 07:59:03.283 1704 1850 I WifiService: getSupportedFeatures uid=1000

11-19 07:59:03.283 1704 2113 E WifiNative: Could not get Iface object for interface null

11-19 07:59:06.592 755 755 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0, with Raise=0

11-19 07:59:08.065 778 868 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only

11-19 07:59:08.065 755 3969 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0

11-19 07:59:08.072 755 3969 E msm8916_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present

11-19 07:59:08.072 755 3969 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14

11-19 07:59:08.072 755 3969 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 14, sample_rate 48000, snd_device_be_idx -14

11-19 07:59:08.173 12544 12544 W ls : type=1400 audit(0.0:1073): avc: denied { ioctl } for path="pipe:[61512]" dev="pipefs" ino=61512 ioctlcmd=5413 scontext=u:r:qti_init_shell:s0 tcontext=u:r:qti_init_shell:s0 tclass=fifo_file permissive=0

---- Nov 19, 2019 8:00:48 AM ----

phhusson commented 4 years ago

Issue is that you don't have stock unmodified boot.img and vendor.img. So flash stock rom's unmodified boot.img and vendor.img.

felipemullen commented 4 years ago

...flash stock rom's unmodified boot.img and vendor.img.

Finally, after an entire day looking around xda and googling like crazy about the broken 20:00:00:00:00 mac address issue. I had a rooted+decrypted boot image, so all I did was flash the vendor image:

fastboot flash vendor S5_STOCK_ROM\vendor.img

No solution for copying WCNSS_qcom_wlan_factory_nv.bin around worked.

For background, my wifi broke after trying out the Android 10 image. I assume it might have something to do with the randomized mac address feature.