在主屏幕中为 APK 创建快捷方式 [英] Create a shortcut for APK in the Homescreen

查看:30
本文介绍了在主屏幕中为 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.

效果很好.

这篇关于在主屏幕中为 APK 创建快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