The Android App Bundle Dynamic Framework (AAB) was first proposed at Google I/O in 2018. AAB is a publishing format, which is essentially just a. AAB format that developers must submit when they submit a code resource pack to the Google Play Store. The subsequent APK generation and signing will now be done by Google Play.

The Android project is packaged as aAB and installed on the phone

  • Required Resources and Environment

AndroidStudio BuildTool wonderful speed green Internet software open

  • AndroidStudio exports projects to AAB

Select build from the AndroidStudio toolbar and then Generate Singed Bundle APk

Click Finish to start packing. Finally, when the package is completed, an xxx.aab file will be generated, as shown in the following figure


  • Aab installed to phone > AAB generates APK

Adb environment is configured in Win10 system. The configuration result is shown in the following figure. The text on the blue background is adb directory.

After the configuration is complete, a message is displayed indicating that adb command does not exist in the CMD command window. Please move the operation directory to the root directory of adb.

Abb to APK command

java -jar bundletool-all-1.7. 0.jar build-apks --bundle=app.aab --output=finalapp.apks --ks=onlinetv.jks --ks-pass=pass:123456 --ks-key-alias=onlinetv --key-pass=pass:123456
Copy the code

Install the APk command

java -jar bundletool-all-1.7. 0.jar install-apks --apks=finalapp.apks
Copy the code

conclusion

When a user downloads and installs an application, Google Play generates an APK installation package for the current device. This installation package has been optimized by Google for devices to download only the code and resources needed, making it smaller and faster to install. From the perspective of technology development, this technology is also the only way to android development. Dynamic solutions provided by officials will strengthen Google’s own ecosystem and provide a better product experience for users.