Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,791 Members 47,264 Now Online
XDA Developers Android and Mobile Development Forum

[MOD]Enable Flashlight Toggle - Stock NB4 - 4.4.2

Tip us?
 
EeeK
Old
#51  
EeeK's Avatar
Member
Thanks Meter 3
Posts: 64
Join Date: Nov 2011
Just got my note 3, does this need to be rooted?
 

My Phone History
2014 - Samsung Galaxy Note 3
2010 - Apple iPhone 4
2007 - Apple iPhone
2005 - Sony Ericsson W800i
2000 - Panasonic GD92

 
Androidwarrior
Old
(Last edited by Androidwarrior; 2nd June 2014 at 09:40 PM.)
#52  
Androidwarrior's Avatar
Senior Member
Thanks Meter 31
Posts: 157
Join Date: Apr 2014
Will this work for the lastest sprint nc5 update?

Sent from my SM-N900P using XDA Premium 4 mobile app
 
imdatslaya
Old
#53  
imdatslaya's Avatar
Member
Thanks Meter 3
Posts: 85
Join Date: Oct 2010
Location: Florida

 
DONATE TO ME
I've been trying to do this on Dynamic Kat 4.0 with no luck. Can anyone help?

Sent from my SM-N900A using Tapatalk
 
EeeK
Old
#54  
EeeK's Avatar
Member
Thanks Meter 3
Posts: 64
Join Date: Nov 2011
Sorry noob here with a note 3 just rooted with towelroot. How do I flash the 2 zip files?
 

My Phone History
2014 - Samsung Galaxy Note 3
2010 - Apple iPhone 4
2007 - Apple iPhone
2005 - Sony Ericsson W800i
2000 - Panasonic GD92

 
padre629
Old
#55  
padre629's Avatar
Senior Member
Thanks Meter 21
Posts: 170
Join Date: Mar 2013
Location: Cali, Colombia
Quote:
Originally Posted by EeeK View Post
Sorry noob here with a note 3 just rooted with towelroot. How do I flash the 2 zip files?
Simple.

1. Put both files (http://d-h.st/b3n and http://d-h.st/PKx) into your sdcard.
2. Reboot into your custom recovery.
3. Make a NANDroid backup (Backup'n'restore / Backup)
4. Flash first file (flashlight_toggle_nb4_stock_part1), then second file (flashlight_toggle_enable_part2), both at "install .zip from sdcard" option.
5. Reboot system
6. Open Root Explorer / ES Explorer and go to "/system/priv-app" directory and delete these files: SystemUI.odex and SecSettings.odex
7. Reboot system
8. ENJOY!!

Press Thanks if this was useful!

---------- Post added at 01:26 PM ---------- Previous post was at 12:41 PM ----------

Excellent and great post my dear OP.
However, can you make the flashlight a bit brigther? E.g. like some third party apps make?

Moreover I've added some toggles to settings.db, located at "/data/data/com.android.providers.settings/databases/settings.db", this can be edit with "SQL Editor" app.
Append to register: MobileData; (for mobile data), WiFiHotspot; (to enable wifi hotspot)

How do I add Brightness and Screen Timeout toggles? which "commands" do I use? I'll edit this post when I found them!

Some suggestion: delete automatically in second script the SystemUI.odex and SecSettings.odex files, in order to avoid possible hand-errors.
Thanks, great post.

My daily driver and 'partner' Samsung Galaxy Note III SM-N900T
Previous: HTC Sensation 4G, Samsung Galaxy Blaze 4G, HTC MyTouch 4G, Samsung Galaxy SII SGH-T989


Android Ver.: 4.4.2
ROM: Stock!
Kernel: Stock!
Recovery: PhilZ Touch 6.41.6
Baseband: N900TUVUCNB4
 
bluntex
Old
#56  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jun 2007
Default Mobile Data Flashable

Quote:
Originally Posted by antiochasylum View Post
Those are already there, you just need to add them to the settings.db with an sqlite editor, as you can see from the screenshots. Mobile data is already enabled for me

I suppose I could add it to the second part of the flashable zip. Where it enables mobile data and flashlight.

can put the mobile toggle into a flashable file please
 
chispas109
Old
#57  
Senior Member
Thanks Meter 174
Posts: 601
Join Date: Dec 2010
I flashed this on my wifes phone. She has fenny stock 1.3 and system ui just keeps crashing. It does not let me do anything but to remove the battery. Any help is appreciAted. Thanks.
 
Austtin
Old
#58  
Austtin's Avatar
Senior Member
Thanks Meter 368
Posts: 537
Join Date: Nov 2013
Location: Buenos Aires

 
DONATE TO ME
I must say something and may be I repost this post on some other threads. Why instead of say hey flash this, tell us how to proceed with the new smali code?
I mean before it was
.parameter "context"

now it's
.param p1, "context" #Landroid/content/context;

many thing has changed like registers(before) now are named as locals.

so this mod is working if you flash as it is, but if you decompile the systemUI you'll face an error on log(or if you extract the FlashlightQuickSettings and push it to your system ui it's showing error), that smali files can't be decompiled, because of the old code (at least happened to me using android tool latest one) I think it's using latest apktool, so I'm gonna check if using an older apktool (not android tool) happens this to me again. Because I wonder how da hell they made this without getting any error on log?? I don't know all the smali language, there's no a guide on web of it too. I know that you can decompile the classes.dex using other tool without the need of apktool. But if you do something like that you can get a systemui fc. so tell us how to proceed please? or are you planning to keep info as a secret??? lol

Tags
flashlight quicktoggle kitkat mod
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes