Linked Questions

53
votes
7answers
147k views

How can I run a script on boot?

I'm accustomed to running scripts on boot in Linux, but I'm not sure how to do this in Android. I'd like to start my SSH daemon on start, so I'll always be able to connect. How can I run an arbitrary ...
32
votes
2answers
81k views

What exactly is superuser.apk and su?

I've done a lot of reading into rooting of Android devices. I really want to know exactly what is going on at each step before I commit to the process. I'm a little confused as to where the ...
10
votes
1answer
3k views

Why are the rooting apps not working anymore?

A couple years ago, it was easy to root any device: Install KingRoot, KingoRoot, or a similar app, hit the large ROOT button, and let it do the rest. After 5 minutes or so, a green "Root Succeeded!" ...
3
votes
1answer
7k views

How to disable dm-verity on Android with “user” build type ROM?

I have One Plus 6T Android device which has a ROM of build type user. This device is rooted with Magisk and I want to disable dm-verity on this device. I have tried to run adb disable-verity but I got ...
5
votes
1answer
641 views

How to manually root a phone?

I want to learn how to root a android phone manually, I mean without any apps like KingRoot, dr.fone etc. I did not found any guides or information about it. (Background Information: I want to root a ...
3
votes
1answer
2k views

How to run an executable on boot and keep it running?

I have an executable build from a ndk-build program. I want to run it on a rooted Android device. How much is the possibility that Android will kill my executable? Using adb shell, I am able to ...
6
votes
1answer
2k views

How does SuperSu provide root privilege?

Has a write-up ever been released on exactly how SuperSu works? After searching around for a while I found mostly guides on how to use the app, not the implementation details. I did, however, find ...
2
votes
1answer
2k views

What special privileges “/system/xbin/su” does have w.r.t. root access?

This answer says: Because of the way directory/file permissions are configured on Android, you need to have the su binary on your /system partition in order for it to work. Putting elsewhere ...
3
votes
2answers
1k views

What files are needed to gain root access on an Android device?

Are there other files besides su that need to be installed to gain root access on an Android device? I know that installing a "superuser" app isn't strictly necessary but merely important from a ...
1
vote
1answer
838 views

What sepolicy context will allow any other context to access it?

I am on a bootloader locked Sprint Samsung Galaxy S7, eng boot.img flashed to phone with SELinux permissive, which gives root adb shell from where I can change system partitions, debloat, install ...
1
vote
1answer
738 views

How to boot system-as-root device always as rooted?

I have a Samsung S10 5G device that is actually a system-as-root device. I have rooted it by following the instructions given here. As the system-as-root devices have no ramdisk in boot.img but in ...
1
vote
1answer
919 views

How to run an Android init service with superuser SELinux context?

I want to run an Android init service. I have a device which has rooted shell (purchased from manufacture as rooted). This device doesn't have Magisk or other su manager but adb shell is rooted and it ...
2
votes
1answer
456 views

Is there a way to root an Android phone without unlocking the bootloader?

I've tried almost any method to root my ASUS ZenFone Live, but no one seems to work. Also I only need root, no unlocked bootloader (don't want to wipe data) or custom recovery (not essential ATM).
1
vote
1answer
703 views

How to edit root files in /sys (Permission Denied)?

I have been trying to change root files in my phone through an app I am developing. The phone I have is a Moto G6, fully rooted. I'm using terminal emulators to run commands on my phone. I've tried "...
4
votes
1answer
253 views

Does Android's implementation of SELinux's MAC inhibit apps with root privileges from accessing other app's data?

Starting with Android 4.4, SELinux's MAC is enforced. Does this mean that if an app somehow can get installed and exploit the kernel to get root privileges, that MAC will still prevent that app with ...

15 30 50 per page