true 自动关屏 开 def_airplane_mode_on">false 飞行模式 关 def_def_networks_available_notification_on">
赞
踩
在 \frameworks\base\packages\SettingsProvider\res\values\defaults.xml 文件里定义的开关 如下:
<bool name="def_dim_screen">true</bool> 自动关屏 开
<bool name="def_airplane_mode_on">false</bool> 飞行模式 关
<bool name="def_auto_time">true</bool> 自动适应时间 开
<bool name="def_accelerometer_rotation">true</bool>
<bool name="def_screen_brightness_automatic_mode">true</bool> 自动亮度调节
<bool name="def_haptic_feedback">false</bool> 触动反馈 关
<bool name="def_bluetooth_on">false</bool> 蓝牙 关
<bool name="def_install_non_market_apps">false</bool> 安装非市场apk 关
<bool name="assisted_gps_enabled">true</bool> gps定位 关
<bool name="def_usb_mass_storage_enabled">true</bool> usb存储模式 开
<bool name="def_wifi_on">false</bool> wifi 关
<bool name="def_networks_available_notification_on">true</bool>
<bool name="def_backup_enabled">true</bool> 保存 开
<bool name="def_notification_pulse">true</bool> 震动提醒 开
<bool name="def_mount_play_notification_snd">false</bool>
<bool name="def_mount_ums_autostart">false</bool> 自动重启 关
<bool name="def_mount_ums_prompt">true</bool>
<bool name="def_mount_ums_notify_enabled">true</bool>
<bool name="def_notifications_use_ring_volume">true</bool> 声音提醒 开
<bool name="def_vibrate_in_silent">true</bool> 无声震动
<bool name="def_device_provisioned">true</bool> 设置提供
<!-- Default for time mode 12 or 24 pattern -->
<string name="def_time_12_24">24</string> 设置时间格式 24小时制还是12小时制
<integer name="def_screen_off_timeout">60000</integer> 自动关屏幕时间 1分钟
<!-- Default screen brightness, from 0 to 255. 102 is 40%. -->
<integer name="def_screen_brightness">216</integer> 屏幕亮度
<integer name="def_network_preference">1</integer> 网络默认选择 第一项
<integer name="def_power_sounds_enabled">1</integer> 低电量声音 开
<integer name="def_dock_sounds_enabled">0</integer>
<integer name="def_lockscreen_sounds_enabled">0</integer> 锁屏声音 关
备注:
此数据库由:frameworks\base\packages\SettingsProvider\src\com\android\providers\settings\DatabaseHelper.java 创建,
其默认初始值位置:frameworks\base\packages\SettingsProvider\res\values\defaults.xml
附:本文来自http://blog.csdn.net/wh_19910525/article/details/8041580
本人已在android4.1上更改成功默认时间格式为24小时制
更改默认输入法为搜狗输入法
diff --git a/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/frameworks/base/packages/SettingsProvider/res/values/default
index e0c4573..9173218 100755
--- a/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
+++ b/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -63,7 +63,7 @@
<bool name="def_mount_ums_autostart">false</bool>
<bool name="def_mount_ums_prompt">true</bool>
<bool name="def_mount_ums_notify_enabled">true</bool>
-
+ <string name="config_default_input_method" translatable="false">com.android.inputmethod.pinyin/.PinyinIME</string>
<!-- user interface sound effects -->
<integer name="def_power_sounds_enabled">1</integer>
<string name="def_low_battery_sound" translatable="false">/system/media/audio/ui/LowBattery.ogg</string>
diff --git a/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/frameworks/base/packages/Sett
index 89f2fdb..1013eff 100755
--- a/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -1597,7 +1597,10 @@ public class DatabaseHelper extends SQLiteOpenHelper {
loadBooleanSetting(stmt, Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
R.bool.def_networks_available_notification_on);
-
+
+ loadStringSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD,
+ R.string.config_default_input_method );
+
String wifiWatchList = SystemProperties.get("ro.com.android.wifi-watchlist");
if (!TextUtils.isEmpty(wifiWatchList)) {
loadSetting(stmt, Settings.Secure.WIFI_WATCHDOG_WATCH_LIST, wifiWatchList);
(END)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。