-
Notifications
You must be signed in to change notification settings - Fork 28
Android app rejected: Issue: Need to use Media Store API or No Access to Files #53
Comments
@x0axz taking a look at the issue. |
I’m facing similar issue |
Hi @horationunez. This is a major issue as no one is able to upload their app to the play store. Any idea why this could be happening? Has anyone been able to upload an aries .net app since Nov or Dec ? |
@horationunez any update on this issue? |
@x0axz I'm working out a fix. Can use some help with testing. Is this something you can help out with? |
@horationunez yes, of course. anything you ask for. Actually I had a chat with @conanoc on Hyperledger Chat. Thread. Basically, he told not to use But on android 11, it gave an IO Exception on Pool Creation. |
Yeah, the pool creation error is what gives it away. |
@x0axz I think part of the issue is that these Store rules aren't applied evenly in all versions and the solution to be place in AriesMax repo needs to solve the problem in all of them. My day is filled today, but will appreciate if I can connect with you tomorrow on a sync call. Feel free to use this link: https://calendly.com/merthin/ariesmax?back=1&month=2022-01 |
I removed the I uploaded the .apk to Play Store and in the Bundle permissions the Write & Read permissions were showing up. Then I analyzed the Though, I ask for I then add the
And when I Analyzed the APK again, Write & Read permissions are there with |
@horationunez pointed out that the Permissions somehow merging from the dependent library. I looked into it and found this article How Libraries can silently add permissions to your Android App and the Fix.
It Worked. But I'm using camera, and I was storing these pictures in the So, I replace the path with |
After doing these changes our app get rejected on google play store again, saying: Found this Solution, basically saying that Google was checking old APK, if it is available in any of the track (Internal, Open, Closed or Production) with Policy Violation. So, in this regard you have to roll out the app to 100% in the track which has this Policy violation. Which will deactivate the old build. |
I was trying to upload my app to Google Play Store, but they weren't allowing me to publish it.
Changes in Manifest File
I then removed these permissions from Manifest File.
GetExternalFilesDirs()
And also used to
GetExternalFilesDirs()
to create folder, as per android documentationStarting in Android 11, apps cannot create their own app-specific directory on external storage. To access the directory that the system provides for your app, call
getExternalFilesDirs()
.So, I changed in code:
Path.Combine(FileSystem.CacheDirectory, config.Value);
toPath.Combine(Android.App.Application.Context.GetExternalFilesDir(FileSystem.CacheDirectory).AbsolutePath, config.Value);
Run time Permissions to Read & Write
When I removed Read & Write Permissions from Manifest file, I couldn't create folder, I enabled the run time permissions, without adding Read & Write permissions in manifest file, now I'm able to create folder.
Changes in MainActivity.cs
I also used
GetExternalFilesDir
inMainActivity.cs
.And according to this comment:
Action Required: Your app is not compliant with Google Play Policies
After all these changes, I'm unable to publish app on Play store. Received an email:
Issue: Need to use Media Store API or No Access to Files
You have requested access to All Files Access permission but it appears that your app's core feature requires access to only Media Files or does not need access to any Files. In case your app needs access to Media Files, with the MediaStore API, apps can contribute and access media that's available on an external storage volume without the need for the access all files permission.
Please update your app so that the feature uses Media Store APIs and remove All Files Access (MANAGE_EXTERNAL_STORAGE) permission.
The text was updated successfully, but these errors were encountered: