allenymt / PrivacySentry

Android隐私合规整改检测工具,注解+Asm修改字节码的检测方案
MIT License
2.05k stars 262 forks source link

apply插件后,编译出现了问题 #14

Closed XpxDeveloper closed 2 years ago

XpxDeveloper commented 2 years ago

apply plugin: 'privacy-sentry-plugin'

之后, image

只要注释掉这个apply,就编译正常

allenymt commented 2 years ago

我瞅瞅

allenymt commented 2 years ago

具体堆栈有吗?

privacy { // 设置免hook的名单 blackList = ["com.xxx.xx"] } 可以先通过这个设置包名来规避有问题的代码

XpxDeveloper commented 2 years ago

嗯,我可以尝试设置白名单。但现在不知道是什么包名需要规避,这个编译失败也没提示是什么包名

allenymt commented 2 years ago
image

点这里展开,堆栈贴上来看看

XpxDeveloper commented 2 years ago
image

点这里展开,堆栈贴上来看看

`> Task :app:transformClassesWithPrivacySentryPluginForDebug FAILED

Execution failed for task ':app:transformClassesWithPrivacySentryPluginForDebug'.

Invalid opcode 169

`

XpxDeveloper commented 2 years ago

先不管了,商店说审核错了,apk未复现隐私问题

XpxDeveloper commented 2 years ago

先不管了,商店说审核错了,apk未复现隐私问题

还是需要解决这个问题,作者还有什么思路吗,找到对应的包名,设为白名单

allenymt commented 2 years ago

看日志是修改某个jar失败了,./gradlew app:assembleDebug -i -d ,看下是在处理哪个jar

allenymt commented 2 years ago

注意看下这个日志 jar incremental false file is: xxx

XpxDeveloper commented 2 years ago

注意看下这个日志 jar incremental false file is: xxx

刚才试了一下。这个日志【jar incremental false file is】下面的undeal with jar file is中提示的包名,我都配置上了,但仍然没作用,是配的不对还是怎么样

Joslyn-Chen commented 2 years ago

我也遇到了。看了下最后一个jar,是高德的com.loc包,把这个加黑名单就可以了。(我猜测应该是被混淆的不能修改吧) @XpxDeveloper

XpxDeveloper commented 2 years ago

我也遇到了。看了下最后一个jar,是高德的com.loc包,把这个加黑名单就可以了。(我猜测应该是被混淆的不能修改吧) @XpxDeveloper

我这边的日志提示,没有提示com.loc这个,有提示了其他10多个包名,我都配置上了,但没作用。配上的每个包名,依然会【jar incremental false file is】

Joslyn-Chen commented 2 years ago

@XpxDeveloper 你【jar incremental false file is】最后一个的日志发出来看看

XpxDeveloper commented 2 years ago

@XpxDeveloper 你【jar incremental false file is】最后一个的日志发出来看看

image

Joslyn-Chen commented 2 years ago

@XpxDeveloper 你【jar incremental false file is】最后一个的日志发出来看看

image

amap不就是高德的吗? 你试试添加“com.loc”或者"com.amap.api"

allenymt commented 2 years ago

高德地图先加黑 , blackList = ["com.loc","com.amap.api"], asm的版本有冲突