This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This aims to automate some of the porting steps of root My Galaxy (the code and commands were taken from the original repo:https://github.com/BuSung-dev/Root-My-Galaxy-Payloads/blob/main/docs/PORTING.md) | |
| read -p "put boot.img.lz4 in the same folder as this script and press [Enter]" | |
| cat > $(pwd)/step1.py<<'EOF' | |
| from pathlib import Path | |
| import lz4.frame | |
| import struct | |
| compressed = Path("boot.img.lz4").read_bytes() | |
| boot = lz4.frame.decompress(compressed) |