Advertisement
mateorod

special_instructions

Aug 17th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # I preserved the first five lines so you can see what I was trying to do originally
  4. # I guess this should be fine for the one-off that is PDroid AOSP-JB
  5. # At least the boot.img patching will work for other mods.
  6.  
  7. #\rm -rf system
  8. #mkdir -p system/framework
  9. #mkdir -p system/framework
  10. #mv framework2.jar system/framework
  11. #CID=`ls | grep system`
  12.  
  13. echo "### adding framework2.jar ###"
  14. mv framework2.jar system/framework
  15.  
  16. #printtask "### sign jar files ###"
  17.  
  18.     printtask "### create updater.zip ###"
  19.     jar -cfv tmp.zip ${BOOT[@]} system ${CID[@]} META-INF >> $LOG 2>> $LOG
  20.     java -jar signapk.jar updatecert.pem updatekey.pk8 tmp.zip signed.zip
  21.     \mv signed.zip update.zip
  22.     \rm -f tmp.zip
  23.  
  24.     #echo "# miscellaneous log" >> $LOG
  25.  
  26.     \mv restore.zip update.zip ..
  27.     echo "### finished ###"
  28.     echo "flash update.zip to install the modified"
  29.     echo "flash restore.zip to restore the original"
  30.  
  31. cd ..
  32. rm -rf $TEMP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement