Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # I preserved the first five lines so you can see what I was trying to do originally
- # I guess this should be fine for the one-off that is PDroid AOSP-JB
- # At least the boot.img patching will work for other mods.
- #\rm -rf system
- #mkdir -p system/framework
- #mkdir -p system/framework
- #mv framework2.jar system/framework
- #CID=`ls | grep system`
- echo "### adding framework2.jar ###"
- mv framework2.jar system/framework
- #printtask "### sign jar files ###"
- printtask "### create updater.zip ###"
- jar -cfv tmp.zip ${BOOT[@]} system ${CID[@]} META-INF >> $LOG 2>> $LOG
- java -jar signapk.jar updatecert.pem updatekey.pk8 tmp.zip signed.zip
- \mv signed.zip update.zip
- \rm -f tmp.zip
- #echo "# miscellaneous log" >> $LOG
- \mv restore.zip update.zip ..
- echo "### finished ###"
- echo "flash update.zip to install the modified"
- echo "flash restore.zip to restore the original"
- cd ..
- rm -rf $TEMP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement