Create a shortcut for APK in the Homescreen

ⅰ亾dé卋堺 提交于 2020-01-17 04:30:10

问题


I have a compiled APK and My workaround to make a shortcut at the home screen is :

 1- Decode the apk with apktool.jar
 2- Modify AndroidManifest (add the <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> )
 3- Recompile the apk and put it in the system.img
 4- with yaffey tool i replaced the file and calculate the CRC.

After flashing the smartphone the shortcut is not created on the Homescreen? is there any way to place the shortcut for preinstalled APK ? without code modding of course


回答1:


The solution I found is to :

Decompile the Launcher.apk also.
Reorganize the icons positions in the XML file.
Recompile & sign the APK.

It works fine.



来源:https://stackoverflow.com/questions/24349751/create-a-shortcut-for-apk-in-the-homescreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!