Post Reply

[GUIDE][HOW TO]Edit Earphones Connected

19th July 2012, 02:19 AM   |  #1  
OP Member
Thanks Meter: 27
 
87 posts
Join Date:Joined: May 2010
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:
Quote:
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.

Quote:
Originally Posted by MadMatt89

Uhm don't know if it works for Verizon but your Tutorial also worked for my International i9300 so I will share this:

http://forum.xda-developers.com/show....php?t=1756355

He created an easy to use app for this

Cheers

Requirements:
Galaxy S3 with stock or near stock firmware (CM9/CM10 will won't have Earphones Connected options to my knowledge)
Root Access
SQLite Editor: https://play.google.com/store/apps/d...ware.sqleditor

Free version doesn't seem to work. Try if you insist:
SQLite Editor(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..

Step 1)
Open SQLite
You should get a screen like this:



Step 2)
Tap "TouchWiz home"
Then tap "launcher.db"
Then tap "appOrder" ...


Step 3)
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:


Step 4)
Now you will have a bit more manageable table. Press and hold on maps until you get this pop up and select "Edit Record".


Step 5)
Scroll down and copy the "componentName" data:



Step 6)
Press back until you get to the database lists again. Then tap the "ContextAwareService"



Step 7)
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


Step 8)
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"
Side note: 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.

Step 9)
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)
Tap "save"

side note: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"

Woot Done:
Plug in some headphones and see what it looks like:


Thanks for the idea:
http://www.s3forums.com/forum/galaxy...-reminder.html

Here is my original development thread, if anyone cares:
http://forum.xda-developers.com/show....php?t=1771301
Last edited by xCaldazar; 25th July 2012 at 05:40 PM. Reason: updated some info
The Following 8 Users Say Thank You to xCaldazar For This Useful Post: [ View ]
19th July 2012, 02:20 AM   |  #2  
OP Member
Thanks Meter: 27
 
87 posts
Join Date:Joined: May 2010
<Reserved>
19th July 2012, 02:30 AM   |  #3  
Senior Member
Thanks Meter: 34
 
271 posts
Join Date:Joined: Jun 2010
More
Strange, it worked for Play Music, but not for Pandora or XiiaLite. Said something about not being able to save the database.
19th July 2012, 02:35 AM   |  #4  
OP Member
Thanks Meter: 27
 
87 posts
Join Date:Joined: May 2010
Quote:
Originally Posted by minmongoblin

Strange, it worked for Play Music, but not for Pandora or XiiaLite. Said something about not being able to save the database.

Were the headphones still plugged in? Maybe it was still accessing the database when you attempted to edit it?
Another thought is to close out SQLite Editor and reopen it, maybe once you used Play Music it incremented the "exec_freq_with_headset" field and the editor didn't see the update yet.
19th July 2012, 02:48 AM   |  #5  
Senior Member
Thanks Meter: 34
 
271 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by xCaldazar

Were the headphones still plugged in? Maybe it was still accessing the database when you attempted to edit it?
Another thought is to close out SQLite Editor and reopen it, maybe once you used Play Music it incremented the "exec_freq_with_headset" field and the editor didn't see the update yet.

I didn't plug the headphones in at all.

I will now try again after exiting the program completely

EDIT: Nope, still says "unable to open database file". The text fields that I copy from those apps are noticeably smaller than the one for Play Music....something to do with it?

---------- Post added at 08:48 PM ---------- Previous post was at 08:42 PM ----------

Interesting...if I try to DELETE one of the entries, it also says "Unable to open database file"...there's a connection here that I'm not seeing
Last edited by minmongoblin; 19th July 2012 at 02:46 AM. Reason: Correction
19th July 2012, 03:06 AM   |  #6  
OP Member
Thanks Meter: 27
 
87 posts
Join Date:Joined: May 2010
Quote:
Originally Posted by minmongoblin

I didn't plug the headphones in at all.

I will now try again after exiting the program completely

EDIT: Nope, still says "unable to open database file". The text fields that I copy from those apps are noticeably smaller than the one for Play Music....something to do with it?

---------- Post added at 08:48 PM ---------- Previous post was at 08:42 PM ----------

Interesting...if I try to DELETE one of the entries, it also says "Unable to open database file"...there's a connection here that I'm not seeing

I'll try downloading those apps, see if I have any similar issues.
Working fine for me. I can post a screen shot later. I gotta run some errands.




Only tried Pandora, but it worked just fine. I have yet to run into the same problem with the database files not opening. Maybe a reboot or clear cache/dalvik cache. Those are my usual attempts when I feel stumped.
Last edited by xCaldazar; 19th July 2012 at 06:15 AM. Reason: ss
19th July 2012, 03:15 AM   |  #7  
Cvballa3g0's Avatar
Senior Member
Flag Lakeland
Thanks Meter: 79
 
135 posts
Join Date:Joined: Jul 2011
More
Looking forward to this. Will try this tomorrow

Sent from my locked Verizon Samsung Galaxy S III
19th July 2012, 04:27 AM   |  #8  
d1ez3's Avatar
Senior Member
Flag Orlando, Florida
Thanks Meter: 125
 
912 posts
Join Date:Joined: Mar 2011
More
Thank you, will try this tomorrow and comment (edit) on if it worked for me.
19th July 2012, 04:47 AM   |  #9  
eschelon's Avatar
Recognized Developer
Thanks Meter: 8,965
 
1,388 posts
Join Date:Joined: Jun 2009
Donate to Me
Quote:
Originally Posted by xCaldazar

SQLite Editor $2.99 (I am not aware of any free SQLite editor)

Free version of SQLite Editor available here:

http://code.google.com/p/xdroidx/dow...20Editor-9.apk
19th July 2012, 05:49 AM   |  #10  
radiohead14's Avatar
Senior Member
NYC
Thanks Meter: 40
 
648 posts
Join Date:Joined: Sep 2010
nice. was just in the subway today wondering if there was a way to change those, since i would like to add spotify and poweramp in the list. thanks!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Verizon Galaxy S III Android Development by ThreadRank