Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A way to get mkbootimg / mkbootfs without needing to download epic amounts of android src. /hattip @jberkel
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
You can’t perform that action at this time.