Fix AudioRecord & Notification permission issues, remove extra indents#30
Fix AudioRecord & Notification permission issues, remove extra indents#30barlin41k wants to merge 2 commits intogdzx:masterfrom
Conversation
|
Hi @barlin41k, Thanks for the PR, but I'm not sure what issue it addresses. Permissions are checked in Best regards, |
Hi @gdzx, You're right, the required permissions already checks in MainActivity.java, so I ended up duplicating that logic. That said, I think Best regards, |
I don't think this is addressed by your change either, since after the service is started, the same There is a lot that could be improved in the handling of permissions (like having some UI that can ask the user to grant them, whereas currently the app just doesn't work), but I don't think this PR really improves the situation, sorry. |
|
Since this whole thing happens over adb, can we open a shell and just grant the permission automatically? Eg with a shell: adb shell pm grant fr.dzx.audiosource android.permission.POST_NOTIFICATIONS Currently this just checks if it's granted instead of just granting it. |
1 similar comment
|
Since this whole thing happens over adb, can we open a shell and just grant the permission automatically? Eg with a shell: adb shell pm grant fr.dzx.audiosource android.permission.POST_NOTIFICATIONS Currently this just checks if it's granted instead of just granting it. |
SecurityExceptionand checkRECORD_AUDIOpermission forAudioRecordinitializationPOST_NOTIFICATIONSpermission before showing notifications>=warning fix