Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,899 Members 49,634 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Add Flashlight LED Quick Toggle to SystemUI

Tip us?
 
croxray
Old
(Last edited by croxray; 11th July 2014 at 06:34 PM.) Reason: changing title
#1  
Junior Member - OP
Thanks Meter 12
Posts: 13
Join Date: May 2014
Default [MOD] Add Flashlight LED Quick Toggle to SystemUI

NOTE: I am not able to test this (because I use S5 mod) but I have modded my SystemUI the same way as I did this so it should work. This will work only on DEODEXED tw-based roms and stock (It works on Omega v31). I am not responsible for any damages you do to your phone! It would be much appreciated if someone could test it and take a screenshot of it and upload it here (the screenshot provided is from my phone but with s5 mod)
You will need SQLite Editor: https://play.google.com/store/apps/d...ware.sqleditor
p.s take a backup before you do anything!!
Torch app is not my work.

Click image for larger version

Name:	Screenshot_2014-07-01-03-08-51.png
Views:	529
Size:	192.8 KB
ID:	2844750

How to install:
-Place SystemUI.apk and SecSettings.apk in /system/priv-app/ and set right permissions (rw-r-r)
-Place Torch.apk in /system/app/ and set right permissions (rw-r-r)
-Open SqLite Editor and navigate to:/data/data/com.android.providers.settings/databases/ and open settings.db
-Press the "system" line and search for "notification_panel_active_app_list" and highlight it; then press the edit icon at the top
-In the "value" field add ";Flashlight" , then Save and close the program
-Reboot your device. Now you should have the flashlight toggle in the notification panel.

SecSettings.apk download: https://www.dropbox.com/s/7q93qo3zd4...ecSettings.apk
Attached Files
File Type: apk Torch.apk - [Click for QR Code] (164.5 KB, 48 views)
File Type: apk SystemUI.apk - [Click for QR Code] (3.99 MB, 24 views)
The Following 5 Users Say Thank You to croxray For This Useful Post: [ Click to Expand ]
 
asia559571
Old
#2  
asia559571's Avatar
Member
Thanks Meter 4
Posts: 64
Join Date: Jul 2013
Hi croxray! Really like the idea of this mod but I'm on stock S4 i9500, Odexed 4.4.2 XXUFNB3. I want to keep the SystemUI as is but have your Flashlight Quick Toggle, would this be possible? if so will it help if I sent you a copy of my SystemUI.apk to modify. Thanks in advance & Kind Regards to You
 
AL_IRAQI
Old
#3  
AL_IRAQI's Avatar
Senior Member
Thanks Meter 2125
Posts: 2,023
Join Date: May 2012
Location: Baghdad
@croxray can you please give me the method
i want to keep my systemui and secsettings

My Roms
Prismô Barebone
Prismô ColorOS Rom


Device:Galaxy S4 Black Edition i9500
Rom:Prismô Barebone V8.5


Please Dont Send PM to ask about rom problem or bug
Post it in rom thread
 
croxray
Old
#4  
Junior Member - OP
Thanks Meter 12
Posts: 13
Join Date: May 2014
Quote:
Originally Posted by asia559571 View Post
Hi croxray! Really like the idea of this mod but I'm on stock S4 i9500, Odexed 4.4.2 XXUFNB3. I want to keep the SystemUI as is but have your Flashlight Quick Toggle, would this be possible? if so will it help if I sent you a copy of my SystemUI.apk to modify. Thanks in advance & Kind Regards to You
Send me your secsettings.apk and systemui.apk and i will modify it for you tomorrow in the evening.
The Following User Says Thank You to croxray For This Useful Post: [ Click to Expand ]
 
croxray
Old
#5  
Junior Member - OP
Thanks Meter 12
Posts: 13
Join Date: May 2014
Quote:
Originally Posted by AL_IRAQI View Post
@croxray can you please give me the method
i want to keep my systemui and secsettings
Yes I will send you the complete method tomorow in the evening because my girlfriend is sleeping over tonight so I wont have any time. So tomorrow I will contact you
The Following User Says Thank You to croxray For This Useful Post: [ Click to Expand ]
 
AL_IRAQI
Old
#6  
AL_IRAQI's Avatar
Senior Member
Thanks Meter 2125
Posts: 2,023
Join Date: May 2012
Location: Baghdad
Quote:
Originally Posted by croxray View Post
Yes I will send you the complete method tomorow in the evening because my girlfriend is sleeping over tonight so I wont have any time. So tomorrow I will contact you
ok, thanks

My Roms
Prismô Barebone
Prismô ColorOS Rom


Device:Galaxy S4 Black Edition i9500
Rom:Prismô Barebone V8.5


Please Dont Send PM to ask about rom problem or bug
Post it in rom thread
 
asia559571
Old
#7  
asia559571's Avatar
Member
Thanks Meter 4
Posts: 64
Join Date: Jul 2013
Default for the attention o croxray 1

Quote:
Originally Posted by croxray View Post
Send me your secsettings.apk and systemui.apk and i will modify it for you tomorrow in the evening.
NICE ONE! Croxray and Thankyou. Will come in two seperate parts.
Attached Files
File Type: rar SystemUI.rar - [Click for QR Code] (1.75 MB, 2 views)
File Type: zip SecSettings.zip - [Click for QR Code] (13.47 MB, 2 views)
 
croxray
Old
#8  
Junior Member - OP
Thanks Meter 12
Posts: 13
Join Date: May 2014
Quote:
Originally Posted by asia559571 View Post
NICE ONE! Croxray and Thankyou. Will come in two seperate parts.
Actually I will need .odex files from those two apps too.
 
asia559571
Old
#9  
asia559571's Avatar
Member
Thanks Meter 4
Posts: 64
Join Date: Jul 2013
Default Odex Files

Quote:
Originally Posted by croxray View Post
Actually I will need .odex files from those two apps too.
Hi Croxray! attached are the Odex files you requested, also a quick question! can I use this mod with the stock flashlight?
Kind Regards
Attached Files
File Type: rar SecSettings.rar - [Click for QR Code] (1.65 MB, 0 views)
File Type: rar SystemUI.rar - [Click for QR Code] (361.4 KB, 0 views)

Thread Tools
Display Modes


XDA PORTAL POSTS

TWRP Now Available for the LG G Watch and Samsung Gear Live

Over the past week or so, we’ve talkedquite a bit about the first … more

Slate Calendar Helps You Organize Your Life

Without calendars in some form or another, most of our lives would be utter chaos. Unless you are … more

Shane Francis to Talk Android, Robotics, and Vision at XDA:DevCon 2014

Our international xda:devcon 14in Manchester, UK on the weekend of … more

LG G Watch Tool is a Toolkit all Owners Need

The LG G Watch is one of the first two devices hitting the market rocking the highly anticipated … more