Skip to content

Instantly share code, notes, and snippets.

@jberkel
Created July 17, 2011 16:33
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save jberkel/1087757 to your computer and use it in GitHub Desktop.
Save jberkel/1087757 to your computer and use it in GitHub Desktop.
HOWTO: compile mkbootimg/mkbootfs
get Android source code: http://source.android.com/source/downloading.html
$ cd /path/to/android-src
$ cd system/core/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
copy system/core/mkbootimg/mkbootimg, system/core/cpio/mkbootfs to a directory in your path.
@tallero
Copy link

tallero commented Apr 23, 2020

You should now specify that those instructions work on android 4.x.
Made an AUR package anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment