INNER CODE UNIT · Shell
SPLIT_APKS
ax/apk.sh · apk.sh:553
SPLIT_APKS=($SPLIT_DIR/*)
for i in "${SPLIT_APKS[@]}"
do
print_ $i
APK_NAME=$i
APK_DIR=${APK_NAME%.apk} # bash 3.x compliant xD
APKTOOL_DECODE_OPTS="-resm dummy -o $APK_DIR 1>/dev/null"
apk_decode "$APK_NAME" "$APKTOOL_DECODE_OPTS"
done
# Walk the extracted APKs dirs and copy files and dirs to the base APK dir.
echo "[>] Walking extracted APKs dirs and copying files to the base APK..."
for i in "${SPLIT_APKS[@]}"
do
APK_NAME=$i
APK_DIR=${APK_NAME%.apk} # bash 3.x compliant xD
# Skip base.apk.
if [ $APK_DIR == $SPLIT_DIR"/base" ]; then