You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
952 B

#!/bin/bash
set -x
for i in "$@"; do
if [[ $i = *"="* ]]; then
eval "$i"
fi
done
decompile_dir=$apkDir/$apkName
java -jar -Duse.language=en apktool_2.4.1.jar d $apkDir/${apkName}.apk --only-main-classes -o $decompile_dir
mv $decompile_dir/smali/com/alibaba $decompile_dir/smali_classes3/com
mv $decompile_dir/smali/com/bumptech $decompile_dir/smali_classes3/com
mv $decompile_dir/smali/com/facebook $decompile_dir/smali_classes3/com
java -jar -Duse.language=en apktool_2.4.1.jar b $decompile_dir
zipalign -v 4 $decompile_dir/dist/${apkName}.apk $decompile_dir/dist/${apkName}_align.apk
apksigner sign -ks ./redtide2.keystore --ks-pass pass:com_lbera_herogame --key-pass pass:com_lbera_herogame_redtide2 --out $decompile_dir/dist/${apkName}_release.apk $decompile_dir/dist/${apkName}_align.apk
rm $apkDir/${apkName}.apk
mv $decompile_dir/dist/${apkName}_release.apk $apkDir/${apkName}.apk
rm -rf $decompile_dir
echo "process apk finish"