Git Product home page Git Product logo

Comments (7)

caikelun avatar caikelun commented on August 17, 2024

抱歉,这段时间项目太紧张了,没有及时回复github上的问题。

  1. 使用gnu hash时,也会有一部分放在undef中的,如果不遍历undef,有些符号会找不到的。

  2. 目前没有这个打算哦,4.x还是有一定量的,比如我厂的app就还没有放弃4.x。另外,还有不少老旧的tv盒子在使用4.x的安卓系统的,tv盒子的换代周期是比较长的。。。

from xhook.

liudongmiao avatar liudongmiao commented on August 17, 2024

好的,谢谢~

from xhook.

liudongmiao avatar liudongmiao commented on August 17, 2024

乌龙了,请忽略

from xhook.

caikelun avatar caikelun commented on August 17, 2024

嗯嗯,我目前还没有在Android Q里试过。

“android q 里也提到了这个改动。”

这个有什么文档或者出处吗?能贴个链接吗?

from xhook.

caikelun avatar caikelun commented on August 17, 2024

乌龙了,请忽略

好吧。还是感谢你的关注。

from xhook.

liudongmiao avatar liudongmiao commented on August 17, 2024

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.

liudongmiao avatar liudongmiao commented on August 17, 2024

补充说明下,如果是自己的库,没有问题。
dl_iterate_phdr 给出的结果,均在 maps 文件中体现。

from xhook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.