Android 4.0 Default Settings modified

Source: Internet
Author: User

1 Modify Default Wallpaper:
Frameworks/base/core/res/res/drawable-xlarge-nodpi/default_wallpaper.jpg, find a picture of the same resolution to change to default_wallpaper.jpg replacement.
2. If you want to add your own wallpaper.
Packages/apps/launcher2/res/values-sw600dp/wallpapers.xml in which we modified the wallpaper
<item>wallpaperName</item>
3. Increase the Never sleep option:
1) Set Def_screen_off_timeout to-1 in frameworks/base/packages/settingsprovider/res/values/defaults.xml;
2) Modify Packages/apps/settings/res/values/arrays.xml increase
<!--Display settings. The delay in inactivity before the screen is turned off. These is shown ain a list dialog. -
<string-array name= "Screen_timeout_entries" >
<item>30 minutes</item>
+ <item>never</item>
</string-array>

<!--do not translate. -
<string-array name= "Screen_timeout_values" translatable= "false" >
<!--do not translate. -
<item>1800000</item>
+ <item>-1</item>
</string-array>
3) Modify Packages/apps/settings/res/values-zh-rcn/arrays.xml
</string-array>
<string-array name= "Screen_timeout_entries" >
<item msgid= "6864027152847611413" > "30 min" </item>
+ <item msgid= "6864027952847611413" > "Never" </item>
4. Default configuration modification.
Modify Frameworks/base/packages/settingsprovider/res/values/defaults.xml
<bool name= "Def_dim_screen" >true</bool> auto off screen on
<bool name= "def_airplane_mode_on" >false</bool> airplane mode off
<bool name= "Def_auto_time" >true</bool> automatic adaptation Time Open
<bool name= "Def_accelerometer_rotation" >true</bool>
<bool name= "Def_screen_brightness_automatic_mode" >true</bool> Auto Brightness adjustment
<bool name= "Def_haptic_feedback" >false</bool> touch feedback off
<bool name= "def_bluetooth_on" >false</bool> Blue Trismus
<bool name= "Def_install_non_market_apps" >false</bool> install non-market apk off
<bool name= "assisted_gps_enabled" >true</bool> GPS positioning off
<bool name= "def_usb_mass_storage_enabled" >true</bool> USB storage mode on
<bool name= "def_wifi_on" >false</bool> WiFi off
<bool name= "def_networks_available_notification_on" >true</bool>
<bool name= "def_backup_enabled" >true</bool> Save Open
<bool name= "Def_notification_pulse" >true</bool> vibration Alert Open
<bool name= "Def_mount_play_notification_snd" >false</bool>
<bool name= "Def_mount_ums_autostart" >false</bool> auto restart off
<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> sound alert on
<bool name= "def_vibrate_in_silent" >true</bool> silent Vibration
<bool name= "def_device_provisioned" >true</bool> settings provided
<!--Default for TIME mode----
<string name= "def_time_12_24" >24</string> set time format 24-hour or 12-hour system
<integer name= "def_screen_off_timeout" >60000</integer> auto off screen time 1 min
<!--Default screen brightness, from 0 to 255. 102 is 40%. -
<integer name= "def_screen_brightness" >216</integer> screen brightness
<integer name= "def_network_preference" >1</integer> Network default selection first item
<integer name= "def_power_sounds_enabled" >1</integer> low battery sound open
<integer name= "def_dock_sounds_enabled" >0</integer>
<integer name= "def_lockscreen_sounds_enabled" >0</integer> lock screen Sound off

5. Default 24-hour format.
In Frameworks/base/packages/settingsprovider/res/values/defaults.xml
Add a line to the file <string name= "time_12_24" translatable= "true" >24</string>
Then modify the appropriate Java code.
In Frameworks\base\packages\settingsprovider\src\com\android\providers\settings\databasehelper.java
Find the Loadsystemsettings () function in the file and add a line to the function.
Loadstringsetting (stmt, Settings.System.TIME_12_24, r.string.time_12_24);
6. Remove the screen unlock
Modify Private Boolean in Frameworks/base/policy/src/com/android/internal/policy/impl/keyguardviewmediator.java mexternallyenabled = false;



































Android 4.0 Default Settings modified

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.