Android 4.4 不休眠+不鎖屏+預設中文+去除導覽列

來源:互聯網
上載者:User

標籤: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 不休眠+不鎖屏+預設中文+去除導覽列

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.