Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize system customization in Android

2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to achieve system customization in Android", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to customize the system in Android.

1. Boot picture:

Android-logo-mask.png

Android-logo-shine.png

These two pictures are one at the top and the other at the bottom.

. / 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 does not have make, you can directly change the picture in frameworks.

Then make directly, otherwise all must be changed and make can only be make firmwar

2. The location of the default boot wallpaper:

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. Neither of these can change the file name.

3. Change the PC machine to delete the text in the hardware kernel

Drivers/usb/gadget/f_mass_storage.c

Fsg- > vendor = "XXXXXXXXXXXXX"

4. Change the volume label:

Bootable/recovery/etc/init.rc

Setprop UserVolumeLabel "XXXXXXXXXXXXX"

Direct packing

5. Modify the screen lock:

(1)

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

60000

Change 60000 to desired time if it is unlocked to-1

(2)

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

Private boolean mExternallyEnabled = true

Modify it to false

In this way, the changes will not go into dormancy.

6. Initialize the 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

You can't pack make directly.

7. Set the initialization home page:

Package/app/Browser/res/values/String.xml

655 lines

The one in the back should be in the bookmark.

8. Set the luminance 0255:

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

Def_screen_brightness-- > the initialization of this value seems to be more than 100.

9. Volume:

Frameworks/base/media/java/android/media/AudioManager.java

The fourth value of the array DEFAULT_STREAM_VOLUME (* * I set it to 30 but it's still 2 frames short of * *-- the default is 11.

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

Mm frameworks/base

10. To set up a Google account, the upper left corner prompts "setting RK2818SDK" and requires it to be changed to "setting W9":

Line 13 of the default.prop file in out/target/product/sdkDemo/root

Change ro.product.model=rk2818sdk to ro.product.model=W9

11. There is no hour display for the recording. The request is increased:

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

(1) in SoundRecorder.java: private void updateTimerView ()

Put String timeStr = String.format (mTimerFormat, time/60, time%60)

Changed to: long hour=time/3600

String timeStr = String.format (mTimerFormat, hour, (time-hour*3600) / 60, time%60)

(2) strings.xml in / res/values is changed to:

D:d:d

12. Remove Bluetooth:

(main screen-> add folder-> Bluetooth received)

Ic_launcher_folder_bluetooth.png (72 / 72):

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

Solution: delete Bluetooth.apk under / out/target/product/sdkDemo/system/app

13. Picture when charging and locking screen:

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

14. When the lock screen is removed, the percentage of charging is displayed as follows:

The contents and parentheses in the lockscreen_plugged_in brackets of strings.xml in frameworks/base/core/res/res/values-zh-rCN!

15. Remove the dynamic desktop background option:

These of AndroidManifest.xml in packages/wallpapers/Basic, such as galaxies, are commented out as follows:

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

Line 79

RK_VER: = xxx

17. Change the interface layout

Location: package/app/Launcher2/res/xml/default_workspace.xml

Note: when you click on any apk in adb shell, it will be output in the background

I/ActivityManager: Starting activity: Intent {act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.estrongs.android.pop/.view.FileExplorerActivity bnds= [294373] [393478]}

I/WindowManager: Setting rotation to 1, animFlags=0

Look at the blue part to find / before the package name / followed by the class name-> this is what you need in default_workspace.xml.

Launcher:packageName= "com.android.browser"

Launcher:className= "com.android.browser.BrowserActivity"

18. How to put the files of pdf class on the desktop

Customers require that their own pdf help documents be placed on the desktop so that guests can directly click and browse.

String urlString = "/ system/app/Nvsbl P4Dv2 English 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 ()

Explain:

First put the pdf document under out/target/product/sdkDemo/system/app

Give the fixed address to urlString and use 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, pictures, etc., but it has not been tried. You can try it if necessary.

Note: this method is not as good as if only a few pictures can be placed, but if the file is larger, it will be packaged.

System.img files can be very large, that is, take up their own system memory-> so it is not recommended!

At this point, I believe you "how to achieve system customization in Android" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report