在主屏幕中为APK创建快捷方式
问题描述:
我有一个已编译的APK,在主屏幕上创建快捷方式的解决方法是:
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.
刷新智能手机后,快捷方式是否未在主屏幕上创建?有什么方法可以放置预装APK的快捷方式吗?当然没有代码修改
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
答
我找到的解决方案是:
还反编译
Launcher.apk
.
重新组织XML文件中的图标位置.
重新编译和对APK进行签名.
Decompile the
Launcher.apk
also.
Reorganize the icons positions in the XML file.
Recompile & sign the APK.
它工作正常.