#
Extract system folder from system.new.dat.br or system.new.dat
Copy all the files (sda2img) in this branch to where system.new.dat.br or system.new.dat are extracted. Then follow the guide.
Supports:
1. system.new.dat.br
2. system.new.dat
3. all android version ROM :-)
# Extract system.new.dat.br
1. `sudo apt install brotli`
2. `brotli --decompress system.new.dat.br -o system.new.dat`
# Extract system.new.dat
1. `./sdat2img.py system.transfer.list system.new.dat system.img`
# Extract system.img
1. `mkdir output`
2. `sudo mount -t ext4 -o loop system.img output/`
# Gaining Permission Of Extracted system folder
1. sudo chown -R USERNAME:USERNAME ~/path/of/mounted/image
{Eg:} `sudo chown -R hardik:hardik ~/Documents/ROM/final/Extracted/output`
-_- Booyah! You got the system folder
# Credits
1. StackOverFlow
2. XDA
3. G O D