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 6 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 uses28currently 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, runsushell with the-mm/--mount-masterflag.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…