What are capabilities of magisk modules? Similar to xposed? Can control LED? - Magisk

Can magisk module control led and vibration like gravitybox for xposed?
For example in xposed i can change vibration pattern and led color for sms, is it possible in magisk?
Also is it possible to control hardware keys like xposed edge pro?

Magisk is not Xposed. They work very differently. The first adds/deletes/changes system files without (hopefully) triggering SafetyNet whilst the latter performs on the fly patching over almost any part of Android (but triggering SafetyNet)
If what you want to do can be done on system partition by adding/removing/changing files, then you can do it with Magisk.
Please refer to each official thread for more information

Related

Magisk is being super weird, and another couple questions.

Whenever i use Magisk and i try safetynet test (I have francokernel so it shouldnt be an issue) and i have no modules installed it fails, with a CTS Profile Mismatch.... But if i tick core only mode and restart it passes safetynet..., i thought having no modules is the same as core only? but i need modules for Viper4Android to work... because somewhere down the line of the intense pain, i've made my device go through lol, it has practically muddled up the vendor partition, so i have to have viper installed for my audio to work properly... plus is there anyway to make the "/" part of the system stock again thanks.
You can actually modify certain parts of the system partition without tripping safetynet. Since safetynet was updated, I've decided to manually install any Magisk modules directly as /system modifications (mostly build.prop edits and a few new and modified system apps). Afterwards, turning on "core only mode" allows me to pass safetynet while continuing to keep my past modifications. The only problem with this setup is that I'll have to reflash all my modifications every time I dirty flash my ROM, whereas before Magisk would mount the mods automatically.

Home button wake up disabler Magisk Module request

Hello!
Is exist Magisk module that can disable Samsung device waking up on home button press?
Early i use Xposed module for disabling home wake up. But now i prefere do not use Xposed modules because when it enabled, Magisk cant pass SafetyNet test.
My question is: how to pass SafetyNet test and disable home button wake up at the same time?
There are no modules that will do this for you, out of the box, no. Xposed and Magisk does not work the same way (not even close)...
As a general rule: if it can't be done without Xposed, it can't be done with Magisk.
What you'd probably have to do is to manually edit system files to change the button behaviour (which should be possible) and then either just push those edited files to your system or systemlessly mount them with a Magisk Module.
Editing the files is best asked about in your device's forum and you'll find instructions on how to make a Magisk Module in the module template.

Flashlight/Torch module

Is there somewhere a module for "longpress volume up to activate flashlight/torch"?
I remember a xposed module which was very handy. One did not need to unlock the phone.
Xposed modules & Magisk modules are completely different.. I unknown if is possible doing this editing some system file.
Use Torchie app.

Why does Magisk always clear Dalvik cache when i activate or update or deactivate

a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
pingopower said:
a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
Click to expand...
Click to collapse
Easy, everything has to be optimized for Xposed. But... I don't have long boot time on my device. Activate and deactivate Xposed in magisk is very quick for me. Normal boot time for both. Moto e4 on nougat 7.1.1. so it may be something specific to your device or Android version. Your device may just be very slow optimizing. Do you have a ton of apps installed? Because that makes optimization even longer. It is a very resource intensive operation.
No other modules should have that besides Xposed. Like I said, Xposed MUST optimize EVERYTHING.
pingopower said:
a module ?
Xposed rootless for example, at each Snapchat logon i have to deactivate/activate it, and each deactivation it's a full dalvik remake (1h).
And the switch toggle of Xposed doesn't work for SafetyNET or SnapChat, so the module have to be deactivated
It's impossible and too long !
So i don't use XPosed and don't make Update of module !
Click to expand...
Click to collapse
I don't know why the switch inside Xposed dont work for you. It worked for me when I used Marshmallow.
But what happens about the dalvik is that Xposed is a very complex and extended modification that can hook (and therefore alter) pretty much every app on your device. So when you "remove" or "install" it by enabling or disabling the module on magisk a dalvik wipe is triggered by the system the next time you boot.
The process is similar to when you systemize an app or updates your device, but instead of one or few apps to recompile, the system has to recompile (aka "optimize") most, if not all the apps on your system.
On Marshmallow specially, the Android uses an Ahead Of Time (AOT) compiler, meaning that all this compilation will occur on next boot, before the rest of the system can be used. To fix this problem, Google started using Just In Time (JIT) compiler from Nougat on, meaning that the optimization will occur when and if necessary, and if possible when the device is idle or not being intensely used. That's why in Nougat or Oreo this problem does not happen.

Custom volume and brightness for every app

I would like to implement in Magisk possibility of setting custom volume and brightness of every app, but I completely don't know where should I start my education about android system. Is it possible to reach?
Best regards, your M16aV
Or a Module to disable the Sound in an APP.
That's a mod more suited for Xposed, not Magisk. Magisk does not alter running code like Xposed does, it simply injects new files to /system and /vendor, and runs a few scripts. All at boot.

Categories

Resources