yashsingh1/xdaforums huggingface dataset:
[Magisk] tech_head:
1. Fail. Unlocked bootloaders fail.

2. Yes, on my Nexus 6P no issues.

3) Fail. Possibly pass with Magisk.

If you unlock the bootloader, SafetyNet fails.

You must run something that hides the BL unlocked status.

Systemless Root with Magisk is the only solution I know of.
[Magisk] EasyDeath:
Ok, so i think even a custom rom with magisk will be ok for safetynet

I think i will use magisk on top of stock rom provided by the phone, but i think if Magisk Hide is enabled on cusom rom, it will work anyway.
[Magisk] Rainbowtwinkie4:
App won't uninstall. Dont want to re Flash Rom as I've changed things in the system portion (under apps, so won't affect this.) Ive went thru the app and used the uninstaller. Version 13.3, device is a samsung galaxy tab a, smp580.

Also, how to extract stock boot img?
[Magisk] Artim_96:
Do you mean apps or Magisk modules?

And stock boot image is always backed up under /data
[Magisk] Rainbowtwinkie4:
I mean under system/apps. Separate apps entirely not related to magisk besides me not wanting to delete them in reformatting.
[Magisk] Artim_96:
Well, they are not supposed to be uninstallable and manually uninstalling them would defeat the purpose of Magisk.

But you can let the system think they are gone with an own module. I don't know if it's still possible to ride a folder with an empty one, but otherwise just make a module and let it replace the .apk with an empty file. Many file mangers can create a text file, you just have to rename it to the apk name under /system/apps and don't forget to rename it from .txt to .apk
[Magisk] Rainbowtwinkie4:
I don't mean the apps not being able to uninstall. Magisk wont uninstall. The apps have nothing to do with magisk. Theyre just the reason i don't want to reinstall my rom
[Magisk] Artim_96:
So then what exactly is your problem, what is left over suggesting that Magisk isn't uninstalled?
[Magisk] Rainbowtwinkie4:
I go back to the app manager and it says its installed
[Magisk] reversegear:
Can someone please help me

Device : Le1S

ROM : RR 5.8.3

Android Version : 7.1.2
[Magisk] Artim_96:
So you mean the Magisk manager is said to be back after flashing the uninstaller and uninstalling the app?
[Magisk] Lum_UK:
This may sound daft, but is there a way to install Magisk non-systemlessly?

My phone (Oppo R9S) has a locked bootloader, and while TWRP is working thanks to a hack by a Chinese developer who doesn't publish his source, custom ROMs are all based on stock kernel and flashing Magisk causes the phone to refuse to boot with an error about corrupted ROM.

I don't actually care about the systemless aspect of Magisk (no NFC on this phone), but it would be nice to get access to Magisk modules, especially for Nougat based ROMs where there is no Xposed.
[Magisk] Artim_96:
No, and it will never be possible. That's not how it's supposed to work.

You'd probably need a workaround. Maybe your devices bootloader only accepts signed boot images. If you are lucky it takes every signing key so you can use an own one. But that is something too device specific to discuss it here, you'll need to discuss that in your devices forum
[Magisk] Didgeridoohan:
Pretty much every module can be applied to your system without Magisk. Take whatever module you want to use, look at what it does and then do that yourself on your device... That's how you make it "non-systemless".
[Magisk] olivercervera:
Hi guys,

I have an interesting case where an app is apparently circumventing Magisk hide.

It is called Barclays Mobile Banking, the mobile app of Barclays UK bank. This app used to work fine with Magisk, but since the last two updates it doesn’t.

I am a fairly proficient user, as you will see in a moment I’ve exhausted troubleshooting steps. First of all, this is what you should do to replicate the problem.

Install the app.

Enable Magisk Hide for this app

Run the app.

Simple, right? Everybody can do this, even if you don’t have an account with this bank.

This procedure worked until the second-last update of the app. The app used to welcome you to the wizard. However, now hangs at the splashscreen.

These are my observations, following this troubleshooting guide.

Obviously MagiskHide is working fine on this device. I can hide root for other apps without problems. No modules are being used.

This app seems not to use SafetyNet. Anyway my device(s) is passing SafetyNet.

App has been added to MagiskHide

At the very beginning, this app requests permission to Phone, I guess to get some details like the list of installed app. I've hidden root to Phone Services (com.android.phone), no changes.

ADB on or off does not make a difference.

Props should be fine.

At this point I’ve installed the app on a stock device (Moto E 2015 on 6.0): the app works, fine. I have then installed Magisk Manager (no root, just the apk): Barclays hangs at the splashscreen.

Cool, so the app is deliberately targeting Magisk Manager.

I uninstalled Magisk Manager on the Moto E, app was still hanging. I had to reset the app data, then it worked.

Back on my main device (actually this has been tested on Xiaomi Mi 5, Nexus 5 and Xiaomi Redmi Note 4, all running Android 7.1.2 and Magisk, same results) I have uninstalled Magisk Manager. As the guide mentions, Magisk Hide still works if Manager is uninstalled. I reset the app data, and guess what? The app is not working.

This means the app is targeting something else other than Magisk Manager.

I have collected ADB logs, which you can find attached. I can see there is some activity from Barclays (and Magisk, when the app is started), then the app process dies. I also have the last working APK, in case you need it.

Anybody can help on this please?
[Magisk] Huskied:
Dunno, But duing the log I came across this.

08-31 22:13:50.007 D/NetworkSecurityConfig(16280): Using Network Security Config from resource network_security_config debugBuild: false
08-31 22:13:50.335 W/SurfaceFlinger(240): couldn't log to binary event log: overflow.
08-31 22:13:50.922 W/Thread-2(16439): type=1400 audit(0.0:101): avc: denied { getattr } for path="/data/system/packages.list" dev="mmcblk0p28" ino=1483464 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0
08-31 22:13:51.029 W/Thread-2(16439): type=1400 audit(0.0:102): avc: denied { getattr } for path="/data/system/packages.list" dev="mmcblk0p28" ino=1483464 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0
08-31 22:13:51.052 W/ysmobilebanking(16280): type=1400 audit(0.0:103): avc: denied { getattr } for path="/data/system/packages.list" dev="mmcblk0p28" ino=1483464 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0
08-31 22:13:51.152 W/ysmobilebanking(16280): type=1400 audit(0.0:104): avc: denied { getattr } for path="/data/system/packages.list" dev="mmcblk0p28" ino=1483464 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0
08-31 22:13:52.564 E/ANDR-PERF-LOCK(1411): Failed to reset optimization for resource: 2 level: 12
08-31 22:13:54.760 E/MP-Decision(1411): Error(-22) changing core 1 status to offline

Since you are on 7.1, You can try the Universal SN fix to see if it helps (but then again, water isn't the case for most things).
[Magisk] JimZiii:
I keep getting boot loop when I'm installing the xposed magisk mod, any way around this?

For anyone getting the same boot loop, you don't need to restore any backups or roms, just flash the magisk uninstaller, boot up the phone, boot twrp and flash magisk again, now it's module free and working

Skickat från min FRD-L09 via Tapatalk
[Magisk] Artim_96:
Uninstalling Magisk is a bit overkill. There should be an XPosed uninstaller zip for the module, otherwise you can mount the Magisk.img in TWRP and delete the modules folder
[Magisk] olivercervera:
I think that Barclays is trying to get the app list to detect Magisk Manager and other root apps. Even on a stock device the app does not work anymore by simply installing Magisk.

I have an update that confirms my findings. There's a Nexus 5X at work that I borrowed for this test. It was stock, running Android 7.1.2 (July Patches). I unlocked the bootloader, installed TWRP, installed Magisk 13.3, wiped data. Only the following apps have been installed: Magisk Manager, Barclays.

I performed two test.

Added Barclays and Phone Services to Magisk Hide, then started Barclays.

Uninstalled Magisk Manager, cleared Barclays app data, started Barclays.

Both test failed.

For your reference: I have completely uninstalled Magisk from Magisk Manager. In this state, the device is not rooted and is not passing SafetyNet (unlocked BL). Barclays works fine, as they don't use Safety Net. If I simply install the Manager, it breaks (as tested on Moto E)
[Magisk] JimZiii:
Thnx, when I originally asked for help, can't remember if it was in this thread or not, I got told to flash stock rom, but if xposed has their own uninstaller that's definitely the best bet

Skickat från min FRD-L09 via Tapatalk
[Magisk] Umang96:
Crash

Facing this crash randomly, can anyone give an idea about what might be wrong ?

I can't open magisk manager after this happens, clearing magisk manager data also doesn't help, only solution to make it work again is reboot.

09-01 16:52:38.261 4372-4372/? E/Magisk: start daemon failed with 111: Connection refused
09-01 16:52:38.264 4356-4356/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.topjohnwu.magisk, PID: 4356
java.lang.RuntimeException: Unable to create application com.topjohnwu.magisk.MagiskManager: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5501)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1575)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6236)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
at com.topjohnwu.magisk.utils.f.<init>(Unknown Source)
at com.topjohnwu.magisk.utils.f.a(Unknown Source)
at com.topjohnwu.magisk.MagiskManager.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5498)
at android.app.ActivityThread.-wrap2(ActivityThread.java)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1575)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:154)*
at android.app.ActivityThread.main(ActivityThread.java:6236)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)*
[Magisk] JimZiii:
Have you tried uninstalling magisk altogether and re-installing it? There's an install and uninstall button in the magisk manager, if you can't open the manager, just download the uninstall file and flash it yourself.

That has solved all issues I've come across

Skickat från min FRD-L09 via Tapatalk
[Magisk] ashyx:
Have you actually restored the stock boot image before installing Magisk?

The error is quite clear.
[Magisk] daleski75:
Got the exact same problem tried a few things but none of them worked just hangs on the splash screen.

Also interestingly I installed a fresh AOSP rom on my OnePlus5 without anything installed and Barclays app still hangs on the splash screen.

I suspect it's not only detecting if magisk is installed but if the rom is release-keys or not.
[Magisk] olivercervera:
I tested on a stock ROM which I rooted, I haven't checked release-keys, but I believe this prop was correct.
[Magisk] Umang96:
Thanks, will try that, I posted the log here hoping that devs might fix the error handling for this particular exception in future updates.
[Magisk] danilo_scala:
one question please,how i restore boot image? if i restore i lose kernel mod with TWRP recovery ? xperia z5 premium 6883
[Magisk] Didgeridoohan:
Better to ask in your device's forum.
[Magisk] officiallyme:
Hi everyone.

I was quite involved here with the good old SGS2 but left when rooting was no longer an issue because I am using mobile payment.

Now I read that Magisk allows rooting without tripping KNOX. Is this correct? Can I use Magisk to root without losing any abilities like KNOX or mobile payment?
[Magisk] callumbr1:
Nope, knox is tripped at first when TWRP is flashed. You can't root without tripping knox. However you can use android pay with magisk.
[Magisk] muloarell:
Hi just want to ask im planning to switch from another root application to magisk. Can i just unroot using my current root application flash my custom kernel then flash magisk?
[Magisk] Didgeridoohan:
Yes. That'll work fine as long as you unroot properly (make sure any boot image patches are removed by flashing a clean boot image).

