7th July 2012, 01:26 AM
(Last edited by rickythefox; 14th July 2012 at 11:24 PM .)
Member -
OP
Thanks Meter
180
Posts: 47
Join Date: Jul 2012
Location: Stockholm
[APP]Headphone Shortcuts for SGS3 v0.5
Headphone Shortcuts for SGS3
REQUIRES STOCK-BASED ROM + ROOT + BUSYBOX!
This app allows you to choose which shortcut icons appear in the notification pulldown when earphones or headset is connected.
1.
Unplug your headset .
2. Launch the app and tick the boxes for the apps you want to appear when you connect your headset.
3. Optionally sort selected apps using the "Sort" option on the menu.
4. Quit the app and connect the headset.
APK is attached. Also check out my
Twelve Headphone Shortcuts MOD !
BusyBox:
market link
If you like this app - press the Thanks button and rate the thread 5-stars!
If you like this app and have money to spare - donate a few $$$ to the
WWF Tiger conservation project
I'm new to Android development, so leave feedback! Not working? I'll fix it!
Twitter: @rickythefox
The Following 127 Users Say Thank You to rickythefox For This Useful Post: [ Click to Expand ]
6thEnvy (9th July 2012),
a9402169 (9th July 2012),
abelle_abelle (21st November 2012),
Abhilabhila (27th January 2013),
ALIRAFAAT (5th December 2012),
alonso444 (31st December 2012),
anapospastos (13th August 2012),
anishtan32 (25th November 2012),
apen83 (14th January 2013),
arfanvilla (6th January 2013),
atarisoul (21st January 2013),
BAMAToNE (9th August 2012),
Bizdady (25th July 2012),
bjrmd (19th December 2012),
Blackwatch (28th October 2012),
bordikun (24th October 2012),
bradleyw801 (23rd November 2012),
Brosa (14th July 2012),
can_kat (7th December 2012),
cgvelmax (10th July 2012),
chavocarlos (27th September 2012),
Chillz88 (15th July 2012),
Chris_84 (12th December 2012),
damasta22 (15th July 2012),
dergago (25th July 2012),
disclaimernotice (24th January 2013),
djzero86 (11th November 2012),
DontHaveACLue (14th July 2012),
dvaderx (5th September 2012),
eternalmay (22nd September 2012),
EViollet (27th September 2012),
FadeFx (10th July 2012),
ficti0n851 (8th July 2012),
fiife (22nd November 2012),
FitChicago (2nd December 2012),
floyd0815 (8th July 2012),
flut1 (8th July 2012),
g4rvd4 (10th July 2012),
Galaxy Latino (7th January 2013),
gianfrancovialli10 (8th July 2012),
GusseG (11th July 2012),
henrybravo (8th July 2012),
hidea (6th December 2012),
Hohey (8th July 2012),
ibmonkey (6th December 2012),
Ikos (9th July 2012),
imilleson (22nd April 2013),
Isadora (8th July 2012),
izalcoman (6th December 2012),
izzibew26 (2nd December 2012),
Jamison904 (8th December 2012),
jayrod88 (9th July 2012),
jde984 (10th July 2012),
jechus (15th January 2013),
jfrm (26th September 2012),
joey_oggie (5th December 2012),
Johnny11 (8th July 2012),
judhas (5th December 2012),
Kafman (8th September 2012),
kavazake (26th December 2012),
kingwp1 (24th July 2012),
KMino (8th July 2012),
Kryten2k35 (21st November 2012),
leaderbuilder (2nd December 2012),
Lear95 (27th February 2013),
LegendM (15th May 2013),
MadMatt89 (25th July 2012),
mamad CJ (20th May 2013),
mamouton (8th December 2012),
meccanikal (10th July 2012),
meekell (28th August 2012),
misterx51 (28th July 2012),
mr.megi (8th December 2012),
myn (12th July 2012),
N'ash (13th August 2012),
nakedninja42 (9th July 2012),
natemiller82 (16th December 2012),
NeoXTC (13th January 2013),
nobnut (9th July 2012),
NZtechfreak (9th July 2012),
ogdobber (25th July 2012),
osmosizzz (22nd November 2012),
paullu (9th July 2012),
Perka (20th December 2012),
phunkycow (8th August 2012),
PIRATA! (20th December 2012),
pizz0wn3d (10th July 2012),
pp085ster (1st February 2013),
Pr1nce5st (11th July 2012),
prenedo (30th July 2012),
qwerty12 (7th July 2012),
rescorbic (6th August 2012),
rhambling (8th July 2012),
robiniosd (8th July 2012),
rockx0 (27th October 2012),
romwhacked (24th November 2012),
rootSU (25th July 2012),
sabreful (11th July 2012),
SB50 (5th February 2013),
sbreen94 (14th January 2013),
scary_master (9th July 2012),
shave999 (9th July 2012),
shokwaav (19th October 2012),
Singa. (12th July 2012),
sinichi21 (8th July 2012),
Skirra (22nd December 2012),
skylar.sutton (6th September 2012),
SlimSnoopOS (14th April 2013),
SnyperTodd (2nd February 2013),
solevi (30th August 2012),
staljin (20th October 2012),
Stryke_the_Orc (2nd December 2012),
sweeds (17th January 2013),
Tamerlan2009 (5th December 2012),
tducote (13th February 2013),
technomom (8th August 2012),
thor.bj (5th October 2012),
thsope (19th May 2013),
tornado06 (7th August 2012),
turboblaz (27th February 2013),
TYA. (12th July 2012),
wallah (8th July 2012),
weisguy (30th July 2012),
Wonderwouldyou (8th December 2012),
zeeshanonlyme (15th January 2013),
zkieal (11th July 2012),
Zoozle86 (9th July 2012)
7th July 2012, 01:36 AM
(Last edited by rickythefox; 14th July 2012 at 11:25 PM .)
Member -
OP
Thanks Meter
180
Posts: 47
Join Date: Jul 2012
Location: Stockholm
Version history
Planned for next version
* Include system apps in the list
* Possibly AOSP-based roms support? (think this will be another app)
v0.5 (11 Jul 2012)
* Maximum of 12 apps, see
Twelve Headphone Shortcuts MOD
* Go read-only when headset is plugged in
v0.4 (9 Jul 2012)
* Allows reordering of apps
* Shows progress bar while loading apps
v0.3 (8 Jul 2012)
* More bugs fixed,
confirmed working
* Notifies if root or busybox are not available
v0.2 (7 Jul 2012)
* Bugfix for crashes
* Checks and notifies if a headset is plugged in
v0.1 (6 Jul 2012)
* Initial release
Twitter: @rickythefox
7th July 2012, 07:43 AM
(Last edited by zodiaxe66; 7th July 2012 at 07:47 AM .)
Senior Member
Thanks Meter
316
Posts: 1,244
Join Date: Nov 2010
Sorry to say but it doesn't work as intended. Nothing appears in dropdown curtain and apps chosen are not saved.maybe add a "save" button in settings.
It's a nice feature,especially when curtain is available when lockscreen is on.
Galaxy SIII
Rom: purelook HD 6.1
base:4.1.2
powered by
Siyah v1.90--
Or adam..hmm...devil kernel,atm..boaffla...damit,i don't know
The Following User Says Thank You to zodiaxe66 For This Useful Post: [ Click to Expand ]
7th July 2012, 07:57 AM
Senior Member
Thanks Meter
246
Posts: 415
Join Date: Jan 2005
Location: Europe/London
Unfortunately clicking "ChatON" (as an example) doesn't seem to do anything and unchecking YouTube causes the app to crash:
Code:
D/[ Headphone Shortcuts ] (10454): App checked: Installed app
D/[ Headphone Shortcuts ] (10454): Name: YouTube
D/[ Headphone Shortcuts ] (10454): Package: com.google.android.youtube
D/[ Headphone Shortcuts ] (10454): Activities: Intent { act=android.intent.acti
on.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.google.and
roid.youtube cmp=com.google.android.youtube/.app.honeycomb.Shell$HomeActivity }
D/[ Headphone Shortcuts ] (10454): Database entry
D/[ Headphone Shortcuts ] (10454): app_id: 6
D/[ Headphone Shortcuts ] (10454): pkg_name: com.google.android.youtube
D/[ Headphone Shortcuts ] (10454): activity_name: com.google.android.youtube/.a
pp.honeycomb.Shell$HomeActivity
D/[ Headphone Shortcuts ] (10454): exec_freq_with_headset: 0
I/SqliteDatabaseCpp(10454): sqlite returned: error code = 14, msg = cannot open
file at line 27502 of [ed759d5a9e], db=/data/data/com_sec_android_contextaware/d
atabases/logDatabase_db
I/SqliteDatabaseCpp(10454): sqlite returned: error code = 14, msg = os_unix.c: o
pen() at line 27502 - "" errno=13 path=/data/data/com.sec.android.contextaware/d
atabases, db=/data/data/com_sec_android_contextaware/databases/logDatabase_db
I/SqliteDatabaseCpp(10454): sqlite returned: error code = 14, msg = statement ab
orts at 17: [DELETE FROM appLogTable WHERE app_id = ?] , db=/data/data/com_sec_a
ndroid_contextaware/databases/logDatabase_db
I/SqliteDatabaseCpp(10454): sqlite returned: error code = 14, msg = cannot open
file at line 27502 of [ed759d5a9e], db=/data/data/com_sec_android_contextaware/d
atabases/logDatabase_db
I/SqliteDatabaseCpp(10454): sqlite returned: error code = 14, msg = os_unix.c: o
pen() at line 27502 - "" errno=13 path=/data/data/com.sec.android.contextaware/d
atabases, db=/data/data/com_sec_android_contextaware/databases/logDatabase_db
D/AndroidRuntime(10454): Shutting down VM
W/dalvikvm(10454): threadid=1: thread exiting with uncaught exception (group=0x4
0c6e1f8)
E/AndroidRuntime(10454): FATAL EXCEPTION: main
E/AndroidRuntime(10454): android.database.sqlite.SQLiteCantOpenDatabaseException
: unable to open database file
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteStatement.nativ
e_executeSql(Native Method)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteStatement.execu
teUpdateDelete(SQLiteStatement.java:90)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteDatabase.execut
eSql(SQLiteDatabase.java:2019)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteDatabase.execSQ
L(SQLiteDatabase.java:1959)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteDatabase.endTra
nsaction(SQLiteDatabase.java:736)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteStatement.relea
seAndUnlock(SQLiteStatement.java:273)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteStatement.execu
teUpdateDelete(SQLiteStatement.java:96)
E/AndroidRuntime(10454): at android.database.sqlite.SQLiteDatabase.delete
(SQLiteDatabase.java:1861)
E/AndroidRuntime(10454): at com.ginzburgconsulting.DbAppHandler.deleteApp
(DbAppHandler.java:158)
E/AndroidRuntime(10454): at com.ginzburgconsulting.AppRepository.removeFr
omDatabase(AppRepository.java:39)
E/AndroidRuntime(10454): at com.ginzburgconsulting.MainActivity.toggleApp
(MainActivity.java:94)
E/AndroidRuntime(10454): at com.ginzburgconsulting.MainActivity.toggleApp
(MainActivity.java:86)
E/AndroidRuntime(10454): at com.ginzburgconsulting.MainActivity$1.onItemC
lick(MainActivity.java:55)
E/AndroidRuntime(10454): at android.widget.AdapterView.performItemClick(A
dapterView.java:292)
E/AndroidRuntime(10454): at android.widget.AbsListView.performItemClick(A
bsListView.java:1359)
E/AndroidRuntime(10454): at android.widget.AbsListView$PerformClick.run(A
bsListView.java:2988)
E/AndroidRuntime(10454): at android.widget.AbsListView$1.run(AbsListView.
java:3783)
E/AndroidRuntime(10454): at android.os.Handler.handleCallback(Handler.jav
a:605)
E/AndroidRuntime(10454): at android.os.Handler.dispatchMessage(Handler.ja
va:92)
E/AndroidRuntime(10454): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(10454): at android.app.ActivityThread.main(ActivityThrea
d.java:4517)
E/AndroidRuntime(10454): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(10454): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime(10454): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:993)
E/AndroidRuntime(10454): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:760)
E/AndroidRuntime(10454): at de.robv.android.xposed.XposedBridge.main(Xpos
edBridge.java:93)
E/AndroidRuntime(10454): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 7671): Force finishing activity com.ginzburgconsulting/.Mai
nActivity
E/android.os.Debug( 7671): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/d
umpstate_app_error
I/dumpstate(10557): begin
Samsung Galaxy SIII:
ROM: Stock 4.1 (don't need any "tweaks" by people who don't know what they're doing)
Bootloader: Never-upgraded XXALF2
Kernel: Perseus
Recovery: TWRP (with exFAT & eMMC bug fixed by using Perseus inside)
Other: JKay Deluxe Framework & Xposed
The Following User Says Thank You to qwerty12 For This Useful Post: [ Click to Expand ]
7th July 2012, 07:59 AM
(Last edited by orlando89; 7th August 2012 at 02:27 AM .)
Junior Member
Thanks Meter
1
Posts: 15
Join Date: Jun 2012
7th July 2012, 09:09 AM
Senior Member
Thanks Meter
709
Posts: 2,191
Join Date: Sep 2008
Quote:
Originally Posted by
qwerty12
Unfortunately clicking "ChatON" (as an example) doesn't seem to do anything and unchecking YouTube causes the app to crash:
Same result here.
Twitter: @nztechfreak
Blogs: androidnz.net, blog.clove.co.uk
Facebook:
http://goo.gl/baZHQ
7th July 2012, 12:10 PM
(Last edited by rickythefox; 7th July 2012 at 12:32 PM .)
Member -
OP
Thanks Meter
180
Posts: 47
Join Date: Jul 2012
Location: Stockholm
Quote:
Originally Posted by
qwerty12
Unfortunately clicking "ChatON" (as an example) doesn't seem to do anything and unchecking YouTube causes the app to crash:
Thanks for the logcat! Some questions:
* Try restarting the phone. Is ChatON there now?
* When you run this app, are any of the apps in the list that appears checked?
* Can you please try running the app with the headphones unplugged and see if you get different results?
* If possible can you do:
Code:
adb shell ls -l /data/data/com.sec.android.contextaware/databases/
and post me the results?
Cheers!
The Following User Says Thank You to rickythefox For This Useful Post: [ Click to Expand ]
7th July 2012, 12:17 PM
Member -
OP
Thanks Meter
180
Posts: 47
Join Date: Jul 2012
Location: Stockholm
Quote:
Originally Posted by
zodiaxe66
Sorry to say but it doesn't work as intended. Nothing appears in dropdown curtain and apps chosen are not saved.maybe add a "save" button in settings.
It's a nice feature,especially when curtain is available when lockscreen is on.
Can you please post logcat?
7th July 2012, 12:24 PM
Senior Member
Thanks Meter
246
Posts: 415
Join Date: Jan 2005
Location: Europe/London
(I would hit the Thanks button, but it seems I'm limited to 8 times a day :\)
Quote:
Originally Posted by
rickythefox
Thanks for the logcat! Some questions:
* When you run this app, are any of the apps in the list that appears checked?
Yep, your app has marked all the apps that are shown by the status menu (FM Radio, Music Player, Video Player, Voice Recorder & YouTube)
Quote:
* Can you please try running the app with the headphones unplugged and see if you get different results?
Exactly the same - your app still shows the above as marked
Quote:
* If possible can you do:
Code:
adb shell ls /data/data/com.sec.android.contextaware/databases/
and post me the results?
Code:
logDatabase.db
logDatabase.db-journal
(This is on the XXBLFB firmware)
Thanks!
Samsung Galaxy SIII:
ROM: Stock 4.1 (don't need any "tweaks" by people who don't know what they're doing)
Bootloader: Never-upgraded XXALF2
Kernel: Perseus
Recovery: TWRP (with exFAT & eMMC bug fixed by using Perseus inside)
Other: JKay Deluxe Framework & Xposed
The Following User Says Thank You to qwerty12 For This Useful Post: [ Click to Expand ]
7th July 2012, 12:40 PM
Member -
OP
Thanks Meter
180
Posts: 47
Join Date: Jul 2012
Location: Stockholm
Weird... Will have a look and get back to you!
Also you were too fast to answer, I was still editing the last post coz the command was not complete.
Can you run this for me please:
Code:
adb shell ls -l /data/data/com.sec.android.contextaware/databases/
Thread Tools
Search this Thread
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Go to top of page...
Most Thanked In This Thread
4 Ok, I now know what the
problem is. A … 3 v0.3 is out!
Should fix
the annoying … 2 (quote) I should have come
back to edit … 2 v0.4 released!
* sorting
of apps
* … 1 For those that don't know
the a app does …