crmulliner / ddi

ddi - Dynamic Dalvik Instrumentation Toolkit
http://www.mulliner.org/android/
394 stars 159 forks source link

Is this need rooted device? #11

Closed XuNeal closed 9 years ago

XuNeal commented 9 years ago

I see it do "su" before run hijack. Is that mean the device must be rooted? I want use this technique in my app. And do the steps (copy *.so, get pid, run hijack) in a subclass of Application in my APP. But my customer's device may not be rooted. Is this possible to do that?

t0kt0ckus commented 9 years ago

A rooted device is a strict requirement, at least for any AOS version that limits access to the ptrace API, which may be any reasonably recent version. So even if you manage to work around the file permissions issues, hijack will fail to inject the shared library into the target process.

XuNeal commented 9 years ago

thx for commented, What did you say is very simple to understand, I shoud think that myself.