Skip to content

Instantly share code, notes, and snippets.

View Skorpion96's full-sized avatar

Skorpion96

View GitHub Profile
@Skorpion96
Skorpion96 / rootmygalaxy-port-steps1-3-auto.sh
Created August 17, 2026 19:47
Root my Galaxy porting steps 1 to 3 auto script (except the stuff requiring the device)
#!/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)