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.
Related
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
I am trying to open dev/msm_pcm_out using native c code but the media player is giving out no sound , is it possible to open the device without locking it?
Do you have permissions to access this device? Typically msm_pcm_out will be owned by the system process, and access to it will be restricted to the owner process and the group the owner belongs to.
A more important question is why are you trying to access this device? The msm_pcm_out device is only available on older Qualcomm platforms. Their never platforms do PCM output/input through the ALSA PCM devices in /dev/snd/, and platforms from other vendors obviously don't have the msm_-devices at all since they're a Qualcomm-thing.
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 :)
Source code of Android Market app is not available.
What I want to do is reversing the network protocol used by the market.
The purpose is to build a tool that can simulate a handset and search for a particular phrase, thus returning the rank of a target application (or maybe the whole list for that particular keyword)
I can connect my Android phone to my home wifi network. Then I need a way to set a "proxy" and a tool like Wireshark. Maybe it would be easier if my phone were rooted, but I don't want to mess with the factory rom. Does anybody have any suggestion? Or maybe has a rooted phone and wants to collaborate with me?
Someone has already done the work, did you look at the android-market-api - they actually have what you want!
I am writing an Android 2.1 application that needs to get data from a USB device. The USB device is an embedded system i created. The embedded system has no OS. Also, the android device does not send any data to the embedded system.
How should i go about this, I'm guessing i will need to make a high-level driver to communicate from USB to the application. But, i have never made a Linux driver before.
If creating a high-level driver is the best way to do this, can someone give me some references so i have somewhere to start.
If there are other ways to accomplish this i would also like to hear about it
-Thanks
The Android Open Accessory Development Kit is where you should start looking. Like many of other Google's documents, the tutorial is reasonably complete and should provide you with a good starting point
Good Luck!
I think you will need to recompile Android kernel to add usb device support.
It can be an option if you are working on some dedicated project and only one Android phone should be supported. If you want to support all kinds of Android phones, I can suggest to implement USB host in your embedded system( if it is possible), thus your Android phone can be connected using ADB protocol.