Skip to content

Instantly share code, notes, and snippets.

@x2c3z4
Forked from jberkel/gist:1087757
Created March 18, 2013 02:46
Show Gist options
  • Save x2c3z4/5184642 to your computer and use it in GitHub Desktop.
Save x2c3z4/5184642 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment