Coder Social home page Coder Social logo

Comments (4)

firefly1126 avatar firefly1126 commented on July 4, 2024 2

Hook的类是可以混淆

其实你的分析是正确的,因为代码是在编译阶段植入,所以混淆是不会有影响的,只有在运行时你需要通过类名,方法名去做一些事情的时候才不能混淆,比如你用到了反射技术等。所以你的情况应该是其他问题导致。

再次强调一下

  • 任何在编译阶段植入代码的AOP方案混淆都不会受影响,和混淆无关。
  • 任何运行时的AOP技术方案混淆都会受影响,比如xposed框架,dexposed框架。

from gradle_plugin_android_aspectjx.

skindhu avatar skindhu commented on July 4, 2024

谢谢解答,另外,请问一下,我测试往BaseActivity的onCreate中注入了一行日志;编译出的apk能正确打印这行日志,但是我看编译后的class文件,为什么onCreate方法里看不到我注入方法的调用呢?

from gradle_plugin_android_aspectjx.

LiushuiXiaoxia avatar LiushuiXiaoxia commented on July 4, 2024

class里面是没有的,你看下app/build/intermediates/transforms/AspectTransform 目录,然后找到对应的文件夹,里面有jar文件,反编译jar文件,就有对应注入的代码

from gradle_plugin_android_aspectjx.

kasogg avatar kasogg commented on July 4, 2024

那为什么readme里面写的,需要在AOP代码进行hook的类及方法名不能被混淆,需要在混淆配置里keep住

from gradle_plugin_android_aspectjx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.