[Android Software Development] Zackptg5:
Arise Compatibility Module For Magisk FAQ

UPDATES!!!

Version 4.0 Has Been Released! Updated to magisk module template v4 for magisk 13 compatibility. This will not work with magisk version older than v13 (I can't see any reason why you'd go with an older one anyways). None the less, the previous version is still available if you have a really good reason to not upgrade to the latest magisk version: https://www.androidfilehost.com/?w=files&flid=167239

Where to Get it:

https://www.androidfilehost.com/?fid=745425885120749924

Is this a completely systemless version of magisk?

No. All this does is allows arise to work with magisk. You still need to flash regular arise installer first (see Installation for more details)

Which ARISE versions will this work with?

All the way back to Exodus in theory

Will this magisk module trip safetynet?

Nope :)

How the Module Works (Helpful for Your Own Troubleshooting Purposes):

Arise 3.x installs all scripts to /system/etc/init.d except the arisesound_services script (which I like to refer to as the master script) which is installed to system/su.d

Any enforcing/permissive selinux setting scripts are deleted as they are not needed.

The exception here is the permissive script which is moved to su.d (if applicable) and kept as a placeholder to tell the module if it should install the enforcing sepolicy setting late-service start script or permissive one (only applicable for older arise versions).

Arisesoundserver is modified for magiskpolicy support

The module itself is then only a late-start service script that starts the arise scripts and/or sets selinux if applicable (this is dependent on selinux modifying scripts found during the installation)

Here's a breakdown of the process tree for anyone who's curious:

Boot initiated -> zygote beings/android begins to boot -> late service script runs, call -> arisesound_services script, calls -> all other scripts to run

Notes About Older Versions of Arise Magisk Modules:

Any older arise magisk modules are now defunct as this new method of piggybacking off of existing arise infrastructure makes far more sense, is compatible across all devices that are compatible with magisk (regardless of arise setup), and is easy (no options for the user to set, just flash the zip and you're done)

Things to Note:

This module requires MagiskSU and Magisk 13 or newer

Since the magisk modules are dependent on the scripts initially present from the arise install, arise must be installed before the magisk module

Things To Do Before Installation:

MAKE A BACKUP

Read the ARISE OP to get a full grasp of how it works/install/etc.

Read the Troubleshooting Section for Magisk here: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Check that your phone is compatible with magisk: https://github.com/topjohnwu/Magisk/issues

If there's a device support issue open for your phone, then it's probably not supported yet

Remove any other audio magisk modules including older arise ones (this one uses a new naming scheme/MODID and so won't automatically get rid of the old ones)

Installation:

Remove all audio related modules and any older arise magisk modules using magisk manager

Note: If you want safetynet to pass, go to the safetynet section before continuing with the install

Flash the following in order: Rom, magisk 13.x, arise, arise compatibility magisk module

Note: If your rom has supersu built in, you will need to remove it prior to installing magisk: Go to SuperSu Removal

After booting, install magisk manager from the app store if you haven't already.

Check your apps for AudioFX. If you see it there, go to App Info and Disable it (this is mainly LOS based roms)

Reboot and verify everything's working. If not, go to troubleshooting

SuperSu Removal:

Magisk v13 has a supersu removal function built in however I've never tried it. If it doesn't work, follow the instructions below

Flash UnSu from here: https://xdaforums.com/showpost.php?p=63615067

On your computer, extract the boot.img rom your rom zip and copy it to your sd card

Flash the boot.img, then flash latest magisk, arise, and arise magisk module

So for future reference, the protocol for install (in order) would be: Flash rom, unsu, boot.img, magisk, arise, arise compatibility magisk module

Follow the rest of the Installation guide above

Troubleshooting:

If you're seeing weird stuff in twrp involving data partition or see 'Error 2' when installing anything involving magisk

Boot into twrp

Go to Advanced -> terminal

Type:

e2fsck -f data/magisk.img

Say yes to prompts to repair errors

**Note that in some rare instances, the magisk img is too corrupt to be recovered. In these cases, you'll need to uninstall/reinstall magisk

If you're able to boot:

Follow the instructions in the OP for obtaining a logcat.

Open magisk manager, go to Log, and save the Magisk log.

Attach the logcat and magisk log in a post

If you're unable to boot:

Follow the instructions here: https://xdaforums.com/showthread.php?t=1726238 to obtain a logcat via adb.

Attach that in a post

Proceed to uninstallation

Uninstallation:

Dirty flash rom to remove arise

To remove the magisk module, just remove it through magisk manager.

If you can't boot and need to remove the module, either:

Flash magisk mount from here: https://xdaforums.com/apps/magisk/collection-magisk-modules-t3445257, open file manager, go to magisk folder and delete arise module

OR flash magisk uninstaller

Safety Net:

Note: As of Magisk v13, Magisk Hide is enabled by default so the instructions below is just for reference

Open magisk manager

Go to settings

Enable magisk hide and reboot

As of magisk v11.6, hides the adb debugging option so you don't have to disable it anymore for safetynet to pass

Still note that Safetynet is a losing battle. See here: https://xdaforums.com/showpost.php?p=68424605&postcount=2