yashsingh1/xdaforums huggingface dataset:
[Magisk] Geofferey:
[MENTION=4487388]jcmm11[/MENTION]

1 ) I should actually direct users to uninstall any previous versions and install the newest. I changed the id to com.geofferey.mgkdhelper to avoid ANY ID conflicts in repo (not sure what topjohnwu/mods will think). I know the likelyhood of another user having mgkdhelper inside repo is extremely low but other modules of mine are often re-works of others which may be uploaded one day. I've also made tweaks for iOS in past and that's a requirement to ensure absolutely no conflicts. It's also done for Android packages as well for same exact reasons.

Since the module is now a major re-work of the original I will go with your suggestion of a switch to v2.0.2 vcode 2.

2 ) I fixed the retry logic now, don't know how I commented out. I am going to keep it in because I had originally planned to implement. Don't want the .log to fill up with failure messages in the event it can't restart magiskd or false positives.

3 ) There is now a proper README.md & I'm getting close to submitting. You should also join the project on GitHub if you want. Let me know if there is anything that will prevent this module from being accepted before I submit.

Sadly this module may never make it into the MAGISK repo:

That statement is very troublesome to me because "simple" boot scripts (like these) can achieve great results. IMHO it also shows closed mindedness... If they do happen to reject for such reasons I will not bother fighting with them to get it accepted. Hopefully their definition of "simple" is different from mine & I can strike through when it's accepted though ;)
[Magisk] jcmm11:
[MENTION=3421557]Geofferey[/MENTION]

Posted up on GitHub. You have one error in the script. Plus I had some thoughts on the retry logic.
[Magisk] Geofferey:
[MENTION=4487388]jcmm11[/MENTION]

That's great! Since you really want to contribute you should FORK the repo, PULL from your fork, MODIFY, PUSH back & submit a pull request from your repo to mine. After I test everything I can accept it. That way ALL the changes you make will PROPERLY be credited to you. You seem to be very proficient in shell scripting. That's a valuable asset which can be demonstrated to potential employers & others with a github. Start now because I wish I did a long time ago ;) .

I'll wait a bit before I add your new changes so you can do it yourself if you'd like.
[Magisk] jcmm11:
Can't do any of that properly since currently all my work is being done on the phone. I'm not worried about credit, it's all good.
[Magisk] Geofferey:
[MENTION=4487388]jcmm11[/MENTION]

No worries, I'll update asap. I took your changes and implemented just a lil differently. FYI, I do all of this without a computer on my phone. A debian chroot is a wonderous thing.
[Magisk] OMGLOLetcetc:
I was losing root every other day. This is great. Thanks a lot!!
[Magisk] jcmm11:
I've been avoiding installing git on here for a few reasons. Maybe I'll change my mind, but I'm not worried about it. If you're into running Debian (or other Linux) on the phone you may want to check out https://play.google.com/store/apps/details?id=tech.ula
[Magisk] Geofferey:
[MENTION=4487388]jcmm11[/MENTION]

Thanks for that, I'm checking it out.

Currently I'm using a more custom solution:

https://github.com/Geofferey/bootdebi

It allows for full system integration with ROM even when root is removed & it can be made persistent. Requires a bit more setup but well worth it to have no restrictions. If the kernel is capable it will run whatever you install. How you think I figured this without root? Haven't updated repo in a while, but it's a crazy awesome dev tool.

Edit: New release v2.1.0 available!
[Magisk] danbest82:
This is a great mod. It helped me keep root for about a week but now I lose it while my phone is charging overnight. I have an LG v30 running rooted stock 8.0 and latest Magisk. I've tried lessening the amount of wait seconds to 45 and will see if that helps. I just wanted to post my experience and I'm sure it's just something on my phone killing it that I need to figure out.

Thank you for the mod.

[edit] : seems to be working. Will continue to test.
[Magisk] latios 93:
Hi guys, with latest release magisk continues to disable itself... the workaround seems not work. I have to reboot the device to re-activate it.

I am using Magisk 19.3
[Magisk] fgenerali:
I'm using magisk 19.3 too and the workaround work fine for me.
[Magisk] franco985:
Hi, first of all great solution and congratulations for you work. If i wanna unistall the module, how can i do? thanks
[Magisk] crok.bic:
Just like any Magisk module:

either remove it from Magisk Manager's Modules section

or delete it's directory from /data/adb/modules/...
[Magisk] iw2ngg:
Same thing here.

4 or 5 times a day.

(Before this post I already re-flashed clean boot image)
[Magisk] revuwa:
Same here.
[MENTION=2838735]aosp[/MENTION] 9 / Magisk 17.3 / 19.3 / Canary (Aug 12, 2019).

Magisk Hide was/is disabled all the time

With & without mgkdhelper module, (in the "without case", Magisk was set to core mode).

I'm loosing root at least 1 time per day/night.

I'm really desperate :(
[Magisk] _litz:
I've had this problem for months, with this mod, without this mod, on fresh install, with (and without) core mode. There is nothing seemingly that causes it except ... well ... having Magisk installed. 3-4-5 times a day. Happend on v17, v18, now v19. The mod "seems" to help ... but then I get 3 magisk failures inside a few hours. It's utterly maddening and frustrating.

If it wasn't for the fact that I can't run tasker tasks without Magisk/root, I'd frankly have given up long ago.

The constant rebooting of the phone is long past tiresome and I wish someone would/could just fix the damned problem already.
[Magisk] Icecube11:
If somebody still has the problem, just disable automatic battery management, but then there is no point in installing this module.
[Magisk] sjamie:
It appears uninstalling Magisk 19 and reinstalling it causes the losing Magisk less frequently but the problem is still there.
[Magisk] allien72:
I am on android pie, eu rom. Xiaomi mi 8 lite. It used to happen to me once two days or so. With this mod root wasn't lost for 12 days but happened again yesterday and after reboot root was back. As a friend said it is important for tasker profiles for me. I tried everytihing recommended here but the problem is still there. I searched everywhere but couldn't find a solution. It is very annoying.

I don't know whether it will work but I flashed supersu over magisk. Maybe it is silly but I will give a try.
[Magisk] adityaon:
Same problem!
[Magisk] Freegeeek:
In my case I did face this issue but when I checked the auto update was the issue just disable it the problem should hopefully be gone
[Magisk] aleMarvel:
nope, don't work for me.. xiaomi note5pro with miui 10... i must reboot..
[Magisk] Freegeeek:
Just try disabling auto update then reflash the module
[Magisk] aleMarvel:
i not understand, sorry.. auto update what ? where ?
[Magisk] Freegeeek:
Go to magisk app

---------- Post added at 02:02 PM ---------- Previous post was at 02:01 PM ----------

Then go to settings then disable auto update /check for updates in my case it fixed the issue
[Magisk] aleMarvel:
i have done but is correct ?

my log says

"

Started Fri Sep 6 15:20:30 CEST 2019

Current PID: 1148

Detections: 0

Successes: 0

Failures: 0

-----------------------------

Latest attempts:

"
[Magisk] Freegeeek:
Just do this disable check for update
[Magisk] Freegeeek:
I think so I haven't checked the logs on mine so I don't know
[Magisk] aleMarvel:
was already disabled for me
[Magisk] aleMarvel:
nothing to do... don't work for me :(
[Magisk] adityaon:
Problem is back with magisk 13.4 version! [MENTION=3421557]Geofferey[/MENTION]
[Magisk] PerCompLLC:
This has solved the issue for me so far (4 days and counting). Running Magisk 19.3. Thank you!

Edit: Spoke too soon. Had to reboot this morning to bring back Magisk. Oh well...

