yashsingh1/xdaforums huggingface dataset:
[Magisk] audianer:
Hello,

I have a question! I have a Galaxy S7 with original Samsung firmware and would like to root it. I find only instructions where I have to delete the data partition because of the encryption.

Can I use Magisk to root the S7 without deleting the data partition according to this manual?

Via Magisk Manager:

This method does not need root, and also does not require a custom recovery.

However, you MUST have a stock boot image dump beforehand, and you also have to be able to flash the patched boot image, either through fastboot/download mode or ODIN

Install the latest Magisk Manager

If you're planning to flash the patched boot image through ODIN, go to Settings > Update Settings > Patched Boot Output Format, and select .img.tar. For normal users leave it as the default .img

Press Install > Install > Patch Boot Image File, and select your stock boot image file

Magisk Manager will now patch your boot image, and store it in [Internal Storage]/Download/patched_boot.img[.tar]

Copy the patched boot image to your PC. If you can't find it via MTP, you can pull the file with ADB:

adb pull /sdcard/Download/patched_boot.img[.tar]

Flash the patched boot image to your device and reboot. Here is the command if using fastboot:

fastboot flash boot /path/to/patched_boot.img
[Magisk] Nebrassy:
You only need to disable encryption if you want to use a custom recovery, yes that guide works, just enable oem unlocking first
[Magisk] Gallion:
Someone?
[Magisk] Aki_9982:
magisk 17.1 isn't that stable so use previous versions like 15.3 or 15.4 it should clear the mess
[Magisk] Naudiz:
This page has everything you need to know:

https://www.didgeridoohan.com/magisk/MagiskHideIssues
[Magisk] Yourboymusti:
Hi,

I'm using the Pixel 2 XL, 9.0, September patch.

My problem is that whenever I add Magisk modules, it causes the system to be corrupt so I need to factory reset every time. (Don't worry I've made a TWRP backup).

This also happens if I flash the mods via TWRP.

Can someone please help me prevent resets? Sorry if this has already been reported.

---------- Post added at 05:04 PM ---------- Previous post was at 05:04 PM ----------

Hi,

I'm using the Pixel 2 XL, 9.0, September patch.

My problem is that whenever I add Magisk modules, it causes the system to be corrupt so I need to factory reset every time. (Don't worry I've made a TWRP backup).

This also happens if I flash the mods via TWRP.

Can someone please help me prevent resets? Sorry if this has already been reported.
[Magisk] auxillium:
Unable to boot when I install 17.x, goes to recovery instead. My device is Axon 7 Mini, on stock 7.1.1 ROM.
[Magisk] audianer:
- Copying image to cache

- Device platform: arm64-v8a

- Existing zip found

- Extracting files

boot_patch.sh[73]: can't create /proc/self/fd/: Is a directory

MagiskBoot v17.1(17100) (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

No boot image magic found!

boot_patch.sh[91]: can't create /proc/self/fd/: Is a directory

boot_patch.sh[91]: can't create /proc/self/fd/: Is a directory

! Installation failed

It wont work. I can not patch boot.img...
[Magisk] Nebrassy:
Is this from magisk manager? Try going into device settings and check if it has the storage permission
[Magisk] audianer:
Allready checked....

I have extract the boot.img from the stock ROM. But the Name is boot.img.lz4...... I packed that file with 7-zip to "boot.img.tar" and it will not work....
[Magisk] Nebrassy:
I'm not sure if there's something specific about your phone or samsung in general, though as an alternative I suggest flashing twrp with odin and then use adb sideload to install magisk (so you don't have to decrypt data)
[Magisk] ashyx:
You need to unpack it to boot.img.

It doesn't need repacking to lz4.
[Magisk] martyfender:
Did you change the setting, .img, to .img.tar, in magisk manager settings?
[Magisk] jenslody:
As posted by others just the unpacked "boot.img" is enough, but to flash it with odin you need to set the output ending to img.tar in Manager settings.

Anyway that seems not to be the issue here.

Which version of the Manager do you use ?

By the way: the (patched_)boot.img can also be flashed with TWRP on encrypted devices, even if TWRP can not decrypt the data-partition, but directly flashing Magisk does not work.

It should be possible to create a Magisk zip, that just patches the boot-partition without doing the "/data"-magik in TWRP.
[Magisk] GranzGinz:
I have hide ant hal service with magisk. Is that safe? Because boot taking long.

Or maybe some provider using it?

My phone asus zenfone 4 max pro
[Magisk] Stonecaper:
Error while installation
[Magisk] audianer:
Yes but how?

Even the 7-zip version with lz4 support cant unpack the boot.img.lz4
[Magisk] Gallion:
Nothing in there helped.
[Magisk] Naudiz:
You will have to be more specific than that if you want people to help you. "Nothing helped" won't get you anywhere.

So you're saying you read the whole page and tried everything on it. If that's true you probably stumbled across this page too: https://www.didgeridoohan.com/magisk/MagiskHideHelp
[Magisk] ashyx:
Of course it will. I have used it many times.

Post up the image and I'll unpack it.
[Magisk] Gallion:
Yes, that is what I am saying. I have verified everything on that page and nothing on that paged has helped me fix this SafetyNet issue. I've already reported all the details I could about my issue and there is nothing more I can/know to report. What that page is saying is to come here to ask for help. Guess what I'm doing?

Edit : I reinstalled Magisk. A PITA but now it passes SafetyNet.
[Magisk] audianer:
Here is the file.

When i try to unpack it with 7-zip, it says "cant open as archiv"
[Magisk] audianer:
The android app z archiver can unpack the lz4 file, it works!

But after flashing the phone says after an restart:

Verification failed. Integrity check failed. Device must be reset.
[Magisk] Trakost:
I have a Huawei p8 lite with android 6.0.

With magisk 16 everything is fine, but since magisk 17 I have this problem: if I turn off the phone and put it in charge, it turns on after 30s-1min.

Inviato dal mio ALE-L21 utilizzando Tapatalk
[Magisk] ashyx:
Magisk should have already disabled dm-verity unless you opted to keep it?

Anyway I have patched it manually just needs rooting with magisk manager. Also 7zip unpacked the image just fine.

https://ufile.io/k266x
[Magisk] audianer:
is that okey?

only flash the patched img with odin and restart?
[Magisk] ashyx:
Should be fine.
[Magisk] uPrizZ:
Since Magisk 17.1 I have the following problem: magisk seems to install fine and root also works but when I try to install modules like Dolby atmos, YouTube vanced etc. there isn't any app after reboot, so it doesn't seem to install correctly (although it shows the modules as correctly installed in the manager). I also noticed a huge battery drainage when having magisk 17.1 installed, all of which didn't happen before... Is this a known issue and fixable?

Device: LeEco Le Pro 3

OS: PixelExperience Android 8.1.0
[Magisk] guest4711:
You should update your modules (MagiskManager - Download) because the templates and some paths are different for Magisk17.x
[Magisk] uPrizZ:
Thank you for the quick reply.

I have already completely uninstalled magisk and then reflashed it, so I also had to re-download and reinstall all modules. Still I don't seem to get it working somehow...
[Magisk] guest4711:
Have a look at the update date of the modules. Most before 2018/09 will not work anymore. They should have template=17000 (or minMagisk=17000) in module.prop
[Magisk] audianer:
For Odin I need a tar file. Have this recreated.

Does not work.
[Magisk] ashyx:
Magisk will create the tar file.

I'm guessing this is because your data partition is encrypted.

Magisk has made modifications which is causing your device to fail the integrity check.

You may have to just bite the bullet.

You can backup most apps and settings beforehand with smartswitch mobile.
[Magisk] Didgeridoohan:
But the file you provide him was not a .tar...

[MENTION=6887073]audianer[/MENTION] Try starting over. Take the stock boot image file and let the Manager patch it, just make sure to change the output type in the Manager settings first. After that you can try to flash it to your device again.
[Magisk] audianer:
[MENTION=4667597]Didgeridoohan[/MENTION] :

Okey, once again:

1. Activate OEM Unlock

2. Download the Stock Firmware

3. Unpacked the Stock Firmware and unpacked the "boot.img.lz4" from the AP File

4. Put the "boot.img.lz4" file on the phone

5. Install App "Z-Archiv"

6. Unpacked "boot.img.lz4" to "boot.img"

7. Install Magisk Manager

9. Switch output to .img.tar

9. Patch the "boot.img" to "pached_boot.img"

10. Put the file on the pc

11. Flash the file with odin on the phone

12. Restart

Then i got the problem....
[Magisk] ashyx:
I know, it's was a boot.img. That's why I stated Magisk will create the tar archive. ;)
[Magisk] nagper:
Hi,

anyone please can suggest a Magisk or Xposed module which fakes that the device is encrypted even if it's not, so that an application which want device encryption can run without actually encrypting it.

Thanks,

Peter
[Magisk] ashyx:
What app requires device encryption? :confused:
[Magisk] Didgeridoohan:
Ah, apologies... I'm a bit sleep deprived. I read it as if you were providing an already patched image...

[MENTION=6887073]audianer[/MENTION] Have you tried enabling "AVB 2.0/dm-verity" when patching the boot image?
[Magisk] ashyx:
No worries. I only unpacked it and removed the dm-verity flags prior to patching with magisk.
[Magisk] A.lemane:
U sure you activated oem unlock?
[Magisk] A.lemane:
Isn't that what's your looking for
[Magisk] nagper:
"Intune Company Portal" for example.
[Magisk] jjakajonas:
[MENTION=4470081]topjohnwu[/MENTION]

Is there a way to pre-root the ROM before flash?

The thing is I'm working on a Android system for the raspberry pi 3 and I really want magisk and root to get the google play visa function and som other stuff to.

But I have run my head to the wall right now whit options.
[Magisk] nagper:
Sorry the png you attached is not visible. Could you try it again please? Thanks!
[Magisk] audianer:
Yes, no difference ....

Yes 100%
[Magisk] rainman74:
[MENTION=4470081]topjohnwu[/MENTION]

Hi John, can you hide USB debugging with Magisk Hide for Fortnite? It's really awkward to always have to turn it off before playing.
[Magisk] PearLonza:
Hey guys, I've been having trouble with Magisk Hide lately. whenever I try to open the menu option Magisk Manager force closes on me. Tried clearing cache, data, removing and reinstalling and even reinstalling Magisk entirely, so far to no avail. Any ideas? Currently running 17.2 and latest OOS Pie Stable OnePlus 6
[Magisk] jcmm11:
You can use Tasker to turn it on and off when you start/stop Fortnite.

settings put global adb_enabled <value>

Where <value> is 1 to enable or 0 to disable

Settings needs to run as root. If it gives you an error try setting selinux to permissive before the settings command, then reset it to enforcing again after (use setenforce 0/1).

If you need to slow down the app start until after the settings change you can use "am start" to actually start the app (Google is your friend).
[Magisk] nongthaihoang:
High cpu usage when "stop logd". I remember this problem was fixed before.

https://drive.google.com/file/d/1Z-w_VBjosPvurOZEqwVJmstYcctHdR7F0g/view?usp=drivesdk

https://drive.google.com/file/d/12ohLsx3I3UgzPOqLWIvzqEI7utb8e8URiQ/view?usp=drivesdk
[Magisk] Fif_:
Yeah, just don't do that, MagiskHide depends on logd functioning.
[Magisk] Tithonius:
So, ive been trying for a long time to try to get the current build of magisk to work on my xperia L2. I have a couple of issues. first one is that I am having a very hard time getting ahold of the boot image that I need for the patching. after that im not even sure if the L2 is supported with magisk. I know that the L1 is and have used it in the past. I have loved it!

I have tried the normal xperia tricks for extracting the boot.img from the firmware file. and even though I have been able to get the firmware file, i have yet to find a valid boot image out of that file. Any assistence would be appreciated, as well as any tips or pointers that I should do during the install.

The phone as it stands now is bootloader unlocked, stock rom, and not rooted.

Would love some assistance. Thanks!
[Magisk] 135Shadowsoul:
Hallo every1,

it seems, there is a new magisk detection method online. at least "pokemon go" can detect magisk and refuses to start. if i uninstall magisk on a custom-rom device (LG G6, see signature), po/go is running without problems (at this point of time)

as i think, other apps with magisk/root/modification detection will soon follow, that is why i post this information here and not only in magisk-po/go thread.

if i can help debugging/solving by providing any infos/logs/whatever, just tell me what do you need and how to get it :)

Greetings
[Magisk] darkdaemon32:
And did you hide the magisk app using the option in settings as well as select pogo in magisk hide?

I just checked and it's working fine for me. So your doing something wrong if it's detecting magisk. Probably didn't activate the random package name option for magisk Manager
[Magisk] nithinmanne:
How to lock bootloader after flashing magisk, while keeping dm-verity and encryption?
[Magisk] casouzaj:
If you have a backup of your phone's TA partition, just by restoring it, its bootloader world be automatically relocked. Otherwise, I don't see any reasons to relock it.
[Magisk] bluelagoon8951:
If you lock bootloader with magisk installed the device won't boot because the magisk zip isn't signed by phone manufacturers. You can keep dm-verity enabled from magisk manager.
[Magisk] yochananmarqos:
NEVER lock your bootloader if your system is modified in any way.
[Magisk] deepu458:
Hi Everyone,

I ended up with a very weird bug in Magisk Beta 17.2. The device i have is Essential PH-1 and runing AICP Custom Rom(based of LOS 15.1) Issue is i had MagiskHide enabled under settings and added few apps to the hidelist and when i reboot the device it shows the safetynet (both CTS & Basic Integrity as false) then when i go into

Magisk manager and under options if i disable MagiskHide for a sec and re enable it back on

. Then if i

check the Safetynet test it shows me true for both

. I really cant understand whats the thing that cant be enabled at the boot and y it needs manually to disable and re enable that option.

I tried looking into logs and it looks all ok at the load. its seeing the hidelist and loading mods.

PS Edit: the option for MagiskHide is never disabled. I am manually doing it for a quick 2 sec break and re enable that to On.
[Magisk] siealex:
Enabling MagiskHide for any app makes this app crash constantly. Magisk 16.7 thru 17.2 (maybe also 16.4, but not 16.3), Android 8.1 (official), Nexus 5X. Is it possible to find the cause?

PS, this crash happened three or four times approx. 30 seconds before the end of the log file.
[Magisk] alecxs:
Why not just read back from phone with Mediatek SP Flash Tool
[Magisk] jcmm11:
I'm running stock 8.1 on a Nexus 5x (almost stock, custom kernel, some system partition modifications) and don't have any issues.

At a guess I'd say your problems are being caused by Exposed, which is all over that log.
[Magisk] whitewallman:
Yes. This bug has returned. Pixel 2 XL Android Pie October security update. Cannot produce logs as it happens when powered off. To reproduce, power off device with usb charger plugged in. Screen will have charging indicator but device is frozen. Only way out is to hold power button for several seconds to make it reset. This issue arose with later 16.x builds but was addressed.
[Magisk] Fif_:
The MagiskHide daemon is either dying (likely) or your log buffers may be too small (unlikely). A Magisk log and logcat may help.
[Magisk] Tithonius:
I cant seem to create a scatter file for the phone with MTK tools so that i am able to do a readback

and the phone isnt rooted. i havent used this flashtool before, but it seems to look like i need root for alot of the stuff in here

---------- Post added at 12:34 AM ---------- Previous post was at 12:30 AM ----------

I can do everything i need to, but when i go to create a scatter file the button is greyed out and there is only one thing listed in the list.

---------- Post added at 01:23 AM ---------- Previous post was at 12:34 AM ----------

Update

I did get a scatter file, but i cannot get the SP flash tool to even find the phone for readback, nonethe less even give me a search bar or a percent bar when reading back

I really would love some help with this as its getting really frustrating. Everyone makes it sound so easy but i cant seem to make it work. Could it have anything to do with the fact that the phone is encrypted? and i cannot unencrypt it?
[Magisk] nithinmanne:
My phone doesn't have a TA partition, it seems only Xperia phone have one

---------- Post added at 03:26 AM ---------- Previous post was at 03:23 AM ----------

Can't I sign it with my own key
[Magisk] martyfender:
Why do you want the bootloader locked? I don't see a reason to lock it either.
[Magisk] nithinmanne:
To have dm-verity in enforcing mode, so malicious apps that gain root access can't modify any important partitions, and also to have widevine l1
[Magisk] ShidqyRR:
still can't play fgo, i still waiting to be fix it

Sorry for bad English
[Magisk] Artim_96:
That makes no sense. Either you have it turned off or kept on by Magisk. And if a malicious app has root access it can do pretty much anything. With intact dm-verity you'll just get bootloops if an app manages to write to /system. So it's no protection system for you, it's a punishment system for OEMs.
[Magisk] David_#27:
Hello everyone,

I think I am having a strange issue that many of you may have seen it before! So when I installed the latest version of Magisk manager and it's 17.1 zip, everything was good! After some reboots, when I opened magisk manager, it displayed that magisk is not installed... But after a reboot again, the problem was fixed. What do you think it's going on here?
[Magisk] bluelagoon8951:
I've never heard of that being done...
[Magisk] martyfender:
If you are so paranoid about this, why are you even trying to root your device at all? Just stay with an unrooted, stock device.
[Magisk] nithinmanne:
I'm not that paranoid, it's just a neat feature, that I want to have enabled just in case.

---------- Post added at 06:31 AM ---------- Previous post was at 06:30 AM ----------

I read that dm-verity has a mode that uses a user key and displays a yellow warning screen like the orange one we get when it is unlocked
[Magisk] Evilmonk100:
error get in magisk

can anyone help me to get off from this error. i was trying to uninstall magisk V 16 from my xperia sp via twrp recovery using latest uninstall zip but i get follwing error. actually am trying to uninstall old version and installing a new version but while installing magisk v17.1 through boot bridge also get follwing error i attched photos of that. note for uninstallation zip i have not used boot bridge. so due to this i have install old magisk v16 zip through boot bride and latest version of magisk manager apk.
[Magisk] alecxs:
Please don't use a scatter file created from MTK Droid Tools, AFAIK only phone < 4 GB is supported. You can use these scatter files for read back, but never flash unless it is 100% confirmed working.

If you need to create your own scatter file better use WwR MTK v2.30 (see attachment for instructions). Download links seems dead but you still can get it from hovatek if you sign up there...

For Readback install MediaTek MT65xx USB VCOM Preloader USB Drivers, start the read back in SP Flash Tool, then switch off phone (remove battery if possible) and connect USB cable (works without battery, but you can insert while read back is running)

here is a video

https://www.youtube.com/watch?v=pJHGAql2xAc
[Magisk] deepu458:
Hi Thx for the reply. Actually i have figured out tht the reason for this issue was with my custom rom kernel. Once i repalced the rom provided kernel with a different kernel it started all working gr8.

So i tried contacting the dev of my rom, but he says nothing has changed to cause this issue. Is there any Dev or OP that can shed some light about this kind of issue with kernel related issue.

Anyways i am attaching the magisk log that was recorded with my stock kernel and had issue of having magiskhide service killed at system boot.
[Magisk] Fif_:
Maybe because you have the dialer, phone, GSF, Play Store in your hidelist? It's supposed to be kept at a minimum, and I see 14 apps in there.
[Magisk] onestoploser:
I'm at a loss here and I'm hoping someone can point me in the right direction. My phone is a Redmi 4x and I'm using OrangeFox 8.1 recovery. I've never had any issues flashing ROMs, rooting with Magisk, SuperSU, etc. when running Nougat or Oreo. Pie ROMs (currently PixysOS 2.1) are giving me trouble. I clean flash ROM, gapps and Magisk like usual. Everything seems fine. No errors reported during flash. Phone boots fine. I install Magisk Manager from the apk but upon opening it tells me Magisk isn't installed. I've tried updating firmware, using different recoveries, mounting different partitions before flashing, flashing in different orders and patching the boot image through the Manager. The result is always the same. When I flash the Magisk Unistaller it sees a Magisk-patched boot image so I'm assuming something is blocking Magisk at boot. I don't know how to get a logcat without root. I've also tried SuperSU and having the same issue (which isn't surprising seeing how it seems to pretty much be abandoned and hasn't been updated in forever).

Will someone please give me some advice/point me to a valid log file I can get without root to upload here? It's driving me nuts...
[Magisk] Didgeridoohan:
[MENTION=1066706]onestoploser[/MENTION]

https://www.didgeridoohan.com/magisk/MagiskHelp
[Magisk] raxijuciro:
hello,

after I update my magisk manager from 16 to 17, I got notification to update magisk to 17.1 (I forget what version I was) and I choose to install it directly (recommended) after that I click reboot. However after rebooting, magisk manager said magisk is not installed and when I check with root checker it also said I am not rooted. My device is samsung galaxy s6 s6920f. Please help me
[Magisk] jjakajonas:
Hello.

I have over a longer period of time have some problems whit my HTC One A9 with lineage 14.1.

Every time I tryed to power it on it went on a "vibrate, show HTC splash image for a few seconds then reboots" after some tryes it just shots down.

First I suspected lineage for errors.

But now I found out that it happens when I flash magisk 17.1.

If I flash same lineage and magisk 16. Then it just boot fine.
[Magisk] bafforosso:
Did you try rebooting to recovery and flashing the Magisk Uninstaller, then Magisk again (still in your recovery)? If not you should.
[Magisk] deepu458:
Actually I tried tht also with 3 apps in tht list. But with the same result. Actually now I have 6 in tht list. Removed all others
[Magisk] Evilmonk100:
can anyone help me to get off from this error. i was trying to uninstall magisk V 16 from my xperia sp via twrp recovery using latest uninstall zip but i get follwing error. actually am trying to uninstall old version and installing a new version but while installing magisk v17.1 through boot bridge also get follwing error i attched photos of that. note for uninstallation zip i have not used boot bridge. so due to this i have install old magisk v16 zip through boot bride and latest version of magisk manager apk.
[Magisk] zoel.fahmi:
Hello

I've bought Redmi Note 4x

Already unlocked (bootloader)

Flash twrp, custom rom then custom kernel

Also magisk

The thing is, it'll go missing sometime

Any advice?

Also, mind to tell me about this advanced setting?
[Magisk] raxijuciro:
thank you so much! it works!:good::highfive: