Android 7.0 移除设置中的某些项(辅助功能、流量使用情况、位置信息)(MTK)

--- 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);
         /*************************************/
     }

你可能感兴趣的:(mtk_android)