1 #!/bin/sh 2 # Put the Quake shared library into the Quake APK and resign the APK. 3 # TODO: Use our own cert instead of a test cert 4 5 pushd $OUT/system/app 6 mkdir -p lib/armeabi 7 mv $OUT/system/lib/libquake.so lib/armeabi 8 zip -r Quake.apk lib 9 rm -rf lib 10 SIGNAPK_JAR=$TOP/out/host/darwin-x86/framework/signapk.jar 11 PRIVATE_CERTIFICATE=$TOP/target/product/security/testkey.x509.pem 12 PRIVATE_PRIVATE_KEY=$TOP/target/product/security/testkey.pk8 13 mv Quake.apk Quake-unsigned.apk 14 java -jar $SIGNAPK_JAR $PRIVATE_CERTIFICATE $PRIVATE_PRIVATE_KEY Quake-unsigned.apk Quake.apk 15 rm Quake-unsigned.apk 16 popd 17