Skip to content

Instantly share code, notes, and snippets.

@ThEMarD
Created August 22, 2019 02:37
Show Gist options
  • Save ThEMarD/f3df65b91c8cf58c685a70b044060d7e to your computer and use it in GitHub Desktop.
Save ThEMarD/f3df65b91c8cf58c685a70b044060d7e to your computer and use it in GitHub Desktop.
Older method to doing perfect kangs with extract-files.sh script
Create a dummy folder to Kang blobs like
device/dummy/dummy
Then copy proprietary-files.txt, extract-files.sh and setup-makefiles.sh from any device. A device that doesn't use a shared commonized device tree does make it easier.
Rename the stuff in the two .sh files to dummy as vendor and device name.
Update necessary proprietary-files in dunmy device tree for kang
Then do...
./extract-files.sh *location of new blobs* | tee ~/Desktop/extractor.log
(I like to tee to review the extract worked)
In my example, I'll use the LeEco Le Max 2 (x2), so I would then copy the current LeEco msm8996-common and then x2 blobs to desktop in a folder named /system
Make sure the device's and/or commonized device proprietary-files are updated with the same blobs from your kang.
Then open terminal in the device tree and...
./extract-files.sh ~/Desktop | tee ~/Desktop/extractor.log
Check extractor.log to ensure it worked ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment