Comments (4)
Hook的类是可以混淆
其实你的分析是正确的,因为代码是在编译阶段植入,所以混淆是不会有影响的,只有在运行时你需要通过类名,方法名去做一些事情的时候才不能混淆,比如你用到了反射技术等。所以你的情况应该是其他问题导致。
再次强调一下
- 任何在编译阶段植入代码的AOP方案混淆都不会受影响,和混淆无关。
- 任何运行时的AOP技术方案混淆都会受影响,比如xposed框架,dexposed框架。
from gradle_plugin_android_aspectjx.
谢谢解答,另外,请问一下,我测试往BaseActivity的onCreate中注入了一行日志;编译出的apk能正确打印这行日志,但是我看编译后的class文件,为什么onCreate方法里看不到我注入方法的调用呢?
from gradle_plugin_android_aspectjx.
class里面是没有的,你看下app/build/intermediates/transforms/AspectTransform
目录,然后找到对应的文件夹,里面有jar文件,反编译jar文件,就有对应注入的代码
from gradle_plugin_android_aspectjx.
那为什么readme里面写的,需要在AOP代码进行hook的类及方法名不能被混淆,需要在混淆配置里keep住
from gradle_plugin_android_aspectjx.
Related Issues (20)
- kotlin 中使用 运行报错 HOT 2
- java.util.zip.ZipException: zip file is empty HOT 6
- kotlin 1.5 会报错 HOT 2
- 1年多没更新了,还维护吗 HOT 1
- ArrayIndexOutOfBoundsException HOT 2
- 无法插桩成功怎么回事? 完全按照文档的步骤去配置的 HOT 1
- 插件会导致androidTest找不到class HOT 1
- library中配置的annotation注解不生效 HOT 2
- 原作者已不再维护,继续使用建议使用我fork后修复发布的版本。(给即将使用或已经使用的几点建议) HOT 18
- 关于代码混淆后,AOP切面异常void java.lang.ClassNotFoundException.
- aspectjx会入侵所有的三方包,那是否可以使用include控制到只在本应用的包名下的类生效?而不去第三方sdk包?
- 一个必现的错误:Java+Kotlin找不到启动类 HOT 9
- 什么时候可以支持kotlin1.5.+
- aspectjx加cmake以后各种冲突externalNativeBuildCleanBxn_nationDebug,我把cmake注释掉以后报错Cause: zip file is empty
- gradle7.1后项目,build.gradle使用plugins,要怎么集成使用 HOT 14
- 【include使用】如果不配置,编译太慢了
- 当前是否支持gradle 8.0.1版本,升级后报错 HOT 2
- 这个项目彻底凉了吗 HOT 3
- 社区有没有使用AGP7-AGP8新的api的版本?不使用trasnform 框架的,跪求! HOT 1
- 推荐一个新的 Android 端 AOP 框架,支持 AGP8 以上 https://github.com/FlyJingFish/AndroidAOP HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle_plugin_android_aspectjx.