从备份恢复应用程序时出现问题
我有一个 root 的 Android 手机,我正在开发一个应用程序,它将 SD 卡中安装的应用程序备份到 PC。我能够成功地将应用程序从 SD 卡备份到 PC。从备份恢复应用程序时,我将与应用程序相关的所有文件(asec、pkg、缓存、数据)恢复到原来的位置,包括权限。当我重新启动或重新启动启动器时,应用程序不会显示为已安装。相反,asec 或 pkg 在(重新启动)/(重新启动启动器)后被刷新。
应该怎样做才能使应用程序在恢复后显示为已安装?
I have a rooted android phone, I am working on an app which does backup of application installed in sdcard to PC. I am able to successfully backup the application from sdcard to PC. While restoring the application from the backup, I restored all files(asec,pkg,cache,data) pertaining to the application in the exact same place they were, including the permissions. When i reboot or restart the launcher the application does not show up as installed. Instead asec or pkg are getting flushed after (reboot)/(restart of launcher).
What should be done to make the application show up as installed after restoring?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
明白了,使用 pm 有助于解决这个问题。
Got it, using pm helped the cause.