简体   繁体   English

从Android Rom完全删除WiFi(包括设置布局)

[英]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. 我目前正在与AOSP Gingerbread合作,并为Nexus One构建了自定义的rom,其中不包括WiFi和Camera。 However, WiFi can still be seen in the settings menu. 但是,仍然可以在设置菜单中看到WiFi。 How do I remove it from the settings layout? 如何将其从设置布局中删除?
PS I want the rom to be 100% free of any modules, drivers or libraries from those two. PS我希望rom 100%没有这两个模块中的任何模块,驱动程序或库。 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. 我从USE_CAMERA_STUB := false注释掉了USE_CAMERA_STUB := false ,并在编译之前在BoardConfigCommon.mk中将所有与WiFi相关的定义替换为BOARD_HAVE_WIFI := false Is this modification correct or is there a better way to do it? 此修改正确还是有更好的方法呢?

Thanks. 谢谢。

好的,我只是从wireless_setting.xml和wireless_setting.java中注释掉了wifi和wifi设置,以将它们从设置布局中删除。

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". 接下来要做的是检查并反编译位于“系统”下“框架”文件夹中的android framework.apk。
So in hierarchy it would be system/framework/framework-res.apk 因此,在层次结构中,它将是system / framework / framework-res.apk

In this framework you have to both delete the java and xml queries towards the appropriate function, so ie wifi.xml and the framework.jar! 在这个框架中,您必须同时删除针对相应功能的Java和xml查询,即wifi.xml和framework.jar!

Only this is the appropriate way to get rid of those functions for once and for all. 只有这样才是彻底摆脱这些功能的合适方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM