您的位置:首页 > 教育 > 锐评 > 网站用户管理系统_茂名建站公司_招聘网站排名_武汉百度推广代运营

网站用户管理系统_茂名建站公司_招聘网站排名_武汉百度推广代运营

2025/1/15 21:01:01 来源:https://blog.csdn.net/u010823818/article/details/142205850  浏览:    关键词:网站用户管理系统_茂名建站公司_招聘网站排名_武汉百度推广代运营
网站用户管理系统_茂名建站公司_招聘网站排名_武汉百度推广代运营

android8.1去掉蓝牙相关设置:
第1步:/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

     <fraction name="def_window_transition_scale">100%</fraction><bool name="def_haptic_feedback">true</bool>
-    <bool name="def_bluetooth_on">true</bool>
+    <bool name="def_bluetooth_on">false</bool>   //false默认关闭<bool name="def_wifi_display_on">false</bool><bool name="def_install_non_market_apps">true</bool><bool name="def_package_verifier_enable">false</bool>

第2步:删除下拉菜单中的bt:
frameworks/base/packages/SystemUI/res/values/config.xml

     <!-- The default tiles to display in QuickSettings --><string name="quick_settings_tiles_default" translatable="false">
-        wifi,bt,dnd,flashlight,rotation,cell,airplane,cast
+        wifi,dnd,flashlight,rotation,cell,airplane,cast</string>	

第3步:packages/apps/Settings/res/xml/connected_devices.xml

     android:title="@string/connected_devices_dashboard_title">
-    <com.android.settings.widget.MasterSwitchPreference
+    <!--<com.android.settings.widget.MasterSwitchPreferenceandroid:key="toggle_bluetooth"android:title="@string/bluetooth_settings_title"android:icon="@drawable/ic_settings_bluetooth"
-      android:order="-7"/>
+      android:order="-7"/>-->

第4步:packages/apps/Settings/src/com/android/settings/SettingsActivity.java

         somethingChanged = setTileEnabled(new ComponentName(packageName,Settings.BluetoothSettingsActivity.class.getName()),
-                pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH), isAdmin)
+                false/*pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)*/, isAdmin)|| somethingChanged;boolean isDataPlanFeatureEnabled = FeatureFactory.getFactory(this)

第5步:packages/apps/Settings/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragment.java

@@ -79,12 +79,12 @@ public class ConnectedDeviceDashboardFragment extends DashboardFragment {controllers.add(new YFcamerafaceSwitchPreferenceController(context, "camera_face_switch"));controllers.add(new YFcameramirrorSwitchPreferenceController(context, "camera_mirror_switch"));controllers.add(new YFcamerarotationPreferenceController(context, "camera_rotation"));
-        final BluetoothMasterSwitchPreferenceController bluetoothPreferenceController =
-                new BluetoothMasterSwitchPreferenceController(
-                        context, Utils.getLocalBtManager(context), this,
-                        (SettingsActivity) getActivity());
-        lifecycle.addObserver(bluetoothPreferenceController);
-        controllers.add(bluetoothPreferenceController);
+        //final BluetoothMasterSwitchPreferenceController bluetoothPreferenceController =
+        //        new BluetoothMasterSwitchPreferenceController(
+        //                context, Utils.getLocalBtManager(context), this,
+        //                (SettingsActivity) getActivity());
+        //lifecycle.addObserver(bluetoothPreferenceController);
+        //controllers.add(bluetoothPreferenceController);@@ -152,7 +153,7 @@ public class ConnectedDeviceDashboardFragment extends DashboardFragment {keys.add(NfcPreferenceController.KEY_TOGGLE_NFC);keys.add(NfcPreferenceController.KEY_ANDROID_BEAM_SETTINGS);}
-                    keys.add(BluetoothMasterSwitchPreferenceController.KEY_TOGGLE_BLUETOOTH);
+                    //keys.add(BluetoothMasterSwitchPreferenceController.KEY_TOGGLE_BLUETOOTH);SmsMirroringFeatureProvider smsMirroringFeaturePro

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com