Edit 2: Installed 19.4 beta and all appears to be well.
[Magisk] wooki:
On my Oneplus 6t I still get a killed magisk. The log file sadly doesn't provide any details as I was unable to retrieve it after losing root. :(
[Magisk] PerCompLLC:
For those waiting for 19.4 to solve this issue, 19.4 beta still has the problem...
[Magisk] misquia:
I'm experiencing the same issue with 19.4 beta, actually been having this issue with previous versions for months now. I tried installing this module the other day, but it didn't seem to help, I'm still having to restart every day to get root back.
[Magisk] ..Cory..:
Yeah, this is so weird. I haven't done anything to my 6t for months (flashing wise) and I've started to get this issue about a week ago. I only get it when I don't use my phone over night while I'm sleeping and wake up to an unrooted phone. Can't seem to see anything going on in my logs.

I actually feel better finding this thread and knowing I'm not the only one. I'll try this module tonight and report back.
[Magisk] sjamie:
Have either of you tried completely uninstalling Magisk then reinstalling it? Many people have gotten good results doing this. I've heard it at least reduces the frequency of Magisk crashing.
[Magisk] PerCompLLC:
Yes, tried uninstalling and reinstalling. Issues was fixed for several days and then it came back. After I installed 19.4 beta, the issue was gone for several days. And then it returned. It's maddening...
[Magisk] ..Cory..:
What he said ^ it's just so weird because I've went all these years using Magisk without ever experiencing this lol

It's not a big deal since I usually reboot my phone after a full recharge. But since getting my phone to last for about 2 days per charge, the morning in between charges is when I run into rebooting when I don't want to. :P
[Magisk] sjamie:
Yes, it seems the problem began around v17 or 18 for most people including myself. Some people also complained about the issue in earlier versions. Weird indeed! :eek:
[Magisk] PerCompLLC:
Believe it or not, I actually never had a problem until 19.3. And even then not until a few weeks ago.
[Magisk] sjamie:
You are obviously one super lucky person! :cyclops:
[Magisk] aleMarvel:
if return v16 ? is older ? hide work ? mhhh... this bug is terrible !
[Magisk] sjamie:
It may or may not work. Give it a try and let us know your findings.
[Magisk] allien72:
I have just changed the kernel, didn't install any magisk module and looks like the problem disappeared. I haven't lost root for 13 days. Otherwise the problem had been to arise mostly after 2 days.
[Magisk] aleMarvel:
kernel for miui ? how kernel tx ?

usually custom kernel on miui don't work gcam...
[Magisk] allien72:
Acrux kernel v.2

I am not interested in gcam. I didn't have any issue regarding the kernel. Just follow installation instructions carefully.

https://xdaforums.com/mi-8-Lite/development/kernel-lyra-kernel-mi-8-lite-t3927870
[Magisk] PerCompLLC:
So at this point, do we even know why Magisk is losing root randomly? Just curious...
[Magisk] stevekind:
Nope... No logs... No fix.
[Magisk] ..Cory..:
So I've been testing without this module or any other modifications -- other than locking my Magisk Manager app in the background and disabling any battery optimization for Magisk Manager -- and I woke up with my root still intact for 2 days now. It seems that, for me at least, OnePlus' memory management is very aggressive and kills the root daemon in the background after a certain amount of time and therefore results in loss of systemless root.
[Magisk] aleMarvel:
mhh.. i don't kwon... i have miui10 eu, note5 pro..

for me happen always by night (when battery is low, 20%)..

i think miui kill when battery is low.. my brother have xiaomi with pixel rom and never happen.. the problem is of miui, and for me starded 3 months ago.. june..

now i trying with franko kernel app for change memory killer and set "very light".. , i hope resolve this..

this bug is terrible..
[Magisk] PerCompLLC:
Mine is completely random. Usually every third or fourth night while charging, sometimes while charging at work. Doesn't seem to be any pattern at all. I'm running a rooted LG v30 on the latest VZW firmware.
[Magisk] aleMarvel:
i'm developer and random don't exist for me :D

obviously I'm not so good at solving ! :D

I have the doubt that it can also be the TWRP, something schematized must be because it doesn't do it at all

