My mobile is a Redmi 7 Xiaomi (not rooted) with Android 9.
My removable SdCard is an 8 GB microSdCard.
My Guardar_SdCard app is installed (Build) on the mobile.
In my new app I have added my extension: KIO4_Terminal, you can execute LINUX commands mkdir, cp, rmdir, …
In my Xiaomi - Android 9 I can create, delete directories … in the removable SdCard. http://kio4.com/appinventor/278_extension_shell.htm
My extension KIO4_Terminal does not return a response.
Thanks for the information Juan Antonio. Yes, it does depend on the device as to what works.
I built the app. The app copies to /storage/emulated/0/ fine. It does not store to the physical sd Card on my Samsung Android 8.1 Tablet . I checked Settings>APPS>//Guardar_SdCard_2>Permissions ; the Storage indicates permissions are set. Screen1.AskForPermission WRITE_EXTERNAL_STORAGE works (since the app does have the permission), but the device does not allow writing.
Great this works on Android 9; it is still not working on the external sdCard (works fine on the 'internal sdCard).
Your code and extension does create/delete directories on the internal sdCard. Thanks.
Then I install the same SdCard on a Huawei 9+ (Android 6) and I get a type fuse mount. (I cannot create directories on a removable SdCard with this mobile)
/mnt/media_rw/9C33-6BBD on /storage/9C33-6BBD type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/data/knox/sdcard/150 on /storage/emulated/150 type sdcardfs