levyitay / AddSecurityExceptionAndroid

Apache License 2.0
686 stars 121 forks source link

Running Zip Align on network.xyo.coin_temp.apk and creating network.xyo.coin_new.apk ./addSecurityExceptions.sh: line 88: /home/codespace/Library/Android/sdk/build-tools/*//zipalign: No such file or directory Signing temp file network.xyo.coin_new.apk ./addSecurityExceptions.sh: line 91: /home/codespace/Library/Android/sdk/build-tools/*//apksigner: No such file or directory Resigned APK successfully network.xyo.coin_new.apk #38

Closed moijesuis2enmoi closed 1 week ago

moijesuis2enmoi commented 1 year ago

Hey! I get this error on a codespace, maybe if someone can help me ;)

Running Zip Align on network.xyo.coin_temp.apk and creating network.xyo.coin_new.apk
./addSecurityExceptions.sh: line 88: /home/codespace/Library/Android/sdk/build-tools/*//zipalign: No such file or directory
Signing temp file network.xyo.coin_new.apk
./addSecurityExceptions.sh: line 91: /home/codespace/Library/Android/sdk/build-tools/*//apksigner: No such file or directory
Resigned APK successfully network.xyo.coin_new.apk
lanceliao commented 1 year ago

On my case the build tools was not located on home directory:

➜  ~ which apksigner
/usr/bin/apksigner
➜  ~ which zipalign
/usr/bin/zipalign

It works after changing the directory to /usr/bin :

BUILD_TOOLS_DIR=/usr/bin
# ${arr_storted[${#arr_storted[@]}-1]}
levyitay commented 1 year ago

I'll add an option to locate zipalign or tools build-tools dir

moijesuis2enmoi commented 1 year ago

cool thank you!, because i installed it on the codespace but idk if in the right path ;)

levyitay commented 1 year ago

@MOIJESUIS2ENMOI @lanceliao See latest update let me know if it helps