简体   繁体   English

通过Java代码获取android设备上已安装的应用程序的.apk文件

[英]Get .apk file of an installed application on a android device through java code

是否可以使用Java代码为已安装在android设备上的应用程序生成.apk文件?

All the android apk are stored in the following path: 所有的Android apk都存储在以下路径中:

/data/app

The permissions of this dir is drwxrwx--x 该目录的权限为drwxrwx--x

The permission if the files(apk's) inside this folder are -rw-r--r-- 如果此文件夹内的文件(apk)为-rw-r--r--

Since there is read permission for others , so you will be able to read the files if you know the names of the apk's. 由于others具有读取权限,因此如果您知道apk的名称,则可以读取文件。 You can do that by the means of simple java File IO operations. 您可以通过简单的java File IO操作来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM