Android安装xapk

This commit is contained in:
游由 2021-08-15 15:47:46 +08:00
parent 44092cdaf4
commit 3597a56b39
1 changed files with 31 additions and 0 deletions

31
install_xapk.md Normal file
View File

@ -0,0 +1,31 @@
# 安装 `xapk`
## 解压并安装
电脑上直接解压缩即可。手机上需要重命名。将`.xapk`后缀改为`.zip`,再解压。
解压后有`Android`文件夹,将其中的`obb`文件夹目录下的内容拷贝到`/Android/obb/`目录下。单个apk直接安装即可如果有多个apk文件需要使用adb工具安装。
#
## 下载 Android SDK Platform Tools
[下载页面](https://developer.android.google.cn/studio/releases/platform-tools?hl=zh-cn)
[Windows下载链接](https://dl.google.com/android/repository/platform-tools-latest-windows.zip?hl=zh-cn)
[Mac下载链接](https://dl.google.com/android/repository/platform-tools-latest-darwin.zip?hl=zh-cn)
[Linux下载链接](https://dl.google.com/android/repository/platform-tools-latest-linux.zip?hl=zh-cn)
### 添加到`PATH`环境变量(可选)
## adb工具安装多个apk
移动到`xpak`解压目录,运行:
```shell
adb install-multiple 1.apk 2.apk
```
将上述的`1.apk 2.apk`换成解压后的多个apk文件每个以空格隔开。