A library for install xapk(single apk with obb) or xapk(multiple apk with obb).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.0 KiB

README

XAPKInstaller

实现安装xapk(单apk加上obb资源文件)或者xapk(多apk)

开始使用

在你的根build.gradle中添加jitpack存储库

allprojects {
  repositories {
	...
    maven { url 'https://jitpack.io' }
  }
}

build.gradle添加如下代码:

dependencies {
  implementation 'com.github.andywu91:XAPKInstaller:1.0.0'
}

使用说明

你可以将app代码里的downloadUrl替换成自己的xapk的downloadUrl,即可体验此项目

感谢

使用 zt-zip 来解压xapk,感谢

更新

因为魅族和vivo对系统安装相关的类进行了修改,导致split apk的xapk无法安装成功,故进行检查,如果是flyme或者funtouch os则不做处理。

根据#issue 3,如果你使用miui,你需要关闭设置里的miui优化,否则安装会失败。

另外可以参考文章:https://www.jianshu.com/p/580b61ee7aee