jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DobbySymbolResolver "__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv" 失败

liusj5257 opened this issue · comments

看日志调用到DobbySymbolResolver就崩溃了

LOGI("api_level: %d", api_level);
if (api_level >= 30) {
void *addr = DobbySymbolResolver(
nullptr, "__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv");
LOGI("addr = %p", addr);
if (addr) {
LOGI("do_dlopen at: %p", addr);
return DobbyHook(addr, (void *)new_do_dlopen_V24,
(void **)&orig_do_dlopen_V24);
}
日志
02-19 16:19:29.387 23053 23077 E Perfare : hook
02-19 16:19:29.387 23053 23077 I Perfare : api_level: 33
02-19 16:19:29.391 23053 23053 D BgcPlugin: tag: LocalContentProvider ,msg: onCreate, current thread:main
02-19 16:19:29.392 23053 23053 I MultiDex: VM with version 2.1.0 has multidex support
02-19 16:19:29.392 23053 23053 I MultiDex: Installing application
02-19 16:19:29.392 23053 23053 I MultiDex: VM has multidex support, MultiDex support library is disabled.
02-19 16:19:29.400 23053 23053 V OVFeatureUtils: ovBaseEnabled: true
02-19 16:19:29.400 23053 23053 V OVFeatureUtils: ovBaseEnabled: true
--------- beginning of crash
02-19 16:19:29.401 23053 23077 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2f46bef6014154 in tid 23077 (libili.azurlane), pid 23053 (libili.azurlane)
02-19 16:19:29.426 23053 23053 D DecorView: isCts, pkg: com.bilibili.azurlane
02-19 16:19:29.427 23053 23053 D DecorView: enableCaption====falsefalse com.android.internal.policy.DecorView.createDecorCaptionView:2571 com.android.internal.policy.DecorView.onResourcesLoaded:2474 com.android.internal.policy.PhoneWindow.generateLayout:2743 com.android.internal.policy.PhoneWindow.installDecor:2806 com.android.internal.policy.PhoneWindow.setContentView:509