Comments (12)
@jackyxxu 在你生成要发布的APK的时候,所有的类除了Application都引用了Hack。
生成patch.jar属于打补丁的时候,此时不引用Hack也无所谓了
from nuwa.
@jasonross 谢谢!�这样就好理解多了。这样做实际意义和把虚拟机的这个检测开关关了差不太多了吧。
from nuwa.
@jackyxxu you are right
from nuwa.
@jasonross 我反编译的你sample中第一步生成的apk,在MainActivity.class并没有看到插入的Hack字节码,但patch却能打成功没有报CLASS_ISPREVERIFIED错误,肿么回事呢?
from nuwa.
@jackyxxu 会不会dex反编译成jar的时候有问题?我这貌似测试也是没有。但dex的输入是混淆后的jar,里面能看到Hack引用。因为我插入的字节码就一条指令,实际没有意义,dex到jar还原的时候不知道会不会有问题?
from nuwa.
貌似不混洗会出现这个异常: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.
按照你的Run the Sample没成功,虽然生成了path.jar 反编译看了里面只有修改后的cn.jiajixin.nuwasample.a.a.a(),path.jar路径没问题
from nuwa.
@Qiu800820 patch里面只有a正常,因为只是改了Hello里面的一个string,看看是否push到sd卡上了,应用运行是否报错
from nuwa.
@jasonross 没有报错,path.jar存在。如果不再SD卡上 Nuwa.loadPath应该会有个LOG
from nuwa.
Nuwa Gradle 有个优化的地方是$ANDROID_HOME 不存在情况读取sdk.dir更好(也有可能是我不喜欢设置这种变量)
from nuwa.
@Qiu800820 有道理,sdk.dir可以加上,你可以去写个pull request,哈哈
from nuwa.
@jasonross 嗯,估计是反编译过程有问题 : - )
from nuwa.
Related Issues (20)
- gradlew clean nuwaQihooDebugPatch -P NuwaDir=/F:\androidrelative\Nuwa-master HOT 1
- 与realm插件不兼容 HOT 1
- patch失败问题
- 这个错误如何解决 HOT 1
- 生成补丁包失败
- android技术热修复qq群(561394234)
- 这个项目搁置了吗?不维护来吗
- 大家6.0的手机上是好的么? HOT 2
- 开启混淆之后编译不通过,com.android.dx.cf.code.SimException: stack: overflow HOT 2
- release怎么生成path.jar HOT 1
- Where is"bug fix" branch? HOT 1
- 当既有混淆又加上了360加固、百度加固之类的加固操作之后要做啥处理不
- patch.jar怎么生成??
- $ANDROID_HOME is not defined HOT 1
- 热修复补丁管理控制台(后台代码 + 客户端集成sdk)https://github.com/baidao/tinker-manager HOT 4
- java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
- Nuwa如何实现插件化开发呢?
- Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). HOT 1
- Nuwa可以热更新xposed插件吗?
- Sentence structure and Spelling error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuwa.