INNER CODE UNIT · Shell
FILES_IN_SPLIT_APK
ax/apk.sh · apk.sh:574
FILES_IN_SPLIT_APK=($APK_DIR/*)
for j in "${FILES_IN_SPLIT_APK[@]}"
do
print_ "[>>>>] Parsing split apks file: "$j
# Skip Manifest, apktool.yml, and the original files dir.
if [[ $j == *AndroidManifest.xml ]] || [[ $j == *apktool.yml ]] || [[ $j == *original ]]; then
print_ "[-] Skip!"
continue
fi
# Copy files into the base APK, except for XML files in the res directory
if [[ $j == */res ]]; then
print_ "[.] /res direcorty found!":
(cd $j; find . -type f ! -name '*.xml' -exec cp --parents {} ../../base/res/ \;)# -exec echo '[+] Copying res that are not xml {}'\;)
continue
fi
print_ "[>] Copying directory cp -R $j in $SPLIT_DIR/base/ ...."
cp -R $j $SPLIT_DIR"/base/"
done