Git Product home page Git Product logo

Comments (12)

jasonross avatar jasonross commented on September 23, 2024

@jackyxxu 在你生成要发布的APK的时候,所有的类除了Application都引用了Hack。

生成patch.jar属于打补丁的时候,此时不引用Hack也无所谓了

from nuwa.

jackyxxu avatar jackyxxu commented on September 23, 2024

@jasonross 谢谢!�这样就好理解多了。这样做实际意义和把虚拟机的这个检测开关关了差不太多了吧。

from nuwa.

jasonross avatar jasonross commented on September 23, 2024

@jackyxxu you are right

from nuwa.

jackyxxu avatar jackyxxu commented on September 23, 2024

@jasonross 我反编译的你sample中第一步生成的apk,在MainActivity.class并没有看到插入的Hack字节码,但patch却能打成功没有报CLASS_ISPREVERIFIED错误,肿么回事呢?

from nuwa.

jasonross avatar jasonross commented on September 23, 2024

@jackyxxu 会不会dex反编译成jar的时候有问题?我这貌似测试也是没有。但dex的输入是混淆后的jar,里面能看到Hack引用。因为我插入的字节码就一条指令,实际没有意义,dex到jar还原的时候不知道会不会有问题?

from nuwa.

Qiu800820 avatar Qiu800820 commented on September 23, 2024

貌似不混洗会出现这个异常:11-17 17:08:19.976 2786-2786/cn.jiajixin.nuwasample E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.jiajixin.nuwasample/cn.jiajixin.nuwasample.MainActivity}: java.lang.RuntimeException: Could not inflate Behavior subclass android.support.design.widget.AppBarLayout$ScrollingViewBehavior

from nuwa.

Qiu800820 avatar Qiu800820 commented on September 23, 2024

按照你的Run the Sample没成功,虽然生成了path.jar 反编译看了里面只有修改后的cn.jiajixin.nuwasample.a.a.a(),path.jar路径没问题

from nuwa.

jasonross avatar jasonross commented on September 23, 2024

@Qiu800820 patch里面只有a正常,因为只是改了Hello里面的一个string,看看是否push到sd卡上了,应用运行是否报错

from nuwa.

Qiu800820 avatar Qiu800820 commented on September 23, 2024

@jasonross 没有报错,path.jar存在。如果不再SD卡上 Nuwa.loadPath应该会有个LOG

from nuwa.

Qiu800820 avatar Qiu800820 commented on September 23, 2024

Nuwa Gradle 有个优化的地方是$ANDROID_HOME 不存在情况读取sdk.dir更好(也有可能是我不喜欢设置这种变量)

from nuwa.

jasonross avatar jasonross commented on September 23, 2024

@Qiu800820 有道理,sdk.dir可以加上,你可以去写个pull request,哈哈

from nuwa.

jackyxxu avatar jackyxxu commented on September 23, 2024

@jasonross 嗯,估计是反编译过程有问题 : - )

from nuwa.

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.