Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zygote ptrace blocks other tools #1289

Closed
ciapatakoza opened this issue Apr 2, 2019 · 3 comments
Closed

Zygote ptrace blocks other tools #1289

ciapatakoza opened this issue Apr 2, 2019 · 3 comments

Comments

@ciapatakoza
Copy link

Hi,
The new way (ptrace based) of watching for application spawn blocks usage of other ptrace based tools like frida as both tools need to ptrace zygote process.
The ptrace based spawn watch was introduces in Magisk 18.1 (proc_monitor.cpp:new_zygote).

Could you add kind of switch which could be used to choose which spawn watching function would be used?

# ./frida-server-12.4.7-android-arm64 Unable to preload: Unable to access process with pid 622 due to system restrictions; try sudo sysctl kernel.yama.ptrace_scope=0, or run Frida as root

# ps -AZ | grep 622 u:r:zygote:s0 root 622 1 4244388 71348 poll_schedule_timeout 725b9f0e34 S zygote64

# cat /proc/622/status Name: main State: S (sleeping) Tgid: 622 Pid: 622 PPid: 1 TracerPid: 609

# cat /proc/609/status Name: magiskd

@topjohnwu
Copy link
Owner

You just have to disable MagiskHide for that. A single process can only be traced by one tracer.

@nvx
Copy link

nvx commented Feb 15, 2020

Is there a way to make frida and magisk hide cooperate? Sometimes it can be useful having the functionality of both at the same time.

@febryanasaperdana
Copy link

@nvx Try to take a look at Magisk-Frida module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants