0

I'm trying to run record audio on my nexus 4 with Ubuntu 15.04 (OTA-9.1) and it's throwing this error:

enter image description here

BTW: "Zugriff verweigert" translates to "Access denied"

Any suggestions?


Update: with sudo it doesn't work either

enter image description here

9
  • Try with sudo?
    – user423626
    May 10, 2016 at 10:37
  • No, sudo doesn't solve it (see update).
    – somethis
    May 10, 2016 at 11:22
  • BTW, you can create screenshots by pressing volume up and down at the same time.;)
    – eDeviser
    May 10, 2016 at 11:59
  • @eDeviser Thanks, don't have the USB cable with me, though.
    – somethis
    May 10, 2016 at 12:11
  • 1
    You should probably use parec instead, as the phone/tablet runs PulseAudio (you can see in your first screenshot that it is using PulseAudio's ALSA emulation), but that isn't going to work either because the terminal app has no permissions to access audio.
    – JanC
    May 10, 2016 at 12:43

2 Answers 2

0

You could use the 'SnapRecorder' from the Ubuntu Store instead of using the commandline.

1
  • Ok, SnapRecorder works ... but it explicitly asks for permission to allow recording. Maybe arecord needs this, too.
    – somethis
    May 10, 2016 at 11:51
0

To record from the command line on a phone/tablet running the Ubuntu images, you will have to use the pulseaudio tools, parec or parecord.

For the permissions issue, you will likely have to add the Terminal app, or possibly the parec/parecord tools, manually to the Trust Store db for the microphone permission, so that pulseaudio will allow recording. (I'll have to refresh my memory on how to do this exactly, and update later though. Until then, I might suggest to install an app that does audio recording.)

There is no ALSA device available inside Ubuntu, so standard ALSA tools like arecord will not work. The audio hardware is managed by the Android audio subsystem, and pulseaudio connects to this via libhybris (the library to connect to the Android HAL).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .