从自定义管理员应用运行Android系统应用自定义、管理员、系统、Android

由网友(温九思)分享简介:我写一个管理员应用会从我的网站下载最新的更新的应用程序并安装。做安装,我发现的唯一方法是调用使用starActivity安装程序包()。传递控制权交给系统安装的应用程序是非常合情合理的,但它也与管理应用的用户体验的干扰。我如何才能让我的用户管理应用内同时与系统安装的应用程序进行交互?或者至少恢复到自己的管理程序后,他们...

我写一个管理员应用会从我的网站下载最新的更新的应用程序并安装。做安装,我发现的唯一方法是调用使用starActivity安装程序包()。传递控制权交给系统安装的应用程序是非常合情合理的,但它也与管理应用的用户体验的干扰。我如何才能让我的用户管理应用内同时与系统安装的应用程序进行交互?或者至少恢复到自己的管理程序后,他们退出系统安装应用程序?这个问题确实适用,任何时候你需要弹出一个系统的应用做一些事情。你怎么preserve用于启动该系统的应用程序应用程序的用户体验?

I am writing an Admin App that will download the latest updated app from my website and install. The only way to do the install that I have found is to invoke the package installer using a starActivity(). Passing control over to the System Installer app makes perfect sense, but it also interferes with the user experience of the admin app. How can I keep the user inside my admin app while interacting with the System Installer app? Or at least return to my Admin app after they exit the System Installer app? This question really applies anytime you need to pop up a system app to do something. How do you preserve the user experience of the app that launches the system app?

推荐答案

没有系统安装程序无法安装的应用程序,这将是一个严重的安全隐患 - 你可以绕过显示所需的权限列表。 (Root权限的装置,它通过文件系统操作是可能的)。

You cannot install applications without the system installer, it would be a serious security risk - you could bypass showing the list of required permissions. (On rooted devices, it is possible via filesystem operations).

用户可以通过返回键返回到您的应用程序安装后(见的有关任务和活动栈这篇文章)。如果我没有记错,关闭安装程序的完成按钮也将有同样的结果,与天文尝试)。

Users can return to your application via the back key after install (see this article about task and activity stacks). If I remember correctly, closing the installer with the "Done" button will also have the same result, try it with Astro).

阅读全文

相关推荐

最新文章