Comments (7)
抱歉,这段时间项目太紧张了,没有及时回复github上的问题。
-
使用gnu hash时,也会有一部分放在undef中的,如果不遍历undef,有些符号会找不到的。
-
目前没有这个打算哦,4.x还是有一定量的,比如我厂的app就还没有放弃4.x。另外,还有不少老旧的tv盒子在使用4.x的安卓系统的,tv盒子的换代周期是比较长的。。。
from xhook.
好的,谢谢~
from xhook.
乌龙了,请忽略
from xhook.
嗯嗯,我目前还没有在Android Q里试过。
“android q 里也提到了这个改动。”
这个有什么文档或者出处吗?能贴个链接吗?
from xhook.
乌龙了,请忽略
好吧。还是感谢你的关注。
from xhook.
android q beta 2 出来了,这次应该要挂。当然,自己的库没事。
在 Android P 上,找 jniRegisterNativeMethods
时:
found jniRegisterNativeMethods(plt+2) in /system/lib64/libandroid_runtime.so, 0x777466e090 -> 0x77749203bc
maps 文件为:
777445b000-777463f000 r-xp 00000000 fd:00 2194 /system/lib64/libandroid_runtime.so
7774656000-7774675000 r--p 001f1000 fd:00 2194 /system/lib64/libandroid_runtime.so
7774675000-7774676000 rw-p 00210000 fd:00 2194 /system/lib64/libandroid_runtime.so
777491e000-7774924000 r-xp 00000000 fd:00 2113 /system/lib64/libnativehelper.so
777493d000-777493e000 r--p 0000f000 fd:00 2113 /system/lib64/libnativehelper.so
777493e000-777493f000 rw-p 00010000 fd:00 2113 /system/lib64/libnativehelper.so
可以看到,0x777466e090
在 libandroid_runtime.so 中 r+p 那一行范围内,而值 0x77749203bc
也在 libnativehelper.so 中 r+xp 那一行范围内。
而到了 android q beta 2,找 jniRegisterNativeMethods
时:
found jniRegisterNativeMethods(plt+1) in /system/lib64/libandroid_runtime.so, 0x7db396c740 -> 0x7db15fb014
整个 maps 相关文件:
7db3787000-7db3844000 r--p 00000000 fd:03 2462 /system/lib64/libandroid_runtime.so
7db15fe000-7db15ff000 r--p 00006000 07:18 109 /apex/com.android.runtime/lib64/libnativehelper.so
我没有接入 xHook,直接使用的 dl_iterate_phdr。在 android q beta 2 中实际能不能从 7db3787000-7db3844000
范围中找到 plt 表,没有实际验证。但是就 dl_iterate_phdr 结果来看,应该是无法找到的。
from xhook.
补充说明下,如果是自己的库,没有问题。
dl_iterate_phdr 给出的结果,均在 maps 文件中体现。
from xhook.
Related Issues (20)
- 想问个项目中的代码问题 HOT 1
- 请问哪些数据可以进一步了解更多关于底层编译链接知识。
- arm64的PLT和arm的PLT有啥区别吗?
- error: ‘PAGE_MASK’ undeclared (first use in this function)
- 在二进制文件中使用libxhook对__android_log_print进行hook,hook不成功
- 请问如何知道自己被hook了?
- hook libil2cpp.so 失败,求助 HOT 1
- float args in hooked function
- Can't hook library HOT 1
- Android 11 support
- libc.so (memcmp) xh_core_refresh crash pls help me. HOT 1
- how to hook c++ class instance's method?
- hook libil2cpp.so 失败,求助 HOT 1
- 请问这里的函数返回值为什么是void*,而非void? HOT 1
- 请教两个问题
- 执行demo里面的./gradlew assembleDebug报错
- 在安卓aab包,xhook会失败。。 HOT 2
- xhook not working in some cases
- 希望支持安卓11
- __system_property_get no work in xiaomi android 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhook.