Advertisement
Aclegg2011

convert system.img to block base and zip

Jul 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rom_fp="$(date +%y%m%d)"
  4. mkdir -p release/$rom_fp/
  5.  
  6. git clone https://github.com/aclegg2011/img2sdat.git
  7. cp system.img img2sdat
  8. cd img2sdat
  9. ./img2sdat.py system.img -o tmp -v 4
  10. cd ..
  11. cp img2sdat/tmp/* twrp_flashables/arm64a
  12. cd twrp_flashables/arm64a
  13. 7za a -tzip arm64a.zip *
  14. cp arm64a.zip ~/Android/bliss-los/release/$rom_fp/arm64a.zip
  15. rm -rfv img2sdat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement