Completely remove WiFi from Android Rom (including settings layout)

I am currently working with AOSP Gingerbread and have created a custom rum for the Nexus One that excludes WiFi and a camera. However, Wi-Fi can still be seen in the settings menu. How to remove it from the settings layout?
Postscript I want the rum to be 100% free of any modules, drivers or libraries of the two. I commented on USE_CAMERA_STUB := false with BoardConfigVendor.mk and replaced all WiFi related definitions with BOARD_HAVE_WIFI := false in BoardConfigCommon.mk before compiling. Is this modification correct or is there a better way to do this?

Thanks.

+4
source share
2 answers

Ok, I just commented on the wifi and wifi settings from wireless_setting.xml and wireless_setting.java to remove them from the settings layout.

+1
source

If you remove the appropriate drivers, then the hardware just doesn't work. The next thing to do is check and decompile your android framework.apk, which is located in the "framework" folder under the "system".
So in the hierarchy it will be system / framework / framework-res.apk

In this structure, you need to delete both java and xml requests for the corresponding function, for example, wifi.xml and framework.jar!

Only this is a suitable way to get rid of these functions once and for all.

0
source

Source: https://habr.com/ru/post/1341068/


All Articles