Stray Audio permission on Android

30 views
Skip to first unread message

nickk...@gmail.com

unread,
Jun 1, 2016, 12:11:03 AM6/1/16
to CodenameOne Discussions
I'm making a new app and it doesn't use the capture API anywhere at all, but it still requests audio, phone status and identity and sd card access.

I use the file system so I understand the SD card permission, I don't use anything else that should use these other permissions, or if I do I'm not aware of it.

I've made no changes to the build hints from the original created for a new project in version 3.4.

Any idea what is triggering this or how to remove the permission.

Shai Almog

unread,
Jun 1, 2016, 12:27:51 AM6/1/16
to CodenameOne Discussions, nickk...@gmail.com
When you get a phone call android keeps playing the audio (seriously!!!). This is a HUGE Android bug that they consider to be a "feature"...
So we need to listen to incoming phone calls to pause the audio.

nickk...@gmail.com

unread,
Jun 1, 2016, 12:34:34 AM6/1/16
to CodenameOne Discussions, nickk...@gmail.com
Interesting! - anyway I don't play any audio is there a way to remove it?

Also its asking for record audio permission which I'm definitely not doing.

Shai Almog

unread,
Jun 2, 2016, 12:19:29 AM6/2/16
to CodenameOne Discussions, nickk...@gmail.com
Are you using Android 4.x? If so the permissions of Google Play Services appear below in a somewhat confusing way and should mostly be ignored.

If not make sure you don't have an errant cn1lib somewhere.

nickk...@gmail.com

unread,
Jun 2, 2016, 10:43:47 PM6/2/16
to CodenameOne Discussions, nickk...@gmail.com
This is on Android 6 but the permission request is on install.

What CodenameOne API would trigger the inclusion of record audio permission without also including record video?

Thanks
Nick

Shai Almog

unread,
Jun 3, 2016, 1:00:42 AM6/3/16
to CodenameOne Discussions, nickk...@gmail.com
Media or capture to my knowledge but Chen should know more about that.
Reply all
Reply to author
Forward
0 new messages