More on that in the installation and troubleshooting guide.
[Magisk] fooiskandar:
Hi all ...

I'am from Indonesia ... And i want to know how magisk hide work ... Couse if use meizu m2 note it's work n now I'm used redmi 4x prime magisk hide not work for my bank apps that's mandiri online ...

Thx ...
[Magisk] eried1:
Can Magisk v13 or later survive OTAs, that is you're able to keep your modules and their settings? I read something about it here: https://github.com/topjohnwu/Magisk/issues/175. Sounds like magic to me since I suppose the boot image is reflashed.
[Magisk] Didgeridoohan:
If your ROM supports addon.d Magisk will survive any updates. As long as your ROM doesn't come pre-installed with Magisk (there will be a conflict in that case) you don't have to do anything else when updating.

If your ROM doesn't have addon.d, Magisk will still survive, but you'll have to manually flash the Magisk zip to patch the boot image.

All of the above is true only if you do NOT wipe /data (that's where the Magisk image is stored).
[Magisk] eried1:
Thank you for the fast reply, [MENTION=4667597]Didgeridoohan[/MENTION]!

Another question. What's the folder location of the original boot image which Magisk backs up?
[Magisk] onliner:
The next problem I'm about to report may sound a bit strange.

Every time I install Magisk 13.3 on my device the Twitter images simply dont load, not even with unofficial clients, I have tried to clear the cache, reinstall my applications, even a factory reset, but the result is always the same, me It seems a bit strange because I never had this problem and I havent found information about it, am I the only one with this problem?
[Magisk] Didgeridoohan:
/data
[Magisk] Rhodesgod:
hi.

maybe this one asked before but i couldn't find.

is magisk battery friendly ?

which one use more battery ? magisk or supersu ?

i use supersu for now.just wanted to switch to magisk.

ty very much
[Magisk] olivercervera:
Anybody please? Should I open an issue on Github?
[Magisk] Didgeridoohan:
They've probably just updated their tamper protection... I tested with a test version of Magisk, with the new Hide Manager feature, but it made no difference.

Unless you can figure out what and how they're detecting stuff there's no use opening any GitHub issues.

If you can't figure it out your only options will probably be to go unrooted or use an older version of the app (if possible).
[Magisk] candiesdoodle:
Looks like USNF is working. I can get to the wizard stage...app doesn't allow screenshots so can't post. But I had to uninstall the manager (I am still on 13.6).

Try installing UANF module, add the app package name to /magisk/.core/hidelist and uninstall the magisk manager. Then try.
[Magisk] boroboy69r:
App keeps force closing when trying to access su tab, su is working just wanted to delete some permissions.

Edit: I'm using RiCE r179 on a s8 with magisk 13.7.
[Magisk] olivercervera:
How can I figure out what they are detecting? I posted here actually to have some help, because I know I did everything correctly. Probably topjohnwu would be able to tell after his testing.

It is not working on 13.3. It's not working on 13.6 either (I upgraded). Have you done any additional step? I have installed version v2 beta 5 of Universal Safety Net.
[Magisk] callumbr1:
After hiding the apps you want to use, clear data/cache of the app and then try again.
[Magisk] candiesdoodle:
https://xdaforums.com/apps/magisk/xiaomi-safetynet-fix-t3600431/post73634481

Check this and confirm

Reboot if USNF not working
[Magisk] Didgeridoohan:
Clear data for the Manager.

Decompile the apk, examine logcat, etc.

Don't count on [MENTION=4470081]topjohnwu[/MENTION] working on this. He's got too little time as it is. If the community can find what's being detected though...
[Magisk] daleski75:
As a quick test I installed just the magisk manager APK without flashing anything in TWRP and the Barclays app froze on the splash screen.

The second I took the manager off it worked again.

I reckon the app is simply looking for the APK or something within it and refuses to work when it finds it.

Tomorrow I will do more testing to see if i can spot what the Barclays app is looking for when it hangs.
[Magisk] Chadwilliam1:
I just recently flashed viper Rom 5.11 with magisk. Android pay works but when I open magisk it gives me thus error.

I want to use magisk for my banks app but I can't get it to work.
[Magisk] firdausimbolon:
Root function isn't detected properly in Magisk Manager but root Still works

Good Morning, sir. I am Redmi 4X user and using AOSP Extended 4.5 for my Phone. I start using Magisk for 2 months cause it have feature to hide root from some apps. The version of 13.3.0 and older can't works well with Titanium Backup. But in 13.5.0 and newer it's works well. Thanks for that, I really appreciate that. But there's a little problem that makes me not comfort. It was happened in v13.6.0

When I installing it for first time, everything works well. But after restarting the device and open the Magisk Manager, It says "Rooted, but no permission. Not allowed?". The SuperUser menu is dissapear and some setting is lost. However, some apps that need Root is still granted and new apps that need root is granted (The superuser window is appear that have option to Allow or Deny the root request). It's a bit funny cause the Manager isn't detect root well, but it still grant some apps to take the root permission.

I was uploading the logcat and Magisk log in My GDrive (i can't upload my both log here, sadly) and some screenshots about the error of Magisk Manager. I was sent the error report to you via PM. I hope you will fix it. Thanks.
[Magisk] Didgeridoohan:
You need to update the Magisk Manager. That's an old version that's not compatible with Magisk v13+. You'll find the latest stable Manger in the release thread.

Have you tried clearing data for the Manager?
[Magisk] velimirchek:
Edit: it is not Magisk issue, it happens with supersu also. Also it is not an issue at all, just me being idiotic as I said bellow, it is intended behavior by HTC and all ok. Won't delete my post under because I was wrong and maybe someone will learn something from it.. Sorry.

Edit2: after further tests, script mentioned bellow is executed as it should and sleep_disabled is set to N, but then HTC pnpmgr comes in an sets it to Y.. disabling HTC pnpmgr and applying on boot, sleep_disabled is set to N correctly. Sorry again.

--

I have an issue and not knowing how to solve it and I am sure it's just me be idiotic.. on HTC U11 now full stock, only TWRP and Magisk 13.3 zip (rooted with Magisk superuser) scripts don't seem to be executed.. or some scripts like /system/etc/init.qcom.post_boot.sh

The best way to check it is to look with some file explorer in /sys/module/lpm_levels/parameters/sleep_disabled

It should be N (according to init.qcom.post_boot.sh, search msm8998 and then /sys/module/lpm_levels/parameters/sleep_disabled it sets it to N)

But in my case not :crying: it stays at Y.. before I RUU, any good soul can check my logs and tell me where I am being idiotic (restored untouched system image and boot for now to be sure it is not something in the custom ROM or kernel)

Logs here:

https://drive.google.com/file/d/0BzGInR8zdsu0Njlkd0VoRnI3blU/view?usp=drivesdk

Many thanks.

PS. I tried uninstalling/installing Magisk again and everything I could think off.
[Magisk] firdausimbolon:
Yes, and it still give me the same error display. So, for tempoay fix, i must re-flash it in TWRP and if sometimes need restart, I must flash it again.
[Magisk] miten_sheth:
Thank you for this!
[Magisk] daleski75:
With the magisk manager app uninstalled I got Barclays UK app working again on a custom rom (magisk zip was flashed as well) so the app is definitely looking for either the package name or it's checking to see if root exists and then hangs.
[Magisk] kingbor1cua:
I'm not sure if this is right thread but I just bought a g5 plus I unlocked it flashed a room the supports magisk.i can't get magisk to flash in trwp it fails every time. Any ideas,thoughts will be great.
[Magisk] Artim_96:
Not without logs
[Magisk] olivercervera:
Thanks for the hint, Universal Hide shows up, changes my build fingerprint and does other things, so I assume it is working correctly.

However it does not make a difference when I uninstall Magisk Manager and test Barclays, keeps hanging.

In my testing if a device is rooted with Magisk and I uninstall Magisk Manager (or use Hide Magisk Manager), Barclays still does not work. So Barclays is able to detect Magisk even if Manager is uninstalled.

If the device has only Magisk Manager, Barclays app does not work, however it works if removed (but obviously there is no root).

Are you able to test again?
[Magisk] daleski75:
Sorry forgot to say I flashed USNF and only changed the second option I left fingerprint alone
[Magisk] kingbor1cua:
I'm hoping this is the right log needed and also hope I did it correctly
[Magisk] olivercervera:
What do you mean as "second option"??
[Magisk] daleski75:
I did not change the fingerprint option just hide.
[Magisk] olivercervera:
Fingerprint build change is done automatically by the module Universal SafetyNet Fix.

Anyway I tried without it as well on my first attempt.

Are you sure Magisk was still installed when you tested? I really can't make the app working.
[Magisk] daleski75:
Will triple check now

---------- Post added at 08:28 PM ---------- Previous post was at 08:19 PM ----------

Tested again flashed Magisk and uninstalled the Magisk manager along with USNF and the Barclays app still works
[Magisk] Artim_96:
It can't mount your Magisk.img. try flashing v13.3 first (or maybe even your boot.img before) and then v13.6 again. If that doesn't help you'll probably need to delete the image and build it up again.

But that problem doesn't really belong here, since you experience issues with v13.6 beta it belongs the first
[Magisk] kingbor1cua:
So are you saying I should try installing boot.img then magisk? I'm not sure if I understood what you're trying to convey.
[Magisk] Artim_96:
Yes, exactly
[Magisk] candiesdoodle:
Yes it works. Make sure u have added the app's package name.to /magisk/.core/hidelist

Then reboot and confirm in the logs that universal hide is working.

Then uninstall the manager and fire up the app.
[Magisk] core720:
[MENTION=4470081]topjohnwu[/MENTION]

Dont work in Moto Z2 Play...

LOG
[Magisk] Simonex16:
Updating magisk

So,I have magisk v12.0 on fulmics 7.6.It said me "impossible to find update" and CTS mismatch error.If I want to update it manually,I have to flash with TWRP magisk.zip (13.3)?