Giter Site home page Giter Site logo

Comments (2)

jiongxuan avatar jiongxuan commented on May 18, 2024

是这样,我们在去年底引入了Apache Commons库,这样可避免“重复造轮子”(并将之前的调用迁移到Apache上)。然而后来发现由于MIUI内置了“旧版本”的Apache库,且ClassLoader的双亲委派机制的原因(注意,和Hook无关),在“未混淆”的应用上,运行会出现找不到removeFinalModifier的情况。

换言之,只要在小米ROM上,用到Apache或第三方开源库的,且“未经混淆”的前提下,都会有这类问题,无论是哪个项目。当然,要解决这个问题也很简单,就是出包时混淆即可,只要Apache包名一改,则双亲委派就认为是两个Class,自然不会出现问题。

我们已将“替换Apache为原来自研类库”作为我们下一版的Issue,届时将不再使用Apache。就目前而言,您可以临时换一台非小米的手机来运行Sample,也可以像卫士那样混淆编译(我们AAR已自带混淆Proguard,引入即生效),也可以将Apache类库临时改名。

最后,非常感谢您提出的建议。

from replugin.

jiongxuan avatar jiongxuan commented on May 18, 2024

抱歉,这段时间一直忙,忘了回复了,这个我们早在2.1.1上已经修复了。欢迎试用。

from replugin.

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.