3

How do apps check for the existence of files and folders on /data and /system partitions without having root privileges? I know some games and apps do this for anticheat and security reasons.

13
  • 3
    /system is world readable and /data is accessable within it's own uid
    – alecxs
    Aug 30, 2021 at 17:20
  • 1
    Does this answer your question? Where Android apps store data?
    – alecxs
    Aug 30, 2021 at 17:33
  • 1
    If your question is about apps can read files or directories of other apps (in /data) the answer is NO
    – alecxs
    Aug 30, 2021 at 18:00
  • 1
    Apps can NOT detect the existence of other apps' directories under /data/data/ without root. Discretionary Access Control doesn't allow different UIDs (apps) to access each other's data. See this, this and this how Android's app sandboxing works. Aug 30, 2021 at 18:21
  • 3
    There's on exception though. On old Android releases or with SELinux permissive, an app can detect the existence of other app's root directory i.e. /data/data/com.xyz. But it's not possible to read its contents. Aug 30, 2021 at 18:28

0

You must log in to answer this question.

Browse other questions tagged .