Giter VIP home page Giter VIP logo

Comments (3)

HolenZhou avatar HolenZhou commented on June 20, 2024 1

我也有类似的问题。是编译器优化,将常量直接替换为硬编码字符串了。
比如我在我的类Utils中引用了android.provider包下的MediaStore类中的一个常量,这个常量预期是不要进行加密,也没有对其包名进行配置,但打包后还是加密了,因为打包后这个常量已经被替换为硬编码字符串了。
想请教下有办法能避免这种情况吗?

from stringfog.

MegatronKing avatar MegatronKing commented on June 20, 2024

stringfog库用的是哪个版本?如果是5.0.0,有可能,已经不直接依赖ASM库了而是依赖AGP的接口,有可能行为出现了变更。

from stringfog.

phoenixsky avatar phoenixsky commented on June 20, 2024

v4.0.1 ,不知道我的项目哪里的东西影响了。我重新搞了demo工程,是可以被混淆的

from stringfog.

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.