
Originally Posted by
raidzero
the awk statement will need to be adjusted to your environment
I am pretty new to developing and Im afraid I dont know how to adjust awk...anywhere you can point me?
From what i do know i created a script
#!/bin/bash
cd /unsigned
find . -name "*.apk" -exec java -jar /home/andrew/sign/signapk.jar /home/andrew/sign/certificate.pem /home/andrew/sign/key.pk8 {} \;
echo 'APKs signed';
echo $?
there are four apks in the folder and I recieve this
Usage: signapk [-w] publickey.x509[.pem] privatekey.pk8 input.jar output.jar
Usage: signapk [-w] publickey.x509[.pem] privatekey.pk8 input.jar output.jar
Usage: signapk [-w] publickey.x509[.pem] privatekey.pk8 input.jar output.jar
Usage: signapk [-w] publickey.x509[.pem] privatekey.pk8 input.jar output.jar
APKs signed
0
Im thinking there is a problem with the input and output...i need to direct the -exec command to (input.apk) and (output.apk) of selected files... if that makes sense.
I tried your script but i dont know how to set awk up
another script was
find . -name "*.apk" | xargs java -jar /home/andrew/sign/signapk.jar /home/andrew/sign/testkey.x509.pem /home/andrew/sign/testkey.pk8
that didnt work neither. Thank you for the help!