Android6.0 Home Customization

Source: Internet
Author: User

Target

Customize your home to fit your in-car control screen

Case 1

Remove the home from the system. The built-in APK is implanted.

Case 1 Effect

the test was successful. But for users to download their own custom home again powerless.

The original home called Launcher2, the apk deleted directly, put in their own compiled apk to Priv-app can.

Case 2

Create a new intent home category. All system calls are changed to call the private category.

Case 2 Effect

The test was successful. Users who download the custom home APP are not valid because of the category.

Experience Points:

    • The framework iterates through all the files, finds the source code related to the home category, and replaces it with the private category.
    • The SDK has changed since the new category was appended to the intent. The UPDATE-API command needs to be executed before compiling.
    • Where the test directory of the home category related to the source code modified compilation error, the mechanism has not been thoroughly investigated, the test directory changed back to no impact.
    • CORE.MK all the modules to be compiled, if you want to add a custom apk source code, the file will also need to append the compilation directory.
    • After the modification is complete, the simulator starts the process of reporting inexplicable errors. It seems that the code is added to the custom apk to solve the problem.
   <PermissionAndroid:name= "Com.android.launcher.permission.PRELOAD_WORKSPACE"Android:permissiongroup= "Android.permission-group.system_tools"Android:protectionlevel= "Signatureorsystem" />    <PermissionAndroid:name= "Com.android.launcher.permission.INSTALL_SHORTCUT"Android:permissiongroup= "Android.permission-group.system_tools"Android:protectionlevel= "Dangerous" />    <PermissionAndroid:name= "Com.android.launcher.permission.UNINSTALL_SHORTCUT"Android:permissiongroup= "Android.permission-group.system_tools"Android:protectionlevel= "Dangerous"/>    <PermissionAndroid:name= "Com.android.launcher.permission.READ_SETTINGS"Android:permissiongroup= "Android.permission-group.system_tools"Android:protectionlevel= "normal"/>    <PermissionAndroid:name= "Com.android.launcher.permission.WRITE_SETTINGS"Android:permissiongroup= "Android.permission-group.system_tools"Android:protectionlevel= "Signatureorsystem"/>

    <uses-permissionAndroid:name= "Android.permission.CALL_PHONE" />    <uses-permissionAndroid:name= "Android.permission.SET_WALLPAPER" />    <uses-permissionAndroid:name= "Android.permission.SET_WALLPAPER_HINTS" />    <uses-permissionAndroid:name= "Android.permission.VIBRATE" />    <uses-permissionAndroid:name= "Android.permission.BIND_APPWIDGET" />    <uses-permissionAndroid:name= "Android.permission.GET_ACCOUNTS" />    <uses-permissionAndroid:name= "Com.android.launcher.permission.READ_SETTINGS" />    <uses-permissionAndroid:name= "Com.android.launcher.permission.WRITE_SETTINGS" />

Android6.0 Home Customization

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.