Android 7.0 移除設定中的某些項(輔助功能、流量使用情況、位置資訊)(MTK)

JiangzhouHe1發表於2018-10-10

--- a/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
+++ b/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
@@ -1087,9 +1087,10 @@ public class SettingsActivity extends SettingsDrawerActivity
                 Settings.BluetoothSettingsActivity.class.getName()),
                 pm.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH), isAdmin, pm);
 
-        setTileEnabled(new ComponentName(packageName,
+        /*setTileEnabled(new ComponentName(packageName,
                 Settings.DataUsageSummaryActivity.class.getName()),
                 Utils.isBandwidthControlEnabled(), isAdmin, pm);
+       */
 
         setTileEnabled(new ComponentName(packageName,
                 Settings.SimSettingsActivity.class.getName()),
@@ -1160,6 +1161,9 @@ public class SettingsActivity extends SettingsDrawerActivity
         setTileEnabled(new ComponentName(packageName, Settings.UserSettingsActivity.class.getName()), false, isAdmin, pm);
         setTileEnabled(new ComponentName(packageName, Settings.AccountSettingsActivity.class.getName()), false, isAdmin, pm);
         setTileEnabled(new ComponentName(packageName, Settings.PrintSettingsActivity.class.getName()), false, isAdmin, pm);
+       setTileEnabled(new ComponentName(packageName, Settings.DataUsageSummaryActivity.class.getName()),false, isAdmin, pm);
+       setTileEnabled(new ComponentName(packageName, Settings.LocationSettingsActivity.class.getName()), false, isAdmin, pm);
+        setTileEnabled(new ComponentName(packageName, Settings.AccessibilitySettingsActivity.class.getName()), false, isAdmin, pm);
         /*************************************/
     }

相關文章