Fixes to formatting
MODIFY
frida_mode/src/main.c
frida_mode/src/main.c
@@ -38,13 +38,14 @@ extern mach_port_t mach_task_self();
extern GumAddress gum_darwin_find_entrypoint(mach_port_t task);
#elif defined(__ANDROID__)
typedef struct {
+
void (**preinit_array)(void);
void (**init_array)(void);
void (**fini_array)(void);
+
} structors_array_t;
-extern void __libc_init(void* raw_args,
- void (*onexit)(void) __unused,
+extern void __libc_init(void *raw_args, void (*onexit)(void) __unused,
int (*slingshot)(int, char **, char **),
structors_array_t const *const structors);
#else
@@ -291,17 +292,19 @@ static void intercept_main(void) {
intercept_hook(main, on_main, NULL);
}
+
#elif defined(__ANDROID__)
-static void on_libc_init(void* raw_args,
- void (*onexit)(void) __unused,
+static void on_libc_init(void *raw_args, void (*onexit)(void) __unused,
int (*slingshot)(int, char **, char **),
structors_array_t const *const structors) {
+
main_fn = slingshot;
intercept_unhook_self();
intercept_hook(slingshot, on_main, NULL);
return __libc_init(raw_args, onexit, slingshot, structors);
}
+
static void intercept_main(void) {
intercept_hook(__libc_init, on_libc_init, NULL);

MODIFY
frida_mode/src/prefetch.c
frida_mode/src/prefetch.c
@@ -307,6 +307,7 @@ void prefetch_init(void) {
FFATAL("shmctl (IPC_RMID) < 0 - errno: %d\n", errno);
}
+
#endif
/* Clear it, not sure it's necessary, just seems like good practice */

Fixes to formatting