Linked Questions

10
votes
1answer
17k views

How to fix SELinux “avc: denied” errors when launching DNSCrypt as init.d script?

I've installed an unofficial lineage OS 14.1 ROM on my phone and i want to have dnscrypt used on boot by default. There is what i have done: Download arm binaries from: https://github.com/jedisct1/...
11
votes
1answer
7k views

How to stop apps writing to “Android” folder on the SD card?

I have a (seemingly) simple question to which I haven't found a clear answer to. My phone creates an "Android" folder on my SD card and I'm wondering if it could be moved into the phone's internal ...
5
votes
1answer
4k 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 ...
5
votes
1answer
2k views

How to run SSH/SFTP server for multiple user logins with password authentication on Android?

I want to run an SSH server on my Android phone so that my clients (varying between 10 to 20) can easily and securely share data with me when I'm on the go, without using any third party hosting ...
3
votes
1answer
2k views

What is the “u#_everybody” UID?

In (multi-user) Android there are UIDs like these: u0_everybody u10_everybody u11_everybody Those seem different to the usual uXX_aYY UIDs used for the applications. What is their purpose? Is this a ...
4
votes
1answer
968 views

Are multiple-users protected from each other differently than apps?

I confess that I come from the happy world of unix computers, and am used to the concept of user accounts and hence group gids and userids uids. For the occasional usage of an untrusted app (i.e. ...
4
votes
1answer
2k views

How to find UID of an app installed on Android and use it as a shell user?

I am trying to find a way to determine the user name of the current shell user from within a shell / terminal on an Android device. The Android environment that I have in /system/bin and /system/xbin ...
5
votes
1answer
655 views

How to run a program in an app context with Magisk?

Let's say I'm currently as root in Bash on a terminal, outside any app like Termux. I'm running Magisk. Now I want to synchronously invoke Termux's Bash, such that it behaves the same way as it would ...
1
vote
2answers
2k views

How to grant an app a permission that isn't in its manifest for audio recording?

Non rooted Moto G6 Play running Android 9. I'm using Termux and would like to use Sox's rec command to record audio from the terminal. Unfortunately, since Termux doesn't request the mic permission, ...
0
votes
0answers
1k views

How to get rid of SeLinux Denials in Permissive mode?

Need some help with 3 issues: In Permissive mode I get denials, why does this happen and how do I fix that? If I am enforced, how do I give access to my Partitions to various processes. Right now I ...
3
votes
1answer
298 views

How much privileged GMS Core is in the Android Stack?

The GMS Core has a ton of capabilities and doesn't seem to perform like a typical application (as in an Application living in the 'Applications' layer shown below). I would assume it would have more ...
2
votes
1answer
105 views

Linux command 'w' - how is this as command written in Android shell?

I am searching for similiar commands in Android shell - as they are used in Linux like these commands - what can I type in Android terminal for : w who whoami ? Thank you.
2
votes
1answer
54 views

Why do I have to get permission to save to my own phone?

I am the owner of a new Samsung Galaxy J7 (J700T). When I try to delete files with no data on them on my internal, external, or SD card, the phone tells me I am denied. I want the files I've created....
2
votes
0answers
44 views

Android runtime permission's internal working?

I was checking Android runtime permissions and was very curious about how Android runtime permissions work. Like if some application is asking for access to external storage, it will ask for ...