yashsingh1/xdaforums huggingface dataset:
[Magisk] Didgeridoohan:
I've been trying to get some help in debugging the actual issue... But since I don't experience the problem myself, it's tricky.

It has to do with MagiskHide, and one theory is that it has to do with the newly (re)added props that Hide changes, ro.build.type, ro.build.tags and ro.build.selinux. If someone with the issue could try to disable MagiskHide, change those props one by one to the "safe" values (if they're not set to those values already) and see if the issue occurs.

MagiskHide changes the props to the following values:

ro.build.type=user
ro.build.tags=release-keys
ro.build.selinux=0

The way to change them is with the resetprop tool, the syntax would be as follows (note the lack of "="):

resetprop ro.build.type user

The "unsafe" values would be:

ro.build.type=userdebug
ro.build.tags=test-keys
ro.build.selinux=1

You can use getprop to see if your device has these values before starting (in terminal):

getprop ro.build.type

And so on...

Changin the values with resetprop can be done in a terminal emulator (as su) or if that doesn't trigger the issue, it is possible it has to be done during boot with a boot script. This can be done by putting the following lines in a file, place it in /magisk/.core/post-fs-data.d and give it permission 755 (rwxr-xr-x):

#!/system/bin/sh
resetprop ro.build.type user

Try the props one at a time to see if it's one of them causing the issue.

Edit: to revert any changes it is just a matter of using resetprop to change the value back, or rebooting. Or if using the boot script deleting it and rebooting.
[Magisk] n_boy86:
Hello [MENTION=4470081]topjohnwu[/MENTION]

Sinxce last release the phone become unresponsive laggy and app is FC all the time, please fix cosmic os 7.1.1 5.04 and magisk 13.1 cheers
[Magisk] Didgeridoohan:
You posted this exact message yesterday, didn't you? :p I guess I didn't answer... :laugh:

The log doesn't show anything out of the ordinary. There is a lack of unmounting lines, but that may be a bug somewhere because my MagiskHide works perfectly and there are no unmounting lines in my log either... Take a look in my troubleshooting guide to see if anything helps.

---------- Post added at 10:03 ---------- Previous post was at 10:02 ----------

Try disabling MagiskHide and rebooting.
[Magisk] amageek:
is there a separate SafetyNet flashable file? If yes, can you share the link??
[Magisk] tys0n:
Updated to 13.1 on my A3 2016 yesterday. Working fine on both LOS and TW-based rom.

Skickat från min SM-A310F via Tapatalk
[Magisk] zxcv741:
I tried pretty much everything exepct for starting clean/fresh, because I don't think it's neccessary since I first installed v12 on completely fresh system and it didn't pass even then.

One thing that changed is that I enabled logcat on my p9lite, but it didn't matter at all.

Well I think there's something wrong deeper in the phone and I doubt pokemon go and normal netflix app is worth the hassle, since I tried to get it working mostly for these
[Magisk] smilinghardik:
Plz help Unrooted using fullunroot superuser And flashed Magisk.zip it shows error 1 boot image Patched by other program and stock boot image is Not Restored

I dont No y
[Magisk] lilphoenix:
Hi,

I can't make update Magisk from 12 to 13.1. I try by Magisk Manage and by download Zip and flash it on TWRP.

I'm on OmniRom on LePro3.

I see with new version of Magisk need to have data access, but don't know how make it.
[Magisk] Didgeridoohan:
Because the boot image is still patched... You'll need to restore a stock, unpatched boot image.

If you're using a custom ROM take a look in the ROM zip if you can find a boot.img file to flash. If your ROM comes pre-rooted, you might be lucky and the ROM simply flashes root as a last step and the boot image in the zip will be untouched.

If you're not using a custom ROM you can find the stock boot image in your factory image/firmware file.
[Magisk] smilinghardik:
I Am In Dr ketan Custom rom

---------- Post added at 09:58 AM ---------- Previous post was at 09:55 AM ----------

Its prerooted Custom Rom..plz tell me d steps for this
[Magisk] Didgeridoohan:
There's a section in this guide about the "patched by other programs" issue. Take a look at that and give it a go.
[Magisk] smilinghardik:
Should i flash boot.img and then Magisk.zip
[Magisk] CooperBrick:
I'm having problems with 13.1... a service called "magisk daemon post-fs" is killiñg my CPU and after some minutes it loses root automatically. I'm using sultan los 14.1 on OnePlus one
[Magisk] smilinghardik:
I Soloved that issue now i cant Pass safetynet In Magisk 13.1
[Magisk] smilinghardik:
PLZ
[Magisk] daddylonglegs:
That's weird. I did have a /cache folder on my root. I wonder why it was there? Anyway, how would I do what you suggested (use an alternative magisk_mount folder or change the path to /data/ in source.)?

Thank you! :)
[Magisk] Didgeridoohan:
Awesome! Now keep reading in the guide I linked you and you'll find a section about troubleshooting MagiskHide and SafetyNet.

Edit: The section in the end "Asking for help" is also a very good read... :p
[Magisk] dratsablive:
Trying to upgrade from 13.0 beta to 13.1. Install of Magisk 13.1 worked, and am rooted passing safetynet. But when I try to install Magisk Manager, it hangs. I guess it's trying to request root, but the request never pops up. I know it's working because other apps are able to successfully request root. Running Android O OP3 on Nexus 6P.

Update: Retried the installation using Root Explorer. It was able to get SU rights and Magisk Manager installed.
[Magisk] smilinghardik:
Now i m seeing error Seandroid enforcing During boot
[Magisk] y2kbugleung:
goodwin_c thanks for your port to Pixel

I'd like to buy you a beer.

You should put a link on your signature.
[Magisk] Didgeridoohan:
That probably means that your ROM doesn't play nice with the way MagiskHide masks SELinux being permissive. That's a ROM issue...

To pass SafetyNet SELinux has to be set to enforcing. MagiskHide tries to circumvent this by simply hiding the permissive state.
[Magisk] smilinghardik:
What is d solution
[Magisk] st4ik:
I wanted to install magisk 13.1 and get this error:

What stock boot image is it? Clean rom - Nitrogen OS 7.1.2.

Magisk 12 installed without problems.
[Magisk] jenslody:
Here it is: https://github.com/topjohnwu/Magisk/issues/278
[Magisk] hugo-spice:
Still no /data/magisk_debug.log. Also, i tried flashing magisk 12, and then updating again as suggested elsewhere. Still bootloop. I'll fall back to v12 for now.
[Magisk] rohitshakti:
Currently I am using Pure Nexus with Magisk 12 installed on it. But when I tried to update it via apk, it downloads the 13.1 file and asks for reboot of the phone after installation but stays on Magisk 12 only instead of 13.1. What is wrong?

Please tell how can I install a new rom in place of Pure Nexus which has magisk installed.

Do I have to uninstall magisk first and then wipe the rom or just wipe the device, data, internal and flash the new ROM along with latest magisk 13.1?

---------- Post added at 11:44 AM ---------- Previous post was at 11:43 AM ----------

Currently I am using Pure Nexus with Magisk 12 installed on it. But when I tried to update it via apk, it downloads the 13.1 file and asks for reboot of the phone after installation but stays on Magisk 12 only instead of 13.1. What is wrong?

Please tell how can I install a new rom in place of Pure Nexus which has magisk installed.

Do I have to uninstall magisk first and then wipe the rom or just wipe the device, data, internal and flash the new ROM along with latest magisk 13.1?
[Magisk] goodwin_c:
Try to make clean flash and use TWRP RC2 (RC1 is not working with this)
[Magisk] eavandijk83:
Try this

