Manually block headset - Desire HD Q&A, Help & Troubleshooting

Hi everyone,
I've been looking for a fix to my phone for weeks now, even got the 3.5mm jack changed, but can't find a fix. The problem: I plug an ordinary pair of headphones into my phone (no mic, no headset controls) and the phone thinks it's a headset with all the bells and whistles I said it doesn't have. As soon as something knocks the jack plugged in, it senses a headset-button-press and either starts/stops/skips music, or activates Google voice search. My phone is running android 4.2.2 Jelly Bean (Pacman). I've tried all apps (HeadsetBlocker, Toggleheadset2, SoundAbout) designed to handle this problem, without succes, that's why I'm looking for a manual way of disabling the controls. Isn't it possible to just remove a line of code from the system, or add a line to block the flipping thing? I don't even mind if it were a permanent irreversable fix, just someone please help! I've been musicless because of this for 3 months now. :' (

Problem remains
Lots of experts around then... -.- Does anyone know what the app - called Headset Blocker - actually does regarding the system? Or does anyone know how I could find out for myself what the app tries to do? I'm thinking of smth like an "app logcat", if such exists... All help appreciated, thanks in advance!

josh1221 said:
Lots of experts around then... -.- Does anyone know what the app - called Headset Blocker - actually does regarding the system? Or does anyone know how I could find out for myself what the app tries to do? I'm thinking of smth like an "app logcat", if such exists... All help appreciated, thanks in advance!
Click to expand...
Click to collapse
I am also interested in this issue. I have a Galaxy SIII with 4.1.2 and accidentally, it got wet around 2 months ago. The problem is that it detects no real headset plugs, not allowing using the MIC and internal speaker, unless using a real headset. My aim is to disable the "headset plug", but no luck with all the apps you mention. I have read that there are an issue with ICS versiones, but I would like to find a solution.

Install "disable autoplay" from play store. It kills the autoplay caused by headset.
Sent from my HTC Desire HD using xda premium

donkyshot said:
Install "disable autoplay" from play store. It kills the autoplay caused by headset.
Click to expand...
Click to collapse
It's just a icon for me, doesn't work.
Also, deleting /system/usr/keylayout/AVRCP.kl and /system/usr/keylayout/h2w_headset.kl doesn't work, too.

onlinsanity said:
It's just a icon for me, doesn't work.
Also, deleting /system/usr/keylayout/AVRCP.kl and /system/usr/keylayout/h2w_headset.kl doesn't work, too.
Click to expand...
Click to collapse
I can ensure you it's not just a icon, are you rooted?

donkyshot said:
I can ensure you it's not just a icon, are you rooted?
Click to expand...
Click to collapse
Of course, but when I use that app, my SuperSU doesn't ask root permission.

Related

[Q] dhd gps starting all the time

Ok so having changed Rom recently from cm7 to leedroid all of a sudden the location service keeps starting up by itself and is wrecking my brain so bad i want to throw the phone at the wall!!!!
it starts up all the time even during calls which puts the phone onto loudspeaker, any ideas how to uninstall location as i dont use it anyway, or anyone got any suggestions as to a rom that doesnt have it on ?
Any help greatly appreciated
I remember reading something somewhere about the phone thinking it's being connected to a car dock all the time. It sounds like that's what is going on in your case, it would explain the GPS and the loudspeaker for calls - this is what you want when you're connected to a car dock.
If you don't use the car dock (I have never used it but I know people do) you could uninstall it, see if that fixes it
edit: found this http://forum.xda-developers.com/showthread.php?t=901175
yeah found that one myself mate thanks, i uninstalled locations through cmd then switched off plugged usb in and switched on, this worked but only for one or two calls. gonna have a look and try uninstall the car dock app, if anyone knows how to do it , that would be great !!!
tommytenbellies said:
yeah found that one myself mate thanks, i uninstalled locations through cmd then switched off plugged usb in and switched on, this worked but only for one or two calls. gonna have a look and try uninstall the car dock app, if anyone knows how to do it , that would be great !!!
Click to expand...
Click to collapse
Search for SystemApp Remover. It allows you to remove system apps.
joooe said:
Search for SystemApp Remover. It allows you to remove system apps.
Click to expand...
Click to collapse
or Titanium Backup is a free option that does the same plus more
Good luck with it

[Q] [SOLVED] Galaxy Nexus speakerphone mode

I dropped my phones while skiing and some snow must have got in because now, when making or receiving calls, I can not hear the other side and they can't hear me unless I use speakerphone.
No media sounds play any more, however the phone notifications and alarm still work. I understand that perhaps the media speaker has broken but why is the microphone still working only in speakerphone mode?
Is there an independent microphone/speaker set for speakerphone?
There is nothing else wrong with the phone.
[EDIT] Another side effect is that the Google voice search was not working.
Install this: https://market.android.com/details?id=com.seb.audiotoggle
I think it will actually solve your problem. It did for me when the exact same problems started to bother me today after skiing as well!
You need to start it at every boot as it don't stick between reboots. Consider using a startup manager.
The problem seems to be a mix of hardware and software in the headphone jack, but I have not examined it much yet.
Thanks for the reply. The app you suggest should be very useful and I will download it anyway. However, this to say that the phone had fixed itself this morning.
I put the phone on charge overnight, and this morning, it asked for my sim unlock code, which I thought was very strange! But I entered the code that I had received from my network provider and now everything is working as it should.
It was probably something do with the remaining water inside the phone or possibly the cold temperatures.
Good to know! Maybe my phone fixes itself during the night as well
Still working?
Has the issue remained fixed for you? I ask because I have the same thing - the symptoms are that I can't hear anyone and they can't hear me, all media sounds are off, and the phone can't hear me.
I ran Tasker to monitor things, and the phone keeps thinking I plugged in headphones (with a mic), so that explains all the behavior. Running the headphone toggle app works temporarily - sometimes only a few seconds.
After doing a factory reset, sound would still come and go. With my Nandroid backup back on, same thing. I want to return it, and so I put everything back to stock, and noticed that now the bootloader is locked again, the issue is gone (for now).
I just wanted to keep the discussion going because I can't even tell if it's hardware related or not, and other people probably have this problem, and it takes some snooping to realize it's the headphone connector (vs sound settings, speaker issues, etc.). It could be a short (my guess) but now that it's working today I can't return it as the tech would probably claim nothing's wrong. I also already used up the one return my stupid carrier allows, so I'd rather fix it myself if it's software-related, instead of sending it out for repair.
I still have this problem, even after cleaning the headphone plug. My guess is that this is a hardware problem affecting only a few. It makes the phone pretty much useless, as you can't hear the other part talking, so I made myself a software fix that resets the sound routing the the default speaker on every boot and incoming and outgoing call. I guess I can share the apk-file if anyone is interested.
Give it a try: ----
Can release source if you are interested, but I am currently in a car getting ready for a ski weekend
I am also having this problem with my Galaxy Nexus. I would be interested in seeing the source, if you are still up for releasing it.
VingInMedina said:
I am also having this problem with my Galaxy Nexus. I would be interested in seeing the source, if you are still up for releasing it.
Click to expand...
Click to collapse
See attachment for source, I also added a compiled apk file in the zip-file. You can open the project in Eclipse if you want.
Thanks for posting the source. I was able to work with it fine.
I've replaced my Nexus with a new one under warranty. Hopefully this one won't have the same problem.
Melhouse said:
See attachment for source, I also added a compiled apk file in the zip-file. You can open the project in Eclipse if you want.
Click to expand...
Click to collapse
Worked for me. Still hoping that Negri will replace my phone though.
Melhouse said:
I still have this problem, even after cleaning the headphone plug. My guess is that this is a hardware problem affecting only a few. It makes the phone pretty much useless, as you can't hear the other part talking, so I made myself a software fix that resets the sound routing the the default speaker on every boot and incoming and outgoing call. I guess I can share the apk-file if anyone is interested.
Can release source if you are interested, but I am currently in a car getting ready for a ski weekend
Click to expand...
Click to collapse
Thanks for releasing this! It works great!
I was going out of my mind trying to figure out what was going on. I was unlocked, rooted in stock 4.02 when this started to happen. I thought it was bad signal quality because i only noticed it when I stopped being able to make calls and use voice dialer. I only listen to music with a headset, so never even noticed that it wasn't working with the speaker til I tried to play a youtube video.
I actually upgraded to stock 4.04 with new FA2 radios and thought I had cured it, only to have it happen again. When I read this I tried resetting all my notification sounds (Handcent, et al) hoping somewhere there was a conflict, but still couldn't find it. I'm using NOVA launcher - wonder if there's something in there?
Anyhow, I gave up since your audiojack.apk works great! Someday when I have time I'll go back to troubleshooting to see where the problem is coming from.
Thanks again!
Works temporarily
Melhouse said:
See attachment for source, I also added a compiled apk file in the zip-file. You can open the project in Eclipse if you want.
Click to expand...
Click to collapse
This worked, but the OS will eventually think the headphone is plugged in again and I have to press the "Force Speaker phone" button again. I wonder if there is an event that is fired every time the OS thinks the headphones were plugged in? If so, that event can be captured and code could look to see if the headphones are turned off by the user and ignore the event.
Wired Headphone Routing Fix
Melhouse said:
See attachment for source, I also added a compiled apk file in the zip-file. You can open the project in Eclipse if you want.
Click to expand...
Click to collapse
If you want the same routing fix as audiojack but have it done automatically in a service try this.
There is an issue with a lot of Galaxy Nexus where the OS thinks the headphone is being plugged in and unplugged on its own. Try this free application to resolve it:
Search Google Play for Wired Headphone Routing Fix
The birth of SoundAbout...............................
dmwoods said:
If you want the same routing fix as audiojack but have it done automatically in a service try this.
There is an issue with a lot of Galaxy Nexus where the OS thinks the headphone is being plugged in and unplugged on its own. Try this free application to resolve it:
Search Google Play for Wired Headphone Routing Fix
Click to expand...
Click to collapse
Nice! What events do you listen for?
I have another problem. When i'm in a call and i swich to speakers the person i speak can't here me...if i switch back he can here me again. I don't know what is the problem i don't think that are two microfhones one for speakers mode and one for normal mode...Maybe a software problem but i wipe and flash another rom and kernel i tryed 2 or 3 roms and kernel and i have the same issue. Now i'm on AOKP B32 with Franco Kernel 135. Anyone have this problem?
android.intent.action.HEADSET_PLUG
Melhouse said:
Nice! What events do you listen for?
Click to expand...
Click to collapse
android.intent.action.HEADSET_PLUG
6jaipur6 said:
I have another problem. When i'm in a call and i swich to speakers the person i speak can't here me...if i switch back he can here me again. I don't know what is the problem i don't think that are two microfhones one for speakers mode and one for normal mode...Maybe a software problem but i wipe and flash another rom and kernel i tryed 2 or 3 roms and kernel and i have the same issue. Now i'm on AOKP B32 with Franco Kernel 135. Anyone have this problem?
Click to expand...
Click to collapse
I am having the exact problem that you are. I am running a different ROM though, but the same issue.
ddub1 said:
I am having the exact problem that you are. I am running a different ROM though, but the same issue.
Click to expand...
Click to collapse
Have you solve your problem?
can't install the audiojack.apk because I'm still on Android 4.0.2 and min SKD is 15, could anybody port it to sdk 14?
Melhouse said:
See attachment for source, I also added a compiled apk file in the zip-file. You can open the project in Eclipse if you want.
Click to expand...
Click to collapse
Worked for me on Verizon GN. Verizon already has a replacement on the way... guess I should've done more extensive searching for a fix first!
Spoke too soon. Seems as though the screen doesn't shut off while I am on a call. Guess I'll give the replacement a try after all.

[Q] which app does the pop up in notification page when headphones are plugged in?

Recently rooted my tab and while following a list of bloatware to freeze, I have frozen this app that I'm unsure of the name that I actually make use of this feature.
It's the one when headphones are plugged in, the apps that associated with headphones will be shown in the notification page.
Anyone know which is it?
bruiselee said:
Recently rooted my tab and while following a list of bloatware to freeze, I have frozen this app that I'm unsure of the name that I actually make use of this feature.
It's the one when headphones are plugged in, the apps that associated with headphones will be shown in the notification page.
Anyone know which is it?
Click to expand...
Click to collapse
Have you tried going to settings/display/notification panel and activate or turn on recommended apps?
filchi756 said:
Have you tried going to settings/display/notification panel and activate or turn on recommended apps?
Click to expand...
Click to collapse
Yeah it is on.
Was working till I played with freezing those bloatware, but it seems you know what feature I'm talking about, do you know which app does this?
Im almost positive its Sapamonitor
I think it is PageBuddyNotiSvc.
Thanks it is the page buddy
bruiselee said:
Yeah it is on.
Was working till I played with freezing those bloatware, but it seems you know what feature I'm talking about, do you know which app does this?
Click to expand...
Click to collapse
Ah! you already fix your problem so no need for me to answer.Glad someone help you.

Sound cutting out

Has anyone found a fix for the sound cutting out after a few seconds of a video or game? I have tried the soubdabout app, Turing the USB option off, disable Power save.. Still happening..
Sent from my SAMSUNG-SM-G891A using Tapatalk
I have the same issue sometimes, I've read around the web and it seems to be a mix of software and hardware related, I read a guy suggest removing and putting back the case (in case you have one) and I did that and the sound came back, haven't had the issue again.
Dakotahorse said:
Has anyone found a fix for the sound cutting out after a few seconds of a video or game? I have tried the soubdabout app, Turing the USB option off, disable Power save.. Still happening..
Sent from my SAMSUNG-SM-G891A using Tapatalk
Click to expand...
Click to collapse
hudtwalcker said:
I have the same issue sometimes, I've read around the web and it seems to be a mix of software and hardware related, I read a guy suggest removing and putting back the case (in case you have one) and I did that and the sound came back, haven't had the issue again.
Click to expand...
Click to collapse
Hmm, I keep mine out of a case,.. Yeah I'm not sure what it is, it's a 50/50 between some say software and some say hardware. I would asume that software would of been fixed by now, either Samsung or 3rd party
Sent from my SAMSUNG-SM-G891A using Tapatalk
So I found a solution for the issue in my case, it does seem to be software but it's really weird cause the issue continues in any firmware, it started when I was on 6.0.1 PI2, then I flashed Nougat and had the same problem (I hated it and battery drain was killing me) I went back to 6.0 and changed to the PK2 version and the issue continued, it was really weird cause it would cut out in audio messages, games but not music, I also tried every single suggestion on every forum and post I could find EXCEPT the Soundabout app, today I gave up, installed soundabout, selected media to speakers and bam, problem solved, I still need further testing, but it seems ok for now, keep in mind that I also have "prevent USB audio routing" on and "Easy Mute" off.
Dakotahorse said:
Hmm, I keep mine out of a case,.. Yeah I'm not sure what it is, it's a 50/50 between some say software and some say hardware. I would asume that software would of been fixed by now, either Samsung or 3rd party
Sent from my SAMSUNG-SM-G891A using Tapatalk
Click to expand...
Click to collapse
Im trying the soundabout app now, I orginally had it set to automatic and was still having the issue, now I set it to speaker and so far so good.
as this worked for me but idk about others... I was told to remove all paired bluetooth devices (on/off doesnt matter) then go to settings>connections>more connection settings>nearby device scanning then turn off... worked for me... (sorry for zombifying an old post but as this is still current with mine and many devices i decided to help)
samsung galaxy s7
Hi. I drop my boyfriend phone today and the volume cut it off for a while. It's that because I drop it off? Or because of the headphones that I had it in...because after I took the headphones off its works but after starts and go again? Pleasee helppp....
Andra1997 said:
Hi. I drop my boyfriend phone today and the volume cut it off for a while. It's that because I drop it off? Or because of the headphones that I had it in...because after I took the headphones off its works but after starts and go again? Pleasee helppp....
Click to expand...
Click to collapse
Is anything still wrong? Or does the sound work both with and without headphones?
Hi. I dropped my phone and have the same problem now. Did you get any useful help?

Microphone problem

Hello guys i have a pixel 2 xl and it has a microphone problem. It doesn't work except for "Playing now" I don't have the warranty... So guys do you think if i change the charging port and the microphone it will work?
Thanks
sabi95190 said:
Hello guys i have a pixel 2 xl and it has a microphone problem. It doesn't work except for "Playing now" I don't have the warranty... So guys do you think if i change the charging port and the microphone it will work?
Thanks
Click to expand...
Click to collapse
That happened to me way back when as well.
I would bet dollars to donuts that you have another app that isnt giving up the mic.
It happened to me when I had the soundhound quick identify widget running.
Once I got rid of soundhound I was fine.
Being that it is functionality and not the hardware as you have not included that you have issues with phone calls maybe go through your apps and remove anything that might be mic intensive?
parakleet said:
That happened to me way back when as well.
I would bet dollars to donuts that you have another app that isnt giving up the mic.
It happened to me when I had the soundhound quick identify widget running.
Once I got rid of soundhound I was fine.
Being that it is functionality and not the hardware as you have not included that you have issues with phone calls maybe go through your apps and remove anything that might be mic intensive?
Click to expand...
Click to collapse
Unfortunately i tried factory reset and safe mode too nothing changes...
sabi95190 said:
Hello guys i have a pixel 2 xl and it has a microphone problem. It doesn't work except for "Playing now" I don't have the warranty... So guys do you think if i change the charging port and the microphone it will work?
Thanks
Click to expand...
Click to collapse
Mine was doing that too before moving to Pie. Sounds strange, but the fix was to blow hard into the speakers. Then the phone 'saw' the microphone.
Since moving to Pie, I haven't had an issue.
MrBrady said:
Mine was doing that too before moving to Pie. Sounds strange, but the fix was to blow hard into the speakers. Then the phone 'saw' the microphone.
Since moving to Pie, I haven't had an issue.
Click to expand...
Click to collapse
Tried this nothing changes.. Thanks
I changed charging port and the issue is same...
Looks like I am in the bad mic club too. I have been running Q for a couple of weeks, and the only permission I have granted for mic is phone and messages. Any fix for this when you are out of warranty?
Update, not out of warranty, and Google is going to rma the phone. :laugh:

Categories

Resources