topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.6k stars 12.09k forks source link

More magisk CLI functions #2254

Closed androidacy-user closed 4 years ago

androidacy-user commented 4 years ago

At the moment, there is somewhat limited magisk functionality via CLI. You have su, magiskghide, resetprop, and a couple other random goodies.

What I'd like to see is more. For instance:

This would be aimed primarily at power users (and the remove a specific module nice for a module causing issues - the current option is way too broad and may honestly cause more issues). Just a little enhancement I really wish were present.

Thoughts and input is welcome. I'm sure I didn't cover everything you cannot currently do with magisk via CLI

topjohnwu commented 4 years ago
  1. Module installation is done through complicated scripts, it cannot be easily recreated with just a command
  2. You can already remove a module by touch /data/adb/modules/<id>/remove and reboot
  3. This is not possible as the list is obtained by Magisk Manager via Android's Java API (and it is not trivial)
  4. Same as 1.
  5. Same as 1.