It is kosher (not pork meat ) and it is allowed but only inside of the restrictions of Android File System. The API Release if the point to look for. Maybe this link helps you a bit.
It is always a mess while they change many stuffs between the API releases. Often not so clear to realize but… Have fun with Android building. One question: are you building with Kotlin or another solution?