开发者

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 开发者_StackOverflow社区with BOARD_HAVE_WIFI := false in BoardConfigCommon.mk before compiling. Is this modification correct or is there a better way to do it?

Thanks.


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


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

In this framework you have to both delete the java and xml queries towards the appropriate function, so i.e. wifi.xml and the framework.jar!

Only this is the appropriate way to get rid of those functions for once and for all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