From 2dceb24567a81221d480e7eec394e0c470d4f9c3 Mon Sep 17 00:00:00 2001 From: Matt Sephton Date: Thu, 25 Jul 2019 12:59:19 +0100 Subject: [PATCH 1/2] Update ioctl.h to add non-Linux support --- jni/ioctl.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jni/ioctl.h b/jni/ioctl.h index 4a7cd15..3f6823a 100644 --- a/jni/ioctl.h +++ b/jni/ioctl.h @@ -4,7 +4,16 @@ #include "card.h" #endif -#include +#ifdef __linux__ +# include "linux/types.h" +#else +# include +typedef uint64_t __u64; +typedef uint32_t __u32; +typedef int32_t __s32; +typedef uint16_t __u16; +typedef uint8_t __u8; +#endif struct mmc_ioc_cmd { From f3cc9d288a027142e466bc817dda65548b134098 Mon Sep 17 00:00:00 2001 From: Matt Sephton Date: Thu, 25 Jul 2019 13:06:25 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6d626f5..84a581c 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,8 @@ serial - optional, can be hex (0x prefixed) or decimal Based on the reverse engineering and code of Sean Beaupre, see: https://github.com/beaups/SamsungCID +## Compile + +`gcc evoplus_cid.c -o evoplus_cid` + +You can safely ignore compilation warnings.