Giter VIP home page Giter VIP logo

Comments (4)

hydraxman avatar hydraxman commented on May 28, 2024

写个父类,复写相关方法,直接注入即可
不写父类不行哈,系统的类肯定无法注入的

from hibeaver.

silentpride avatar silentpride commented on May 28, 2024

我也是这么做的,但是感觉好蠢。。

from hibeaver.

silentpride avatar silentpride commented on May 28, 2024

我有个一思路,在visit的时候读取该类的父类,发现如果是fragment,就修改其继承关系,让它继承我自己封装好的一个baseFragment,但是失败了。我感觉思路应该没有问题,但是asm的代码我不太熟,写的可能有问题,最后失败了。

from hibeaver.

wslaimin avatar wslaimin commented on May 28, 2024

我有个一思路,在visit的时候读取该类的父类,发现如果是fragment,就修改其继承关系,让它继承我自己封装好的一个baseFragment,但是失败了。我感觉思路应该没有问题,但是asm的代码我不太熟,写的可能有问题,最后失败了。

写个父类,复写相关方法,直接注入即可
不写父类不行哈,系统的类肯定无法注入的

我有尝试新增方法,但是dex过程会报错

from hibeaver.

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.