-
Notifications
You must be signed in to change notification settings - Fork 31
Android on S2E
MichaelKang edited this page Jun 25, 2014
·
6 revisions
git clone https://github.com/michaekang/android_s2e.git
` ./android-configure.sh --enable-s2e`
`make`
` sh build_ophelper.sh`
`cp op_helper.bc objs/`
The image URL:
http://sourceforge.net/projects/skyeye/files/misc/android_build.tar.gz/download
And uncompress the android image as the following:
tar xzvf android_build.tar.gz
` mkdir s2e_out`
`export ANDROID_PRODUCT_OUT= android_build/out/target/product/generic/`
`cp qemu_android/tests/config.lua s2e_out`
`cd s2e_out`
`qemu_android/objs/emulator -shell`
After android shell is prompted, type the following command:
`cd /data`
`su`
`./s2e_t2`
The output as the video: http://youtu.be/3cTaeo8_izs Or on the Chinese video site: http://v.youku.com/v_show/id_XNzMxNTE5MzE2.html
Segmentation fault will trigger after run s2e_t2 testcase in some time. The workaround patch is located at: android_s2e/patch/0005-Workaround-the-segfault-of-fb-update.patch.