DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 3 of 3

Thread: Want to know which application is using microphone reached a conclusion,plz help

  1. Droid Newbie
    tarun18's Avatar
    Member #
    284127
    Join Date
    Aug 2012
    Posts
    2
    Phone
    Enter Current Phone Model Here
    #1

    Question Want to know which application is using microphone reached a conclusion,plz help

    I was trying to do the following:-
    I was trying to find which application of my phone is using my phone microphone,i made lot of try and research and found the following:-
    When app want to use microphone, it must use "android.media.MediaRecorder" class,
    then the request will be delivered to /system/bin/mediaserver which is a system service,
    this service will open device and record voice,if you try to find app, it is very hard to do,
    because the request is delivered by Binder, we should monitor "/system/bin/mediaserver",
    if the service is using the "/dev/msm_pcm_in" device, it means it is recording,
    then we could list all running apps and find the app which have "RECORD_AUDIO" permission and also consumes CPU,
    I know it is a dirty way, but it maybe works.


    You could detect if microphone is working, you just need to su as root, then run "lsof | grep msm_pcm_in",

    ABOVE SOLUTION CANNOT BE USED BECAUSE I CANT USE THE ROOT PERMISSION



    then I FOUND

    dumpsys doesn't need root permission,
    although dumpsys can't give any mic information, but it could dump the service information,
    it also could help you find the app is using mic, we can combine two ways into one.

    1. all apps use microphone via "/system/mediaserver", it is a service whose name is "media.player".
    2. dumpsys can get information from specific service.


    Finally, we get the answer, "dumpsys media.player",
    if we are running any recording app,
    you will see a "MediaRecorderClient" which includes pid and more information,
    it means the app is using mic and recording voice ,now I can find the correct app which is using mic.

    BUT I WAS NOT ABLE TO USE DUMPSYS THROUGH C


    THEN I SWITCHED FINALLY TO lsof COMMAND AND RUN THE lsof CODE THROUGH MY NDK CODE AND I FOUND IN THE DUMP OF lsof THAT THERE IS SERVICE NAMED MEDIA SERVER AND FINALLY



    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.


    HOWEVER I REACHED HERE NOW I WANT TO KNOW HOW TO READ FROM THE INFO FROM MEDIA SERVER.

    OR

    ANYOTHER WAY TO DETECT WHICH APPLICATION IS USING MY PHONE MICROPHONE?
  2. Droid Sensei
    DevilDogMP's Avatar
    Member #
    272692
    Join Date
    Jul 2012
    Location
    Raleigh, NC
    Posts
    3,768
    Liked
    60 times
    Twitter
    __WatchMeTweet
    Phone
    Motorola Droid Bionic
    #2
    Sorry I can't help you on that one.

    Sent from my DROID BIONIC
  3. Droid Newbie
    kiers's Avatar
    Member #
    366959
    Join Date
    Jan 2014
    Posts
    1
    Phone
    Enter Current Phone Model Here
    #3

    Did you find a solution?

    Hello
    did you find solution?
    This is very important topic....the NSA of USA is spying also.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Another Milestone has been reached for the AOKP Rom!
    By DroidModderX in forum Android News
    Replies: 4
    Last Post: 04-30-2012, 07:14 AM
  2. Flext9 microphone does not show up in dictation application
    By Trionalaw in forum Android Applications
    Replies: 1
    Last Post: 08-05-2011, 08:29 AM
  3. Has the OG Droid reached EOL?
    By rsimpson in forum Liquid
    Replies: 31
    Last Post: 06-09-2011, 01:58 PM
  4. I've come to the conclusion..
    By Crispy in forum Android Tech Support
    Replies: 0
    Last Post: 06-17-2010, 11:08 PM
  5. So what is the conclusion about task killers?
    By Grey Hawk in forum Android General Discussions
    Replies: 7
    Last Post: 02-14-2010, 07:36 PM

Search tags for this page

an app on my phone is using my mic. how do i find out which
,

another application is using the microphone

,

another application might be using the microphone

,
could not record audio another application might be using th
,
couldnt record audio shazam
,
it looks like another application is using the mic
,

mic is already on because it is being used by another applic

,

shazam another application using microphone

,
shazam couldnt record audio another application might be usi
,
?mic is already on because it is being used by another app
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+