本操作使用于使用OK3588 并使用电池供电的方式。 1.打开frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java文件 2.进行如下修改 --- a/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -2253,6 +2253,9 @@ class DatabaseHelper extends SQLiteOpenHelper { // Set default tty mode loadSetting(stmt, Settings.System.TTY_MODE, 0); + //Default display battery percentage + loadSetting(stmt, Settings.System.SHOW_BATTERY_PERCENT, 1);//设置默认显示电池百分比 + loadIntegerSetting(stmt, Settings.System.SCREEN_BRIGHTNESS, R.integer.def_screen_brightness); |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 05:14
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.