Read my link Manage all files on a storage device | Android Developers in the manage external storage first post. There are still limitations and no access to Android/data is one of them.1# Now I DO get the permission. but the Android/data folder is empty!
Read my link Manage all files on a storage device | Android Developers in the manage external storage first post. There are still limitations and no access to Android/data is one of them.
There is a loophole, that might get closed sometime, used by several File Manager apps that use Storage Access Framework (External Storage class in B4A) and get the user to select the Android folder. They also use manage external storage permission and must have had Google's OK to do that but I don't know if access to Android/data by Storage Access Framework also needs google assent to be in the store. Other than that you are stuck. Google really really doesn't want you to access other apps data.
I have tried myself using the B4A External Storage class on Android 12 but it always tells me that I can't use the Android folder itself and does not offer me Android/data nor Android/obb, but it does let me into Android/media and would let me create my own folder in the Android folder. Look at the first answer "Here is how it works in X-plore:" in the following link. I think the trick is to set the initial folder which the External Storage class requests to the Android folder. It should be possible to mod the B4A External Storage class to do this but I'm afraid that I don't have the motivation to spend my time trying.
How do some apps reach the contents of ".../Android/..." sub-folders on Android 11 without root?
Background There are various storage restrictions on Android 10 and 11, which also includes a new permission (MANAGE_EXTERNAL_STORAGE) to access all files (yet it doesn't allow access to really all...stackoverflow.com
Sorry - I don't understand but the answer will be no - it won't work if you target SDK 30 as required by a store app. It's not just permissions - the file access is blocked by Android except for this Storage Access Framework loophole I described.If you install apk manual and give all permisions by settings ---> app / setup... do you see the files ?
If you install apk manual and give all permisions by settings ---> app / setup... do you see the files ?
That's probably using the PERMISSION_WRITE_EXTERNAL_STORAGE and normal file access. Storage Access Framework as presently implemented in the External Storage class won't let you select Android/Data.But alas no access to the Android/data folder (Well I can access it, its just empty)
That's probably using the PERMISSION_WRITE_EXTERNAL_STORAGE and normal file access. Storage Access Framework as presently implemented in the External Storage class won't let you select Android/Data.
how do you mean manually? i have another app that downloads and installs apks, using pm install@aidymp it will be only for specific devices (and specific brand+model) + you will install it manually ?
My App will not need to target SDK30 as it wont be in any stores...
So im stuck my APP WILL NOT BE IN ANY STORES!
Yes but only on Android version 10 or earlier. Android 11 and later block access to the contents of Android/data.And using the old rp.checkandrequest for PERMISSION_WRITE_EXTERNAL_STORAGE targetting SDK 28 sideloaded may work??
sorry i didnt see it as a question, the app is mainly for TV devices, nvidia shields, fire tv (old android os so far...) so any device really@aidymp it will be only for specific devices (and specific brand+model) + you will install it manually ?
Yeah, but whatabout 11 lol Shield is currently on Android 11if no store... and android ...9... 10 (??.. maybe)... and go with sideloading/manual/installed by user ...may be worked as agraham said
Nothing about it. Android 11 won't allow it as I keep repeating. You are barking at the moon. The only way on Android 11 and later, regardless of the target SDK, would be the Storage Access Framework loophole.Yeah, but whatabout 11 lol Shield is currently on Android 11
Nothing about it. Android 11 won't allow it as I keep repeating. You are barking at the moon. The only way on Android 11 and later, regardless of the target SDK, would be the Storage Access Framework loophole.
I think you can make a wish!.. you never know!
No! As I said above.NOTHING written in B4A will ever be able to access the Android/data folder on android 11>
Is that correct??
I think the trick is to set the initial folder which the External Storage class requests to the Android folder. It should be possible to mod the B4A External Storage class to do this but I'm afraid that I don't have the motivation to spend my time trying.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?