Android aab package installation method

1. Download bundletool.jar, download address:

https://github.com/google/bundletool/releases

cmd into the image bundletool.jar download path

2. Generate a signature file, open the terminal and enter the command:

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias

3. Put the signature file, bundletool.jar, and aab package generated in step 2 in the same directory

 

 

4. cmd enters the step 3 directory -- key points of the command line format

The device is connected to adb, and the device information json file is generated, and the terminal enters the command:


java -jar bundletool-all-1.14.0.jar build-apks --mode=universal --bundle=包名.aab --output=想转出的apk包名.apks --ks=签名的包名.jks --ks-pass=pass:签名的密码 --ks-key-alias=aab包名 --key-pass=pass:aab签名密码

 mine is like this

Look at the folder after generation

aab will be converted into an apks file -- change the apks suffix to zip -- and then decompress it successfully, and the apk can be installed

 

 

Guess you like

Origin blog.csdn.net/weixin_43886221/article/details/130066362