Skip to content

Termux access to /data/data #3856

Closed Answered by agnostic-apollo
SpeedyCraftah asked this question in Q&A
Discussion options

You must be logged in to vote

That's because of app data isolation that's engaged if an app uses targetSdkVersion >= 30 (Android 11) 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 like gms. Termux app uses 28 currently so it's not isolated. You can disable it for all apps by running su -c "setprop persist.zygote.app_data_isolation false" and rebooting, at the cost of privacy. Or in other apps, run su 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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@SpeedyCraftah
Comment options

Comment options

You must be logged in to vote
2 replies
@SpeedyCraftah
Comment options

@agnostic-apollo
Comment options

Answer selected by SpeedyCraftah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants