Android NDK9e / Android 4.3 fixes and added Logcat output :)#1
Android NDK9e / Android 4.3 fixes and added Logcat output :)#1bkerler wants to merge 5 commits intocrmulliner:masterfrom
Conversation
|
thanks! I'll take a look and integrate it. Collin On 01/04/2014 06:03 PM, bkerler wrote:
Collin R. Mulliner collin@mulliner.org KeyID 0x5D89EEED |
|
I'm not a fan of adding the liblog dependency (using __android_log_print, etc). Perhaps it can be guarded by some compile-time configuration option instead of made a requirement. |
|
-----BEGIN PGP SIGNED MESSAGE----- Hi Joshua, any other ideas what would be more suitable ? BR, On 02.02.2015 17:11, Joshua J. Drake wrote:
-----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJU0RM8AAoJEKPg+vefL0V4V5AP/ipLaV3dV5pGnOncgCVPTnTY |
|
I just log to a file using fprintf() Collin On 02/03/2015 01:28 PM, Bjoern Kerler wrote:
Collin R. Mulliner collin@mulliner.org KeyID 0x5D89EEED |
|
-----BEGIN PGP SIGNED MESSAGE----- Hi Collin, yeah, but for me that failed, as the systems Cheers, On 03.02.2015 19:29, Collin Mulliner wrote:
-----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJU0RW1AAoJEKPg+vefL0V4HdgP/1Sklot45cCkDW4CC1oOIfjZ |
|
In your situation I would probably do logging separately in the instrument. I don't think the core logging features are required to succeed to do the hooking part. I'm surprised that you're able to hook whatever it is that's involved in MobiCore/Keymaster without rooting. |
|
BTW, what's wrong with having android_log_* usage in a compile-time define? At least one other person has done this to their copy, yet no one has managed to make a PR that provides this functionality guarded by a compile-time option :-/ I use ADBI to do heap tracing and thus cannot have any dynamic memory allocation. In this case I disable SELinux (set it to permissive) and then just write to a log file in /data/local/tmp (make it world writable first). So, in my case I have logging in my instrument directly. I just use vsnprintf into a stack buffer and write that to a file descriptor using the low-level open and write system calls (see |
Hi,
I've fixed some compiling issues with Android NDK9e, made the build process easier and fixed the README. I've added logging to LOGCAT for the example instead of logging to a file.
Verified and working with Samsung Galaxy GT-I9300 with latest 4.3 firmware with SELinux Kernel and MobiCore code injection using Android NDK9e. The hook cleanup still needs to be fixed as it seems to crash the process after freeing the hook.
Kind regards and thanks for your great code,
Bjoern Kerler (info@revskills.de)
P.S.: injectso isn't android 4.3 compatible in terms of system daemons :)