-
-
Save muffinresearch/7488742 to your computer and use it in GitHub Desktop.
A way to get mkbootimg / mkbootfs without needing to download epic amounts of android src. /hattip @jberkel
This file contains 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
mkdir ~/android-tools/ | |
cd ~/android-tools/ | |
wget https://android.googlesource.com/platform/system/core/+archive/master.tar.gz | |
tar -xzf master.tar.gz | |
cd libmincrypt | |
gcc -c *.c -I../include | |
ar rcs libmincrypt.a *.o | |
cd ../mkbootimg | |
gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a | |
cd ../cpio | |
gcc mkbootfs.c -o mkbootfs -I../include | |
ln -s ~/android-tools/mkbootimg/mkbootimg ~/bin/mkbootimg | |
ln -s ~/android-tools/cpio/mkbootfs ~/bin/mkbootfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment