-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Daemon process gets killed by /init #1880
Comments
This could be due to your devices over aggressive battery optimization. Have a look here: |
Havoc 2.9 based on AOSP has this problem too :( |
I tried, and this time it died after about a week. Seemed to last longer. Not sure if this is due to battery optimization. IMO, it is not quite probable, since it is init killing a system service with root privileges. |
I see. May I ask that have you tried disabling battery optimization for Magisk Manager and other root apps (before disabling overall battery management)? Did that help? I'm sorry that I cannot find those settings in MIUI, so I am not able to try and see if that is the solution for me. |
@chen-456 Sorry, I haven't. And that way is useless now, magiskd be killed just now althought disable battery management. So I have deleted that post, sorry very much. Your issue are still a secret now :( |
@chen-456 using magisk release (not debug) version may fix this problem. canary build release version also ok. |
I never use the Canary Debug version. I have performed some major changes to my system, including updating Magisk to 20.1 and uninstalling some modules. I will wait and see if anything will change. |
I'm sorry, but with the latest Magisk Canary version (20.1 20003), |
As far as I understand battery optimization is applicable only to processes running under Your attached
Refer to this commit, when a service is started by Android
But while starting the service,
So either fix your
|
I'm also having issues with Magisk stopping to work after a few days of phone uptime. I'm using Magisk 20 on Oxygen OS 9. Did you get the logs via adb? Executing su from Termux gives some message like no daemons running and the Manager tells me Magisk not installed |
Yes, I patched But for now, my suggestion is to simply check if the situation you encountered is the same as me. Simply do a |
On stock MIUI China (MIUI 10 9.9.26) with Magisk 19.4-736729f5 (19309), after the device being powered on for a day or two, Magisk's
su
daemon process gets killed, and root access cannot be obtained anymore, until next reboot. Running Stable / Canary versions or disabling Magisk Hide does not seem to resolve the problem.By making use of SELinux (
magiskpolicy --live 'auditallow * magisk process sigkill'
), I have basically figured out that MIUI's/init
program sentSIGKILL
to the Magisk daemon process, as indicated by the followingdmesg
messages:I am sorry that I am having no idea of further analysis. Also, I am unable to find any particular way to trigger such behavior, except for waiting.
The full
dmesg
log around theSIGKILL
s is attached here.The text was updated successfully, but these errors were encountered: