Android Studio wants access to microphone - android

I received a pop up in which Android Studio requests permission to access my microphone.
For as far as I know, there are no voice command features in Android Studio.
I found this rather odd and I hope someone knows why my IDE wants to acces my microphone.

It's the Android emulator. The emulated phone has a microphone, so the emulator uses your computer's microphone to emulate it.
Feel free to deny access to your microphone; the emulator will work fine—except for its microphone, of course.
EDIT: monocasa on HN explained in more detail:
It just enables the microphone at emulated device instantiation time. Easier than enabling/and disabling it at runtime.
https://android.googlesource.com/platform/external/qemu/+/a7c579bdcbe2543472535718d3b637cb864f6f36/hw/android/goldfish/audio.c#288

Related

Inject uplink audio in call for samsung A52 and A72

I want to develop a feature for an android app so that when there is a call we can play an audio file on a call. This audio file should be played when the mic is muted. In other words, the other side of the call will just hear the audio file nothing else.I want to run this app on an Samsung A52 rooted device.
Many people said that for this feature I need to create a custom android firmware. In other words I need kernel development. I was sure about it until my client said that hey have a 3rd party lib which is implemented this feature without kernel development. I was disappointed until I saw this post related to achieve this feature through running some commands on a rooted android. The post was talking about injecting uplink audio in a call.
The devices I wanted to run the app on them have Qualcomm-based chipsets. Does anyone have an experience related to this topic?
According to the linked post I guess it's possible through running some commands on a shell of a rooted device but I don't know which commands I should use.

Is it possible to make the Gear 2 smartwatch (running tizen) the bluetooth microphone for an android phone that it's paired with?

Basically I want to make the tizen smartwatch into a bluetooth headset for a period of time. We have a tizen and an android developer handy and we're willing to build anything necessary to make this work.
This kind of process seems to work with built-in android applications like the standard phone app. But there doesn't seem to be any documentation online as to how an app developer would leverage streaming the mic.
It should be noted that we do need to get the audio into the microphone input on the phone for our third party software to work. It's not as simple as just getting the audio to the phone.
Any help, even someone telling us what isn't possible, will be greatly appreciated.
It is possible to play sound with the HTML audio tag: http://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=269002&startId=zzzzz~&searchSubId=0000000032&searchType=ALL&searchText=sound
It is possible to capture the sound in a Host Android application
It is possible to exchange data bytes by bluetooth with the accessory SDK: http://developer.samsung.com/samsung-mobile#accessory
The data transfer is quick and efficient, so low quality sound may works with little delay
So it certainly is possible. But you'll have to code (or use compatible javascript and android libraries) all the streaming code which is quite a lot of work

Can we access the Microphone driver of my android phone

Can we access the Microphone driver of my android phone using Android NDK if so then how can I?
Can I set the driver disabled for some time?
Can I detect application name of my phone which is using my phone microphone?
As per Android Multimedia framework the MediaServer is responsible for opening the device and the Java based audio applications connect it as a client. The data transfer happens on the Binder. May because of this there is only one process seen which opens the audio device. Now I want to know how to get information from MediaServer? Anyone knows this or any other idea to find which application is using my phone microphone,i can't use the root permission.
No, you cannot. :-)
(even using NDK)
Specific hacks might exist for certain devices.
But they would definitely interfere with the proper operation of Android framework.

Is there ANY android emulator that supports microphone input?

So far I haven't been able to find any solution that would allow me to test voice input via microphone on the android emulator.
I have been able to get away during development by limiting my testing to cheap Android phones (sorry, I don't have much money) but now some users complain that my app doesn't work on Android 3 and 4.
So, I am desperately looking for an Android emulator (that can run on Windows 7) to help me test my microphone-based app on various Android versions (did I say fragmentation?)
Is there any android emulator that supports microphone input?
Other suggestions that can utilize the standard Android "emulator"?
As you noted, the live-android (with this HowTo) is outdated, so as far as I can tell, you have only one (free) option that goes up to Android 4: Android x-86 on a USB thumb drive plugged into another netbook or laptop you have.
The only problem I see is that a standard Android USB cable for connecting your debugger will not work because netbooks or laptops don't have a micro USB connector like real Android devices have.
This is an old question so the answers here need updating.
All of the emulators included in the AVD manager (Eclipse/Android Studio) support microphone input now, although the ARM versions don't really have a sample rate that matches reality. The microphone inputs x86 based emulators work really well, but only at 8kHz.
There is a new kid on the block called Buildroid for VirtualBox (formerly VirtualBox-AOSP). This may be what you are looking for.
Thanks to Babu for this solution. Emulator can supports virtual input and record sound same like laptop

Transfer live video from an Android device

I want to access my android device (Nexus S) from my pc remotely. I was thinking of an application that would activate the camera and sent the video to my pc, something like Skype but without sound. My first thought was using a VPN connection, but it is a little bit restrictive as it is available only for API Level 14. I dont want to use a server cause I'll have to pay, unless I can avoid it.The concept is using the device for security like a wireless camera. Any ideas would be appreciated.
use an app called IpWebcam. It converts your phone into a wireless webcam. You may see the live video through browser or a player. Install it and you'll find the instructions inside :)

Categories

Resources