PAGalaxyLab / YAHFA

Yet Another Hook Framework for ART
GNU General Public License v3.0
1.57k stars 351 forks source link

奔溃 android 8.0 oneplus 5 #56

Closed Code89757 closed 6 years ago

Code89757 commented 6 years ago

06-05 18:50:21.345 19595-19595/lab.galaxy.yahfa.demoApp A/libc: Fatal signal 7 (SIGBUS), code 1, fault addr 0x1e14e000000003 in tid 19595 (y.yahfa.demoApp), pid 19595 (y.yahfa.demoApp)

Code89757 commented 6 years ago

File:trampoline.c Line:129

 switch (SDKVersion) {
        case ANDROID_O:
            trampoline1[13] = '\x14'; //10 14 40 f9 ; ldr x16, [x0, #40]
            break;
....
}

是否应该修改一下,比如:

    switch (SDKVersion) {
        case ANDROID_O2:
        case ANDROID_O:
            trampoline1[13] = '\x14'; //10 14 40 f9 ; ldr x16, [x0, #40]
            break;
rk700 commented 6 years ago

已合并 https://github.com/rk700/YAHFA/pull/57