PermissionMonitor
PermissionMonitor copied to clipboard
监控隐私权限的方法调用,like小米应用行为记录
大佬 me.weishu:epic:1.0.0 这个是在哪个仓库? 我看tiann/epic 说用com.github.tiann:epic:0.11.2 ,但是这个有问题
报错信息如下: ``` 11-09 13:09:28.636 21951 21951 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for long me.weishu.epic.art.EpicNative.getMethodAddress(java.lang.reflect.Member) (tried Java_me_weishu_epic_art_EpicNative_getMethodAddress and Java_me_weishu_epic_art_EpicNative_getMethodAddress__Ljava_lang_reflect_Member_2) 11-09 13:09:28.636 21951 21951 E AndroidRuntime: at me.weishu.epic.art.EpicNative.getMethodAddress(Native Method) 11-09 13:09:28.636...
**不要在正式环境使用!** 像下面类似的改一下就放心大胆的打包吧! ```groovy debugRuntimeOnly 'me.weishu:epic:1.0.0' compileOnly 'me.weishu:epic:1.0.0' debugRuntimeOnly 'com.github.huage2580:PermissionMonitor:1.0.1' compileOnly 'com.github.huage2580:PermissionMonitor:1.0.1' ``` ```java try { Class.forName("com.hua.permissionmonitor.PermissionMonitor"); com.hua.permissionmonitor.PermissionMonitor.start(false); } catch (Throwable ignore) { } ```
========================================crash info========================================== 2021-08-16 23:21:15.845 27650-27650/com.hua.testhook E/AndroidRuntime: FATAL EXCEPTION: main Process: com.hua.testhook, PID: 27650 java.lang.UnsatisfiedLinkError: No implementation found for long me.weishu.epic.art.EpicNative.getMethodAddress(java.lang.reflect.Member) (tried Java_me_weishu_epic_art_EpicNative_getMethodAddress and Java_me_weishu_epic_art_EpicNative_getMethodAddress__Ljava_lang_reflect_Member_2) at me.weishu.epic.art.EpicNative.getMethodAddress(Native Method) at me.weishu.epic.art.method.ArtMethod.init(ArtMethod.java:93) at...
直接跑demo没问题, 到自己项目 implementation 'com.github.huage2580:PermissionMonitor:1.0.1' PermissionMonitor.start 就崩了 不知道怎么弄 No pending exception expected: java.lang.NoSuchMethodError: no static or non-static method "Lme/weishu/epic/art/EpicNative;.memcpy(JJI)V" at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (Runtime.java:-2) at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1115) at...