从 Android Rom 中彻底删除 WiFi(包括设置布局)
我目前正在与 AOSP Gingerbread 合作,并为 Nexus One 构建了一个定制的 ROM,其中不包括 WiFi 和相机。 不过,在设置菜单中仍然可以看到WiFi。 如何将其从设置布局中删除?
PS 我希望 ROM 100% 不含这两个模块、驱动程序或库。 在编译之前,我已从 BoardConfigVendor.mk 中注释掉了 USE_CAMERA_STUB := false
,并用 BoardConfigCommon.mk 中的 BOARD_HAVE_WIFI := false
替换了所有与 WiFi 相关的定义。 此修改是否正确,或者是否有更好的方法?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果删除适当的驱动程序,那么硬件将无法工作。
接下来要做的就是检查并反编译你的 android Framework.apk,它位于“system”下的“framework”文件夹中。
因此,在层次结构中,它将是 system/framework/framework-res.apk
在这个框架中,您必须删除针对适当功能的 java 和 xml 查询,即 wifi.xml 和 Framework.jar!
只有这样才能一劳永逸地摆脱这些功能。
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.
好的,我只是从 wireless_setting.xml 和 wireless_setting.java 中注释掉了 wifi 和 wifi 设置,以将它们从设置布局中删除。
Ok, I just commented out wifi and wifi settings from wireless_setting.xml and wireless_setting.java to remove them from the settings layout.