bytedance / bhook

:fire: ByteHook is an Android PLT hook library which supports armeabi-v7a, arm64-v8a, x86 and x86_64.
https://github.com/bytedance/bhook/tree/main/doc#readme
MIT License
2.05k stars 315 forks source link

mprotect 返回-1 #74

Closed Zheng-JiaCheng closed 1 year ago

Zheng-JiaCheng commented 1 year ago

bytehook Version

v1.0.7

Android OS Version

13

Android ABIs

arm64-v8a

Device Manufacturers and Models

xiaomi 13 Ultra

Describe the Bug

05-12 21:16:46.027 1858 3575 E bytehook_tag: JC mprotect result: -1

init 失败 code:24 BYTEHOOK_STATUS_CODE_INITERR_CFI

Zheng-JiaCheng commented 1 year ago

setenforce 0之后没报错了,看起来是SELinux原因