small changes for ARM 32-bit (compiles now, but does not work)
MODIFY
frida_mode/GNUmakefile
frida_mode/GNUmakefile
@@ -53,6 +53,10 @@ ifeq "$(ARCH)" "aarch64"
ARCH:=arm64
endif
+ifeq "$(ARCH)" "armv7l"
+ ARCH:=armhf
+endif
+
ifeq "$(ARCH)" "i686"
ARCH:=x86
endif
@@ -83,8 +87,12 @@ ifeq "$(ARCH)" "arm64"
# 15.0.0 Not released for aarch64 yet
GUM_DEVKIT_VERSION=14.2.18
else
+ifeq "$(ARCH)" "armhf"
+GUM_DEVKIT_VERSION=14.2.18
+else
GUM_DEVKIT_VERSION=15.0.0
endif
+endif
GUM_DEVKIT_FILENAME=frida-gumjs-devkit-$(GUM_DEVKIT_VERSION)-$(OS)-$(ARCH).tar.xz
GUM_DEVKIT_URL="https://github.com/frida/frida/releases/download/$(GUM_DEVKIT_VERSION)/$(GUM_DEVKIT_FILENAME)"

MODIFY
frida_mode/src/ctx/ctx_arm32.c
frida_mode/src/ctx/ctx_arm32.c
#if defined(__arm__)
-gsize ctx_read_reg(GumIA32CpuContext *ctx, x86_reg reg) {
+gsize ctx_read_reg(GumArmCpuContext *ctx, arm_reg reg) {
FATAL("ctx_read_reg unimplemented for this architecture");

small changes for ARM 32-bit (compiles now, but does not work)