可一个Android应用程序安装其他Android应用程序? [英] Can an Android app install another android app?

查看:236
本文介绍了可一个Android应用程序安装其他Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能有一个已经安装了去一个Android应用程序,并下载其他应用程序并安装它?我想可能有这个安全问题,但有可能在Android操作系统做到这一点?

I was wondering if it was possible to have an android app which is already installed go and download another app and install it? I figure there could be security problems with this, but is it possible for the Android OS to do this?

推荐答案

严格地说,这是不可能的:每个Android包安装在设备上(apk文件)的文件都被赋予它自己独特的Linux的用户ID,创建一个沙箱,并$ P $触碰其他应用程序pventing它。
如果一个应用程序将安装另一个,它不能给到目标新的用户ID。只有系统小程序,在根目录下运行,能做到这一点。

Strictly speaking no, it is not possible: each Android package (.apk) file installed on the device is given its own unique Linux user ID, creating a sandbox for it and preventing it from touching other applications.
If an application would "install" another one, it couldn't give to the target a new user ID. Only the system applet, running at root level, can do that.

哪些应用程序可以做的是间接调用与 ACTION_VIEW 意图和应用程序/ vnd.android.package归档程序包安装程序 MIME类型:系统将启动相应的观众,这当然是安装程序包

What the application can do is to indirectly invoke the package installer with the ACTION_VIEW intent and the application/vnd.android.package-archive MIME type: the system will launch the appropriate "viewer", which of course is the package installer.

有关该主题的尼斯链接: http://android.amberfog.com/?p=98

Nice link about that topic: http://android.amberfog.com/?p=98

这篇关于可一个Android应用程序安装其他Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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