'Android 11 | give Python script access to Android directory

I'm trying to get permission to edit a file from an other app in the Android/obb directory on Android 11. It crashes on this line because of it: makedirs​(​"/storage/emulated/0/Android/obb/com.ea.game.pvz2_row (1)"​, ​exist_ok​ ​=​ ​True​)

  • Can I get this permission with Pydroid permissions plugin
  • Can I use another app to run Python?
  • Or do I have to build my Python script asking for permissions.
    I don't have an Android 11 device for testing.
    enter image description here


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source