[GUIDE][HOW TO]Edit Earphones Connected
I don't know if others are having this problem, but many of the screen shots I took don't load at first. Try a few refreshes, it should make the how to easier to follow.
So I only recently tried this out. I haven't found any glaring issues with it, but a backup is recommended just in case. No warranty, I'm not responsible if somehow this breaks/bricks your phone, causes your phone to not dial during an emergency, etc.
Also I didn't really proofread this as I don't have a large amount of time available, so sorry for any dumb grammar errors. I'll look it over eventually.
I didn't like the choices that Samsung provided in the Earphones Connected options for the notification drop down. Here is example of the stock:
My original hope was to remove it completely, but I wasn't successful with my first attempts. Instead I found that I could edit the SQLite database contained within. This allows one to add custom applications as they see fit.
If you want to remove it completely:
Originally Posted by XInSaNeFartX
freezing the contextaware service gets rid of it showing from the notifications at all
Whoever figured this out to turn it off completely we can throw your name up here, as XInSaNeFartX claims he read it somewhere else on here. Just let me know and I'll give credit.
Galaxy S3 with stock or near stock firmware (CM9/CM10 will won't have Earphones Connected options to my knowledge)
SQLite Editor: https://play.google.com/store/apps/d...ware.sqleditor
Free version doesn't seem to work. Try if you insist:
(Free version SQLite editor, thanks eschelon
It appears the free one is a version behind. 1.4.1, maybe they will update it eventually.
Where the pay for app is 1.5
1.5 had some ICS compatibility added..
You should get a screen like this:
Tap "TouchWiz home"
Then tap "launcher.db"
Then tap "appOrder" ...
This should bring you to the SQLite table for your app drawer. This will list the info we need for launching the app of you choosing. For this example we will use Google Maps as our app of choice. The screen should like similar to this, (a jumbled mess):
From here you want to hit the menu button and select "Set Filter
Type in maps, and click ok:
Now you will have a bit more manageable table. Press and hold on maps until you get this pop up and select "Edit Record".
Scroll down and copy the "componentName" data:
Press back until you get to the database lists again. Then tap the "ContextAwareService"
Tap "logDatabase.db" ...
Then tap "appLogTable"
side note: sqlite_sequence determines what number the next entry will be in the table. This may be necessary to know in case there are too many apps in the table and the ones you try to add don't show on the screen. Also if I remember right setting this to 0 will reset you to default applications and clear your changes, although it doesn't always fix problems with crashes if you experience them. I would still do a nandroid and/or titanium backup just in case
You should now have a screen like this: (you may notice google play is already on my list, ignore that)
Press the menu button and select "New Record"
You can long press the other entries and delete them as you please if there are particular ones you don't want listed. I'd recommend at least screen shot before doing so.
I wouldn't actually do this, as I think I found a more stable work around for unwanted apps: See here
Warning a lot of people are gettings this error on this step:"Record creation failed-unable to open database file"
I am unaware of the cause or how to fix it as of yet. I am using the paid for version myself, so I don't know if that makes some sort of difference. I would doubt that it does. Also I am on the Bean rom
Please post if you have failure or success and what rom you are using as well as if you used the free or paid version of the app.
Now paste the earlier copied text into the "activity_name" section.
Paste the earlier copied text up to the / in the "pkg_name" section (See the screen shot for example)
The last field "exec_freq_with_headset" seems to keep track of how many times you launch the app through the notification menu. So far it seems to order the most frequently used on the left, and the lest frequently used on the right. Although you shouldn't need to add any number there as it will default to 0. This should better explain the "exec_freq_with_headset"
Plug in some headphones and see what it looks like:
Thanks for the idea:
Here is my original development thread, if anyone cares: