Skip to content

Instantly share code, notes, and snippets.

View RaynorOh's full-sized avatar

오승윤 / NSTAGE RaynorOh

View GitHub Profile
@RaynorOh
RaynorOh / rollback_aab.sh
Last active December 22, 2022 06:17 — forked from Farious/rollback_aab.sh
Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab. This enables us to re-submit a previously submited aab to the play store, doing a rollback to the given version.
#!/bin/bash
#
# Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab.
# Run this script with: bash rollback.sh your_project.aab android_signing_key.key key_alias key_pwd version_code version_name
#
# Necessary setup:
#
# jarsigner - This binary should exist in the path, you'll get this by installing JDK
#
# Configuration.proto and Resources.proto can be found in aapt2's github