Termux access to /data/data #3856
-
I was wondering how Termux is able to access all directories under Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you running termux as root? Wouldn't it be obvious that any program can access those directories with root permission? |
Beta Was this translation helpful? Give feedback.
-
That's because of app data isolation that's engaged if an app uses |
Beta Was this translation helpful? Give feedback.
That's because of app data isolation that's engaged if an app uses
targetSdkVersion
>= 30
(Android11
) in which/data/data/*
of other apps do not exist in the mount namespace of the app, and only its own and specific whitelisted packages likegms
. Termux app uses28
currently so it's not isolated. You can disable it for all apps by runningsu -c "setprop persist.zygote.app_data_isolation false"
and rebooting, at the cost of privacy. Or in other apps, runsu
shell with the-mm
/--mount-master
flag.https://cs.android.com/android/platform/superproject/+/android-14.0.0_r1:frameworks/base/services/core/java/com/android/server/am/ProcessList.java;l=2305
https://cs.android.com/android/platform/s…