Android System Customization Tips (Network collection)

Source: Internet
Author: User
Tags locale

1 Boot Image:

Android-logo-mask.png

Android-logo-shine.png

These two pictures one in the previous next

./out/target/common/obj/java_libraries/android_stubs_current_intermediates/classes/assets/images/ Android-logo-shine.png

./frameworks/base/core/res/assets/images/android-logo-shine.png

Note: If the source code is not made, you can change the image in frameworks directly.

Then make a direct make otherwise must be completely changed and cannot make only make Firmwar

2 Default boot wallpaper location:

Default_wallpaper.jpg

./out/target/common/obj/java_libraries/android_stubs_current_intermediates/classes/res/drawable/default_ Wallpaper.jpg

./frameworks/base/core/res/res/drawable/default_wallpaper.jpg

Note: This setting is the same as above and neither of them can change the file name

3 Change PC Machine Delete hardware in text kernel

Drivers/usb/gadget/f_mass_storage.c

Fsg->vendor = "Xxxxxxxxxxxxx";

4 Changing the volume label:

Bootable/recovery/etc/init.rc

SetProp Uservolumelabel "Xxxxxxxxxxxxx"

Direct packaging

5 Modify the Screen lock:

(1)

Frameworks/base/packages/settingsprovider/res/values/defaults.xml

60000

60000 change to the desired time if it is not locked to-1

(2)

Frameworks/policies/base/phone/com/android/internal/policy/impl/keyguardviewmediator.java

Private Boolean mexternallyenabled = true;

Modify it to False

So the change won't go into hibernation anymore.

6 Initialization language:

Out/target/product/sdkdemo/root/default.prop

Rkdroid2.1/recovery/default.prop

Ro.product.locale.language = Es_es

Ro.product.locale.region = Es_es

Cannot make a direct package

7 Setting Initialization home page:

Package/app/browser/res/values/string.xml

655 rows

The back should be in the bookmark.

8 Setting the Brightness 0~255:

Frameworks/base/packages/settingsprovider/res/values/defaults.xml

Def_screen_brightness--> This value is initialized as if it were over 100.

9 Volume:

Frameworks/base/media/java/android/media/audiomanager.java

Array Default_stream_volume 4th value (Max I set to 30 but still 2 to max--default is 11

It is recommended that all values in the array be set to the maximum OK)

MM Frameworks/base

10 set up a Google account, the top left corner prompts "setting up Rk2818sdk", the request is changed to "Setting Up W9":

13th line of Default.prop file in Out/target/product/sdkdemo/root

RO.PRODUCT.MODEL=RK2818SDK Change to Ro.product.model=w9

11 recordings are displayed without hours. Requirements Increase:

Packages/apps/soundrecorder/src/com/android/soundrecorder

(1) Soundrecorder.java: private void Updatetimerview ()

Put String timestr = String.Format (Mtimerformat, TIME/60, time%60);

instead: Long hour=time/3600;

String timestr = String.Format (Mtimerformat, Hour, (time-hour*3600)/60, time%60);

(2)/res/values strings.xml instead of:

%02d:%02d:%02d

12 Remove Bluetooth:

(Main interface, add Folder->bluetooth received)

Ic_launcher_folder_bluetooth.png (72*72):

In/packages/apps/bluetooth/res/drawable-hdpi

Workaround: Delete the bluetooth.apk under/out/target/product/sdkdemo/system/app

13 Charge Lock screen when picture:

Frameworks/base/core/res/res/drawable-hdpi:ic_lock_idle_charging.png

14 Display the charge percentage when the lock screen is removed:

FRAMEWORKS/BASE/CORE/RES/RES/VALUES-ZH-RCN the contents and parentheses of strings.xml in the lockscreen_plugged_in brackets!!

15 Remove the Dynamic desktop background option:

These packages/wallpapers/basic in androidmanifest.xml, such as galaxies, comment out the following:

<service< p= "" >

Android:label= "@string/wallpaper_galaxy"

Android:name= "Com.android.wallpaper.galaxy.GalaxyWallpaper"

android:permission= "Android.permission.BIND_WALLPAPER" >

16 Change the version number:

Build/core/makefile

79 rows

Rk_ver: = xxx

17 changing the layout of the interface

Location: Package/app/launcher2/res/xml/default_workspace.xml

Note: In the ADB shell when you click on any of the APK, the background will output

I/activitymanager (728): Starting activity:intent {Act=android.intent.action.main cat=[ Android.intent.category.LAUNCHER] flg=0x10200000 Cmp=com.estrongs.android.pop/.view. Fileexploreractivity bnds=[294,373][393,478]}

I/windowmanager (728): Setting rotation to 1, animflags=0

Look at the blue section can be found/before the package name/followed by the class name--this is in the default_workspace.xml need to use

Launcher:packagename= "Com.android.browser"

Launcher:classname= "Com.android.browser.BrowserActivity"

18 How to put a PDF class file on the desktop

Customers are asked to place their own PDF help documents on the desktop so that guests can browse directly by clicking on them

String urlstring = "/SYSTEM/APP/NVSBL p4dv2 中文版 manual.pdf";

Intent Intent = new Intent ();

Intent.setaction (Android.content.Intent.ACTION_VIEW);

Intent.setdataandtype (Uri.fromfile (New File (urlstring)), "application/pdf");

StartActivity (Intent);

Finish ();

Explained below:

First put the PDF document under Out/target/product/sdkdemo/system/app

Give the fixed address to the urlstring, using the intent

Intent.setaction (Android.content.Intent.ACTION_VIEW); start VIEW

Intent.setdataandtype (Uri.fromfile (New File (urlstring)), "application/pdf");

Application/pdf can specify other formats including audio, video, picture, etc. but I haven't tried it, but you can try it.

Note: This method is not enough if only a few pictures can be placed, but if the file is relatively large, then packaged

The system.img file will be very large, that is, it consumes its own system memory-----> so it is not recommended!

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.