我想一次安装多个APK,因为我有一个可以执行所有操作的主应用程序,而其他所有应用程序都具有一项服务,并且必须将一项活动放在设备上才能运行,因此最好将它们包含在zip文件中,我知道会发生这种情况,因为su.zip会执行类似的操作
I had to do something like this for updating my multiple Enterprise APKs. I downloaded the APK from a REST API/ database. Then once I had the file I started the install of the app in program by calling:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(fileName)), "application/vnd.android.package-archive");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
This will start the installer and install the APK.
You can use adb via console/cmd "adb install com.example". Which OS are you running? Write a little script to install them all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.