pine
pine copied to clipboard
Dynamic java method hook framework on ART. Allowing you to change almost all java methods' behavior dynamically.
This crash occurs every time when When start with "Debug 'app'" in AndroidStudio. Model: Pixel 5a Android version: 12 Build number: SP1A.210812.016.A1 Add below code in ExampleApp onCreate method: ```...
https://github.com/canyie/pine/blob/0e072b519a7ff8c1ec552ede3eeae74955e63d58/enhances/src/main/java/top/canyie/pine/enhances/PendingHookHandler.java#L136-L138 https://github.com/canyie/pine/blob/0e072b519a7ff8c1ec552ede3eeae74955e63d58/enhances/src/main/java/top/canyie/pine/enhances/PendingHookHandler.java#L157-L159
Pine 在 Wear OS 上 Hook 任意方法会发生这个问题 ``` 2022-03-08 00:29:15.546 4944-4944/? A/libc: Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xb322e020 in tid 4944 (able.purereader), pid 4944 (able.purereader) 2022-03-08...
``` Rooted: 'Yes' API level: '24' OS version: '7.0' Kernel version: 'Linux version 4.1.18-gebc47dc #1 SMP PREEMPT Wed Nov 15 05:49:58 CST 2017 (aarch64)' ABI list: 'arm64-v8a,armeabi-v7a,armeabi' Manufacturer: 'HUAWEI' Brand:...
Please let me know if you need anything else, since I don't know how to debug native crash ``` [ 2022-01-05T05:55:35.535 0: 807: 814 I/Magisk ] proc_monitor: [com.google.android.gms.unstable] PID=[17450] UID=[10147]...
(This problem is also described in the README.) Background: 1. In the bridge_jump_trampoline, we modified some registers to save our own values, so we have to save the original values...
~~~ 04-18 17:37:26.367 31016 31016 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 04-18 17:37:26.368 31016 31016 F DEBUG...
Pine.hook(PermissionInfo.class.getDeclaredMethod("getProtectionFlags"), new MethodHook() { @Override public void beforeCall(Pine.CallFrame callFrame) { callFrame.setResult(0); } @Override public void afterCall(Pine.CallFrame callFrame) { callFrame.setResult(0); } }); 当包名是android的时候,出现了如下crash 2024-01-23 22:17:19.223 24149-24149 DEBUG pid-24149 A Cmdline: com.z9.yuequan...
Hello. There is always segfault when I run debug on app from Android Studio when I trying to hook ContextWrapper.attachBaseContext ``` Pine.hook(ContextWrapper.class.getDeclaredMethod("attachBaseContext", Context.class), new MethodHook() { @Override public void beforeCall(Pine.CallFrame...