installing multiple apks at once

删除回忆录丶 提交于 2019-12-20 03:32:20

问题


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


回答1:


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.




回答2:


You can use adb via console/cmd "adb install com.example". Which OS are you running? Write a little script to install them all.



来源:https://stackoverflow.com/questions/11638599/installing-multiple-apks-at-once

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!