Questions tagged [systemless-root]

Use this tag for issues related to systemless rooting (which does rooting without modifying /system partition). All latest Magisk zips provide systemless root by default and latest SuperSU zips (BETA from v2.56; STABLE from v2.76)

What is Systemless rooting?

System-less rooting is the state-of-the-art way of any new Android device.

Generally, before Android 6.0, devices can be rooted easily by placing the su files in the /system partition, setting appropriate permissions and starting the su daemon when Android boots (without requiring to modify the boot partition).

Since Marshmallow, Google strengthened the security policies, thus making the only way to start the su daemon while booting up is by patching the /boot partition to modify the SE policies to start the su daemon and also disabling the verified boot.

Also the problem that arises when the /system partition is modified is that the OTA hash checks fail since the partition's hash changes when it's modified, hence the OTA updates refuses to patch.

This is overcome by not placing the su files and binaries in the /system partition; hence arises the name .

This way, the OTAs don't fail when the /system partition's integrity is checked. Some OTAs also check for the integrity of the /boot partition. For this reason, many of these rooting methods backup the stock boot.img before patching the /boot partition so that when we need to apply OTA updates, we can uninstall the , which reflashes the original boot.img

Generic steps to systemlessly root any Android device

Requirements

  1. Unlocked bootloader
  2. Custom recovery like TWRP (see below)

Steps

  1. Download the latest Magisk Manager apk file
  2. Install the apk and check Ramdisk + SAR info (system-as-root)
  3. Choose "Select and Patch a File" and patch the stock boot image
  4. Flash magisk_patched.img to your device

If your device has boot ramdisk, you can also install with Custom Recovery

  1. Download the latest Magisk zip to your sdcard
  2. Boot into custom recovery and flash the zip file
  3. To manage the root access, install the Magisk Manager apk file

(Caution: These are general steps to root any device; it may vary for different devices.)

53 questions
36
votes
2 answers

How does Magisk work?

Magisk is known as a “systemless” root method. It’s essentially a way to modify the system without actually modifying it. Modifications are stored safely in the boot partition instead of modifying the real system files. I have looked around but did…
kampias
  • 323
  • 1
  • 5
  • 6
12
votes
2 answers

What is "systemless root"?

Chainfire (the developer of SuperSU), has come up with a new style of rooting devices on Android 6.0 Marshmallow and above. This is "systemless" root, and is all the rage right now. So, just in case anyone feels curious, I thought there should be…
Tamoghna Chowdhury
  • 3,175
  • 2
  • 28
  • 41
6
votes
1 answer

What are the changes made to Magisk?

John Wu, developer of Magisk, published a blog State of Magisk:2021, a couple of days ago which led to some confusion as to what is to be expected. Can the changes be explained in non-technical language? Note: This is a self-answered question as a…
beeshyams
  • 41,485
  • 34
  • 122
  • 284
5
votes
1 answer

How to fix "dmesg: klogctl: Permission denied" for normal user on Android?

I have a rooted Samsung device(system-as-root). When I open adb shell and run the dmesg then it behaves differently for su and normal user. It throws dmesg: klogctl: Permission denied error when I run it without su shell. Please suggest how can…
Vatish Sharma
  • 1,091
  • 6
  • 24
  • 37
5
votes
1 answer

How to find that I am rooted with Systemless

I have flashed, SUPER SU 2.79 SR1 on Oneplus 3 running OOS 4.0 (Nougat 7.0). How to find that I am rooted in systemless mode ?
samnaction
  • 2,953
  • 8
  • 28
  • 43
4
votes
1 answer

What is 02 in the magisk patched vbmeta.img?

According to the Additional Info given for rooting the Android device that doesn't have ramdisk but can be rooted via recovery: we need an empty vbmeta.img and I am trying to check what it actually contains. I understand the hex that removed the…
Vatish Sharma
  • 1,091
  • 6
  • 24
  • 37
4
votes
1 answer

Switch over from systemless root to system (traditional) root

Internet search reveals a couple of ways of doing this: This reddit post suggests a couple of methods, which are simple In contrast, this XDA mentions that even flashing boot.img is not enough and you need to clean flash system as well - in other…
beeshyams
  • 41,485
  • 34
  • 122
  • 284
3
votes
1 answer

init: cannot execve('/system/bin/custom.sh'): Permission denied

I have a rooted system-as-root Samsung Device and I am trying to run an init service which runs custom.sh script using u:r:su:s0 SELinux context. # define service, use executable here if script not needed service custom /system/bin/custom.sh #…
Vatish Sharma
  • 1,091
  • 6
  • 24
  • 37
3
votes
1 answer

Enable /system write in TWRP - Systemless root

Moto X Play (XT1562), SuperSU 2.78 (systemless root), TWRP 3.0.2-r3 When I flashed TWRP, I chose the option of not writing to system to enable OS update (and also made a Nandroid just after flashing it as a backup) Now, I made some minor changes to…
beeshyams
  • 41,485
  • 34
  • 122
  • 284
2
votes
0 answers

How to make systemless edits to /system with Magisk

Many different root-only actions involve mounting and editing files in the Android /system directory. Because there have been so many types of Android OSes, rooting techniques, and actual root solutions from the last decade, it has made it difficult…
2
votes
1 answer

Can a Samsung receive OTA updates normally with a systemless root?

If a systemless root is done, will software updates still appear in settings/show up as a notification that there is a new update available? In case it does show up, can you download and install the update directly from the settings app even though…
winstonej
2
votes
1 answer

How can I disable the "Install update to keep device running smoothly" notification?

Once every few weeks, I get this notification to update the device after unlocking my phone. I have automatic updates disabled in system settings as well. Hoping there is a service that a "root service disabler" app could disable to put an end to…
Pie
  • 121
  • 1
  • 4
2
votes
0 answers

Vanced Youtube & Native Youtube App crashes after ArrowOS update on a6020a46

I have a rooted Lenovo Vibe K5 Plus running TWRP+Magisk+OpenGApps+ArrowOS(android v10).No MicroG. I installed Vanced Manager and Youtube Vanced in it(sometime after the February update) and it was working perfectly. I had given Vanced Manager…
linux_enthusiast
  • 192
  • 1
  • 16
2
votes
0 answers

Magisk manager not detecting magisk installation

Device: itel A11, Android 6 Before the installation of magisk v22, my magisk installation was working fine, so I updated the magisk through direct installation and rebooted my phone but magisk manager wasn't detecting magisk. I tried flashing…
logickoder
  • 21
  • 1
  • 2
2
votes
0 answers

What is the space distribution for disabled system apps?

My phone is rooted with Magisk. I have a root browser app, allowing me to "sneak peek" into the root directories. I found, for example, that for the Google Drive app, the APK in /system/app is 23MB, but application manager shows the app size as 30MB…
Wrichik Basu
  • 957
  • 4
  • 15
  • 32
1
2 3 4