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