I'm afraid I'm quite lost because I've built an Android app that uses 
tinyalsa through jni, but when I call pcm_open, I get:


cannot open device '/dev/snd/pcmC1D0c': Permission denied


I do see the file in question if I su -c 'ls /dev/snd' on adb shell. In 
fact, if I statthis file and the directories above it, all the way up to 
the root directory, the permissions that statoutputs conform to the 
permissions that I see on my ordinary linux workstation:


All of the directories are 0755/drwxr-xr-x, and the file itself is 
0660/crw-rw----.


Is my approach wrong? I am attempting to use tinyalsa by adding pcm.c 
<https://github.com/tinyalsa/tinyalsa/blob/master/src/pcm.c> and an 
Android.mk file to compile it as a module. Then in another .c file, I call 
pcm_open.


*Please, why would Android deny me permission, and what do I need to do 
about it?*

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/29a119d1-e965-4c2c-a926-ba7b851ff263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to