yashsingh1/xdaforums huggingface dataset:
[Magisk] Prof. Yaffle:
Seems to be fine for me
[Magisk] anakpadang:
what magisk 13.2 with a script? I have the same problem.
[Magisk] Deses:
I have a Hauwei P8 with stock everything that I unlocked its bootloader and flashed TWRP, now I want to get Magisk to install but, like many others, I'm stuck at Installing the zip.

The log is attached below. I tried this fix and unzipping and zipping with no compression from a comment I read somewhere with no luck.

What can I do? Is the phone even supported? Huawei P8 GRA-L09

Taking a look at the log file, I'm seeing errors that the zip installer didn't show me:

grep: Permission denied

System is mounted as R/W file system.

************************
* Magisk v13.3 Installer
************************
- Mounting /system, /vendor, /cache, /data
- Device platform: arm64
- Constructing environment
/tmp/updater: line 122: grep: Permission denied
cat: xwrite: Broken pipe
- Data unavailable, use cache workaround
- /cache/magisk.img detected!
/tmp/updater: line 134: grep: Permission denied
cat: xwrite: Broken pipe
- Mounting /cache/magisk.img to /magisk
/tmp/updater: line 135: grep: Permission denied
cat: xwrite: Broken pipe
! Magisk image mount failed...
Updater process ended with ERROR: 1
I:Legacy property environment disabled.
I:Install took 1 second(s).
Error installing zip file '/sdcard/Download/Magisk-v13.3.zip'
Updating partition details...
I:Data backup size is 2534MB, free: 7904MB.
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
[Magisk] Rom:
For me SafeNet pass fine too :good:
[Magisk] MattheewHun:
Could be a good nad useful app, but there's huge bettery drain and the phone is so in the versions above 12.

LG G4/H815.
[Magisk] rfgamaral:
I'm no longer able to install Xposed framework on my HTC 10 running SDK 23 after upgrading to Magisk 13.x. I had quite a few problems when migrating from v12 to v13.x but eventually sorted them out and got everything working (minus Xposed).

Every time I try to download/install Xposed from Magisk Manager (currently running v5.1.1) my device gets into a bootloop... I've attached my logcat file to see if it helps debug the issue.

For now I removed the Xposed module from /magisk and everything is working as before (with some modules installed, but no Xposed).
[Magisk] Rumbledown:
Am I supposed to reroot every time magisk updates or am I missing something here?
[Magisk] Didgeridoohan:
Root is included in Magisk (MagiskSU), so: no.

Sounds like you're having some kind of issue. How about sharing the details (if you want help, that is)...

---------- Post added at 20:39 ---------- Previous post was at 20:32 ----------

It looks similar to a few other users reports where the Magisk image won't mount. Until there's a fix for it, one user found a workaround that might (or not) work: https://xdaforums.com/showpost.php?p=73111781&postcount=17141

No guarantees, make sure to have a backup of your data and remember that you'll likely be on your own support-wise... :p

There seems to be a bunch of issues with Lollipop and the latest Magisk release. Not sure if there's much to do about it until there's an official fix. Also, the Xposed module might need an update to work properly for all devices on Magisk v13.3.
[Magisk] rfgamaral:
I'm on Marshmallow, is that what you meant?

Just to make sure we are on the same page, closed worked just fine with Magisk 12. The problem is on 13. Might need to be updated like you said...

Who should I try to contact about that?
[Magisk] Deses:
If I understood correctly, I put 'update-binary' file from 13.0 into 13.3, repack and flash, right?
[Magisk] Didgeridoohan:
Ha... Just forget what I wrote... :D I was reading another thread about Lollipop, switched over to this one, saw your post and from "Magisk Manager (currently running v5.1.1)" I just though: "Hey, you're using Lollipop" (5.1.1). :laugh:

There have been a few users reporting success with installing the Xposed modules on Magisk v13+. Go to the Xposed thread and take a look.

---------- Post added at 20:48 ---------- Previous post was at 20:47 ----------

Yup, that's how I believe that user did it. Might work...
[Magisk] oscar1823:
Magisk problem

Hey so im using magisk on my moto G5 Plus but the problem is when it start it up it says it succeded but there scts profile and basic integrity say false. do you have to wait a bit cause when i wait it takes 30 for it to start working but i have to keep using reinstalling but says mounting failed the force closes the app. but eventually it if i leave it alone after a few reinstalling tries it works.
[Magisk] Rumbledown:
Yeah. I'm not all too sure what the issue was, but I uninstalled and reinstalled everything and that seems to have fixed it. Thanks anyway.
[Magisk] yash92duster:
Then and then it fails past 2 days

Keep closing Magisk app and reopen it

then it works fine

I thought some app made sn to fail but it's Magisk Manager having some issue

Will provide my logs soon
[Magisk] Deses:
Nope, didn't work. ;_;
[Magisk] andmail:
Find any other beta 13 that CAN be installed on YOUR phone.

Replace update-binary file in the latest official Magisk 13.3 by the same file from WORKING beta on your case.
[Magisk] oscar1823:
Magisk does not pass the test for atleast an hour but i have to keep Re-installing thourght the app and it doesnt even Re-install it just says mounting failed then force closes the app.
[Magisk] Adhil Rahman:
I have found a weard bug.i have found that installing magisk has caused network connection problem in my jio sim (india).when i try to call using the jio4gvoice app i lose the connection suddenly.please fux this.when i uninstalled magisk it worked fine.i am using asus zenfone 2 with lineage os.please help
[Magisk] johnhazelwood:
Weird, I wasn't passing safety net. Decided to look at settings in the app, and noticed hide was disabled for some reason (I didn't turn it off), turned it on and poof working, passes again now.
[Magisk] Deses:
Reporting back:

Downloaded Magisk-v13.0(0980cb6).zip.

Flashed successfully.

Device wouldn't boot.

Restore backup and prepare 13.3 zip with update-binary from 13.0(0980cb6)

Flash that.

Device still won't boot.

Darn.

I restored again and at least the phone is working again but did I run out of options for my Huawei P8?
[Magisk] Rom:
Hello

It's possible to setup an loading priority for an Magisk module ?
[Magisk] yochananmarqos:
Not as such. However, it depends what the module does. For example, post-fs-data.sh loads before service.sh.

What modules are in question? If something isn't working right, you may have conflicting modules.
[Magisk] rignfool:
Yes... It is possible... But only in a very narrow set of circumstances currently...

post-fs-data.d and service.d will run scripts ala init.d... in an orderly style like init.d does...

As far as the other parts of magisk... I'm sure there is an order and a decision... But at least I'm not sure about it...
[Magisk] dimon222:
If I need to dump ROM partitions (for ROM creation process), do I need to disable Magisk mounts first?
[Magisk] KrIstIaN430:
Hi. I'm still using Magsisk 12.0. My problem is that the MagiskHide and other toggles like busybox is not appearing in my MagiskManager! What can I do without updating the magisk because I still want to use busybox with magisk?
[Magisk] DodoGTA:
There's a busybox module in the Downloads section of Magisk Manager, so upgrading to Magisk v13.3 won't be an issue (and, Magisk versions before v13.1 are unsupported)
[Magisk] capricornian:
hi, on my xiaomi redmi note 3, 8.5.2.0 stable ROM, magisk v12 works perfectly fine, (with deleting resetprops with tasker). but v13.3 simply doesn't work. it's not mounting system/vendor mirrors, nor linking them, symliking sbin, etc. my question is how to manually get it done. i've tried everything to make magisk work. TIA!
[Magisk] Resolute:
Is there any plan to support magisk hide on MIUI roms?

MIUI users should use v12?

All banking and other applications detect root.
[Magisk] andmail:
So, if I understand you correctly, error 1 issue solved?

No issues with my Honor 6 in the same way.
[Magisk] teddy0209:
Use the universal SN fix module... V2 beta 5...
[Magisk] Deses:
Well, sorta. While Magisk installed, the phone got stuck in this screen after rebooting.
[Magisk] Rom:
Ok, because i would like to load first an file in the init.d folder to set as permissive mode my SELinux.

Actually when my phone boot, the setting is set after few second (arround 10 seconds), and i have the time to go in my ROM settings to view that the SELinux is in enforcing mode. I return to my homescreen and i go back in settings to see the SELinux set as permissive mode.

The other modules that i use add specifiq apps on the phone.
[Magisk] :
Magisk manager keeps crashing after I installed the Magisk module ADB & Fastboot for Android NDK by osm0sis & Surge1223. The app is crashing when I click Superuser.
[Magisk] nik007rock:
the systemless hosts toggle automatically turning off when i reopen magisk manager

any clue?
[Magisk] Shiva $$$:
Lenovo A4060a46 3gb aospExtended 4.4 + gapps stock +latest magisk works without any problem hide root with all banks apps
[Magisk] Mamayahuasca:
Hi everybody,

I'm a new user trying to run Magisk Hide and pass Safety Test. Unfortunately there's a few problems with this process.

Some info:

Device: Sony Xperia Z1 Compact (DD5503)

ROM: Android Paranoind (AOSPA) 6.0.3 based on CM13 (Android 6.0.1)

Addons: open_gapps-arm-6.0-mini-20170727, Magisk Manager with Magisk v13.3

Problem description: Firstly I do full unroot by SuperSu then install Magisk Manager and flash correctly Magisk v13.3 by TWRP 3.0.2. After system reboot and opening Magisk Manager usually shows that everything is fine (:good: Installed Magisk Version: v13.3, :good: 13.3: MAGISKSU (topjohnwu)) except the SafetyNet Check. Then if I exit the Manager for a while, or after doing something in programs with the root permission like X-plore File Manager I randomly lose my root management. Then the Magisk Manager shows that there is no root and even that there is no latest version Magisk installed. Sometimes root access remains but I lose Magisk v13.3 and the Manager advices me to install it. System reboot seems to help but then problem recurs.

Error from log:

07-30 05:17:09.322 7278 7278 I Magisk : hide_utils: Re-linking /sbin

07-30 05:17:09.322 7278 7278 E Magisk : mount (null)->/ failed with 16: Device or resource busy

What I tried to do:

- Enable/ Disable different options like Magisk Hide, Systemless hosts, then reboot - not working, settings not saved after reboot

- Clear the Manager from memory, disable Recently Used Apps bar, remove the Manager from battery optimisation

- Change to SELinux Permissive mode by SELinusModeChanger

- Mount rw system partition in terminal emulator in X-plore File Manager but i can't enter su mode because there is no /system/bin/su file (it's because I have systemless root?)

- Run commands before full unroot SuperSU

mount -o remount,rw /system
touch /sbin/su /system/bin/su /system/xbin/su
mount -o remount,ro /system

- Use a su_xbin_bind_v1.0.zip module by [MENTION=7897801]laggardkernel[/MENTION] from this thread

Hope somebody will find a solution :)

PS. Could anybody explain to me how the hell I was able to install Xposed v87.0 with Mock Mock Location module and pass the SafetyNet test about a week ago without any root!? Then several days passed and SafetyNet test failed. Now every attempt to install Xposed v87.0 ends with SafetyNet failed :eek: (it was the same device with stock ROM 14.6.A.1.236_UA)
[Magisk] rignfool:
It was a fluke...

Sorry don't have a better reason
[Magisk] ub4rz4ch:
I hope this is the correct place to post this,

Lineageos Version: 14.1-27TH-Nightly-hero2lte

Phone: Samsung S7 Edge

Android: 7.1.2

Magisk manager works fine and so does root, and it seemed to work fine for a while for netflix but recently I had to reinstall the OS and magisk and now magisk hide does not work correctly.

I am using Magisk v 13.3 for a while with magisk hide enabled google play services every once in a while kept crashing and that is why I reinstall the os and magisk, now I think that was fixed with the latest update, except when I check google play services with magisk hide it constantly crashes, and same with snapchat / netflix they both crash as soon as I open them. Its very weird cos at first I could see netflix on the play store with magisk installed, then I reinstalled and then I couldnt, and now I can again. Netflix works but Snapchat wont let me log in but will let me launch it, but sometimes crashes instantly as I go to open it. It seems to be very intermitent.

Right now when I enable magisk hide and put snapchat on it it crashes snapchat as soon as I open it. It took me ages to get android pay to work too. Somehow that just started working randomly. I have no idea whats going on haha.

Safetynet check was successfull with and without magiskhide on before but all of a sudden its started to fail on basicintegrity. EDIT (a few minutes after I posted this the check says "The response is invalid")

Can someone help me solve this I am new to magisk. I use to root all the time but when android started to block apps I switched back to my stock BTU but now I heard of this I had to give it a try and for the most part its working, like I have netflix and android pay working.
[Magisk] Dave_247:
Still broken on Sony Xperia Stock ROMs

Even on v13.3 there still seems to be a problem with Magisk on Sony Xperia stock ROMs. Even though v12 was able to install without us having to manually disable Sony-RIC first, v13+ now fails to install at all on a stock boot image, and on a patched image it installs but fails to initialise on boot.

I opened a issue on Github about the stock image issue here, and there is already an issue open about v13+ on modified kernels here.
[Magisk] Mamayahuasca:
But I do not have Sony Xperia stock ROM. I have custom AOSPA ROM so i think the problem is different than yours.

Anyway, did you try to force the value from 1 to 0 in /kernel/security/Sony_ric file? I had similar problem once and it said that there was no permission to remount as rw but value change helped.
[Magisk] Shtiff1:
I have not seen this module in the latest.
[Magisk] :
The issue has been resolved after I desystemized Magisk manager. Thanks to [MENTION=347579]adek[/MENTION]maulana
[Magisk] Debizzle:
Can't seem to find the answer, but are you still systemless when you have module in Magisk but you updated it in Play store? Thanks.
[Magisk] Artim_96:
... Why not? You would need to change system to not being systmless. Or what do you want to do?
[Magisk] DeadlyToast:
First day of fresh installment of oos with magisk and when I try to open magisk manager it just flashes the splashscreen then closes. It worked fine yesterday.

What info do you need?
[Magisk] Debizzle:
So for example I have the gpe dialer for the HTC 10 out the repo. Well it really didn't work properly until I updated it from the play store. Is there any affect with me doing that? Is it still systemsless or is it now in system files?
[Magisk] Artim_96:
The system doesn't know it only sees a virtual folder. I'm not sure how the package installer works, bit in theory Magisk should mount the folders ontop of the original ones soon enough so also the package installer should see just the mounted folder. But I don't know how long this update sticks since the apk in the module isn't updated
[Magisk] DeadlyToast:
Beginner mistake, sorry, worked normal after reboot.
[Magisk] jenslody:
To all with an empty "Log"-tab in MagiskManager:

I tried to debug this (via PM on request of [MENTION=6247359]atarek[/MENTION]) and found a possible cause for this issue, after analyzing the boot.img and some tests with custom builds etc.

It looks likesome kernels (and most likely also roms) clean the cache-folder in "post-init"-stage (e.g. phantom-kernel does this).

Ir deletes all "*.log"-files (and others) in "/cache".

At this time the "magisk.log" is already created and the magisk-daemon can no longer write into the file.

You can verify this by running

lsof /cache/magisk.log

as root, that should show the files as deleted.

Running

/sbin/magisk --post-fs

reruns the post-fs-code of magisk and creates a (new) "/cache/magisk.log" from this point, the log in MagiskManager should work again, you can test this by e.g. toggling MagiskHide.

If that works you can try my attached custom-build of Magisk 13.3 that starts monitoring the log in "late-start"-stage.

If that works, please give feedback here or on github, so [MENTION=4470081]topjohnwu[/MENTION] gets the chance to fix this.

It could also be fixed by the kernel- or rom-devs, but rnning "post-init"-scripts is perfectly valid, even if it is discussable, whether cache cleanup should be done in this stage of booting.

But making the Magisk-code more robust is probably the more secure way.
[Magisk] Debizzle:
Make sense, thanks Artim.
[Magisk] Dave_247:
Custom ROMs are different, built from different sources so Magisk shouldn't have any problems with them. Though if they did it would a completely different issue specific to that ROM, hence why I stated the issue was with "stock ROMs" and not simply the device itself.

I had a look in /sys/kernel/security from TWRP and ADB but the directory was empty. I don't know if that's I don't have the right permissions or if it really is empty though, and I don't know of any other directory's with that file structure in case there is more then one, or in a different place. There's not a whole lot I can do without root.

Regardless that shouldn't be the issue though as I put the stock kernel first through ta_poc, and then rootkerneltool (as the former doesn't properly disable RIC but the later, despite being older tool still does) and that should have worked, as it was what I did to get Magisk working on v11.

Yet it didn't though so I'm at a loss with what else I can try, and have to concede that there's an issue with Magisk, report it and wait for it to be hopefully fixed soon.
[Magisk] atarek:
[MENTION=8340552]jenslody[/MENTION] u did a great effort in finding cause of issue and fix it.

I communicated ur findings with [MENTION=4326291]6h0st[/MENTION] "phantom kernel dev." And he advised to edit script and repack kernel for testing and he might include validation if magisk.log exist in cache so stop clearing log files in next build.

Again thanks a lot for everyone helped in this issue. :)

Regards,

Ahmed
[Magisk] mm1rza:
i install magisk work good on masik MIUI. and i have problem with installing modules after iam install modules and reboot didnt show up on list modules. then i try again install modules and error . i check log magisk ITS say log ia empty

ty
[Magisk] yochananmarqos:
Updates for system apps install in /data. Notice you have the option to uninstall updates for stock system apps. The system version is only as new as the last system update.
[Magisk] Didgeridoohan:
Does the 10 second delay happen when you have a script in init.d? Or how are you setting SELinux to permissive?

Looks like something is keeping su from being re-linked. It could be that you're losing root every time after MagiskHide has done it's thing...

You could test that by having a working system and then run a SafetyNet check. If you lose root right after that, that's the issue. If you could also grab a logcat while doing that, it might show what's going on.

