yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] babyboy3265:
Ok... Wow... This is crazy I thought its impossible.. Bravo.. Im with iHackers 4.1 and it works.

Problem is that its stronger now than the actual camera flash....

Please make a new version where the cam flash will be as strong.. Pleeeease :D
[Sony Cross-Device General] olokos:
Nope, since notification light works for a really long time and it's too risky.

I will ☺
[Sony Cross-Device General] cyphomatic:
Confirmed NOT working on Z3 compact android 5.0.2. The backlite of the lcd goes bananas.

Although the same parameter can be tinkered in the same file.

So need zips to flash on 5.0.2...

Edit: since you lose recovery, it might be easier to manually change it trough root explorer.
[Sony Cross-Device General] iArvee:
What exact values do you have to change? I'm using the Z2 on LP.
[Sony Cross-Device General] cyphomatic:
system/etc/flashled_calc_parameters.cfg

Parameter:

LED If setting for Torch or video recording (uA).

if_torch_vr = 500000 (or other by preference, extreme = 1500000, max 5min)
[Sony Cross-Device General] ryandxter:
confirmed this still full working on Z2 LP, just push manually to destination folder
[Sony Cross-Device General] Krustnesis:
Working on z3 lollipop, but you have to push it to /etc manually :)
[Sony Cross-Device General] fenchai:
I know this is nooby but how can I compile this file or change the zip file?

If possible I cant to do this on my phone. better yet can you send me tge extreme version file? which contains at least 500000 in vr :| i cant download it.
[Sony Cross-Device General] cyphomatic:
No need for decompiling. Just open as text in root explorer, change the number, save and reboot. Can't get much easier than that.
[Sony Cross-Device General] fenchai:
not sure if i amdoing anything wrong but I cant seem to change text with root explorer and on es file explorer it says i cant be change or saved because it is in a zip file... I amco fused now...

I tried unziping editing and zipping again and it fails to install.
[Sony Cross-Device General] cyphomatic:
I don't know where you are looking..

It's just a cfg-file. Go to the directory 'etc' from your root directory, system to etc. Select the cfg and choose 'open in text editor' ..

There is truly no zipping or decompiling..
[Sony Cross-Device General] cyphomatic:
No decompile..
[Sony Cross-Device General] guybrush2099:
I've noticed medium "torch only" file is different from the medium "raccomanded" one. It sets torch value 50000 instead of 500000. 50000 is too much similar to default (25000). I edited manually the cfg file and now it's identical to medium raccomanded so it's perfect :)

You could do the same if you want boost only the torch
[Sony Cross-Device General] fenchai:
Oh, THanks, went to the directory instead of flashing, how high are you putting it in? I used 1500000 and it was so bright but at the same time, too hot.. so I just went for 1000000. That did the job. What are you using?
[Sony Cross-Device General] cyphomatic:
I'm happy with 500000.
[Sony Cross-Device General] caanda45:
Holy $hit...what a noticeable difference...Z3 6603 Canadian Variant on .77 firmware...Thanks!!!
[Sony Cross-Device General] caanda45:
delete double posted.......
[Sony Cross-Device General] boojay:
Confirmed working on Z3C running rooted stock 5.0.2.

Thanks OP!
[Sony Cross-Device General] aigaming:
Great mod but i would also like to mod flash when taking pics on my z1c;) If you turn the video flashlight on and take pic flash is stronger then normal one shoot flash;) I know you said that it's allready high but clearly it can go higher on z1c for taking photos(torch boost is great) What string i need to modify to get last flash higher when taking photos?thank you in advance;)

ps. Nevermind,fixed it myself,now last flash when taking pic is same intensity as video recorder and torch;)

Tested it for 30+ dark photos,pic's alot brighter then stock's :good:
[Sony Cross-Device General] edhel:
Flashed on Xperia Z3 (D6603), with stock 5.0.2.

It works great!

Thanks
[Sony Cross-Device General] Kinhooow:
working on Xperia Z3 Dual (D6633) with stock Lollipop 5.0.2

Thank you!
[Sony Cross-Device General] kanej2006:
Would this lovely mod work on Z Ultra C6802/C6806? Thanks.
[Sony Cross-Device General] michuroztocz:
Well, if you somehow manage to solder a led flash to Z Ultra... :silly:

Works great on Z1 Compact .242 / LP 5.0.2, thanks!
[Sony Cross-Device General] Amin.HVS:
Great work on z3 dual d6633 android 4.4.4

The bright of torch on my z3 now amazing!

thanks dude...
[Sony Cross-Device General] hamsup1o:
Medium version works great on z3c 4.4.4.
[Sony Cross-Device General] muzab a:
If medium is bright enough

How bright is extreme then? :what:
[Sony Cross-Device General] michuroztocz:
Dunno, but don't want to try - on medium phone gets hot pretty quickly. I am afraid that extreme could brake led.
[Sony Cross-Device General] LLars_PL:
Hey Buddy! Awesome Work! Extreme version is what i like! :D But now changed to 5.0 Lolipop, what about that? Could you port it too? Thanks
[Sony Cross-Device General] coch:
It works on Lollipop too. At least it does for me (Xperia Z3 D6603).
[Sony Cross-Device General] deniz1905:
you can simply follow this path "system/etc/flashled_calc_parameters" to change led power in lollipop if you are afraid of flashing zip that is set for KK.
[Sony Cross-Device General] Zisi911:
guys i am troubled here since i upgraded to lollipop, i noticed that while on kikat taking pictures gave high intesity on the led flash but in lollipop i see it is low, i changed the parameters now according this mod, torch is great, flash on video or using led as torch in the camera app works perfect but when i use the auto option the intesity of the flash led is still same as before( low from lollipop), is this normal and if yes can we change it
[Sony Cross-Device General] Oreltub:
Can someone upload please stock torch for lollipop. 242?
[Sony Cross-Device General] phantnang:
can't download, please upload another host!
[Sony Cross-Device General] the gladiator:
the proposed mod doesn't work for the notification led (z1c); any news/update for the mod concerning only the notification led ?
[Sony Cross-Device General] ice_lander:
+1
[Sony Cross-Device General] Oreltub:
http://xdaforums.com/showthread.php?t=3104778

[Request] upload stock flash file. 242 (SOLVED)

Sent from my D5503
[Sony Cross-Device General] Zisi911:
perfectly working on my c6903, using stock rooted lollipop with locked bootloader, although i didnt flash the zip as i was afraid since it saying its for kitkat(on kikat flashed and worked perfect), i just copied the config file from within the zip in the corresponding file in root/etc. thank you for the mod
[Sony Cross-Device General] whalesplaho:
for LP, zip might not work cos of updater-script......
[Sony Cross-Device General] jbarba76:
im on stock lollipop on z1c, and i think that something was wrong... what package you installed? only torch? torch+led? you used zip or put file directly?

thanks in advance
[Sony Cross-Device General] michuroztocz:
I installed recommended version which is "Medium version - torch, camera, flash, notification LED". Still works without an issue on stock Lollipop.
[Sony Cross-Device General] the gladiator:
Can you confirm that you see a difference for the

notification

led as well?
[Sony Cross-Device General] michuroztocz:
I cannot because there isn't any difference. Sorry if that was misleading, but I always treated this mod as torch LED booster.
[Sony Cross-Device General] domi525:
Does anyone else have this problem on lollipop where your photos don't save properly if flash is enabled? It saves when the torch is enabled, but not when the flash or red eye flash is.
[Sony Cross-Device General] vansmuk:
I have the same problem. LP (existenz y rom) on Z2. Tried flashing, copy/paste to /etc and manually editing the file.

First two break camera (does not save flash photos)

Editing the file with ES text editor, does not apear to change the flash brightness.

Any ideas guys? Anyone got it working on LP?
[Sony Cross-Device General] pedramgolchin:
Any idea? Same problem here
[Sony Cross-Device General] SĐF:
Works without problem on XZ1 5.0.2 (14.5.A.0.270) Rooted with LB.
[Sony Cross-Device General] mcthe1:
can u make a new download like i having prob to get it a mirror oh so thank u 1 more thing do u have a new one 4 the lollipop os
[Sony Cross-Device General] PuffDaddy_d:
This is great info, but for those of you who are using these values, I'd be very concerned about causing damage to the LED. I used an iPhone flashlight to compare the brightness against my Z3C (kitkat) and found that 500000 completely blew away the iPhone's flashlight, but caused the LED to get warm almost immediately. I slowly backed the number down to 100000 and now the output more closely matches the iPhone (which is still 5x better than the stock Z3C setting) and I am far less concerned about causing premature failure of my LED. My personal opinion, don't set the value any higher than 150000 and you'll be happy with the output and the longevity of your LED.
[Sony Cross-Device General] linkazoid:
Confirmed working on Z2 5.1.1
[Sony Cross-Device General] whalesplaho:
+1 too.... confirmed!!!:highfive:
[Sony Cross-Device General] kos25k:
does this work on xperia z1c 5.1.1 ???

Sent from Greece
[Sony Cross-Device General] Frunzdoedel:
Yes! :D
[Sony Cross-Device General] kos25k:
:) :) :)

Sent from Greece

---------- Post added at 07:57 PM ---------- Previous post was at 07:39 PM ----------

Which version to flash???little help please!!z1c 5.1.1

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk

---------- Post added at 07:57 PM ---------- Previous post was at 07:57 PM ----------

Which version to flash???little help please!!z1c 5.1.1

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] Frunzdoedel:
This one, it's not made by me. And always make a bacup before you are flashing.
[Sony Cross-Device General] kos25k:
Thanks dude!flashed wiithout problem!one last question.which zip to flash if i want to revent back to stock led?

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] puddlejumperxxx:
Thanks! Glad I finally found a torch mod for my z3 running lollipop 5.0
[Sony Cross-Device General] kos25k:
Z1c revent to stock (Just in case) LINK???

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] Frunzdoedel:
I told you about a backup for reverting back.

If you didn't then reflash your rom:banghead:
[Sony Cross-Device General] kos25k:
it's ok i will keep it! yesterday i put my phone side to side with my xperia z1 of my friend.When we turned on our flash you had to see his face! hahahahaha :)

Sent from Greece
[Sony Cross-Device General] broky:
at your service master:D
[Sony Cross-Device General] kos25k:
Hahaha!Guys this is so f@@@@@g perfect mod!!!To be honest just now i was thinking if there is problem when you take photo on someone when he looks at the camera! :) :)

Sent from Greece

---------- Post added at 07:27 PM ---------- Previous post was at 07:17 PM ----------

thanks dude now appeared the attachment! it is also combatible with z1c right?

Sent from Greece
[Sony Cross-Device General] broky:
i own Z1C also and i tested it before upload:good:
[Sony Cross-Device General] kos25k:
:) ;) :) i would like to make a donation to you but i am from Greece and paypal is blocked here till now..

Sent from Greece
[Sony Cross-Device General] the gladiator:
I wonder if there is an expert guy around willing to fix the missing part of the original mod: the camera led mod is working but unfortunately the notification led mod is not working in the more recent firmware (KK 157 and LP).

Any help will be more than welcome !!!
[Sony Cross-Device General] RXG9:
What effect does that his have on the LED after using it for a long period of time. Has anyone been using this mod for 1yr straight with no problems? or have people burned out their LED's?
[Sony Cross-Device General] kos25k:
I don't know this.What i know is that a friend of mine with a samsung mobile her led flash stucked (firmware problem) and is open continuously for about a year now!!!!!!!

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] PuffDaddy_d:
The zip files are convenient, but anyone here with root can modify there led parameters in the system file. It only takes a few seconds to find and change these values. Please see the numerous posts in this thread that explain how and you'll be able to make the light as bright or as dim as you wish.
[Sony Cross-Device General] the gladiator:
Thanks for your prompt reply, you're giving me some home although I can confirm you that my z1c is rooted and I messed around quite a lot with the parameters in the zip files.

Just to be sure there isn't a misunderstanding: 1) can you confirm that you're speaking about the notification led and not the camera led ? 2) have you tested the mod on your z3c,

for the notification led part

, and is it working ?

Just in case there is someone that has this notification led mod working could share the details (experia model, firmware and parameters/zip file used) ?
[Sony Cross-Device General] PuffDaddy_d:
I may have misunderstood you originally. I do not know for sure if you can change the notification LED in the same file as the flash led. And now that I think about it, there are apps on the play store that will allow you to adjust the brightness of your front LED. I don't know how much brighter it can get though.
[Sony Cross-Device General] nuclearwire:
can i use this mod on Xperia Z 5.1.1 stock?
[Sony Cross-Device General] broky:
deleted
[Sony Cross-Device General] nuclearwire:
what do you mean deleted?
[Sony Cross-Device General] broky:
i thought you had a Z1 compact,then i realized you have a Z1,so i deleted the post.

anyway if anyone that owns Z1 also not answer your question i suggest to make a back up and give it a try.if something goes wrong you can restore your backup
[Sony Cross-Device General] Gamer4Life:
What is difference between meduim and extreme?

---------- Post added at 09:03 PM ---------- Previous post was at 08:40 PM ----------

Why camera flash is much weaker than torch ?
[Sony Cross-Device General] Gamer4Life:
Which value if i only want to make flash bright when taking photos

I want it ti be same value as meduim torch
[Sony Cross-Device General] olokos:
I'll be releasing torch booster app that would replace this mod really soon. Check my threads from time to time ;)
[Sony Cross-Device General] kos25k:
Will it have option to also boost led when taking photos?(instant led from camera flash)

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] olokos:
It surely will, but first, I'll do just the torch for all devices, then we'll move on to other LED fields ;)
[Sony Cross-Device General] kos25k:
Just something i think now.if we press the flash to open manually (inside camera app) and take a photo,is it stock or boosted the led?

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] anakdayak:
Hi OP can i just flash the torch boost only on Z1 5.1.1?
[Sony Cross-Device General] xalaros10:
For Z1c root 5.0.2 which fille can I use for torch - camera flash and which one for revert stock back?
[Sony Cross-Device General] broky:
check post 232 and 238 in this thread mate
[Sony Cross-Device General] kos25k:
ok guys i finally figured out what is happening! i downloaded the app light meter in my tablet and tested myself.i putted face to face steadly my phone flash to my tablet sensor and tryied all ways.Conclusion:when camera flash is set to auto,led light is less.when is set to always on, the light is same to torch!! :)

Sent from Greece

---------- Post added at 07:17 PM ---------- Previous post was at 07:17 PM ----------

Sent from Greece

---------- Post added at 07:33 PM ---------- Previous post was at 07:17 PM ----------

cause i am not home.. if anyone could test it the same way as me but with the device really steady at distance for example 1 metre from the sensor.. it would be fine for us to know. (just for sure).

Sent from Greece
[Sony Cross-Device General] kos25k:
One picture is taken with auto flash and the other with flash open as torch.(look the huge difference at the indicator.Soo..when we want more light we have to set ad torch.i think is better this way as we have two options.. :)

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] olokos:
Yeah, that's true. That's because just torch is boosted, not the flash, that will change when I'll release an app for that. When? No idea :)
[Sony Cross-Device General] hanumanttaure:
anyone try on z1 5.1.1
[Sony Cross-Device General] kingsasha:
Can I use this on Xperia Z2 5.1.1??
[Sony Cross-Device General] kos25k:
i think yes. can anyone help us? i will downgrade to KK 14.3.A.0.757.which version fits?
[Sony Cross-Device General] stevuna:
On Z3 Compact I've entered manually the value 350000 for the torch, it's truly awesome, thanks for the work. Lollipop 5.1.1 23.4.A.1.232

ps: If you're using power toggles to turn on the torch, reboot the device twice after having edited the file because if you won't the torch will stay on.

I rebooted twice and it works like a charm.
[Sony Cross-Device General] farfetch:
Sorry for OT...Is there something similar for Z5c?!? The flash is really embaracing
[Sony Cross-Device General] sxtester:
[MENTION=1346563]CazeW[/MENTION]:

Did you get any further on this (the notification LED)? Like many others I'm desperately trying to increase the brightness of the notification LED, here on a Z3 (which is very dark), but no luck so far.

Changing the value of if_indicator_level = 3125 to anything higher in /system/etc/flashled_calc_parameters.cfg does not seem to have any effect at all. Hence, tried the other route of changing the max_brightness values (which does have an effect)...

echo %value% > sys/class/leds/led:rgb_red/max_brightness

echo %value% > sys/class/leds/led:rgb_green/max_brightness

echo %value% > sys/class/leds/led:rgb_blue/max_brightness

...but only %value% between 0 and 255 is getting accepted. That's kind of strange because the default/standard values are actually higher:

For the Z3 the standard values are:

max_brightness = 420 (blue)

max_brightness = 511 (green)

max_brightness = 98 (red)

Now, how can I/we apply a value of say 511 to all of the colors? Any bright ideas? :)
[Sony Cross-Device General] CazeW:
[MENTION=6027866]sxtester[/MENTION]

Unfortunately I never got it to work so I gave up on trying to make it brighter.

It's weird that your default values are so high as RGB values are usually given in the range of 0 - 255. The only thing I can come up with is to increase the amperege to the notification LED to make it brighter. Where and how to do that, I don't know. Doing that might also shorten the life of the LED and there is the risk of burning it out if you give it too much power.
[Sony Cross-Device General] sxtester:
Too bad, but thanks for your swift reply anyways!

Exactly, but it's also on the Z2 and Z3 Compact. Can't recall the values of the Z2 now, but on the Z3 Compact they are...

For the Z3 Compact standard values are:

max_brightness = 511 (blue)

max_brightness = 511 (green)

max_brightness = 255 (red)

Not sure whether that makes any difference, but I got all these values via adb root shell with command

cat ./sys/class/leds/led:rgb_[red|green|blue]/max_brightness

So, think it is possible, only question is how?! :p

Taking it! :D

[MENTION=4300205]olokos[/MENTION]:

By any chance, you got further on the notification LED brightness?
[Sony Cross-Device General] olokos:
[MENTION=6027866]sxtester[/MENTION] not really, I'm terribly busy with real life right now, with weekends just flashing in front of my eyes. The values you got are completely different from the flashled_calc.conf file. I'm not sure what's up with the /sys/class/leds interface, but it could possibly work for notification LED as it's values are pretty similar to those in the kernel source, see [MENTION=5243932]Tommy-Geenexus[/MENTION] commit that I cherry-picked for Z1 here:

https://github.com/olokos/OK-Kernel-Z1-LP/commit/f237ada67177752c6c4e56208016d7a84506fb87

This one GREATLY boosts the notification led. You could propably somehow figure out how to change it from userspace using /sys/class/.whatever. It would be nice if you could report back if you finally figure it out as I'm planning to build an app that would boost any light source on android devices and that could really help me out. You can find a very early build of my app here on xda, but it's really far from what I want it to be finally.
[Sony Cross-Device General] sxtester:
olokos, Sir, you pointed me/us in the right direction, I think. :good:

By no means I'm a kernel developer but looking at the kernel commit you posted, I figured that these values have something to do / being sent via the I2C bus. So, I started to search in that direction and found e.g. directory sys/bus/i2c/devices/i2c-6/6-0028 and inside of that files like send_cmd and set_pwr. Now, via many hops (don't ask me how I got there) came to this site:

https://android.googlesource.com/kernel/msm/+/0de6f485c446c5bdfe571cc832dc3b9959db875a%5E1%5E2..0de6f485c446c5bdfe571cc832dc3b9959db875a%5E1/

...and saw...

"The size of PWM value is 9 bit and the size of each

+	entry of the table is 8 bit. Thus, two entries are used

+	to fill each PWM value. The lower entry is used for PWM

+	LSB byte and higher entry is used for PWM MSB bit."

My conclusion is (well, actually hope so because I couldn't test it yet) that via command...

echo "1 255" > sys/class/leds/led:rgb_red/max_brightness or

echo "255 1" > sys/class/leds/led:rgb_red/max_brightness

...we are able to set values between 0...511 properly. Will test this tonight... bear with me for few more hours. :)
[Sony Cross-Device General] kos25k:
dudes now i own a z1 :) i flashed medium version but when i turn on flash LED it somehow blinks.i scared and reverted back to stock. can anyone suggest me anything?

Στάλθηκε από το SM-T310 μου χρησιμοποιώντας Tapatalk
[Sony Cross-Device General] the gladiator:
sxtester, I raised my expectations...any feedback from your tests ???? Please....we're counting on you !
[Sony Cross-Device General] kos25k:
i hope too in an apk that you can choose the sensitivity both in torch and auto flash in camera app...
[Sony Cross-Device General] skyhirules:
The medium version is working fine on Z1 Compact with stock Android 5.1.1! I'll stay away from the extreme one! ?
[Sony Cross-Device General] Arturiuz!:
flashed the extreme version for torch,cam,flash & notificarion led..& it works! thanx!

btw,my device is Z3C. i'll test it on my other device wc is Z5C & see if works!
[Sony Cross-Device General] alexisonfire0529:
Is this working on lollipop 5.1.1?
[Sony Cross-Device General] DorianX:
Yes, it's working on my Z3 on 5.1.1

Enviado desde mi D6646 mediante Tapatalk
[Sony Cross-Device General] doenen:
hey! csn xou confirm it's working on z5c? Greetings!

Daniel
[Sony Cross-Device General] jijishthomas:
Does it make any problems with flash led?
[Sony Cross-Device General] connta:
guys, there is a seriously big flaw in the OP

the recommended variant that has everything boosted by medium amount is FLAWED in the flashlight section, lets examine

# LED If setting for Torch or video recording (uA).
if_torch_vr = 500000

this is the setting from the "recommended" file and below is the setting from the revert file

# LED If setting for Torch or video recording (uA).
if_torch_vr = 25000

the values used should not exceed 300000 and 500000 is nowhere "medium" boost, it is the maximum boost if the circuitry will even allow over 300000 but either way it is not the medium setting in any way, this will burn out your flash most likely.

the values in the medium just torch correspond with these findings as they are

# LED If setting for Torch or video recording (uA).
if_torch_vr = 50000

double that of stock but still in normal limits.

my personal testing of the flashlight has confirmed this.
[Sony Cross-Device General] civicsr2cool:
Edit: just flashed this to z5c with above settings but at 100,000 because original was rebooting device after 4 seconds, Works flawlessly. Camera flash is brighter,torch is brighter.