一次安装多个apk[英] installing multiple apks at once

本文是小编为大家收集整理的关于一次安装多个apk的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我想一次安装多个氧化款,因为我有一个主应用程序,它是一切和所有其他应用程序的服务和一个必须放在设备中的活动,因为它会最好将它们包含在一个zip中我知道这样的事情是因为su.zip做了类似的东西

推荐答案

我不得不做这样的事情,以更新我的多个企业apks.我从REST API/数据库下载了APK.然后一旦我有文件,我就可以通过调用:

开始在程序中安装应用程序
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);

这将启动安装程序并安装APK.

其他推荐答案

您可以通过控制台/cmd"adb安装com.example"使用adb. 你在运行哪个操作系统?写一点脚本来安装它们.

本文地址:https://www.itbaoku.cn/post/1937912.html

问题描述

I wanted to install multiple APKs at a time because I am having one main app that does everything and all the other apps have a service and an activity that has to be put on the device for the main one to run, would it be best to include them in a zip I know something like this happens because su.zip does something similar

推荐答案

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.