只需要一行代码安装已有Apk
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.SerenadeHL:ApkInstaller:1.0.1'
}
ApkInstaller.with(activity).install(apkFile)
- 安装前开发者需自行判断、请求SD卡权限