jcadduono / android_external_dirtycow

CVE-2016-5195 (dirtycow/dirtyc0w) - recowvery fork
https://build.nethunter.com/android-tools/dirtycow/
146 stars 37 forks source link

Step for create binary from source code #12

Open walkman4321 opened 7 years ago

walkman4321 commented 7 years ago

I am try to compile source code and make binary files but failed to do that. make root

Output ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-21 make[1]: Entering directory /home/rohitnew/Experiment android/android_external_dirtycow-android-6.0' /home/rohitnew/android-ndk-r14b/build/core/build-binary.mk:687: Android NDK: Module dirtycow depends on undefined modules: log /home/rohitnew/android-ndk-r14b/build/core/build-binary.mk:700: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies) . Stop. make[1]: Leaving directory/home/rohitnew/Experiment android/android_external_dirtycow-android-6.0' make: *** [build] Error 2

Sir Please tell me correct step for creating binary file

jcadduono commented 7 years ago

set up https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-6.0 (see readme) this is meant to be built in android source repository the TWRP (team win recovery project) manifest is minimal and only has environment necessary to build twrp and/or system binaries, so it is a perfectly suitable way to build this

this relies on system libraries that exist in android source also used for twrp