Android Question To much permission requested

Midimaster

Active Member
Licensed User
As I use the library "Audio" the app askes the user during installation to allow the access to MICROPHONE. But my app does not record anything and it does not need the microphone.

So this security question is not necessary, but make a bad impression to the user, or? I respect privacy of the user and I do not want to make the impression the app "listens" to anything.

Is there a chance to prevent android from asking this question?
 

Midimaster

Active Member
Licensed User
Sorry for a wrong description of my problem. The place with the to many "permission needed" is inside the Google PlayStore":

here is a screenshot of my app's playstore entry to specify the problem:
PermissionsAndroid.png


adress: https://play.google.com/store/apps/details?id=midimaster.twentytrackd


and here are the logs:

PermissionLogs.png



FileDirRoot OkkHttpClient are really used by the code

BridgeLogger is only caused by the test-Version

Service/Receiver: I dont know whether they are important by default

Audio_Streamer is wrong! I only use it to playback audio


but in my Manifest-Editor I cannot see any entry belonging to this permissions
 
Last edited:
Upvote 0

Midimaster

Active Member
Licensed User
if you remove a permission as described then the list will be shorter on google side

Thanks a lot. I did not know anything about this! "Again what learned!" :)

Does this mean, what I see in the MANIFEST editor is not the final MANIFEST? In my editor I can see only one entry, which looks like beeing related to one of the permissions:
B4X:
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
I must have wriitten it at the beginning of my project, but now i'm not sure, if it is really necessary for File.DirRoot- permission?

As I understand you, now I can add lines to the MANIFEST, that will cancel additional permissions.
B4X:
RemovePermission(android.permission.WAKE_LOCK)
RemovePermission(android.permission.RECORD_AUDIO)
RemovePermission(android.permission.FOREGROUND_SERVICE)

But how can I know which is important and which not? Will the Audio-Library still run (only playback) without the permission?
 
Upvote 0

Midimaster

Active Member
Licensed User
....2. Forget from File.DirRootExternal / DirDefaultExternal. Don't use them.
Yes, this will be replaced, as soon as I found a practical solution for my users. As my app needs to import local files with a new file format and extension "MPX" I'm not sure how to offer the users an easy way to "transport" this files to the app. But this will be theme in a new thread in some days....
 
Upvote 0
Top