標籤:pac splay rdl 預設 -- try service rom frame
1、不休眠frameworks/base/packages/SettingsProvider/res/values/defaults.xml裡面60000改成-1,就是不進入休眠。這個檔案還儲存其他預設設定,如:"def_location_providers_allowed" translatable="true">gps"def_location_providers_allowed_network" translatable="true">network"assisted_gps_enabled">true"def_netstats_enabled">true"def_bluetooth_on">true"def_wifi_display_on">false"def_install_non_market_apps">false"def_package_verifier_enable">true"def_dim_screen">false但是這個方法只適合於4.2以前的版本,4.4的版本還要修改以下:修改/frameworks/base/services/java/com/android/server/power/PowerManagerService.java檔案getScreenOffTimeoutLocked()函數:if (mUserActivityTimeoutOverrideFromWindowManager >= 0) { timeout = (int)Math.min(timeout, mUserActivityTimeoutOverrideFromWindowManager); }+ if(mScreenOffTimeoutSetting < 0)+ return mMaximumScreenOffTimeoutFromDeviceAdmin; return Math.max(timeout, MINIMUM_SCREEN_OFF_TIMEOUT);2、移除鎖屏功能./frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.javaprivate boolean mExternallyEnabled = true把mExternallyEnabled 改成false。但是這隻是改了開機預設值,使用者還是可用disableKeyguard/enableKeyGuard來啟動。為確保3rd app無法修改,/frameworks/base/packages/keyguard/src/com/android/keyguard/KeyguradViewMediator.java:private void doKeyguardLocked(Bundle options) { ... if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen");+ // showLocked(options);}3、修改預設語言/build/target/product/core_base.mkPRODUCT_PROPERTY_OVERRIDES := \ ro.config.notification_sound=OnTheHunt.ogg \ ro.config.alarm_alert=Alarm_Classic.ogg \+ persist.sys.language=zh \+ persist.sys.country=CN4.去掉導覽列\frameworks\base\core\res\res\values\config.xmlbool name="config_showNavigationBar">true ------------>true和false控制開關。參考http://m.blog.csdn.net/blog/lcpajj/8850152
Android 4.4 不休眠+不鎖屏+預設中文+去除導覽列