升级到1.1.1版本后,部分机型上的hook速度肉眼可见变慢了大约几十倍。
Open
bug
- Dominant language
- C
- Stars
- 2.6k
- Forks
- 399
- PR merge metrics
- No merged PRs in 30d
Description
### bytehook Version
1.1.1
### Android OS Version
MagicOS 7.0、HarmonyOS2.0.0、
### Android ABIs
arm64-v8a
### Device Manufacturers and Models
荣耀X30、华为Meta30Pro
### Describe the Bug
使用bytehook_hook_partial hook指定函数,通过回调发现每个hook_filter()回调之间耗时能达到20ms,非常慢。与手机性能关系不大,该问题主要集中在华为系。以前老版本都比较正常。
Contributor guide
Research direction
Start by reproducing the slowdown with bytehook 1.1.1 on the listed arm64-v8a Huawei and Honor devices, using bytehook_hook_partial and timing each hook_filter() callback. Compare the behavior with an older working version and inspect the changes affecting this path. Done means identifying and correcting the regression so callback gaps return near their previous timing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100