如何将"设置->开发者选项"这个菜单的总开关默认设置为Off”
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
在进入“设置->开发者选项”这个菜单后,系统默认该菜单项的总开关为On,如果想改为Off,可以
做如下修改,使得Switch开关默认为Off。
[SOLUTION]
在
alps/packages/apps/settings/src/com/android/settings/DevelopmentSettings.j
ava中的onResume()方法中
将如下代码注释掉:
/*
if (mHaveDebugSettings && !mLastEnabledState) {
// Overall debugging is disabled, but there are some debug
// settings that are enabled. This is an invalid state. Switch
// to debug settings being enabled, so the user knows there is
// stuff enabled and can turn it all off if they want.
Settings.Global.putInt(getActivity().getContentResolver(),
Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1);
mLastEnabledState = true;
mEnabledSwitch.setChecked(mLastEnabledState);
setPrefsEnabledState(mLastEnabledState);
}
*/
在进入“设置->开发者选项”这个菜单后,系统默认该菜单项的总开关为On,如果想改为Off,可以
做如下修改,使得Switch开关默认为Off。
[SOLUTION]
在
alps/packages/apps/settings/src/com/android/settings/DevelopmentSettings.j
ava中的onResume()方法中
将如下代码注释掉:
/*
if (mHaveDebugSettings && !mLastEnabledState) {
// Overall debugging is disabled, but there are some debug
// settings that are enabled. This is an invalid state. Switch
// to debug settings being enabled, so the user knows there is
// stuff enabled and can turn it all off if they want.
Settings.Global.putInt(getActivity().getContentResolver(),
Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1);
mLastEnabledState = true;
mEnabledSwitch.setChecked(mLastEnabledState);
setPrefsEnabledState(mLastEnabledState);
}
*/
装作我也看得懂的样子
小编。能请教一点关于OTA升级的问题么
学习了
怎么去掉这个选项呢
学些了~~~~~~~~~~