阅读:2112回复:0
提个禁用bt的方案
android 9.0
1. features上禁用: manifest内删除,可是我删除后pm list features查看,bt仍然在,何解? ifeq ($(BOARD_HAVE_BLUETOOTH), true) DEVICE_MANIFEST_FILE := device/amlogic/common/products/mbox/manifest/manifest_aosp.xml elseDEVICE_MANIFEST_FILE := device/amlogic/common/products/mbox/manifest/manifest_aosp_no_bt.xml endif 2. 开机不开启bt:default_bt_on=false 3. hal: 不编译 ifeq ($(BUILD_WITH_BT),true) BOARD_HAVE_BLUETOOTH := true BLUETOOTH_MODULE := RTKBT include hardware/amlogic/bluetooth/configs/bluetooth.mk else BOARD_HAVE_BLUETOOTH := false PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.disable_bt=true endif 4. 因为1的疑问,只能加了3中的persist.sys.disable_bt,在systemserver中的has bt feature时加上这个判断,禁用BluetoothService 5. settings菜单内,同样使用persist.sys.disable_bt禁用bt相关的选项就好了 其它:待补充... |
|