Giter Site home page Giter Site logo

Comments (5)

zqhGeek avatar zqhGeek commented on August 14, 2024 1

感谢大佬的帮助,因为我习惯了看那个log中的 hook ok的日志,看到没打印就认为是不成功,没有用回调去看,实际看是hook成功了,我先关闭,后面我补上回调看看,结果

from bhook.

caikelun avatar caikelun commented on August 14, 2024

你应该是设置了 useLegacyPackaging false(旧版本 gradle 是 extractNativeLibs),这种情况下 so 会以未压缩的形式放到 apk 中,apk 会变大,安装后不需要把 apk 中的 so 解压出来,因此安装后占用体积会变小。

这种情况下,maps 里也是有的,只是只能看到 xxx.apk,看不到 so 名。用 dl_iterate_phdr 可以获取到 so 文件名,就是你截图中的命名格式。

bytehook 是支持 hook 这种形式加载的 so 库的。hook 失败和这个问题应该没有关系。

hook 失败,你可以贴一下执行 hook 的逻辑,以及 hook 函数的返回值,还可以通过 bytehook_hooked_t hooked 设置 callback,在 callback 里可以获取 hook 失败的 status_code。

from bhook.

zqhGeek avatar zqhGeek commented on August 14, 2024

image

我使用的是项目的demo,没有修改hook部分,仅修改hookee_test,我发现不管是否有压缩形式,hook的回调都是随机性,不是每次成功hook都回调,回调也是demo中的逻辑没有改动,使用的是single模式,虽然结果都能hook到,但是每次的日志输出都不固定

from bhook.

caikelun avatar caikelun commented on August 14, 2024

@zqhGeek adb logcat -b main -G 6M

from bhook.

zqhGeek avatar zqhGeek commented on August 14, 2024

@caikelun 我已经在开发者模式调到了16M,应该不是这个影响?

from bhook.

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.