Android 4.4 does not hibernate + do not lock screen + default Chinese + remove navigation bar

Source: Internet
Author: User

1, do not sleep frameworks/base/packages/settingsprovider/res/values/defaults.xml inside 60000 change to 1, is not into hibernation. This file also holds other default settings, such as: "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 but this method is only suitable for versions older than 4.2, and the 4.4 version also modifies the following: Modify/frameworks/base/services/java/com/ Android/server/power/powermanagerservice.java file getscreenofftimeoutlocked () function: if ( Museractivitytimeoutoverridefromwindowmanager >= 0) {timeout = (int) math.min (timeout, Museractivitytimeouto        Verridefromwindowmanager); }+ if (mscreenofftimeoutsetting < 0)+ return mmaximumscreenofftimeoutfromdeviceadmin;Return Math.max (timeout, minimum_screen_off_timeout), 2, remove the lock screen function./frameworks/base/packages/keyguard/src/com/android /keyguard/keyguardviewmediator.javaprivate Boolean mexternallyenabled = True to change the mexternallyenabled to false. But this just changed the boot default value, the user can still use Disablekeyguard/enablekeyguard to start. To ensure that the 3rd app cannot be modified,/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, modify the default language/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. Remove the navigation bar \frameworks\base\core\res\res\values\config.xmlbool name= "Config_shownavigationbar" >true------------ >true and false control switches. Reference http://m.blog.csdn.net/blog/lcpajj/8850152

Android 4.4 does not hibernate + do not lock screen + default Chinese + remove navigation bar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.