yashsingh1/xdaforums huggingface dataset:
[Magisk] Ronisk8:
PLS .. help me !! :( :crying:

I have the latest version installed .. v13.1

Can I reset Knox with Magisk? Or remove Custom Availability Status? How do I do?

:confused:

When you download the...
[Magisk] Strephon Alkhalikoi:
Once Knox is tripped it stays tripped. The only way to remove the custom status is to remove root.
[Magisk] Voodoojonny:
Where do I find the older manager versions? v5.0.4 always crashes. So I want to go back to 12 and an suitable manager.
[Magisk] Didgeridoohan:
https://github.com/topjohnwu/MagiskManager/releases
[Magisk] nightauthor:
Need to bypass root detection of a specific kind:

https://github.com/scottyab/rootbeer

https://play.google.com/store/apps/details?id=com.scottyab.rootbeer.sample

I've been able to bypass this root detection with this Xposed module:

https://xdaforums.com/xposed/modules/xposed-miitomo-security-bypasser-t3377941

However, I am needing a more powerful phone and everything is coming with Nougat now.

Not sure what the right solution is.

I really appreciate your help

---------- Post added at 09:17 AM ---------- Previous post was at 09:15 AM ----------

To my understanding Knox is hardware based, its a fuse that is intentionally blown when their software detects unauthorized changes.

Once that fuse is blown, there is no fixing it.
[Magisk] Didgeridoohan:
Magisk with MagiskHide enabled can fool all checks in Rootbeer.

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

If you need support you'll find help here: https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382
[Magisk] golastic:
Using Huawei mate 9 on C185B181 firmware. I want to run magisk on my fone using v13.2 but always stuck on Huawei logo until I flash back boot before I can boot to home screen.

Any work around to make it work flawless please. Will love to use this app and root in so many ways.

Thx
[Magisk] cheesechocolate:
I seem to have lost safety net pass. It was working yesterday. Now it's not. Anyone else?
[Magisk] Paschfire:
For starters you're both in the wrong Thread, this is where you want to be for Magisk Support,

Magisk General Discussion/Support Thread. >https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page1710

Also...

Be sure to Include the proper information regarding your Device/ROM/Android version, Magisk, Magisk manager, Magisk Modules, any other modifications installed. Making sure of including complete version numbers/build dates for all, this also includes.. Recovery Logs, Logcat, MagiskLog etc.

No one cannot provide support without being able to investigate the issues, without submitting these crutial points of information alongside your request, than your post basically become pointless.
[Magisk] matejdro:
Developer question: Is it possible, with the help of Magisk, to somehow trick the system into running code as UID 0 (under system process)?

AFAIK there is no way to do that normally (unless you have signing keys to the ROM, which you don't most of the time), but can Magisk help in that matter?
[Magisk] SolusCado:
Is there a place where the current SafetyNet status of Magisk is available? I just restored my stock ROM, installed Magisk, etc. - and I'm failing the SafetyNet check. But I don't know if it's an issue with my ROM/installation, or if it's just that the current version of Magisk is failing the current SafetyNet check - and as I install new ROMs, it would be nice to be able to verify that before I troubleshoot further...
[Magisk] Zackptg5:
Not really. At the moment, safety net does work with magisk 13.3 so it's something with your rom.
[Magisk] Strephon Alkhalikoi:
If the ROM is based on Android 6 or later, the presence of a busybox binary in /system/bin or /system/xbin may be tripping Safetynet.
[Magisk] snowrelyt:
Having trouble creating a new module. I believe I have everything setup correctly, it's a simple module that adds an app into priv-app. However, when I add it in the Manager it doesn't recognize the name/version/description correctly and you can't uninstall the module unless you completely uninstall Magisk itself.
[Magisk] 4r44444:
I fixed the bootloop (phone restarted after huawei animation) on my HONOR 9 by doing following things(DO AT YOUR OWN RISK):

- Wiped Data in TWRP (restart recovery after)

- Did Factory Reset in TWRP.

- Manually wiped INTERNAL STORAGE (important didnt work without) in TWRP
[Magisk] ahrion:
That's the point. See doing both V4A and Dolby and AM3D would cause your installer to fail, but with a universal framework allows it to be possible. I want to also keep it systemless.

Dolby Atmos Le Max 2 is there. . .in my git, but it's not installing either.
[Magisk] stangri:
How are you creating the ZIP?
[Magisk] ahrion:
Just like I do with any flashable zip. Use 7zip and then sign.
[Magisk] stangri:
By trial and error -- restore system/placeholder. It could be a zero file.
[Magisk] ahrion:
It doesn't work.
[Magisk] stangri:
Worksforme.

$ touch changelog.txt
$ touch README.md
$ mkdir system
$ touch system/placeholder

PS. I'm not signing resulting ZIP, not sure if it matters.
[Magisk] ahrion:
I must be a complete noob because it doesn't work no matter what I do.

https://drive.google.com/file/d/0BxlY-VYiFXU7QWdscjlUOWNpU00/view?usp=drivesdk
[Magisk] stangri:
Whatever editor you're using, you should stop doing it.

Your update-binary and updater-script files were broken, after using the proper (topjohnwu's) files I got the module to install, however it created a weird folder ("/magisk/AxLeM2^M"), so it looks like there's something wrong with the line endings of your resulting files.
[Magisk] ahrion:
Notepad++. How were they broken? I just opened them and they look fine. .

I have NEVER had an issue. It's the only thing I use with my Dolby Atmos ports. The files I got were strictly from topjohnwu's Git, in which I cloned. I'm assuming that something got corrupt in the process.
[Magisk] stangri:
[MENTION=5357345]ahrion[/MENTION] -- line endings I guess. I noticed the filesize difference and replaced your files with files from topjohnwu's github and the module installed.

[MENTION=4470081]topjohnwu[/MENTION] -- I have an idea for the module which would "systemize" already installed APK files. Can this be achieved by creating a softlink (or copying) to /magisk/modulename in the post-fs-data.sh?
[Magisk] ahrion:
Any way to prioritize the order in which mod gets loaded first? [MENTION=4470081]topjohnwu[/MENTION]
[Magisk] ahrion:
Replaced the META folder with folder straight from topjohnwu's. I no longer get a "module isn't for magisk" error, no I get installation error.

Seriously?
[Magisk] stangri:
You're welcome. You may want to recheck your other files as like I said the module was creating the folder with invisible symbol at the end.
[Magisk] stangri:
I need mount to happen *after* the post-fs-data has run. How can I invoke the manual mount from post-fs-data.sh?
[Magisk] ahrion:
I'm just about done messing with Magisk. So I re edited all my files straight from the template. Installation error. Then I went ahead and downloaded to magisk template zip itself and tried to load it (unadulterated). Error.

No idea why or what's going on, but it's ridiculous.
[Magisk] stangri:
You grabbed magisk template zip off github or did you git clone and then zipped it? Maybe it's your zip app which is failing you.
[Magisk] ahrion:
I tried both, and with WinZip AND 7zip.
[Magisk] stangri:
[MENTION=5357345]ahrion[/MENTION], if you grab a zip-file off github it creates a nested folder and won't be recognized by magisk as a valid module.

I realize you're not new here, so it must look like a chore to write down your steps in detail, but unless you do that, there's no way other people can help you figure out what's messing up with the line endings (possibly encoding?) on your system.

Since it worked once when you replaced the META folder with the original files, maybe consider what you've done differently between when it worked and when it stopped working.
[Magisk] mykenyc:
Hey I'm going to be honest didn't read prior posts, but i just did a build prop module to get Google Assistant working on my 5x. With other modules i noticed it wouldn't install, what i did was take the PHH supersu 259 zip and empty the contents except readme, then i put the template files inside the phh zip renamed to template and made a duplicate, seems the regular template zip doesn't work for me, after all that i added to module in Magisk Manager and it installed.
[Magisk] Iceyogurt:
Installing my flahable zip alone will also fail on Magisk v7 but success on v6. That's a bug confirmed by topjohnwu and it's not fixed yet. https://github.com/topjohnwu/Magisk/issues/4

In short, mounting some binaries and libraries may cause other files in the corresponding directory fail to be mounted and make your phone stuck at boot. So i don't recommend you transplant zips to Magisk modules at this stage, which i mean under Magisk v7. Just wait for the next update. Besides, as i mentioned above, the way you use REPLACE in config.sh is NOT correct and it will cause serious problem.

See the instruction for developers. http://xdaforums.com/apps/magisk/magisk-details-dummies-to-developers-t3473486
[Magisk] ahrion:
I scrapped what I did with the replace, as I didn't really read what I needed to. I'm gonna a hold off for now until magisk is a little more stable (V7 breaks my phone's WiFi). I'm glad I'm not the only one that's having issues.

I'm not a noob to shell, sed, awk, GNU, or any scripting language in general so that's why I'm so perplexed.

Thank you [MENTION=5157161]Iceyogurt[/MENTION]
[Magisk] flindaman:
Cache mods not moving to cache/magisk

I'm but sure what I'm doing wrong but I can't seem to get cache mods to copy themselves into the /cache/magisk/$modid folder. In fact the folder isn't even being created dynamically.

Does the config.sh do this automatically it must I edit a script to create the folders and move the files?

Edit:

All i'm trying to do are setprops... will these changes be visible in the build.prop file, or are they just loaded into RAM?

It would appear that the only functional way to get a cache mod working is to flash it through TWRP.

The setprops don't seem to be adding to the build.prop though
[Magisk] stangri:
Confirmed not working on Nexus 6. The /cache/magisk doesn't get created neither when installing the cache module from Magisk Manager, nor when flashing thru twrp. I'll create an issue on github and post the ZIP files I've tested with.
[Magisk] miguelrivas:
I have one question, the app by chelpus works with magisk and xposed systemless?

Thanks
[Magisk] teddy0209:
Lol... sure it does...
[Magisk] stangri:
[MENTION=4470081]topjohnwu[/MENTION] -- I've looked at the travel function in the magic_mask.sh, but I'm confused by its use of both TMPDIR and DUMMDIR and don't seem to understand the code.

If I need to manually mount something from /magisk/MyMod/system/priv-app in /system/priv-app/ in post-fs-data.sh, could you please tell me what I need to do in terms of bash commands?

Thanks!
[Magisk] sorg:
@topjohnwu

i'm trying to make module to replace boot animation. Installation went correct, but it look like boot animation files bound later than boot animation service starts.

Is it possible to bind animation files before service?

It's for HTC10, so you can test by yourself.

P.S.: Fixed.

here is my Magisk module:

https://mega.nz/#!9QI0EYjA!bL4NTDmqMC0L3JXEBXdpuTVwVCQU3t5F4OzvDtrJi8Y
[Magisk] sorg:
I see cache modules are keeping in /cache partition which IMHO isn't practical because /cache partition is considered temporary and can be fully cleaned any time. Even in TWRP cache is cleaned when you choose to clean dalvik-cache.

Has Magisk mechanism to automatically re-create cache modules after cleanup?
[Magisk] jsaxon2:
I have an issue using a simple MOD for myself. It is just the /system/vendor/overlay directory that I have my layers in. I have it so that I can change roms but keep my layers. Problem is that my HTC 10 won't boot with the MOD unless I manually create the overlay folder in the true system/vendor folder first. In version 4 of Magisk, this worked fine. I did not need the overlay folder. It would just work, but since version 6 of magisk, I have to manually create the overlay folder. If I do not create the folder, the phone just hangs on HTC splash screen and then boots into recovery. Has anyone else seen an issue with this or can anyone else try it out?
[Magisk] Iceyogurt:
I have also tried to mount a fake overlay folder on v7 and v8. But both are failed and made my phone stuck at boot. I guess we had the same problem. What you find is really interesting, I will try to create a real folder in /system before replacing it.

Edit1: boot successfully after creating a dummy overlay folder

Edit2: commit 670fe85 fixed this problem https://github.com/topjohnwu/Magisk/commit/670fe8590c85ae3f52075d5da0d7a190a2920d15

[MENTION=2401586]jsaxon2[/MENTION]

[MENTION=7069759]eeausli[/MENTION]
[Magisk] eeausli:
Strange, i experienced something similar:

I tried to create a package to install the adreno 300 beta driver systemless with magisk v8, but the phone (galaxy s5 g900f) always stops at the android logo. I don't even get a boot animation.

edit: Forgot to mention that these drivers go to /system/vendor and there are 2 new files, so it seems to have something to do with creating files or directorys inside the vendor directory!?

Just created those two files in the right directory and the system boots up normally with my module. Seems to be the same behaviour as with [MENTION=2401586]jsaxon2[/MENTION]
[Magisk] eeausli:
Mabye because Magisk is meant to modify only /system and not /data ?

Just delete the /data/app/browser directory from within a script run at installation or boot
[Magisk] oreo27:
Perhaps. I'll look into this. Thanks!

If anyone else has ideas, please feel free to chime in. I'd rather not permanently delete apps if I can work around it using Magisk :)
[Magisk] MBariya:
[MENTION=658468]topjohnwn[/MENTION]

is it possible to add props using resetprop?

Or it just for change props??
[Magisk] laggardkernel:
Yes, it is possible. I can confirm that.
[Magisk] UltraM8:
Can someone help me with creating a new folder to bind with /system/bin?

I make new folder under /magisk - /newbin:

mkdir -p $MODID/newbin 2>/dev/null

Then flash files from /bin folder from zip:

unzip -o "$ZIP" bin/* -d $MODID/bin_bind

Then i need to bind newbin to /system/bin, but i cant figure what is the comand under magisk api
[Magisk] MBariya:
[MENTION=6366997]UltraM8[/MENTION] try bind_mount

Like bind_mount $MODID/newbin /system/bin
[Magisk] oreo27:
Does the variable $MODID work? I haven't gotten that to work and use $MODDIR.
[Magisk] oreo27:
Can I take a look at the mod you want to port?
[Magisk] reddv1:
This is the mod I'm looking to port http://xdaforums.com/showthread.php?t=3505693

Here's the download link to the zip https://www.androidfilehost.com/?fid=601307472480698373
[Magisk] oreo27:
Edit - Attached again. Failed the first time.

Alright. Here's the attachment.

Download and unzip it.

Copy everything from that mod's system folder (which you need to download and extract) to the system folder of this module which you just extracted in step 1.

Delete build.prop from the system folder of the module. The build.prop edits will be done via resetprop in service.sh.

Zip it the module up.

Install it.

P.S. Boot animation will be copied via script to /cache/magisk_mount/system/media/bootanimation.zip < This file will not be deleted even if you uninstall the mod. You have to delete it manually if you want to remove it. Tell me how it goes.
[Magisk] JohnCorleone:
I am a total nOOb when it comes to this but I was wondering if you could help. Inside the Magisk downloads is the Pixel Launcher. Well I found one Themed by Team Blackout so the app drawer is dark and so is the "G" on the search widget. Would you know how to make it work like the existing one? If so, I can link the zip. it seems like the app needs to be renamed and 2 other little changes but like I said, I don't have Notepad++ and wouldn't know where to start but I really want the blackout version without tampering with the system. Can you help?
[Magisk] reddv1:
Send me the download link

---------- Post added at 12:27 PM ---------- Previous post was at 12:13 PM ----------

Thanks for the help. The copy bootloader to the cache script helped a lot in post-fs-data. I was stuck on that.

Everything works good except the navbar Pixel icons and animation. I just get the regular icons. What do you think is causing this? Seems like the phone is still using the SYSTEM UI.apk from the system rather than the mod. I'm going to try and use the replace directory command in the config.sh and see if that works.

Also, magic hide give some weird errors, causes a bunch of the apps to force close and the text color in the setting app change so you can't see the text, weird. I'm not worried about magic hide because it caused problems before this mod with phh root also.
[Magisk] oreo27:
It's not particularly easy to download a mod from the repository without installing it. Is there a link to the module's zip that I can download? If you installed it from the repository, it should be in /main storage/magisk manager.

Also, can you attach or link directly to the Team Blackout drawer zip files so I can check?

I was stuck on that too, I simply used trial and error to get it to work. :D

Try it out and let me know. Usually, any file in $MODDIR/system will override one in /system but honestly, I haven't made enough mods to be sure of that.

I don't personally use Magisk hide but read about a bunch of folks who are having lots of errors with it.
[Magisk] JohnCorleone:
Is this really difficult to get the hang of? I am sitting here reading the instructions and I think I will wait for reddv1 who was kind enough to help me with the first one but I have all of the programs I need and then some! I forgot I had Photoshop CS6, HEX editor...and the drivers from at least 5 brands of phones...I need to get organized!
[Magisk] reddv1:
No, it's not difficult but you'll run into bugs and forget a single thing and that it'll drive you crazy. Just do as much research as you can and ask. Don't mind the trolls that attack people for asking questions.
[Magisk] JohnCorleone:
I am out of thanks for the day but I appreciate all of your help!
[Magisk] oreo27:
It's a bit tedious to be honest but it's very rewarding. To be honest I think the biggest challenge for me is getting used to SH scripting for Magisk. I'm familiar with some scripting languages but Linux is not a language I'm comfortable with as of this moment. Take notes. I have a bunch of notes that I refer to whenever I do mods and it really really helps.
[Magisk] JohnCorleone:
That's a great idea. The Magisk is a great addition. I would actually like to see what I can theme the Sense keyboard since it no longer changes colors with theme changes. I like the new keyboard but Sense keyboard has the best next word prediction plus it's light and minimal
[Magisk] jsaxon2:
Can anyone tell me how Magisk decides to make a module take precedence? Here is my Scenario.

I am running Viper 10 4.4.0 Magisk Rom on HTC 10. I have a GPE_Dialer Magisk module that I would also like to install. Viper has the /system/priv-app/InCallUI/InCallUI.apk in its folder and my GPE Dialer Module has /system/priv-app/InCallUI/.replace to remove the apk. How does Magisk decide which one to use? How can I modify my module so that it takes precedence?

I hope I'm explaining this good enough.
[Magisk] laggardkernel:
Look into your magisk.log, it's not hard to find the mounting is done in a reverse, alphabetical order. And there are mainly two factor matter in the process, the $SUBFOLDER in the destination directories /system/$SUBFOLDER and $MODID in the module paths /magisk/$MODID. And the former takes precedence to the latter.

The mounting process is not done module by module, but target folder/destination by target folder. For example, all the files in modules A and B whose target folders are /system/usr will be mounted firstly, then the files from these two modules whose target folders are /system/lib64 will be mounted. Besides, the $SUBFOLDER sequence is not that strictly reverse alphabetical. Here is the $SUBFOLDER sequence I get from my magisk.log,

/magisk/*/system/usr
/magisk/*/system/lib64
/magisk/*/system/framework
/magisk/*/system/lib
/magisk/*/system/xbin
/magisk/*/system/vendor
/magisk/*/system/etc
/magisk/*/system/fonts
/magisk/*/system/app
/magisk/*/system/priv-app

While mounting files to the same destination /system/$SUBFOLDER, the process is totally reverse alphabetical for /magisk/$MODID folders , their subfolders and files in it.

z-a > Z-A > 9-0

Note: The 9-0 order is just a deduction, I have no module stored in folders whose names begin with numbers now.

The post-fs-data.sh scripts and service.sh scripts are executed in an alphabetical order, not reversely.
[Magisk] mucha.k1994:
Well... Only mine v4a mod doesn't work on OP3 nougat without change mode to compatible and disabling SElinux? It's annoying when I must change it every time when I reboot my device :(

Or maybe it's just only a v4a problem, not module?
[Magisk] oreo27:
Awesome Update

Thanks for the updated docs. I'll be having a lot of fun with this for sure.
[Magisk] vyper007:
hi, i am using viper 5.3.0 on my htc one m9, it is already rooted with chainfire SuperSu. I want to switch to Magisk, so i can use android pay and other apps requiring root to be hidden. Can you please tell me how I can do this? .... I did try to flash magisk via TWRP but it ended up boot looping. Also when I tried to remove root via SuperSu app it screwed up my EFS/IMEI partition which I have managed to fix (thankfully). Could you tell the correct and safest way I can install Magisk system-less root please? HTC ONE M9 (International, Boot loader Unlocked) HIMAUHL.

Any help/advice is appreciated!

Thanks in advance.
[Magisk] Didgeridoohan:
Wrong thread really... Better suited for the support thread. But, you could try this: http://xdaforums.com/showpost.php?p=63615067
[Magisk] vyper007:
Okay , apologies but thanks!
[Magisk] hapa8o8:
I've been keeping up with the updates and now that I'm seeing it works with customizable ROMs I am willing to take a dive into this new method/platform of rooting. Note: I've been rooting/dev'ing since the G1, so I do enjoy new methodologies.

That being said, when I read the instructions on the main (locked) page, and on this thread, I am still confused as what to do when coming from a custom ROM. Are we now able to simply flash the Magisk via Recovery and download the respective manager? Or do we still have to flash back to Stock and then follow the instructions given?

I would like to refrain from bricking my phone, is all.