[MOD]Twelve Headphone Shortcuts v0.1

rickythefox

Senior Member
Jul 7, 2012
175
314
0
Stockholm
www.ginzburgconsulting.com
Twelve Headphone Shortcuts MOD

REQUIRES ROOT + BUSYBOX!

This mod extends the number of shortcuts that appear on the notification pulldown when headphones are connected to TWELVE shortcuts!
The shortcuts are now placed six in a row instead of the default five. If you add more then six a second row appears.





Mod is attached. Flash using CWM and use my app Headphone Shortcuts for SGS3 to customize the shortcuts.

This is only tested by me, flash only if you know what you are doing!
If possible, backup your /system/app/ContextAware.apk


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! :)
 

Attachments

Last edited:

qwerty12

Senior Member
Jan 21, 2005
451
329
0
(*Europe).London
Can I confirm with you that the important changes are in the app_list_view.xml, ids.xml, public.xml and CANotiView.smali files? (InteractionManager.smali, too, possibly but I haven't looked at it in great detail) I'm asking because I run stock so I like to odex my /system/app APKs and also because Samsung seemed to have made other changes in LFB (I'm guessing your ContextAwareService.apk is from Omega 7)

Thanks
 

rickythefox

Senior Member
Jul 7, 2012
175
314
0
Stockholm
www.ginzburgconsulting.com
Can I confirm with you that the important changes are in the app_list_view.xml, ids.xml, public.xml and CANotiView.smali files? (InteractionManager.smali, too, possibly but I haven't looked at it in great detail) I'm asking because I run stock so I like to odex my /system/app APKs and also because Samsung seemed to have made other changes in LFB (I'm guessing your ContextAwareService.apk is from Omega 7)

Thanks
Thats right. ;) InteractionManager.smali is not touched, everything else you name is modded. The apk is from Omega 7, should probably get the latest one.
 
  • Like
Reactions: qwerty12

zodiaxe66

Senior Member
Nov 19, 2010
1,596
478
0
After bastardizing your changes and removing the other layout folders that are in the LFB version, I can indeed confirm that your work does, well, work very nicely:


Thanks!
You're on cm9, right...if not and you're on stock(custom) rom, how did u get brightness slider on notification bar.
To OP...
Btw. Thanx for the 12 toggle. One request though,could u make the toggles scrollable instead of over/under.
 

qwerty12

Senior Member
Jan 21, 2005
451
329
0
(*Europe).London
You're on cm9, right...if not and you're on stock(custom) rom, how did u get brightness slider on notification bar.
Samsung added it in the XXLFB firmware.

EDIT: If you're using a custom ROM, it may be using the XXALF6 version of SystemUI. (When I've ran APKTool on these SystemUIs, I've always found oddities.)
 
Last edited:

rickythefox

Senior Member
Jul 7, 2012
175
314
0
Stockholm
www.ginzburgconsulting.com
Btw. Thanx for the 12 toggle. One request though,could u make the toggles scrollable instead of over/under.
Doesn't seem possible I'm afraid. The reason for this is that what we get in the notification pulldown when we connect the headset is a kind of notification that uses RemoteViews to render itself. A RemoteViews object is limited to including the following (according to the Android docs here):

FrameLayout
LinearLayout
RelativeLayout
AnalogClock
Button
Chronometer
ImageButton
ImageView
ProgressBar
TextView
ViewFlipper
ListView
GridView
StackView
AdapterViewFlipper

What we would have needed is a HorizontalScrollView, and we don't get that. I think this limitation is in place because dy default swiping a notification to the right clears it so we would have inconsistent behavior.

I GUESS it would be possible to hack the framework somehow, but I don't think I have the time or the energy for that. :(
 
  • Like
Reactions: can_kat

PIRATA!

Senior Member
Dec 6, 2010
2,714
172
0
Hi!
Can some one tell me why the apps I choose to be shown does not stay always in the same position? They some time move left and right and so they don't keep same position in notification menu...

How to fix them definitely??

Sent from my GT-i9300 using TapaTalk2
 

omek07

Senior Member
Oct 15, 2007
754
60
48
Hello. I use the Nova launcher and I don't have the headphones shortcut. Can I enable it with this launcher or with others,? Because if we don't use the Samsung launcher we can't have the headphones shortcut.

Thanks
 

apen83

Senior Member
May 17, 2012
2,246
2,551
0
eau claire
This is confirmed working on jedixp8 for the at&t note2

Edit: by the way this is amazing. Also I used to twrp 2.3.3.1 to flash this
 
Last edited: