Giter VIP home page Giter VIP logo

Comments (6)

canyie avatar canyie commented on July 28, 2024

Upload full logcat?

from pine.

czins23 avatar czins23 commented on July 28, 2024

logcat 不太方便发出来,strexeq r0, r0, [ip] 还有别的写法吗,
image 我这s23上 hook 了一个静态函数,但是 s21 没问题,都是 android 13,多跑了几次就报 ILL_ILLOPC,看上边的日志是不是这行报错的?

from pine.

canyie avatar canyie commented on July 28, 2024

也就是说,第一次跑没问题?那我怀疑不是 strexeq 的问题,是这里的内存被不知道谁改掉了。你确定崩溃的时候这里还是 strexeq 指令?我倾向于野指针破坏了这里的内存

from pine.

czins23 avatar czins23 commented on July 28, 2024

image

image

image

看着是这里呀,不知道对不对,我改了下不崩溃了,strexeq r4, r0, [ip],r4 寄存器是不是也能在这里用?

from pine.

canyie avatar canyie commented on July 28, 2024

我不确定,那段汇编我基本上是写下来就没管过,应该有三年了,调用约定全忘光了……
刚刚翻了一下 art 源码,R4 寄存器在 art 上在调用 jni 方法时被用了存储 “locking register” 和 “hidden argument” ,可能需要测试执行 synchonized 的 jni 方法时触发 SIGQUIT 信号产生 ANR dump 时会不会有问题

我其实觉得 r4 能用就没道理 r0 不能用,而且执行几次后才崩溃不像典型的非法指令,我怀疑可能是指令缓存之类的有问题

公司有一台 Pixel 4 XL 刷了 android 13,有空我去试一下

from pine.

canyie avatar canyie commented on July 28, 2024

能提供一下 hook 的是哪个方法吗,我这里没有复现出来

from pine.

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.