Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Forked from jberkel/gist:1087757
Last active August 12, 2016 12:01
Show Gist options
  • Save muffinresearch/7488742 to your computer and use it in GitHub Desktop.
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
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