Just to clear this up a bit, Android storage works differently now.
On Android 11+ (scoped storage), native C/C++ code cannot directly
read/write inside:
/Android/data/com.other.app.package
unless the code is part of the SAME app, or the device is rooted.
Even if the folder already exists and file managers like ZArchiver or
MT Manager can copy/paste files there, that does not mean native code
can access it. File managers run with elevated access, normal apps and
mods don’t.
In practice:
Same package → works
/storage/emulated/0/Android/data/com.game.name/files/
Different package (non-root) → blocked
/storage/emulated/0/Android/data/com.other.game/
Rooted device → works normally
/data/data/com.game.name/
If someone needs non-root access, the only official way is SAF
(Storage Access Framework), which requires Java/Kotlin and user
interaction — not possible with pure C++.
So this behavior is expected and due to Android restrictions,
not an issue with C++ itself.