Android 4.0 default setting modification, android4.0

Source: Internet
Author: User

Android 4.0 default setting modification, android4.0
1. Modify the default Wallpaper:
Frameworks/base/core/res/drawable-xlarge-nodpi/default_wallpaper.jpg. Change the image at the same speed to default_wallpaper.jpg.
2. If you want to add your own wallpaper.
Packages/apps/Launcher2/res/values-sw600dp/wallpapers. xml add our modified wallpaper in it
<Item> wallpaperName </item>
3. added 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 to add
<! -- Display settings. The delay in inactivity before the screen is turned off. These are 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 minutes" </item>
+ <Item msgid = "6864027952847611413"> "never" </item>
4. Modify the default configuration.
Modify frameworks/base/packages/SettingsProvider/res/values/defaults. xml
<Bool name = "def_dim_screen"> true </bool>: automatically turn off the screen
<Bool name = "def_airplane_mode_on"> false </bool> off in flight mode
<Bool name = "def_auto_time"> true </bool> automatically adapts to time on
<Bool name = "def_accelerometer_rotation"> true </bool>
<Bool name = "def_screen_brightness_automatic_mode"> true </bool> automatic brightness adjustment
<Bool name = "def_haptic_feedback"> false </bool>
<Bool name = "def_effecth_on"> false </bool>
<Bool name = "def_install_non_market_apps"> false </bool> install a non-market apk
<Bool name = "assisted_gps_enabled"> true </bool> gps Positioning
<Bool name = "def_usb_mass_storage_enabled"> true </bool> enabled in usb storage mode
<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>
<Bool name = "def_notification_pulse"> true </bool>
<Bool name = "def_mount_play_notification_snd"> false </bool>
<Bool name = "def_mount_ums_autostart"> false </bool>
<Bool name = "def_mount_ums_prompt"> true </bool>
<Bool name = "def_mount_ums_policy_enabled"> true </bool>
<Bool name = "def_notifications_use_ring_volume"> true </bool> Voice Reminder
<Bool name = "def_vibrate_in_silent"> true </bool> silent Vibration
<Bool name = "def_device_provisioned"> true </bool>
<! -- Default for time mode 12 or 24 pattern -->
<String name = "def_time_12_24"> 24 </string> specifies whether the time format is in the 24-hour or 12-hour format.
<Integer name = "def_screen_off_timeout"> 60000 </integer> automatically shut down the screen for 1 minute
<! -- 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> the first option is selected by default.
<Integer name = "def_power_sounds_enabled"> 1 </integer> low-power voice on
<Integer name = "def_dock_sounds_enabled"> 0 </integer>
<Integer name = "def_lockscreen_sounds_enabled"> 0 </integer> lock screen sound off

5. The 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 corresponding java code.
In frameworks \ base \ packages \ SettingsProvider \ src \ com \ android \ providers \ settings \ DatabaseHelper. java
Find the loadSystemSettings () function in the file and add a row to the function.
LoadStringSetting (stmt, Settings. System. TIME_12_24, R. string. time_12_24 );
6. Remove screen unlocking
Modify private boolean mExternallyEnabled = false in frameworks/base/policy/src/com/android/internal/policy/impl/KeyguardViewMediator. java;



































Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.