Skip to content

有一种特殊情况,不知道能否优化下,因为substrate是正常的(测试过安卓11,安卓13都是这样) #42

Description

@shuajinanhai

ShadowHook Version

1.0.7

Android OS Version

13

Android ABIs

armeabi-v7a

Device Manufacturers and Models

魅族18s 小米6

Describe the Bug

有一种特殊情况,不知道能否优化下,因为substrate是正常的

情景1:使用shadowhook_hook_func_addr hook u3d游戏里一个函数,不会崩溃
情景2:使用substrate hook u3d游戏里一个函数,然后再使用AndHook AKHookFunction hook该函数并不会崩溃
情景3:使用shadowhook_hook_func_addr hook u3d游戏里一个函数,然后再使用AndHook AKHookFunction hook该函数会崩溃

情况是这样的,拿到一个包,里面有别人用AndHook AKHookFunction hook过,
然后我想改一些东西,使用substrate hook该函数,并且时机比别人早,不会崩溃,也可以成功修改别人一些东西
但是使用shadowhook,同样是hook该函数,时机也比别人早,会崩溃

pid: 5624, tid: 5660, name: UnityMain >>> com.PoxelStudios.DudeTheftAuto <<<
uid: 10142
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xda7c9000
r0 af2a5a18 r1 db1f5000 r2 00000000 r3 dae4b450
r4 af2a5a18 r5 dae48c50 r6 af2bead0 r7 bf0cdc70
r8 af2a5a18 r9 00000003 r10 00000000 r11 dae4b468
ip 00000000 sp dae48c50 lr db9d1be8 pc da7c9000
backtrace:
NOTE: Function names and BuildId information is missing for some frames due
NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
NOTE: found under the lib/ directory are readable.
NOTE: On this device, run setenforce 0 to make the libraries readable.
NOTE: Unreadable libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions