Magisk | The Magic Mask for Android
kandi X-RAY | Magisk Summary
kandi X-RAY | Magisk Summary
The Magic Mask for Android
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Magisk
Magisk Key Features
Magisk Examples and Code Snippets
Community Discussions
Trending Discussions on Magisk
QUESTION
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:12I 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.
QUESTION
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:22If 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.
QUESTION
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:21Inside 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).
QUESTION
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:51The Magisk GitHub repository is, in fact, multiple repositories composed. To download all of them you need to:
QUESTION
I have a file with multiple path in the same line:
...ANSWER
Answered 2021-Apr-14 at 22:41This sed
should work:
QUESTION
I am getting my android's logcat spammed with these warnings.(rooted with magisk)
...ANSWER
Answered 2020-Oct-17 at 18:10The 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:
- Add
allow
rule if you want to allow the access to happen. - 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:
QUESTION
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:51Try booting into download mode, and then if possible find a flash tool to reflash the device
QUESTION
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:32We should use Context.MODE_PRIVATE and it will work!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Magisk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page