-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
30 lines (18 loc) · 818 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ANDROID_ABI=`adb shell getprop ro.product.cpu.abi`
ANDROID_DEVNAME=$(shell adb shell getprop ro.product.vendor.name)
PACKAGE_NAME=com.ketchapp.knifehit
SO_NAME=libMyGame.so
all: build_ts
build_jni:
(cd jni; make install);
generate_patchso_ts: build_jni
./utils/so2tsmodule.py --no-content libs/${ANDROID_ABI}/libpatch.so -o patchso.ts
generate_so_ts:
./utils/so2tsmodule.py --no-content --no-exports --no-relocations bins/${PACKAGE_NAME}/lib/${ANDROID_ABI}/${SO_NAME} -o so.ts
generate_shadowhook_ts:
./utils/so2tsmodule.py --no-content libs/${ANDROID_ABI}/libshadowhook.so -o shadowhookso.ts
build_ts: # build_jni generate_patchso_ts generate_shadowhook_ts
npm run build
run: build_ts
frida -U -f ${PACKAGE_NAME} -l _agent.js --no-pause
#./utils/runfrida.py -l _agent.js -p ${PACKAGE_NAME} -r