Magisk | The Magic Mask for Android

 by   topjohnwu C++ Version: v26.1 License: GPL-3.0

kandi X-RAY | Magisk Summary

kandi X-RAY | Magisk Summary

Magisk is a C++ library. Magisk has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has medium support. You can download it from GitHub.

The Magic Mask for Android
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Magisk has a medium active ecosystem.
              It has 35623 star(s) with 9436 fork(s). There are 1424 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 15 open issues and 4908 have been closed. On average issues are closed in 13 days. There are 17 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Magisk is v26.1

            kandi-Quality Quality

              Magisk has 0 bugs and 0 code smells.

            kandi-Security Security

              Magisk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Magisk code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Magisk is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              Magisk releases are available to install and integrate.
              It has 25869 lines of code, 1062 functions and 405 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Magisk
            Get all kandi verified functions for this library.

            Magisk Key Features

            No Key Features are available at this moment for Magisk.

            Magisk Examples and Code Snippets

            No Code Snippets are available at this moment for Magisk.

            Community Discussions

            QUESTION

            Android 11, rooted (Magisk): mount system_ext in read/write to remove Google Apps
            Asked 2021-Dec-28 at 04:06

            I want to remove Google apps and services on a new Fairphone 4 (Android 11, now rooted using Magisk. No TWRP build available yet.).

            To this end, I am trying to use microG. In the Prerequisites for its usage, signature spoofing and deleting files in system/priv-app are listed. For signature spoofing, I followed the XPosed solution for Android 11 and 12 listed here, i.e. using Magisk + riru + LSPosed + a FakeGApps fork. Not sure, whether or not this worked. All individual steps reported success, but the Signature Spoofing Checker says it didn't work.

            Anyway, I'm definitely stuck at the second step, because I don't seem to be able to delete any files in system_ext/priv-app. I tried the solutions proposed here and here. If I try

            ...

            ANSWER

            Answered 2021-Dec-27 at 18:12

            I asked the question simultaneously on the XDA Forums, and got a reply there.

            At the stage described above (unlocked bootloader, Magisk, signature spoofing with riru + LSPosed), all that's needed is to install NanoDroid with microG as a Magisk module. Download the current NanoDroid-microG zip from here:

            https://downloads.nanolx.org/NanoDroid/Stable/

            either on your phone directly or transfer it to your phone, then install it as a Magisk module from storage. Voilà, GApps are removed (or at least inaccessible) and microG works. Best to then update microG, e.g. via its F-Droid repo: https://microg.org/download.html.

            Source https://stackoverflow.com/questions/70488382

            QUESTION

            How to replace a single stream/line with multiple line/stream in bash scripting?
            Asked 2021-Sep-20 at 18:15

            I am very new to this, so please bear with me. :( In a bash script for android where I am trying to replace a single stream of fonts.xml with another set of stream/line which are stored in another xml file, the line is:

            ...

            ANSWER

            Answered 2021-Sep-17 at 04:22

            If you really want to use sed for this, you can try this implementation that subtitutes out new lines (\n) for an unused character (%), performs the subtitution and then restores the new lines.

            Source https://stackoverflow.com/questions/69217179

            QUESTION

            Is it possible to run an android app as root
            Asked 2021-Aug-21 at 00:21

            I know it's possible to run commands as root with Runtime.getRuntime().exec("su -c ps");

            But what about using File() to read on /data/user/0/...... is it possible? Maybe with Magisk?

            ...

            ANSWER

            Answered 2021-Aug-21 at 00:21

            Inside a JVM there is no root user, therefore it is impossible. This might explain it better: https://android.stackexchange.com/questions/133466/how-does-supersu-provide-root-privilege

            And I barely use the term "impossible", but in this case only the underlying Linux OS may provide a root shell - also C/C++ native assembly could escalate privileges, as it is running on the actual OS. Runtime.getRuntime().exec() also just executes in a shell (which is not a part of the JVM).

            Source https://stackoverflow.com/questions/68869134

            QUESTION

            Compiling in using android NDK fails
            Asked 2021-Jul-03 at 19:51

            I was trying to compile Magisk in android studio and it had told me to use the build.py file to build the binarys and so I did. Except I get this error ALL THE TIME!

            • Building binaries: magisk magiskinit magiskboot busybox fcntl(): Bad file descriptor C:/Users/(name)/AppData/Local/Android/Sdk/ndk/magisk/build//../build/core/build-binary.mk:654: Android NDK: Module magisk depends on undefined modules: cxx

            Anyway to fix this? I did install Cmake for windows and I still can't figure out what cxx might be

            ...

            ANSWER

            Answered 2021-Jul-03 at 19:51

            The Magisk GitHub repository is, in fact, multiple repositories composed. To download all of them you need to:

            Source https://stackoverflow.com/questions/68163178

            QUESTION

            SED find multiple path in same line and replace it multiple with a different path
            Asked 2021-Apr-14 at 22:41

            I have a file with multiple path in the same line:

            ...

            ANSWER

            Answered 2021-Apr-14 at 22:41

            QUESTION

            Android's Logcat spammed with selinux avc denials on tmpfs, type 1400 by kworker/kernel
            Asked 2020-Oct-22 at 18:50

            I am getting my android's logcat spammed with these warnings.(rooted with magisk)

            ...

            ANSWER

            Answered 2020-Oct-17 at 18:10

            The reason why it shows is straightforward from the error. kernel is trying to read/write a blk_file labeled with oem_device type.

            At this point you have couple of options:

            1. Add allow rule if you want to allow the access to happen.
            2. Add dontaudit rule, if you want to just suppres the log. See here

            The rule should be added into kernel.te.
            Usually these custom things go into device/XXXXXX, depending on the vendor. For example in my tree, for a rockchip device, I'd modify /device/rockchip/common/sepolicy/vendor/kernel.te

            To rebuild policies you would:

            Source https://stackoverflow.com/questions/64379646

            QUESTION

            stuck at "redmi" screen after unsuccessfull root
            Asked 2020-Sep-08 at 05:51

            i tried to root my phone yesterday (redmi note 8 pro) and everything was going great. i was using twrp to do it and i installed magisk-v20.4.zip using that twrp on my phone. then i reeboted the system and i'm stuck. my screen is flashing "redmi" text in the middle and "powered by android" on the bottom, then it turns off and again - "redmi" in the middle and "powered by android" on the bottom. i can only go to fastboot mode and come back, nothing else. rebooting doesn't seem to help. does anyone know how to fix my phone? just make it work, please

            ...

            ANSWER

            Answered 2020-Sep-08 at 05:51

            Try booting into download mode, and then if possible find a flash tool to reflash the device

            Source https://stackoverflow.com/questions/63787667

            QUESTION

            Xposed Module "Three Steps Ahead" Crashed on Android 7.0
            Asked 2020-Aug-31 at 11:32

            On my ZTE Blade v8 Mini running Android 7.0 I installed Magisk, Xposed Framework for Magisk v89 and Xposed module Three Steps Ahead (missing in official repository). Rebooted my device and could see the module activated in Xposed Installer. When I launch the module either from within Xposed or as usual Android app it crashes endlessly. I installed Logcat Extreme and recorded the app's logs:

            ...

            ANSWER

            Answered 2020-Aug-31 at 11:32

            We should use Context.MODE_PRIVATE and it will work!

            Source https://stackoverflow.com/questions/63556643

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Magisk

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link