You don't happen to have a MultiROM setup? There's been a few reports of issues similar to this on the secondary ROMs.

As far as I know, that shouldn't be possible.

Grabbing a logcat from the crash might show something. Also, I have a vague recollection that once you've triggered Snapchat's root detection you'll have to clear data for it.

"The response is invalid" can sometimes be fixed by force stopping Play services and clearing it's data. A reboot after might also be a good idea.

Log is empty is covered by [MENTION=8340552]jenslody[/MENTION] a few posts above yours.

It's easier to help if we know what the error is... You could try to install the modules through recovery. If that doesn't work either, make sure to save the recovery log (in TWRP, Advanced - Copy log) right after the failed installation and post the file here.
[Magisk] ub4rz4ch:
Safetynet still says the response is invalid after force closing GPS and clearing cache and rebooting?

Snapchat just crashes instantly on launching I got it to open once with magisk hide before not sure how but then it can't log in, here is the log

I( 2947: 3028) * Starting MagiskHide
I( 2947: 3028) hide_utils: Hiding sensitive props
I( 2947: 3028) hide_list: [com.google.android.gms.unstable]
I( 2947: 3028) hide_list: [com.netflix.mediaclient]
I( 2947: 3028) hide_list: [com.snapchat.android]
I( 2947: 3028) proc_monitor: init ns=mnt:[4026531840]
I( 2947: 3076) ** late_start service mode running
I( 2947: 3076) * Running service.d scripts
I( 2947: 3076) * Running module service scripts
I( 2947: 3028) proc_monitor: zygote ns=mnt:[4026535628] zygote64 ns=mnt:[4026535629]
I( 2947: 3028) proc_monitor: com.google.android.gms.unstable (PID=4957 ns=mnt:[4026535699])
I( 4972: 4972) hide_utils: Re-linking /sbin
I( 2947: 3028) proc_monitor: com.snapchat.android (PID=6874 ns=mnt:[4026535737])
--------- beginning of crash
I( 2947: 3028) proc_monitor: com.snapchat.android (PID=7702 ns=mnt:[4026535653])
I( 2947: 3028) proc_monitor: com.snapchat.android (PID=7742 ns=mnt:[4026535653])

Same thing happens with google play store / google play services except they continuously crash as soon as I enable magisk hide in them.

I couldnt see Netflix in the play store but after enabling magisk hide on vending it crashed loads so I disabled it but kept magisk hide on and now it shows up ?

Snapchat doesn't let me log in because it detects root I think ?

But crashes when magisk hide is on
[Magisk] Didgeridoohan:
That's the Magisk log, I asked for a logcat...

If you have a lot of apps force closing when MagiskHide is enabled you might have an issue with WebView on your ROM (but I'm not quite sure that's your issue, it'd be easier to say with a proper logcat). Take a look in the troubleshooting guide under "Apps are force closing" and see if that does anything for you.

About Netflix showing up or not, there's a section in the guide about that as well: "Device uncertified in Play store/Some apps won't install or doesn't show up". FYI...
[Magisk] Rom:
It happens with my script in init.d folder yeah :)

The delay is the problem, i think that all Magisk stuff work during the boot of Android take a certain time.

So i don't know if Magisk could manage an priority order with theses modules or not.
[Magisk] andreas157:
Minimal Requirement:

Remove ANY kind of root (SuperSU, phh's su, KingRoot...); Remove v85.x Systemless Xposed by me, romracer's Systemless Xposed, official system Xposed by reverting to stock boot image or use uninstallers. Please make sure to remove included root COMPLETELY (/system/xbin/su, /data/su.img, /sbin/su etc.)

please sb state all the files that should be removed.

from cm13 removing the files manually and i got secure boot error.

from stock + full unroot with supersu again secure boot error.

lg g2 here
[Magisk] KuroAmai:
[MENTION=4470081]topjohnwu[/MENTION]

Do you plan on releasing version that will work on Android 4.4? There are people (myself included) who would like to continue playing Pokemon GO, but since your work is set at 5.0+, we cannot use it.
[Magisk] CrashOverride1995:
If I install overlays through Layers Manager will it still pass through SafetyNet, if not then how should I install overlays?
[Magisk] pingoo78:
Hello,

I have a bootloop when i flash magisk v6 on my HTC One m9.

I'm stock ROM with Bootloader unlock and S-OFF.

I use TWRP 3.0.2-0 as recovery.

After flash magisk v6, my phone bootloop.

The solution to start is to uninstall magisk v6 or flash boot.img stock... But i can't use magisk v6...

Have you a solution for my problem ?

Thank you.