Remove SuperSU from Custom ROM - Samsung Galaxy On5 Questions & Answers

So, I've been playing around with my On5, mainly trying out different ROMs. I found a ROM I like and I've installed my own launcher on it. But now I have a slight problem. The ROM is rooted with SuperSU, but I would rather use Magisk. When I try to flash Magisk via TWRP it gives me an error along the lines of "boot image has been patched with unsupported files" or something to that effect. I've tried using the Unsu.zip to remove the root but it apparently doesn't remove some files that Magisk is complaining about. Is there any way to remove the root from this ROM so that I can install Magisk?
P.S. I prefer Magisks systemless root because I have an app that checks for root
P.P.S. I can reflash the ROM if necessary
Any help is appreciated!

Related

Magisk v11.6/Systemless Root works for our Moto X

Tested on a clean install of CypherOS. It installs and passes SafetyNet without doing anything complicated. Assuming it should work on any rom without root built in like Lineage OS.
Grab it here and thank @topjohnwu. Remember to enable Magisk Hide in settings or it will not pass SafetyNET.
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
I tried this on an existing install but no luck.
On the new install did you have to flash the remove root zip from Lineage, or just ROM GAPPS and Magisk zips?
Thanks.
rsocon said:
I tried this on an existing install but no luck.
On the new install did you have to flash the remove root zip from Lineage, or just ROM GAPPS and Magisk zips?
Thanks.
Click to expand...
Click to collapse
On a clean install I just flashed rom, gapps, and magisk in that order.
BTW over night Magisk lost root, a reboot and root was back though. Might be bug, might be a one time thing, I don't know.
After trying everything listed still no luck getting this to work.
Guess no Android Pay for me
I tried to install on stock ROM, it seem it dosn't work, i'll try with a custom ROM
i'm running this just fine with just the core AND the latest version of magisk. safetynet check passes too on cypherOS.

A lot of apps (and system settings) won't work unless I hide root

I've been experiencing a weird issue since I installed DU on my 6p; a lot of apps crash when I try to open them until I use Magisk Hide on them. Not just user apps, I couldn't even connect to my JBL speakers via bluethoot until I hided root to my bluethoot-share system application. I can't get chrome (or anyhting related to it, like the in-app browser of Facebook) to work, and i've tried a lot of versions of Chrome and even Opera; the only thing I could get working it's Firefox. I can't even change my wallpaper (my launcher crashes).
On the other hand, apps that support root, like amaze file manager, work smoothly even without being granted root permission.
I'm a noob, so i have no idea what's causing the problem, but i'll try my best to give you my setup in case you can help me.
- I'm using official Dirty Unicorns ROM v11.3 (7.1.2) with the correspondent stock kernel (unicornblood)
- I'm rooted by chainfire's SuperSU v2.79
I don't know if the mods i've installed have anything to do, but i'll share them just in case
I installed these audio mods:
- Hi-Performance DAC Enabler:
- aptX™ HD Enabler
- AINUR Pandora
This other thermal mod: CTTmod
And I'm using Magisk v12.0
Thank you very much in advance
I don't think you can use Magisk and SuperSu at the same time because Magisk includes its own root app, PhilsSu. You are basically using two different root apps at the same time. You can try uninstalling SuperSu or Magisk but you might be better off doing a clean flash of DU, Gapps then either SuperSu or Magisk but not both.
jhs39 said:
I don't think you can use Magisk and SuperSu at the same time because Magisk includes its own root app, PhilsSu. You are basically using two different root apps at the same time. You can try uninstalling SuperSu or Magisk but you might be better off doing a clean flash of DU, Gapps then either SuperSu or Magisk but not both.
Click to expand...
Click to collapse
When I tried to install magisk without SuperSU it asked me to root my device first and aborted installation
I've never used Magisk but I thought PhilsSu was part of it. I suppose you can download PhilsSu separately and flash it before Magisk but I know that's the rooting app that works with Magisk, not SuperSu.
---------- Post added at 08:09 PM ---------- Previous post was at 08:02 PM ----------
Now that I think about it I'm pretty sure I read that you can uninstall SuperSu using the Play Store app then choose to root with PhilsSu within Magisk if you have both installed at the same time.
Magisk v12 is its own root solution. It doesn't use SuperSU & it doesn't use PHH superuser either. It's its own thing now. Magisk Hide does not hide SuperSU, only its own root. So if you're using Magisk Manager to hide apps while SuperSU is installed, it's literally doing nothing. Your root is not hidden and you should be able to confirm this using a root checker app. I guess it's possible that having both is causing your issues, but I follow the Magisk general support thread and never see issues that severe. I'd guess it's a stability issue on your ROM.
If you want to use Magisk Hide correctly, you need to get rid of SuperSU. Select the full unroot option from the settings. Hop on over to osm0sis thread here and grab and flash the unsu.zip he has over there. Then flash your ROMs boot.img again (unless it's rooted). That'll completely wipe SuperSU and let you use Magisk.
So basically (stock phone > unlock bootloader > install TWRP > flash Magisk v12) and now you're rooted. No SuperSU / anything else is involved. V12 literally roots you and you need to clean up SuperSU to use it properly.
RoyJ said:
Magisk v12 is its own root solution. It doesn't use SuperSU & it doesn't use PHH superuser either. It's its own thing now. Magisk Hide does not hide SuperSU, only its own root. So if you're using Magisk Manager to hide apps while SuperSU is installed, it's literally doing nothing. Your root is not hidden and you should be able to confirm this using a root checker app. I guess it's possible that having both is causing your issues, but I follow the Magisk general support thread and never see issues that severe. I'd guess it's a stability issue on your ROM.
If you want to use Magisk Hide correctly, you need to get rid of SuperSU. Select the full unroot option from the settings. Hop on over to osm0sis thread here and grab and flash the unsu.zip he has over there. Then flash your ROMs boot.img again (unless it's rooted). That'll completely wipe SuperSU and let you use Magisk.
So basically (stock phone > unlock bootloader > install TWRP > flash Magisk v12) and now you're rooted. No SuperSU / anything else is involved. V12 literally roots you and you need to clean up SuperSU to use it properly.
Click to expand...
Click to collapse
Thank you very much, that clarifies a lot for me and it did the trick, i clean flashed DU and rooted with Magisk v12, everything's perfect now:good:

Supersu to Magisk

Hi, i am rooted with supersu since i have my oneplus 5. i have a kernel installed on stock OOS. But now i want to try Magisk. What is the way to uninstall properly supersu and flash magisk please? thanks for your help
edit: i already tried to supress the root with supersu option ang got a bootloop after...
Uninstall SuperSU (there should be an unroot option somewhere) and flash Magisk.
Or flash the stock OxygenOS kernel, that should remove root.
are you sure flashing stock kernel remove root...? (i have a backup of the sock kernel just in case of..)
brunsman6229 said:
are you sure flashing stock kernel remove root...? (i have a backup of the sock kernel just in case of..)
Click to expand...
Click to collapse
Yes it will remove root, but not very cleanly. Some files will be left over (/data/su.img and /data/stock_boot*). These leftover files shouldn't cause any harm except eating disk space, but you may want to remove them if you want to re-root from a clean slate.
As I said, SuperSU should have a "full unroot" option somewhere in its settings. Use that, reboot; flash Magisk.

Magisk on Stock (rooted) Nougat?

Since going back to stock from the RR ROM, I've been using SuperSU 2.79 and really missing Magisk. Is it possible to use Magisk on the stock ROM, or is that only an option on LOS-based ROMs?
Flapjack said:
Since going back to stock from the RR ROM, I've been using SuperSU 2.79 and really missing Magisk. Is it possible to use Magisk on the stock ROM, or is that only an option on LOS-based ROMs?
Click to expand...
Click to collapse
Yes, it is obviously an option. Simply download Magisk 14.0 zip, then go to SuperSU --> Full Unroot, then the phone will restart; after it does go to TWRP and flash Magisk
Choose an username... said:
Yes, it is obviously an option. Simply download Magisk 14.0 zip, then go to SuperSU --> Full Unroot, then the phone will restart; after it does go to TWRP and flash Magisk
Click to expand...
Click to collapse
I haven't been able to uninstall supersu. Even after updating it to 2.82, it still says "uninstallation failed". Attempting to flash Magisk 14.0 fails also, as it detects an existing root method.
So install just boot.img from twrp and flash magisk.
Flapjack said:
I haven't been able to uninstall supersu. Even after updating it to 2.82, it still says "uninstallation failed". Attempting to flash Magisk 14.0 fails also, as it detects an existing root method.
Click to expand...
Click to collapse
Either do what WesTD says or find a SuperSU uninstaller zip (i think there's one around), or wipe system and reflash the ROM
Flapjack said:
I haven't been able to uninstall supersu. Even after updating it to 2.82, it still says "uninstallation failed". Attempting to flash Magisk 14.0 fails also, as it detects an existing root method.
Click to expand...
Click to collapse
I once did a full unroot of SU from a secondary ROM on my G3 and it wound up unrooting the phone itself. Bricked and out of service for some months (flashed so many ROMs it lost its LG identity so drivers never worked. Had to bring it back the hard way). Anyway...
What WesTD said is the easy way. Also the first time SU is flashed it saves the original boot image in the /data directory I believe with a gz extension (compressed). Gunzip it and you'll have your image you can flash.
Check the web for osm0sis' unSU script. It safely removes all of SU. For systemless you'll have to restore your boot image or dirty flash the ROM.
Ah, here we go...
http://forum.xda-developers.com/showthread.php?t=2239421
[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]
LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
marcdw said:
I once did a full unroot of SU from a secondary ROM on my G3 and it wound up unrooting the phone itself. Bricked and out of service for some months (flashed so many ROMs it lost its LG identity so drivers never worked. Had to bring it back the hard way). Anyway...
What WesTD said is the easy way. Also the first time SU is flashed it saves the original boot image in the /data directory I believe with a gz extension (compressed). Gunzip it and you'll have your image you can flash.
Check the web for osm0sis' unSU script. It safely removes all of SU. For systemless you'll have to restore your boot image or dirty flash the ROM.
Ah, here we go...
http://forum.xda-developers.com/showthread.php?t=2239421
[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]
Click to expand...
Click to collapse
Good stuff. Thank you!
I used Magisk for awhile on B19, but I've had too many issues with it, so I prefer Phh's Superuser. It's not nearly as well known, but it's fast, reliable, and works on the latest versions of Android (Oreo too). Basically it's the little guy that most don't know about or consider, they think Magisk and SuperSU are the only legit rooting games in town. I won't even give KingRoot/KingoRoot more than a mention, because they have ads and install crap, not to mention I've bricked a handful of low end phones by using these 2.
As far as ditching SuperSU (like if it's built into a rom, or you just want to switch, I use this order:
1. Flash osm0sis's unSU zip.
2. Extract your boot.img from whatever ROM zip you use, flash in TWRP
3. Flash Phh or Magisk zip and reboot
Reflashing system partition shouldn't be necessary, it's just the nuclear option of last resort that noone wants to do.
AnonVendetta said:
I used Magisk for awhile on B19, but I've had too many issues with it, so I prefer Phh's Superuser. It's not nearly as well known, but it's fast, reliable, and works on the latest versions of Android (Oreo too). Basically it's the little guy that most don't know about or consider, they think Magisk and SuperSU are the only legit rooting games in town. I won't even give KingRoot/KingoRoot more than a mention, because they have ads and install crap, not to mention I've bricked a handful of low end phones by using these 2.
As far as ditching SuperSU (like if it's built into a rom, or you just want to switch, I use this order:
1. Flash osm0sis's unSU zip.
2. Extract your boot.img from whatever ROM zip you use, flash in TWRP
3. Flash Phh or Magisk zip and reboot
Reflashing system partition shouldn't be necessary, it's just the nuclear option of last resort that noone wants to do.
Click to expand...
Click to collapse
Could you say which problems you had with Magisk?
If you had f2fs then of course. But usually Magisk works as it should and has the module system which is very useful too.

SM-G5520 Nougat Not Flashing GApps with Flashfire after rooting with magisk, Help me

I Have SM-G5520 Nougat, I rooted it successfully here
Link: https://forum.xda-developers.com/sa...g5520-g5520zcu1brb1-nougat-root-twrp-t3772104
But, as mentioned there, I run Flashfire, Grant root access, Browse for GApps.zip and flash it, but after click on flash screen goes black and didn't show any proccess of flashing GApps.
After waiting 2 - 4 Hours, There was still a black screen like my phone is off and I restart my phone. Now there is not a single GApp installed there. Please help me to flash GApps.
I continue my research on rooting and flashing and i got some points that are below,
1. Magisk is system-less root that's why when ever i tried any app to modify system folder or root directory my phone got restart.
2. I tried SuperSU system-less but the device isn't going to root.
3. I tried King Root, Kingoapp, OneClickRoot, Dr. Phone root, iRoot and much more with and without PC but my device was not going to root but only Magisk root my device.
4. I tried CFAuto Root with all modifications but due to my phone didn't have "OEM Unlock" option, flashing CF Root cause failure.
5. I tried to push GApps into Original Firmware, but that way takes a lot time and i failed there because of security reasons (And that was my first attempt to modify "Firmware" I must failed ).
All the conclusion of my work let me know that i have to root my SM-G5520 Nougat as system root that will going to work 100% to flash GApps.
Now Please help me to root system wise and flashing GApps.
Thanks Advance
plz contact Gsm helper team

Categories

Resources