-
-
Save c4software/c150ba9e6107e80824deb8a077fec4cd to your computer and use it in GitHub Desktop.
remove ads in apk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APK="$1" | |
if [ -f $APK ];then | |
./apktool d "$APK" | |
grep -lR "\->loadAd" "${APK%.*}" | xargs sed -i '/\->loadAd/d' | |
./apktool b "${APK%.*}" -o "${APK%.*}_no_ad.apk" | |
java -jar sign.jar --overwrite --apks "${APK%.*}_no_ad.apk" | |
rm -rf "${APK%.*}" | |
else | |
echo "please input apk file" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment