You do not say if you plan to publish your app in the Playstore. If you do not need to meet Playstore rules then you have two possible options -
1. You can set your app's android:targetSdkVersion in the Manifest Editor to an older level, before the current restrictions were introduced. I think that level 29 works.
2. You can use the path described in
this post - this is an old post now but I expect that it still applies
You cannot use DirRootExternal to meet your aim if you are writing for recent Android versions.
@vmag says this in his first post -
This is what I wrote in post #8 -
They are effectively the same thing.