isDataOrObbPath blocks access to Android/[data|obb] dirs only
isDataOrObbPath is a check used to restrict apps from accessing
Android/data and Android/obb directories via FUSE. However, if the app
is trying to access another directory in Android/data or Android/obb,
then we should not return early and should check if they have access to
the app package directory.
This only affects secondary volumes, as primary volumes Android/data and
Android/obb directories do not go through FUSE.
Test: atest FileUtilsTest
(cherry picked from commit fe79a43a890d9c54655b0ad0beeab58958aa1cfb)
(cherry picked from commit bae2794639a349d2f7b1a66915d89c51c9334164)
2 files changed