Search code examples
androidandroid-layoutcompilationandroid-sourcenexus-one

Completely remove WiFi from Android Rom (Including Settings Layout)


I am currently working with AOSP Gingerbread and have built a customized rom for Nexus One which excludes WiFi and Camera. However, WiFi can still be seen in the settings menu. How do I remove it from the settings layout?
P.S. I want the rom to be 100% free of any modules, drivers or libraries from those two. I had commented out USE_CAMERA_STUB := false from BoardConfigVendor.mk and replaced all WiFi related defines with BOARD_HAVE_WIFI := false in BoardConfigCommon.mk before compiling. Is this modification correct or is there a better way to do it?

Thanks.


Solution

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