the only person who can solve this mystery is topjohnwu (top !), I don't understand why he doesn't say anything
[Magisk] stevekind:
As to my understanding noone has ever actually "seen" it happen (as in "having the eyes pinned on the phone while it lost root") or been able to take a proper log, as we cannot trigger it. We only grow aware of the problem by the symptoms (e.g. a root app throwing errors). Therefore not even [MENTION=4470081]topjohnwu[/MENTION] knows what's going on.
[Magisk] aleMarvel:
ok i tryed with franko kernel to change memory killer to very light but no result, after few hours magisk crash...

aggressive doze with whitelist too... don't resolve..

BUT

now i found a suspicious setting in miui.!!!

under the Battery & Performance > Manage app's Battery usage > Scenarios

is set TRUE for default and says KILL PROCESS bla bla !!!!

now i set FALSE

hope, for now (are 2 days today) no crash
[Magisk] aleMarvel:
nothing.. crashed again :(

next step.. i try change kernel..

EDIT : nope, after change kernel crashed again.. :(

only with miui.. with lineage never crashed
[Magisk] ..Cory..:
Has anyone tried on the latest Magisk stable?
[Magisk] Didgeridoohan:
As of recent changes (can't remember when or what, just going on [MENTION=4470081]topjohnwu[/MENTION]'s word), the daemon isn't designed to be restarted anymore. That means (in theory, I haven't tested) that this module should no longer have any effect...
[Magisk] ..Cory..:
So the only way to restart it is to reboot?
[Magisk] Didgeridoohan:
Yup.

Now, if someone could properly figure out why the daemon dies in the first place...
[Magisk] PerCompLLC:
Yup. Magisk still crashes regularly for me with the only apparent fix being a reboot.
[Magisk] jcmm11:
Hmm. Just tested and it still works. I suspect that no restart means you can't restart a running daemon, not that you can't start a dead one. Note that I normally don't have this module installed since the problem doesn't effect me.

First test:

Started terminal emulator

su

pgrep magiskd

(Note process id number)

pkill -9 magiskd

pgrep magiskd

(Verify that it got killed)

magisk --daemon

(Starts the daemon)

pgrep magiskd

(Verify that it's running and has a new process id)

Next test:

Install module

reboot

terminal emulator

su

pgrep magiskd

(Note process id number)

pkill -9 magiskd

(Wait one minute+)

(magiskd running again with a new pid. Also see log in /data/local/tmp/ )
[Magisk] sjamie:
WoW! What is your secret to magisk reboot immunity? I have to reboot 1-2x per day even with the latest Magisk v20 stable.
[Magisk] jcmm11:
I assume you have this module installed. Try this and see if it helps

Go to /data/adb/modules/com.geofferey.mgkdhelper and modify service.sh

Change:

nohup $MODDIR/script/mgkd-helper > /dev/null &

to

nohup nice -n -1 $MODDIR/script/mgkd-helper > /dev/null &

Then restart the phone. That will slightly boost the priority of the helper app, and also boost magiskd if the helper app starts it. Maybe the boosted priority will keep things from getting killed

I just thought of this and don't know if it will work, but it definitely won't hurt.

My secret? A Pixel 3 XL
[Magisk] ..Cory..:
[MENTION=4487388]jcmm11[/MENTION] will try when I get off work this evening, thank you.
[Magisk] Didgeridoohan:
Hm... Thank you for testing. I've experienced the daemon getting killed by the system once recently (while testing stuff, never in everyday situations) and was not able to restart it without a reboot. [MENTION=4470081]topjohnwu[/MENTION]'s explanation was that it's not designed to be restarted... Might be that it's possible, but unstable.

I'll see if I can ask him for details on that as some point.
[Magisk] aleMarvel:
i tryed several last week..

on my phone (note5pro whyred) the problem with pixel rom don't happen never.. (this is important)

on my other phone (s5neo) with lineage don't happen never too (this is important)

on my other phone (note4) with pixel don't happen never too (this is important)

with miui (10 or 11) happen after one day... (this is terrible)

i tryed all version of magisk from 18 to 19.3

THE PROBLEM IS THE ROM (MIUI 10/11)

but now i dont't know to try.. i changed kernel, installed this module, installed servicely, changed doze, disable all battery optionsi but i have no results.. the daemon close always.. :crying:
[Magisk] allien72:
You are definitely right. I was using eu rom, miui 10, and I couldn't solve the issue. Even I changed the kernel, I thought the problem has been solved but I was wrong, again I lost root.

And I installed pixel rom and the problem has been a history for me.

Also my friend has installed a miui based custom rom to his phone and he lives the same issue unfortunately and decided to install an aosp based room.
[Magisk] crok.bic:
It's really an interesting case.. I used to watch Telegram conversations, too, and it is happening to some LOS based and AOSP based custom ROMs, too, not only MIUI is affected.. weird :\
[Magisk] sjamie:
I am using a OnePlus 5 phone running stock OxygenOS and the phone loses root at least once per day on any Magisk version. For me, the problem started randomly towards the end of Oreo builds. Once Pie was released, it became an almost daily occurrence.
[Magisk] nostri:
I have oneplus 5 and only magisk 8.1 work fine.
[Magisk] sjamie:
Do you mean magisk version 18.1? If so, I also lose root on that version. Any version older than 17.1 prevents many of my magisk modules from working.
[Magisk] nostri:
Yes, only 18.1 work fine (oxygen os - op5)
[Magisk] sjamie:
Unfortunately, I still lost root with that version even when I was using Oreo.
[Magisk] korom42:
I'm still having Magisk losing root issue eith Magisk 20/20.1 on my HTC U11 stock ROM. Is this module compatible with Magisk 20.x?
[Magisk] prefor:
Do we just install this in TWRP or do we have to modify some codes? :)
[Magisk] aleMarvel:
miuimix have problem too ?
[Magisk] prefor:
The problem still occurs... This didn't help :(

Daamit I hate Magisk have become this way......
[Magisk] Sobek5150:
Some versions of Pie roms have a problem on my LG G6 some don't. One version I'm using now had this "lose root" issue. I used this module and fixed it! For reference I was using Magisk 19.4.

The add to the weirdness - Magisk 20 seems to have changed something as the module does not help and I loose root at least once a day (usually when phone is idle overnight). Reinstalling 19.4 Magisk with this module stopped the phone from loosing root again.

So you may need to play with what Magisk version on what rom you're on to get this module to work.
[Magisk] allien72:
I haven't used it, I don't know about it
[Magisk] maxq1:
this seems to be working for me. on 2 batt cycles already & no issues so far - OP 6T, magisk v20, OP Pie 9.0.17 :good::good::good:
[Magisk] wooki:
Still crashing for me :(

Oneplus 6t
[Magisk] PerCompLLC:
For anyone interested... Upgraded to 20.1 and haven't had a single crash since. Going on 4 days...
[Magisk] nostri:
Yes. Work normal. 10 days wihtout problems
[Magisk] sheikhMishar00:
same issues are happening with me. I'm on havoc OS Pie k
[Magisk] sheikhMishar00:
Module: Monitor Magisk Daemon

For those who are still facing the problem, please check the thread https://xdaforums.com/apps/magisk/module-monitor-magisk-daemon-t4128403
[Magisk] Brahim٠:
Hello I'm new to this but I have the same issue as you after successfully rooting my phone I lost root acces and I became Unable to use it on root checker says no roo and on magisk it says not istalled although I haven't done anything to uninstall magisk and root from my phone. And my question is how to exactly use your module to obtain root and maintain it? Do you intall it with twrp and how?

Ps:I have the latest current version of magisk 20.4
[Magisk] theartistisblue:
How do I install this please??? I'm using MAGISK on Android 10 on Samsung Galaxy Tab A (2019)

I patched my AR with Magisk and flashed it and my system works....

Sometimes Magisk manager tells me its installed, sometimes no ...

I have no clue how to install this mgkdhelper

pls help!
[Xiaomi Mi 9 Questions & Answers] stokks:
Hi,

I see that on xiaomi.eu there is a twrp listed for download for mi 9 (cepheus). Has anyone tried it?

:confused:
[Xiaomi Mi 9 Questions & Answers] expiredd:
Would like to hear from this too
[Xiaomi Mi 9 Questions & Answers] mNiosu:
Well, it's not HERE.

Where did you see it?
[Xiaomi Mi 9 Questions & Answers] Deleted member 5408779:
Didn't see it either.

Gesendet von meinem Mi A1 mit Tapatalk
[Xiaomi Mi 9 Questions & Answers] airwebber:
You talking about this one? The one raskolnikov suggested using?

https://androidfilehost.com/?fid=1395089523397920093
[Xiaomi Mi 9 Questions & Answers] doggydog2:
no, they mean twrp_cepheus.img from https://androidfilehost.com/?w=files&flid=38137 and previously published on https://xiaomi.eu/community/threads/tuto-mi-9-install-xiaomi-eu-magisk.49757/ but no longer, as this file is the same chinese TWRP published on the forum and it isn't a good fit.
[Windows Mobile Development and Hacking General] twolf:
Works GREAT on wm2003, finally a very easy to use today screen photodialer with lots of other great features. Also, it can partition and defrag cards.

Link: http://www.ppclink.com/?ppclink=product&do=view&id=60&PHPSESSID=794b5aead2ab97512d5288c777de5347
[Windows Mobile Development and Hacking General] Ameet:
works great on elfin too..
[Windows Mobile Development and Hacking General] towenk3:
icons?

how would i go about extracting the icons that the program uses. don't see them anywhere, just .dat files.
[Sprint LG G5 Questions & Answers] Shawon SrKr:
I have LG LS 992 dead after flash . Phone firmware was ZVF and i flashed it with ZV8 for unlocking . But phone is hard bricked now . It shows "Qualcomm QS-USB Loader" . Kindly help with any solution Kindly help
[Sprint LG G5 Questions & Answers] Shawon SrKr:
Please anyone help
[MX Player] mateganesh30:
9X Jhakaas is Marathi Music Channel.

Add this in Marathi Channels .
[Samsung Galaxy S8 Questions and Answers] ImKiira:
Deleate
[Xiaomi Mi A2 / 6X Questions & Answers] Äähhmm ... Ich:
Hi everyone,

I've got my Mi A2 on Wednesday (in Germany). I set it up, installed everything and then wanted to do an update. It only showed the November Patch. When I tapped download and install, after downloading it, it started applying it, but then showed an error message:

Couldn't update

Installation problem

I've searched the internet, tried everything they suggested, even resetting my device, but nothing helped. Is there any possibility of getting it to work without having to flash the update?
[Xiaomi Mi A2 / 6X Questions & Answers] vagsvag:
English pls, read the xda rules
[Xiaomi Mi A2 / 6X Questions & Answers] alexmaurizio:
Greetings from Padova, (Veneto, Italy, Covid red-zone).

Same message from my A2 here today (21/03/20).

Coming from PE and LOS flashed in January.

Please be careful, don't underestimate Covid risks.

Ciao and good luck to everyone!
[Xiaomi Mi A2 / 6X Questions & Answers] RC_cat:
Nice detail
[OnePlus 5T  Questions & Answers] r12500:
Anyone having a problem with push notification on op5t? Since pie i have this problem mostly with push notifications such as Instagram dms and WhatsApp i turned off battery optimization and deep optimization.

Skickat från min ONEPLUS A5010 via Tapatalk
[OnePlus 6 Questions & Answers] shaca:
hello guys

i have a oneplus 6 with NoLimits Rom.

My problem is that when i touch my screen it doesnt activate in that exact spot. i tested witj a touch pen and with the option were i see were im touching and the spot that i touch and were activates aint the same (i hope ppl understand this)

is there any way to calibrate the screen?
[OnePlus 6 Questions & Answers] mikex8593:
Backup data in twrp, wipe data and try again. If it's fixed, issue is in data. If persists, it's a system error. Restore data in TWRP. Make sure to delete lock screen before backup.