- 2 Apr 2011
- 204
- 40
Hey guys.
I'm working with the patchrom and i get an error i'm having a hard time solving.
It's in the signing process, here's my output:
/media/DATA/patchrom/tools/sign.sh >/dev/null sign.zip out/ZIP
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
mv: (translated from danish: can't execute) stat() on 'out/ZIP/system/app/Exchange.apk.signed.aligned': No such file or directory
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
(and then a lot of the same errors for the different apks)
And here's the part from the sign.sh regarding the error:
function sign_for_dir() {
echo ">>> Sign apks under dir $1..."
for apk in `find $1 -name "*.apk"`
do
echo ">>> Sign for $apk"
delete_meta_info $apk
java -jar $SIGNAPK $PEMKEY $PK8KEY $apk $apk.signed
zipalign 4 $apk.signed $apk.signed.aligned ----- line 47
mv $apk.signed.aligned $apk
rm $apk.signed
done
And i believe it's NOT error in PATH, i can write java, or zipalign from anywhere.
It seems to me the java command in line 46 isn't doing it's job for some reason unknown to me
Anyone got a clue on how i can fix this?
Btw, tried googling a solution, but help is VERY limited with this.. Already tried changing line 47 to:
./zipalign 4 $apk.signed $apk.signed.aligned
and
zipalign -f -v 4 $apk.signed $apk.signed.aligned
Both without luck... Putting the zipalign file in /patchrom/tools/ folder didn't do it either..
Thanks guys, hope someone can help me out
I'm working with the patchrom and i get an error i'm having a hard time solving.
It's in the signing process, here's my output:
/media/DATA/patchrom/tools/sign.sh >/dev/null sign.zip out/ZIP
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
mv: (translated from danish: can't execute) stat() on 'out/ZIP/system/app/Exchange.apk.signed.aligned': No such file or directory
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
(and then a lot of the same errors for the different apks)
And here's the part from the sign.sh regarding the error:
function sign_for_dir() {
echo ">>> Sign apks under dir $1..."
for apk in `find $1 -name "*.apk"`
do
echo ">>> Sign for $apk"
delete_meta_info $apk
java -jar $SIGNAPK $PEMKEY $PK8KEY $apk $apk.signed
zipalign 4 $apk.signed $apk.signed.aligned ----- line 47
mv $apk.signed.aligned $apk
rm $apk.signed
done
And i believe it's NOT error in PATH, i can write java, or zipalign from anywhere.
It seems to me the java command in line 46 isn't doing it's job for some reason unknown to me
Anyone got a clue on how i can fix this?
Btw, tried googling a solution, but help is VERY limited with this.. Already tried changing line 47 to:
./zipalign 4 $apk.signed $apk.signed.aligned
and
zipalign -f -v 4 $apk.signed $apk.signed.aligned
Both without luck... Putting the zipalign file in /patchrom/tools/ folder didn't do it either..
Thanks guys, hope someone can help me out