yashsingh1/xdaforums huggingface dataset:
[Magisk] pndwal:
OP Autobiographical Stuff (For the history buffs only) + some Tech stuff (for Tech-heads)

www.reddit.com/r/Android/comments/7oem7o/the_magisk_story/

On state of Magisk at beginning of 2018... Behind-The-Scenes MagiskSU development and hacking, light on the @Chainfire 'Beef' (this thread, pages 115, 117, 118, 119), Pierre-Hugues Husson, @phhusson's open-source code, etc...

https://medium.com/topjohnwu/state-of-magisk-2020-21de32721d65

This is a great read from Hung-Lin Wu, @topjohnwu, and a basic history of MagiskSU evolution from Systemless Xposed AND Magisk SU in 2016, to 2020 Magisk building. It includes acknowledgement of Viktor De Pasquale, @diareuse, for his (re)development of Magisk Manager, as well as Jorrit Jongma @Chainfire, and Devs like @DVDandroid and @digitalhigh who also support Magisk development.

https://topjohnwu.medium.com/state-of-magisk-2021-fe29fdaee458

This is more recent history re. Magisk changes since Wu left Apple (also App-people) for his dream job as a Googler...

John's Profile:

https://www.linkedin.com/in/topjohnwu

Experience, Education etc.

See Wu's main Medium page for some historical Magisk related technical articles re:

- Linux Logging in Magisk

- Linux Timed waiting in Magisk

- Huawei backdoor for installing gms on China region devices

- Analyzing Anime game (Fate/Grand Order) root detection --> System vulnerability "ProcGate" discovery

🤠 PW
[Magisk] zgfg:
O)op(s you did it again, left that @ sign in the URL (it works without) and smarty XDA inserted the mention tag ?
[Magisk] dope77:
The canary channel is no longer working after the (306) manager update. Beta and stable are working fine.

When i set the update channel to canary the manager no longer have internet connection, been like this for for a week.
[Magisk] J.Michael:
[MENTION=7786725]zgfg[/MENTION]: If you run the debloat-2 script manually, to build a module in place, when you reboot do you still fail Safetynet?

Is the module built by the script identical to the one you built by hand?
[Magisk] Didgeridoohan:
[MENTION=7786725]zgfg[/MENTION] Bind mounts started triggering SafetyNet sometime back in march. We discovered it when the Safetypatcher module started causing people's devices to fail SN.

https://xdaforums.com/apps/magisk/module-safetypatcher-t3809879/post82155517#post82155517
[Magisk] zgfg:
Interesting, thanks a lot - that explains the red Basic Integrity (but opens another interesting question, how the Magisk itself does it differently, not by using mount, when it performs the overlay ).

Btw, if I reduce the for loop to a one or two simple apps, it doesn't cause Basic Integrity to fail. Maybe it depends which stock app or from which system subfolder - I'm just testing more

Maybe a missunderstanding here. debloat-2 itself is a module (running a script that calls mount -o bind through the for loop), I don't have a script that would auto-create (another) module

Btw, here come the new debloat-1 and debloat-2 zips that are flashable through Magisk Manager (I didn't want to upload them to the previous post but now changed my mind), links to download from Mega:

https://mega.nz/file/p4UGkLzZ#fQq8cFlSdTuTVORLMVMkq21sdV7hAhp4gXl3BJjpemc

https://mega.nz/file/FxNgzBDQ#CpULSQmGxZDHOTEVqrGFdwkaZi4ye57smGcOyaJk7Uw

Resolution:

Found the culprit - stock apps from /system/priv-app must not be mounted to - for them it causes Basic Integrity to fail.

I can safely debloat them only by debloat-1 approach, by directly overlaying a system/priv-app tree with the dummy apk files

For the other stock apps from all the other folders from /system, /product and /vendor (40 apps, all apps there I needed for my debloating) I can use debloat-2 script approach to mount a dummy file to their apk files, without breaking the Basic Integrity/SafetyNet

See:

https://xdaforums.com/showpost.php?p=83710645&postcount=42119
[Magisk] pndwal:
Public Manager builds, ie. Beta / Stable, hide Canary channel intentionally of course.

Perhaps you need to download latest Canary Manager (now 310) from main GitHub page. This updates from Canary channel fine for me. PW
[Magisk] EotT:
The hidden apps are on the list, but after stopping and starting magiskHide, I see that the last line in the log is "beginning of crash". No more information though.
[Magisk] Didgeridoohan:
Are you using the custom channel and URL for the Canary .json? If so, the .json format changed recently and doesn't include the full links anymore. You need to pick the actual Canary channel, not custom.

The .json does change from time to time, so the intended way of installing the Canary builds is to download and install the Canary Manager from GitHub (linked in the main Magisk repo readme) and change to the Canary channel.
[Magisk] Didgeridoohan:
The XDA attachments server seems to be broken at the moment... Could you upload the log somewhere and provide the link instead (or wait for attachments to start working again, no ETA, and reattach)?
[Magisk] martyfender:
It works fine for me as well on multiple Android 6 and 9 devices.
[Magisk] EotT:
I uploaded it here: https://pastebin.com/dJXbRxGX
[Magisk] Didgeridoohan:
Nothing spectacular in there... But, if you could use the Canary builds instead we'd get better logs. And it would also be helpful if you made sure to run RootBeer and have it detect Magisk before saving the log.
[Magisk] EotT:
Running RootBeer doesn't add something in the logs.

I installed latest Canary build, but I cannot start it, it keeps crashing.

edit: it's ok now, I can start it now (I uninstalled everything, and installed magisk & manager again). Still same issues. Nothing extra in the log.
[Magisk] zgfg:
Tested carefully this evening, I can successfully debloat through the sript, by using mount -o bind fourty stock MIUI applications and services (all I wanted and tried from those folders) from /system/app,, /system/data-app, /system/product/*app and /system/vendor/*app

And the Basic Integrity (and therefore the SafetyNet) still passes!

Problems are only with the stock apps from /system/priv-app folder.

I tried randomly by five of them (one by one) and mounting dummy file to each of them causes Basic Integrity to fail

Hence I ended with a hybrid debloater, debloating 40 stock apps through the script (for loop, searching for the path, mount -o bind) and 11 by directly overlaying my system/priv-app tree with dummy apk files.

Its script service.sh can be renamed to post-fs-data.sh (to be executed earlier at booting by Magisk), and everything still works fine

Edit: Attaching this 'hybrid' debloater, tested and used now on Xiaomi Mi 9T, MIUI 12/Android 10 - debloat, stability, functionality, SafetyNet all ok

Thanks to [MENTION=4667597]Didgeridoohan[/MENTION], [MENTION=7280276]ipdev[/MENTION] and [MENTION=3335621]dr4go[/MENTION]
[Magisk] dr.mz:
app detects root

please i need help

i am losing my mind how this app is detecting root in my device . https://play.google.com/store/apps/details?id=com.mada.madapay&hl=en

i have note 20 ultra N9860 rooted

i am passing safetynet and Google play says certified device, i can see Netflix, can't run banking apps even with magisk hide and hide manager.

latest canary magisk

latest canary edxposed with blacklist

i have lucky patcher not sure if related, even tried uninstalling it

tried disable usb debug, disabled developer mode.

tried renaming TWRP and titaniumbackup folder in internal storage,

tried deleting titanium and disabling edxposed.

tried hiding root from root checker app to check magisk whether working or not and it works.

still the app detects root

installed rootbeer and hide it in manager and it gave me all green not rooted

i tried same way in my friend device s20 and the app works fine ( canary magisk with hide )

attached are logs if can help

please i am literally stuck
[Magisk] Muledeer:
clean install issue

I just did a clean install of magisk and patched img - all adb commands were good - but the loading screen is taking a long time "G"- is this normal - or do I start over? thx

Pixel 3 with Oct android 11

magisk 8.02
[Magisk] AkipDark:
Hello im just a newbie... does android 8 (oreo) still support magisk?
[Magisk] lividhen99:
Well, it would be the other way around I think, magisk supporting the OS. But yes, I think it's compatible all the way down to 5 (maybe 4 I don't remember).
[Magisk] Didgeridoohan:
Without having seen the (Canary) logs, it sounds like the process monitor can't detect the apps. Are they installed to adoptable/external storage? MagiskHide only works on apps installed to your internal storage.
[Magisk] Didgeridoohan:
That makes troubleshooting easy... In other words, MagiskHide works fine on the app and it's very likely that it is something about your setup that is triggering the detection. Other apps, files on your internal storage, etc...

The tough part is finding out what it could be, but for that you're unfortunately on your own...
[Magisk] Didgeridoohan:
If you have TWRP installed, restore your stock recovery before installing Magisk. You can do a "fastboot boot" of TWRP, but don't install it (not fully compatible with A11 yet).

If you don't have TWRP installed (and it seems like you wouldn't have issuesc with incompatible modules), it seems (from checking the issues on GitHub) like some have had success when using "fastboot boot" rather than "fastboot flash" for the boot image, and then doing a direct install in the Manager to make the installation stick.
[Magisk] JimZiii:
#Problem nr1# - it started off working except i couldn't log into to neither google or samsung accounts, even if i restored the passwords it didnt't work. so i know for a fact i had the correct passwords.

starting odin it said to log out/remove your google and samsung accounts which i'm pretty sure i did that but they still refused to to work so i might have missed something and need a fix for it after solving my other problem.

#Problem nr2# - i was told factory reset gonna be a problem and then got told with this method it woulndnt be a problem, so i uninstalled magisk and factorty reset the phone to start over and just like a video told me to enter twrp and wipe before flashing the dm-verity patch and magisk but after rebooting it just refused to boot.

no matter what combination only power, power vol up or vol down, power bixby vol up... and thats with the charging cable disconnected.

with the charging cable connected i'm still able to enter download mode to flash with odin.

BUT... i cant enter twrp and i fail when trying to flash twrp again so i'm stuck with a phone that cant boot i really need some help here
[Magisk] EotT:
Reflashed latest magisk (21004) and using latest canary of MagiskManager.

There is much more info in the log now: https://pastebin.com/YTzZaMJa

The log is saved right after running RootBeer.

I don't have external storage (no sd card), so that can't be the problem.
[Magisk] wilsonhlacerda:
I haven't checked all your message history, but have you tried to turn off and then on (toggle!) the Magisk Hide on Magisk settings?

If not, try that and run Rootbeer again.
[Magisk] EotT:
Yes, but then I cannot start any app anymore (they start, but stay 'blank'), and I need to restart my phone.
[Magisk] dr.mz:
thank you for your response

yesterday i tried fresh install in my note 5 just to make sure, no edexposed no titanium no lucky pathcher, no modules nothing

only canary magisk and the app detects root

could it be twrp?
[Magisk] wilsonhlacerda:
Really weird.

My suggestion is just because that is a Magisk bug present on some devices for a long time (mine for instance running LOS16), that we must toggle Magisk Hide after boot (I have a simple script that does that automatically).

But I've never heard of problems after toggling Magisk Hide.

What happens if you only turn off Magisk Hide? The apps also can not be run?
[Magisk] Didgeridoohan:
If that log is saved after testing RootBeer it indeed looks like an issue with the process monitoring. I forgot to ask last time, but what is your device's details?
[Magisk] Didgeridoohan:
TWRP is a classic way of detecting a modified device... Rename or remove the TWRP folder on your internal storage and see if that makes a difference. There are more tips here, if you haven't seen them already:

https://www.didgeridoohan.com/magisk/MagiskHide#hn_Hiding_root_from_apps
[Magisk] dr.mz:
thank you for the link i did check it

and tried deleting TWRP and titanium backup folders but no luck
[Magisk] Didgeridoohan:
Well... Like you said it works fine on your friend's device (and I can start the app just fine as well), so Magisk is at least capable of hiding from it. Unfortunately not all devices are equal and the variables too many to be able to give more help than this. In that link you've got all tips I could possibly give you...
[Magisk] dr.mz:
thank you for your response, thats why its driving me crazy

my fresh install note 5 with nothing apart from magisk is also detecting root. ( rootbeer says not rooted )

i even deleted anything that might tell device is rooted in internal storage no luck
[Magisk] EotT:
It's already some time (months) that it isn't working. Before that, I also had to toggle MagiskHide off/on at boot to get it working. In the previous months, I couldn't use my banking app, but I'd like to fix this problem, because not be able to use my banking app is become more and more annoying.

Turning MagiskHide off doesn't have any (visible) side effects, apps are starting fine.

It's a OnePlus One, running Android 10 (latest ColtOS: https://xdaforums.com/oneplus-one/development/rom-coltos-v5-5-t4033897).

I did a clean flash a few days ago, but still the same issue.
[Magisk] Didgeridoohan:
It's very possible that this is caused by the ROM... Have you tried with another ROM? Maybe ask if anyone else using that ROM is experiencing the same thing (I took a quick look but didn't see anything along those lines in the thread).
[Magisk] EotT:
I'll try with another rom to verify this. Thanks for the suggestion.
[Magisk] robbayani:
- yes.. Manager 7.5.1 can find & hide it.. Miui Security also can't detect root/Magisk..

- yes.. Miui Security cant detect root/Magisk if i Hide it first with Manager 7.5.1 then update to 8.0.2.. also after update to Manager 8.0.2, Manager 8.0.2 still can't show "com.miui.securitycenter"..

but..if direct using Manager 8.0.2, Manager 8.0.2 cant find "com.miui.securitycenter, so Miui Security easily detect root/Magisk..

---------- Post added at 00:58 ---------- Previous post was at 00:47 ----------

maybe that Apps Developer/IT too smart.. usually banking apps & payment apps..

better U buy cheap phone special for this apps.. dont unlock bootloader, dont root, dont enable USB Debuging bla bla bla..

or U clean flash and restart step again.. maybe U get luck
[Magisk] martyfender:
Did try you deleting data and cache in RootBeer app settings, then hiding it in MM?
[Magisk] cojocar.andrei:
Hi, one question, maybe someone knows the answer for it. I've installed magisk 20.4 on an older phone with nougat on it and with a fingerprint reader. I used to have an older version of magisk on it that was functioning ok. With this newer version of magisk 20.4 the fingerprint reader stopped working ... Does anyone knows some tricks to get it working? Thanks!
[Magisk] robbayani:
why not using Saki Tools for debloating Miui stock apps??

this tools is simple & safe, u'r phone will not bootloop if U mistake debloat some apps..

based from my experience manually debloat Miui using script if mistake debloat apps causing bootloop..
[Magisk] HippoMan:
... or you could do what I did:

* Pick a second web browser and install it. Android offers quite a few. Pick one which allows you to change the User Agent string.

* Set its User Agent string to that of the desktop version of a browser such as Firefox or Chrome.

* Set its home page to the login page for your bank's web site.

* Change the name of that app to the name of the bank.

* Change the app's icon to the icon used by the banking app.

* Freeze or uninstall the original banking app.

* Use this modified web browser app as your mobile banking app.

The only meaningful differences that I noticed between this and my original banking app (Chase, in my case) are that (1) I cannot scan checks and deposit them via my mobile device, and (2) all other functions that the original app blocked are now totally available to me. And I never want to scan and deposit checks from my mobile phone, anyway.

.​
[Magisk] zgfg:
Method 1 (as described above) does not cause any bootloop. And I was mainly interested why (2) behaves differently.

Besides, later posted an update that (2) can also work but not for priv-apps

Btw, if we are ttalking just about debloating (again, that was not my real question), it can be also done by adb, without root

All together, thanks but I was not interested in some other tool for debloating, I know several ways how to do it myself - and if really talking about debloating, I want to always be in the full control, choosing and declaring myself what I consider a bloatware and what not ?
[Magisk] odlaw2020:
trouble installing on moto g6

Hello...

I've been trying to get Magisk installed on a moto g6 running lineage Resurrection Remix (Android 10). I have TWRP (64bit) 3.2.3 recovery installed.

The ROM installs fine but I've been completely unable to get MagiskManager to detect Magisk after I've flashed it from TWRP.

Things I've tried:

1. flashing boot.img (extracted from RR ROM) and immediately flashing Magisk

2. various versions of Magisk (I'm told 20.4 does not work with this hw/lineage combo but 20.3 and 19.3 should do)

3. various versions of MagiskManager (7.5.1 and 8.0.2)

4 wiping data, dalvik, system, data. Installing RR ROM, Gapps nano, Magisk 20.3 in one hit.

I've succeeded in reducing my phone to boot loops, and infinite boot waits at various times but always recoverable (so far!) I've _not_ succeeded in getting Magisk recognised by MM so that I can get to the point of installing the one module I'd like.

Can anyone help?

Magisk flashing log is here This was extracted from the end of the longer log of step 4 above. Let me know if you need further details.
[Magisk] HippoMan:
UPDATE: in my case (i.e., with the Chase banking app), I now realize that I can still scan and deposit checks via the mobile app, even though it detects that the device is rooted. I just need to access that deposit function from the menu on the left side. Therefore, if you have that particular bank and you want to use it to deposit checks, then just don't freeze or uninstall the original app. The modified web app and the original app can coexist, and you can choose which one you want, depending on which function you want to perform.

.​
[Magisk] EotT:
I tried another rom, and... magisk/su isn't detected anymore! Problem solved. Thank you for your time & suggestions.

I'll ask in the rom's forum if this can be fixed. Otherwise, I'll start using another rom.
[Magisk] zgfg:
Yeah. Canary Manager 310 doesn't show Security app in the list (Show system apps enabled, searching for secu finds nothing) and that Security app finds the root

I downgraded from Magisk Canary 21004 to Stable 20400 to be able to downgrade also from Canary Manager 310 to Stable 7.5.1 267

And indeed, old Manager then shows Security app in the Magisk hide list and when I enabled, Security app could no more find the root

Then updated back to Magisk 24004, leaving Manager 7.5.1 - Magisk hide was still showing Security app in the list and hiding still worked

Finally I upated Manager back to 310, it does no more show Security app in the list, but the app still cannot find root because hiding from that app was remembered in DB

Hence it is nothing about UID (heavy artillery), just some "cosmetics' (if 'intentionally', then what for?) in the newly redesigned Managers (8.5.2 or Canary) that they don't want to show Security app, although hiding from that app still works when it was pre-set by the old Manager
[Magisk] martyfender:
https://xdaforums.com/moto-g6/development/10-0-resurrection-remix-v8-6-1-t4170941

Sorry, I now see you did already post there.
[Magisk] Spartacus500:
This info is root detects :confused:
[Magisk] Cygnust:
Hi,

where can we get this version ?

v21 makes my phone go automatically to fastboot when flashed with latest Lineageos 18 on OP6
[Magisk] cojocar.andrei:
It probably detects xposed, my latest banking app detects exposed as well... without xposed it works ...
[Magisk] dr.mz:
yes root detected

my other device has no xposed and root detected
[Magisk] pndwal:
For Canary, click Downloads, Magisk Manager Canary on main Magisk page. This manager allows all channels for Magisk(SU) installation. Link:

https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/post83706733 PW
[Magisk] zgfg:
@robbayani, it can be still controled but from Terminal:

Show the current Magisk hide list:

:/ # magiskhide ls
com.google.android.gms|com.google.android.gms.unstable
com.kimchangyoun.rootbeerFresh.sample|com.kimchangyoun.rootbeerFresh.sample
org.microg.gms.droidguard|com.google.android.gms.unstable

Add Security app and list again:

:/ # magiskhide add com.miui.securitycenter
:/ # magiskhide ls
com.google.android.gms|com.google.android.gms.unstable
com.kimchangyoun.rootbeerFresh.sample|com.kimchangyoun.rootbeerFresh.sample
com.miui.securitycenter|com.miui.securitycenter
org.microg.gms.droidguard|com.google.android.gms.unstable

Indeed, Security app now cannot find the root

Remove Security app from Magisk hide:

:/ # magiskhide rm com.miui.securitycenter

and it will again find the root
[Magisk] dope77:
I'm not using the custom channel thingy, i just have magisk canary and canary manager installed. Update channel is set to canary but it's no longer working after manager (306) update.

If i set the update channel to stable/beta, the manager would show me the latest version of both. And if i set it to canary the manager shows NA and won't install any modules (connection error)
[Magisk] zgfg:
Json for Canary has changed. Download the latest Manager:

https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-debug.apk

Install the apk and everything will work again
[Magisk] dope77:
Still same problem, canary channel won't work.
[Magisk] daktary:
Hello, the v21.0 works for my bank apps!!!!!! CONGRATULATIONS
[Magisk] zgfg:
What does that mean?

Check that you don't have same adblocker, DNS VPN, firewall blocking access to GitHub
[Magisk] pndwal:
Just checked this: Updated from stable Manager to latest Canary, clicked Install for Magisk, (Canary channel selected), Download Only method, and it's frozen on Loading!... So you're right.

Solution is simple though; Clear Data for Manager App.

Alternatively, I can confirm that uninstalling previous Manager before installing Canary Manager also works.

Seems it may be retaining repo (json) info for installation file from Public Stable / Beta Manager which is incorrect for Canary as indicated by [MENTION=7786725]zgfg[/MENTION], and clearing data removes conflicting information / resets. :good: :cowboy: PW
[Magisk] PistolSlap:
Problems switching from SuperSU to Magisk on a custom rom.

Hello, I have a Samsung Galaxy A5 2017 running AOSP Extended 4.6 rom. I'm using TWRP recovery and have it rooted with SuperSU. I've been trying to switch to Magisk, since it seems to be the more modern rooting solution now, but when I try to flash the magisk zip in TWRP, it tells me it can't do it because the boot.img has been modified. I tried to switch to a stock boot.img as suggested, but then it breaks the AOSP rom and bootloops, so now I'm at the crossroads where I can either use my current rom OR magisk. Or is there another solution to swapping from SuperSU to magisk?

I'd appreciate your input.

Thanks!
[Magisk] mitropolitelias:
Hello!

You write:

After installing Magisk in recovery (starting from power off):

•(Power up normally) → (System with NO Magisk)

•(Recovery Key Combo) → (Splash screen) → (Release all buttons) → (System with Magisk)

•(Recovery Key Combo) → (Splash screen) → (Keep pressing volume up) → (Recovery Mode)

Is there a possibility to select load modes with the help of "adb reboot recovery" command, since for some devices Recovery Key Combo in unknown?

Grateful in advance