Skip to content

Instantly share code, notes, and snippets.

@pexcn
Created September 5, 2021 02:31
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pexcn/90248f1f49a64e895dbc300dfc69fe39 to your computer and use it in GitHub Desktop.
Save pexcn/90248f1f49a64e895dbc300dfc69fe39 to your computer and use it in GitHub Desktop.

Unpack Android system.new.dat.br

pacman -S brotli p7zip
curl -L -o /usr/local/bin/sdat2img.py https://github.com/xpirt/sdat2img/raw/master/sdat2img.py && chmod +x sdat2img.py

brotli -d system.new.dat.br
sdat2img.py system.transfer.list system.new.dat system.img
7z -y -bsp0 -bso0 x system.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment