Android11去掉掉连接偏好里的【蓝牙】、【投射】、【通过蓝牙收到的文件】这三个菜单

碰到一个不要wifi不要蓝牙的项目,客户要求去掉Settings中跟蓝牙相关的功能菜单条目,因为硬件都不贴,所以软件对应也要去掉,因为ic芯片是蓝牙wifi是二合一的,所以其实wifi也是不支持的,这里只讲述去掉蓝牙相关菜单,具体修改如下:packages/apps/Settings目录下

diff --git a/AndroidManifest.xml b/AndroidManifest.xml
old mode 100644
new mode 100755
index 16b29dc..29f878e
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -411,7 +411,7 @@
         
 
         
-        
             
-        
+        
 
         
-        
             
-        
+        
 
         
         
 
-        
@@ -2161,7 +2161,7 @@
             
             
-        
+        
 
         
             
-    
+    
 
     
 
-    
-    
+    
 
 
diff --git a/res/xml/connected_devices_advanced.xml b/res/xml/connected_devices_advanced.xml
old mode 100644
new mode 100755
index 3ff7d99..3fe6140
--- a/res/xml/connected_devices_advanced.xml
+++ b/res/xml/connected_devices_advanced.xml
@@ -19,12 +19,12 @@
     xmlns:settings="http://schemas.android.com/apk/res-auto"
     android:title="@string/connected_device_connections_title">
 
-    
+        android:order="-9"/-->
 
     
 
-    
+        settings:keywords="@string/keywords_wifi_display_settings"/ -->
 
     
 
-    
+        android:title="@string/bluetooth_show_files_received_via_bluetooth"/ -->
 
     

你可能感兴趣的:(android,java,平板)