asLody / legend

A framework for hook java methods.
1.6k stars 369 forks source link

Android 5.1 系统Hook activity 的onCreate函数,在执行原函数时报错 #16

Open wonder2014 opened 8 years ago

wonder2014 commented 8 years ago

请问一下,Android 5.1 系统Hook activity 的onCreate函数,Hook成功了,但是在执行原函数时报错,日志如下:

V/ActivityThread: ActivityThread,callActivityOnCreate E/art: invalid stream - arg reg >= reg size (5 >= 5) in /data/app/com.legend.demo-2/base.apk

哪位大神知道原因?

rk700 commented 7 years ago

Android 6.0也遇到同样问题

gitQqqHs commented 7 years ago

应该是某些函数不能hook

MerlinYu commented 6 years ago

I also meet this problem,no one solve this problem?