https://xdaforums.com/one-a9/help/magisk-v13-1-magiskhide-fix-los-14-1-t3635514
[Magisk] Xaviertool:
Could you, if possible, point me to a Kernel for my device that meets these characteristics? Mainly as to be Linux version above 3.8.

Today I did a search but I did not succeed. I also do not have a lot of experience with kernel specs and I do not know many Devs who did such work for S4 (i9500) (other than AndreiLux or VoLTaqe itself).
[Magisk] DarkGenesis:
Hello I am today from SuperSU on Magisk changed now I have the problem that I can not install BusyBox get always the message:

[ It Looks Like the installation of BusyBox was not successful.

Try installing to a different location, that may resolve the issue ]

Whether in:

/System/xbin

/System/bin

and at:

/su/xbin

/su/bin

I get the message:

[ Systemless root is not configured, please choose another install location. ]
[Magisk] DodoGTA:
Try this kernel: https://xdaforums.com/galaxy-s4/i9500-develop/nevermore-kernel-v1-t3391795
[Magisk] JaylanPHNX:
Yes, I'm failing both. I have the same setup as I was passing with except for a clean flash to July security update for my ROM and vendor, and upgrading from beta 13 to 13.1. Here's two more logs, just in case that's helpful. Thank you.
[Magisk] pavan3999:
i'm using magisk v12 working perfectly in redmi 3s with miui8 7.7.6 when i updated to v13.1 with magisk manager v5.0.4, it booted normally. After that when i opened magisk manager it shows magisk not installed and not rooted and i don't find magisk log in data folder. so i attached recovery.log
[Magisk] dabenaute:
[MENTION=787081]Hakem[/MENTION] [MENTION=391180]artim[/MENTION]-96,thx i'm going to try it
[Magisk] sniper9911:
hello

i am trying your moded solution on my note 2 n7100 using this rom (Pure AOSP 6.0.1 r63, not rooted , flashed via TWRP 3.0.2)

http://xdaforums.com/galaxy-note-2/development/rom-aosp-public-release-t3423811

i try to flash as follows

wipe all (dalvik art , data , system , cache)

reboot recovery

flash aosp 6.0.1 rom_r63

flash gbanks gapps 6.x.x

flash magisk v6

flash phh super user v17 zip

flash xposed v86.5 sdk23 magisk zip

reboot

enter my google id

install filemanager from asus and superuser app by phh

install magisk manager 1.2

install xposed material design

xposed working and active

superuser apk open but first screen blank !

installed root checker to see if root on and i see that it says root is not working propely

tried super su magisk zip .... worked but as you said android pay wont work

magisk manager says :

boot version magisk v6 (in grey)

root status : mounted (red)

selinux status : permissive (red)

root toggle on and cannot be changed (no superuser permission popups)

selinux toggle off and cannot be changed

please help ... thanks in advance

can you please update the phh super user zip to make it work with my current rom ?
[Magisk] mltorres7:
Working for pokemon go? For lg g3 d855?????

Enviado desde mi LG-D855 mediante Tapatalk
[Magisk] romskidd:
Awesome, so I've just made a factory reset of my phone to install magisk.. Installing root with phh SuperSu update.zip with TWRP... I don't think it worked.. Gonna check if there is root really or not (Galaxy S7 Edge, SM-G935F) phh superuser app show nothing when launched and when installing magisk.. bootloop..

So that mean my bootloader is locked ? So that mean I'm ****ed ? .. I love pokemon go, but I love root aswell.. **** you niantic, really. u_u

EDIT: Yes there is root, I can't see anything on the app, but it work, I have root. But magisk doesn't work on my phone.. :(
[Magisk] GrischaK:
Unrooting impossible

I have also the problem with Magisk Manager. I can't unroot my device.

If I touch Root Toogle it switch every time back to on.

Do I have to flash my custom Rom (Resurrection Remix v5.7.3 for Samsung Galaxy S 4 i9505) ?
[Magisk] Artim_96:
Pay attention to the order in which you have to flash. Should be written in the OP

---------- Post added at 12:28 PM ---------- Previous post was at 12:25 PM ----------

The app shows on the startup screen only granted permissions. After bootup you have to wait a bit, since the device still had some stuff to do before it had time to show the dialog to grant root rights. Otherwise take a look into the settings.

---------- Post added at 12:29 PM ---------- Previous post was at 12:28 PM ----------

Yes, we definitely need a mod...too many people here are not able to properly read the OPs and use the goddamn search function
[Magisk] romskidd:
What do you mean ?

I installed phh superuser before installing magisk, is that wrong ?

EDIT: Ok yea that may be the problem actually, I need to flash magisk before rooting again right ? Sorry for being such a noob with that ^^'
[Magisk] chris9000:
Ok, so it seems like flashing magisk and phh SU17 (and later installing the playstore link), isn't even rooting my dang phone!
[Magisk] lancespahr:
SuperSU isn't supported? Phh doesn't work right on my device :/ how would I switch?
[Magisk] Wlkchnbndgr:
To make sure, i am doing it right i write down my steps.

I

Factory reset my phone.

Install Rom & gapps

Install magisk v 6

Install the magisk su that is linked in op

(All via twrp in one query)

Then install the magisk apk and phh su APP.

I cant unmount root by using the toggle. It switch back automatly. Selinux toggle works.

Where is my misstake? What i am doing wrong?
[Magisk] iamaniff:
Uninstall SuperSU.. make sure u don't have SuperSU install before flash Phh's SuperSU zip
[Magisk] chris9000:
Running into the same problem as him, wiped everything and installed stock 7.0, but the slider goes back. I'm still finding that it's not properly rooting. Pokemon logs in fine (still haven't gotten the latest update) and apps that traditionally require root aren't working.
[Magisk] AvisAile:
Anyone as a solution for my problem ? Thanks
[Magisk] Neutrogeno:
do i need Android 5.0+? cant flash magisk on my 4.4 4 :(
[Magisk] gk1984:
Everyone unable to unmount root... Make sure you have the phh su app installed (link in OP) and you don't have any traces of Chainfire's SU. Not even that SU app installed. When you first toggle to unroot, SU should prompt you to grant root access to Magisk Manager.
[Magisk] :
(OOT) Hello everyone, just found this thread finding for a fix in pokemon go's new update. My post may be out of topic (Im sorry) but for some people who's looking for a fix, I'm happy to report that Magisk works fine for pokemon go!

EDIT: (OOT too) My Snapchat goes blank black screen camera after using this, not a major problem tho cuz PoGo's fine now.
[Magisk] GrischaK:
Still

After some hours I have uninstalled the original SuperSu app from chainfire and could unroot with Magisk Manager and phh's SuperUser app and the Manager writes: "Safety Net (Android Pay" should work, but no root temporarily."

But the SafetyNet checker app shows me a red screen result and so Pokemon Go is still don't working ;-(

I have deinstalled the Pokemon Go app and tried to install the apk version 0.37 - several times.
[Magisk] cire27rn:
Lol. Why should i go out just to play this. Its not even worth walking for this game.
[Magisk] Artim_96:
Then don't play it for God's sake!
[Magisk] havens1515:
I did a quick search through the forum to see if anyone else asked this, but I'm not exactly sure what to search for so I'm just going to ask...

Is there a way that you can add a feature to automatically unroot when opening a certain app, and re-root when the app is closed? For instance, Android Pay. We know that we need to unroot for Android Pay, so it would be awesome if Magisk could do it automatically when the app is opened. I'm sure it can probably be done, it would just take some work (and knowledge) to do it. Make a list, within the Magisk app, of apps that require the device to be unrooted, then unroot when an app in that list opens.

Just a suggestion. If this is open source I may be able to help you get started on it.
[Magisk] Magpye:
Great, just... great. I would have make a backup if not for the face that it NEVER screwed me over this badly before and that it says it makes a BACKUP itself. Also the only thing it's supposed to modify I've restored countless times now to no effect. What a waste of time. I know these guys make this for free out of the kindness of their hearts but good lord it really needs better testing as it appears that so many many others are having problems. As it is I opted out of the second to last version because it never worked correctly at all on my phone.

Thank you for trying.
[Magisk] Didgeridoohan:
https://xdaforums.com/apps/magisk/m...systemless-t3432382/post72997875#post72997875

I can't... But if the kernel [MENTION=6429309]DodoGTA[/MENTION] pointed you to doesn't work, your best bet is to go to your device's forum and ask. That's about all you can do unless you learn how to do the necessary backporting yourself...

Don't know. Have you looked at my troubleshooting guide? There might be something in there to help you...

Edit: Wait a minute... Have you taken a look in your device's forum if there are others with this issue after updating to the July update? A few months back Google messed up SafetyNet for the Nexus 6 and no-one could pass, even if you weren't rooted. :laugh:

There's always a risk when flashing anything. Always! For this release there actually was a whole lot of testing being done in the beta thread, a lot more than there has been before... I don't think I saw any issues like this. Magisk makes a backup of the boot image yes, but it's your responsibility to make sure you have a backup of your data.

No-one else is responsible for what you do to your device.

If I could ask something of you is, that if you get your device running again, could you give it another go an make sure to save logs for troubleshooting and possibly fix this issue for any future releases. Recovery log from after the flash and possibly a logcat from the boot. Your stock boot image would probably also help. All of this would probably be very useful if you added it to a GitHub issue.
[Magisk] eried1:
But flashing no-verity-opt-encrypt solved the issue with bootloop?

Some devices seem more wilful than others. Been into a world of trouble with my P2.
[Magisk] Didgeridoohan:
That recovery log is not from the installation of Magisk. You need to save it right after flashing the Magisk zip. Try again.
[Magisk] pavan3999:
okay i'll upload
[Magisk] JaylanPHNX:
Disabling ADB as suggested in the guide (plus a reboot) seems to have done the trick! Thank you very much much for all the help you've providing here.
[Magisk] Kiid:
Same problem as everyone else. V13.1 installed via TWRP, Reboot, magisk not installed.

Running NNE4.5.2 on S6 920I

Thought you'd be the right person to have a look at the logs to determine whether OP should bother with them

[MENTION=4667597]Didgeridoohan[/MENTION]

Cheers

Edit: woah. milestone. 100th post. Only took a year or two. Haha
[Magisk] pavan3999:
here is the recovery log
[Magisk] Vinnipinni:
I had Magsik 13 beta and uninstalled it before flashing 13.1. I booted and magisk was there, but I can't open it. It crashes on startup. Root works, even the root prompts appear, but magisk manager won't open.
[Magisk] Didgeridoohan:
That's a full set of logs! :good:

I'm not entirely qualified to say what could be wrong. There's a bunch of messages about "does not exist" in the recovery log, same place as where the user that posted right after you have a segmentation fault. There's a high chance it's related... See the link below.

You've got this issue: https://github.com/topjohnwu/Magisk/issues/278

[MENTION=8340552]jenslody[/MENTION] Was there any temporary workaround to this?

Have you cleared data for the Manager?
[Magisk] Vinnipinni:
Yeah, tried that.
[Magisk] IzaacJ:
Will there ever be any support for the Lenovo Tab 3? Got the Essential model, and no luck with installing Magisk on it.

Including the recovery log and a backup of the boot sector.
[Magisk] Rom:
@	topjohnwu

Hello, i have flash your 13.1 Magisk zip via last TWRP (3.1.1-0) on Resurection Remix Nougat (7.1.2 rootles), root, Magisk extras features and SafetyNet statut pass successfully !

Thank you very much for your great work :fingers-crossed::good:
[Magisk] pavan3999:
is there any fix for magisk v13.1 for segmentation fault in sepolicy [MENTION=4667597]Didgeridoohan[/MENTION]
[Magisk] pippoaacc:
Reset SU prompt

Hi all,

I have a weird behavior with Tasker. When running any task requiring su permissions, I get a toast that superuser permission was denied, but no actual prompt. Any way to reset the status or manually add tasker to magisksu app list? Running 13.1 with no 3rd party su here. Thanks!
[Magisk] Luniz2k1:
Before clearing data, click force close.
[Magisk] Didgeridoohan:
Not that I know of (apart from compiling a version yourself)... Might have to wait for an update to Magisk.

Have you tried this: https://xdaforums.com/showpost.php?p=71862904&postcount=12243
[Magisk] Bionic Toad:
Same here, I am on Open Beta 10. Fortunately had a Backup to restore back to V12 which works fine still, maybe I will just wait this one out.
[Magisk] DzikrRully:
Anyone get same problem like me?
[Magisk] Vinnipinni:
Tried that...
[Magisk] pippoaacc:
That refers to the inability to detect the root request. The new tasker correctly asks, problem is it is rejected automatically by magisk instead of prompting. If there's a way to add an app to the magisksu list manually, then I can solve from there.
[Magisk] Tecalote:
Hello, I searched in the Thread and found some answers, but I am not sure - anybody here knows what exactly means /does:

Keep force encryption and keep dm-verity in Advanced Options.

Better to enable it for safetynet or not?

My Phone is Huawei p9 and has encrypted data partition. I don't want to change this, cause my phone would not boot with disabled data encryption on Stock Firmware.

I know what's dm-verity and force encryption but I would like to know what Magisk changes if this options are enabled or disabled
[Magisk] Didgeridoohan:
Yes, of course. I misread... You're using the beta then.

I guess you could try editing the su.db in the app data, but I don't know... You could try clearing data for the Manager and try again.
[Magisk] pippoaacc:
UPDATE: Weirdly enough uninstalling and reinstalling tasker solved.
[Magisk] Didgeridoohan:
Yes, that would do it as well. Actually not that weird at all... (Man, I'm slow today)
[Magisk] tamer7:
I posted about this on April 16th, with link and screenshot :)

This is a simple java ps command (process list) and filtering for a process named "su" which the java-based RootInspector app finds, like does other java based native-library root-checking Banking apps et al.

I don't think with current design of Magisk will ever solve this problem (not even with a module).
[MENTION=4470081]topjohnwu[/MENTION]

correct me if I'm wrong?

I also posted Possible solutions on April 16th:

1. "native hooking" (via LD_PRELOAD) as a method to to fake some system calls in android and it is possible:

Discussed extensively here with POC: https://github.com/devadvance/rootcloak/issues/62

2. Frida. You run the frida-server binary as root on your Android device, and the client then allows you to hook any function at runtime.
[Magisk] pavan3999:
can you provide link/guide for compliling
[Magisk] Didgeridoohan:
There's a guide for it right there in the Magisk GitHub repo. Check out the readme.
[Magisk] cygery:
Hi!

I'm the dev of Toggle Data 5.0 (root) (https://xdaforums.com/android/apps-games/app-toggle-data-5-0-widget-to-toggle-t2937936).

Unfortunately, my app doesn't work anymore with the new MagiskSU. My app's widgets don't load and Tasker actions aren't executed anymore.

My app uses rather frequent su calls, especially multiple calls in a row for single user actions. Although MagiskManager's log indicates that root was (sometimes) granted, it appears to me as if some root requests are heavily delayed and/or even silently stuck/fail/time out. Could this issue be related to the new optimizations in MagiskSU?

Tested on a stock Android 6.0.1 Nexus 5, reinstalled my app, tried reboots. Nothing related found in logs (MagiskManager, ADB, /data).