remove wifi item from settings menu.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

remove wifi item from settings menu.

539 Views
lifusong
Contributor IV

Dears.

   why can't boot into os when remove system/etc/permissions/android.hardware.wifi.xml?

our design without wifh support.so we want remove Wi-Fi item form settings menu.

                } else if (id == R.id.wifi_settings) {

                    // Remove WiFi Settings if WiFi service is not available.

                    if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)) {

                        removeTile = true;

                    }

and debug the code ,found this action will detect system/etc/permissions/android.hardware.wifi.xml.and checkout string "android.hardware.wifi"

so by the code designed ,we remove this file.

but can't boot into os.

and the debug show below info.   who can help me.

request_suspend_state: wakeup (0->0) at 216041832025 (2015-08-16 22:13:21.057976358 UTC)

request_suspend_state: wakeup (0->0) at 221440580359 (2015-08-16 22:13:26.456724359 UTC)

binder: 137:298 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 222792029359 (2015-08-16 22:13:27.808173026 UTC)

request_suspend_state: wakeup (0->0) at 228112313026 (2015-08-16 22:13:33.128456693 UTC)

binder: 137:298 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 229441979693 (2015-08-16 22:13:34.458123360 UTC)

request_suspend_state: wakeup (0->0) at 234642096360 (2015-08-16 22:13:39.658240027 UTC)

binder: 137:298 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 235961910360 (2015-08-16 22:13:40.978054694 UTC)

request_suspend_state: wakeup (0->0) at 241381553361 (2015-08-16 22:13:46.397697361 UTC)

binder: 137:298 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 242701936694 (2015-08-16 22:13:47.718080361 UTC)

request_suspend_state: wakeup (0->0) at 248070992028 (2015-08-16 22:13:53.087135695 UTC)

binder: 137:299 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 249421888695 (2015-08-16 22:13:54.438032362 UTC)

request_suspend_state: wakeup (0->0) at 254645574696 (2015-08-16 22:13:59.661718363 UTC)

binder: 137:298 transaction failed 29189, size 68-0

request_suspend_state: wakeup (0->0) at 256012076696 (2015-08-16 22:14:01.028220696 UTC)

Labels (2)
0 Kudos
Reply
0 Replies