Closed pengood closed 1 year ago
改成这样试试:
void* LogMessage(void *thiz, void *const char *file, unsigned int line, int id, int severity, const char *tag, int error) {
BYTEHOOK_STACK_SCOPE();
ALOGD("LogMessage %s",file);
return BYTEHOOK_CALL_PREV(LogMessage, thiz, file, line, id, severity, tag, error);
}
可以了,感谢感谢
bytehook Version
1.0.6
Android OS Version
10.0
Android ABIs
armeabi-v7a
Device Manufacturers and Models
pixel 1
Describe the Bug
希望hook Android libbase.so android::base::LogMessage::LogMessage构造函数,hook代码如下: `namespace android { namespace base {
}`
然后时间运行时在BYTEHOOK_CALL_PREV调用原函数时会崩溃,崩溃栈如下:
大佬帮忙看下是怎么回事啊