There is a task to get files from another app in rooted Android 7. Reading file is tested, it's OK, if the path is known.
But if i have app's package name and the target file name - how to find the file in folders of the app ?
I mean, to find the exact full file path.
I mean that you can get your app fullpath using File.DirInternal and then replace the packagename substring of the fullpath with the packagename which you want to get file.
Hmm, indeed:
1) my app in MEMU emulator File.DirInternal gives his own path as "/data/user/0/MYPACKAGE/files"
2) but a file explorer gives the target app as "/storage/emulated/0/Android/data/TARGETPACKAGE/files"
And no folder of my app like "/storage/emulated/0/Android/data/MYPACKAGE/files"
Hmm, indeed:
1) my app in MEMU emulator File.DirInternal gives his own path as "/data/user/0/MYPACKAGE/files"
2) but a file explorer gives the target app as "/storage/emulated/0/Android/data/TARGETPACKAGE/files"
And no folder of my app like "/storage/emulated/0/Android/data/MYPACKAGE/files"