A module anti Xposed hook, anti fake signature, anti virtual app (binder proxy), and optional anti odex, anti overlay.
Since 2019-03, Genuine switch to pure c for hide itself. If you want to hide your package name and / or class name, contact me, or do it like fill_XXX
in genuine.c
.
-
Xposed hook: hook any Java method in Xposed.
-
fake signature: fake your signature.
genuine
module requires usage of Apk Sign v2 or Apk Sign v3. -
(optional) PLT Hook: currently only check
jniRegisterNativeMethods
by flagCHECK_JNI_REGISTER_NATIVE_METHODS
. -
virtual app (binder proxy): run your app in virtual app, like VirtualApp.
-
(optional) odex: modify odex codes without modify apk, like URET
-
(optional) overlay: overlay resources, prevent from loading apk from
/data
.
-
run
java SimpleApkV2 <package-name> <apk>
, save output tosrc/main/jni/genuine.h
-
modify
build.gradle
forrootProject.XXX
-
search
FIXME
insrc/main/jni/genuine.c
-
define your own methods in
src/main/jni/genuine_extra.c
don't forget to update your own class
/* define to turn off maps check */
// #define NO_CHECK_MAPS
#ifndef NO_CHECK_MAPS
/* define to anti odex */
// #define ANTI_ODEX
/* define to anti overlay */
// #define ANTI_OVERLAY
#endif
/* define to check plt hook for jniRegisterNativeMethods */
// #define CHECK_JNI_REGISTER_NATIVE_METHODS
/* define to turn off xposed check */
// #define NO_CHECK_XPOSED
/* define to turn off xposed-edxposed check */
// #define NO_CHECK_XPOSED_EDXPOSED
/* define to turn on xposed-epic check
* requires stl, refer https://developer.android.com/ndk/guides/cpp-support?hl=en
*/
// #define CHECK_XPOSED_EPIC
-
make sure libgenuine.so always loaded
-
crash for fake signature
For commercial usage, contact me. However, if you are individial, or enterprise less than 5 staff, you can use it under CC BY-ND 4.0.