Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,114 Members 38,323 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 13
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:	696
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, 73 views)
File Type: apk SystemUI.apk - [Click for QR Code] (3.99 MB, 45 views)
The Following 6 Users Say Thank You to croxray For This Useful Post: [ Click to Expand ]
 
asia559571
Old
#2  
asia559571's Avatar
Member
Thanks Meter 4
Posts: 66
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
Recognized Contributor
Thanks Meter 2,421
Posts: 2,190
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 13
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 13
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
Recognized Contributor
Thanks Meter 2,421
Posts: 2,190
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: 66
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, 4 views)
File Type: zip SecSettings.zip - [Click for QR Code] (13.47 MB, 6 views)
 
croxray
Old
#8  
Junior Member - OP
Thanks Meter 13
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: 66
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, 4 views)
File Type: rar SystemUI.rar - [Click for QR Code] (361.4 KB, 4 views)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


[OTA] Nvidia Shield Tablet Receives its First Update

The Nvidia Shield Tabletis the latest toy from one of the largest desktop graphics … more

Quick Control Panel Updated, Adds Notification Support

As some of you may remember, earlier this year we spoke about Quick Control Panel by … more

Narrate Makes Note Taking Efficient and Beautiful

Technology has put life on the fast track. Whether its travelling to multiple places or … more

Android App Review: How to Speed Up Your Android Phone – XDA Developer TV

Is your Android device running slow? Is your Android device … more