[MOD] Brighter Flashlight - Xperia Z5 Android Development

This is a very powerful mod that changes the brightness of the Xperia flashlight / torch.
This can cause damage if left on for extended periods of time. It is advised you install the medium version.
Source​
Pre-Caution:
I take no responsibility to any burnt hands, burnt phones, or bricked phones. The chances of getting into a brick or bootloop is very low and I will aid you as much as possible, but will take no responsibility for this happening.
CAUTION:
The extreme version sets the torch to 1,000,000 Ua - in other words, its basically an industrial flashlight now, meaning it will get very hot, very quickly. Please take caution with using the extreme version.
DOWNLOAD:
Medium
Extreme
Uninstaller
SmarTemperature (To increase the temperature limit)
Installation:
1. Have a rooted device with /system access (So not the temp root method)
2. Download and move torch mod, and smarTemp and move the zips to your SD Card
3. Enter recovery and backup your phone (Incase you want to revert back to default values)
4. Flash the Torch ZIP, and then flash the SmarTemperature ZIP
5. Enjoy!
Code:
# LED If setting for Indicator(uA)
if_indicator_level = 4125
# LED If setting for Torch or video recording (uA).
if_torch_vr = 500000
# Vf measured at factory (mV).
vf_factory = 2869
# Min voltage for VBat (mV)
v_batt_min = 3500
This mod works by modifying /etc/flashled_calc_parameters.cfg with custom values
NOTE:Take caution if you plan to modify this config file yourself.​

Wow... Hope this works. Ill try.
Enviado desde mi E6603 mediante Tapatalk

ragnalamb01 said:
Wow... Hope this works. Ill try.
Enviado desde mi E6603 mediante Tapatalk
Click to expand...
Click to collapse
anyone tested it?

Yes, it works. With 32.4.A.1.54.
Medium is good, Extreme even brighter. I skipped the smartemp zip. Thank you!

Related

[ROM][CM10] (CAMERA,AUTOBRIGHTNESS,AGPS) Dark Mod v0.901 2012-12-17

Hello,
i'd like to share my personal daily rom. Its main purpose is to allow you to read in bed without disturbing your girlfriend.
Secondary, the battery consumption will be less while screen is on.
This is reached with allowing the brightness to go down to the (nearly) absolute minimum. I recommend the "CoolReader" Application with Brightness set to "default" so it will use the current system brightness.
To extend battery life the LED's are configured to be as dark as possible.
Not all brightness control widgets uses the system minimum value, so if you not use the system display settings or the toolbar brightness button you'll have to check if your brigthness widget reaches the minimum of "1", test it with "cat /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-0060/backlight/aat2870_i2c_bl/brightness" in a adb shell or in terminal application.
The rom has a configuration menu in settings/advanced; at the moment you can only configure LTO (Long term orbit) data download which should increase gps performance.
Minor changes:
[*] G-Button long press starts Camera
There are some mods to kernel, so you cant use other kernels with it without loosing functionality. It is based on the repository at the time of the build, so it can be different to the nightly from the same day if that nightly is build some hours earlier or later.
Wipe not needed if coming from cm10 nightly. Every other base should wipe everything except sdcard
User applications from gingerbread, ics or jellybean can be restored with titanium, but no settings, accounts, call logs, etc.
Google apps are not included, you have to flash them seperate.
I will only upload builds which generally work (starting after flash, 5 minutes testing).
Mod list/Changelog:
v.0.901
camera library updated to v30b version
CM10 changes merged
v.0.9l
merged all fixes in new display driver
gps library updated to v30b version
CM10 changes merged
v.0.9h
display driver cleaned up - "flash" if screen enabled - bug solved
CM10 changes merged
v.0.7
minor bugfixes in LTO download menu
new configuration to disable key backlight
autobrightness adjusted - brighter in bright areas
CM10 changes merged
v.0.6
GPS assistance data autodownload and gps fixes may improve lock time, see settings/advanced
CM10 changes merged
v.0.5
Automatic brightness adjusted, more brightness in sunlight, but totally dark in a dark room
CM10 changes merged
v.0.4
Automatic brightness adjusted - may be too dark for sunlight
CM10 changes merged
v.0.3
Button brightness reduced even more
Long press "G" key starts camera (instead of printing a comma)
CM10 changes merged
v.0.2
Button brightness reduced
CM10 changes merged
v.0.1
Screen darkness patched to go in a range from [1..255]
Known bugs:
SOLVED: Screen brightness is not restored after screen on with power button, but after unlocking device in lockscreen.
All CM 10 bugs are included
For cm10 changes see cm10 changelogs, i will not repeat them at this thread.
Download links:
v0.901 ANONFILES MD5: efb727319746fb21f233be5d58872ddd
Filesize is 166019503 bytes.
Please check filesize and/or md5sum! The downloads sometimes fail and give you a partial zip file. You can also check zip file integrity with a zip tool.
REPORT BACK IF PROBLEM WITH
- GPS
- CAMERA
- BRIGHTNESS
- BUTTON-LEDs
LOGCATs will help me to solve the issues!
old download links:
v0.9l ANONFILES MD5: c31d097e62e228d3df54d2399d4d3acc
v0.9h ANONFILES MD5: 052b12fc8db79141a265250620274b32
v0.9h RAPIDSHARE MD5: 052b12fc8db79141a265250620274b32
v0.7 2012-11-19 MD5: c13ceba1fb1ee0173b63f94cf90c7e4c
v0.6 2012-11-13 MD5: cf3f37abc1b7f0485298f74e3804b34e
v0.5 2012-11-12 MD5: 01896439f280c5a4b60fd81d7764f94b
v0.4 2012-11-06 MD5: 226dbd5f6db52c4547f8d1148adbf6e3
v0.3 2012-10-22 MD5: 10de70ccdb551152638e4dadf9e46a4f
v0.2 2012-10-17 MD5: c65944b9fef73639a329f98aac4c84a0
v0.1 2012-10-16 MD5: 8849de5cbc82d744c20870c5ff24d261
Please give feedback!
Reuploads are allowed, but please pm me so i can add the links.
credits/thanks:
cm 10 team for the base
zubyro / sharebitz.net for filehosting
huexxx for gps tips
Aaron Echols for gps autodownloading code
To comply with linux kernel GPL, this is my kernel git
git://github.com/cyclon1978/lge-kernel-sniper.git
or access via http: https://github.com/cyclon1978/lge-kernel-sniper
well nice of you to develop cm10 ,, but i think you are pointing on a minor bug ,, a main bug wich makes everybody NOT to use cm10 is hd games ,, most crash after 3 second of playing and others doesnt work at all ,, so if u want to fix that its a "gpu overlay" issue :laugh:
rrgrrg said:
well nice of you to develop cm10 ,, but i think you are pointing on a minor bug ,, a main bug wich makes everybody NOT to use cm10 is hd games ,, most crash after 3 second of playing and others doesnt work at all ,, so if u want to fix that its a "gpu overlay" issue :laugh:
Click to expand...
Click to collapse
Thats is right - but i primary fix bugs/make enhancements concerning my personal usage. Thats selfish, i know
Generally brightness minimum is not a bug - lg sets a minimum of "20" wasting battery, cm 10 uses same value. That has one good effect - if you go in bright sunlight and enable your device with a minimum brightness of "20" there is a better chance to see something.
And the mentioned issue... kernel related i think and not easy to fix for me, but i think easy for the pro's.
no no no thats not the problem! the problem with CM10 is the sdcard, apollo gallery and some apps dont work for me because sdcard is in /storage/sdcard0.
Screenshots? :good:
RomWiz said:
Screenshots? :good:
Click to expand...
Click to collapse
Its actually mainly based off of CM10 Nightly,so just imagine CM10 nightly,but the screen is darker
Sent from my LG-P970 using xda app-developers app
Is that any way to have a flashable zip to flash over the current rom then there is no need for wipe?
I may know you!
It's like S...z's method to show his "amazing" ROM.
Step by step, show every project... but never done and useless!
CalamitySir said:
no no no thats not the problem! the problem with CM10 is the sdcard, apollo gallery and some apps dont work for me because sdcard is in /storage/sdcard0.
Click to expand...
Click to collapse
If you're sure, that's the problem... i will look into it.
Edit:
i looked into it...
All apps should look in /sdcard which is a symlink to /storage/sdcard0
So... if some apps are having problems with symlink - ouch...
If some apps are looking somewhere else ... more symlinks will help.
Do you have a logcat with some exception like file open in /storage/sdcard/* not found?
Apollo and Gallery work for me (Apollo is generally half baked, so "working" is relative...)
More research:
Jellybean roms (different devices) use...
/sdcard/
/storage/sdcard0/
/data/media/
/mnt/sdcard/
Maybe creating all missing directories (as symlinks to /storage/sdcard0) will help.
Anyway, without an example to reproduce i'm stuck...
Dustine_VX said:
I may know you!
It's like S...z's method to show his "amazing" ROM.
Step by step, show every project... but never done and useless!
Click to expand...
Click to collapse
This project is usable as daily rom. I am not S...z, i am much older
And my only own project here btw. until now i just provided infos to huexx, he included my mod in zeus rom.
RomWiz said:
Screenshots? :good:
Click to expand...
Click to collapse
The rom is much too dark to make screenshots
But aside from this it's just cm10 a.t.m., i will add screenshots as soon as i mod the ui. (not planned at the moment)
hey as ur main objective is darkening......
i wn to kno if you cud reduce the led button lights in your rom. have been roaming around the forum and asking to find an easy way to do this. only solution i found was compiling from source.
so as long as u r reducing lights and compiling, might as well
CalamitySir said:
no no no thats not the problem! the problem with CM10 is the sdcard, apollo gallery and some apps dont work for me because sdcard is in /storage/sdcard0.
Click to expand...
Click to collapse
try this http://forum.xda-developers.com/showpost.php?p=32840111&postcount=1981
mbting said:
hey as ur main objective is darkening......
i wn to kno if you cud reduce the led button lights in your rom. have been roaming around the forum and asking to find an easy way to do this. only solution i found was compiling from source.
so as long as u r reducing lights and compiling, might as well
Click to expand...
Click to collapse
if you want to disable led light:
adb shell
su
echo "0" > /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-001a/led_onoff
But only until screen lock. I use CoolReader, option "Disable Button Backlight" -> works fine while reading with CoolReader.
The button brightness works not, so it has to be modified in the kernel... at the moment i have no time for deeper changes.
Greetings,
Andreas
cyclon1978 said:
if you want to disable led light:
adb shell
su
echo "0" > /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-001a/led_onoff
But only until screen lock. I use CoolReader, option "Disable Button Backlight" -> works fine while reading with CoolReader.
The button brightness works not, so it has to be modified in the kernel... at the moment i have no time for deeper changes.
Greetings,
Andreas
Click to expand...
Click to collapse
honestly i have zero experience with kernels and the like.
but these might help i guess
Code:
drivers/leds/leds-bd2802.c
Code:
#define BD2802_CURRENT_WHITE_PEAK 0x5A /* 18mA */
#define BD2802_CURRENT_WHITE_MAX 0x2D /*9mA*/// 0x32 /* 10mA */
#define BD2802_CURRENT_BLUE_MAX 0x32 /* 10mA */
#define BD2802_CURRENT_WHITE_MIN 0x05/*1mA*/
#define BD2802_CURRENT_BLUE_MIN 0x05 /* 1mA */
thanks
mbting said:
honestly i have zero experience with kernels and the like.
but these might help i guess
Code:
drivers/leds/leds-bd2802.c
Code:
#define BD2802_CURRENT_WHITE_PEAK 0x5A /* 18mA */
#define BD2802_CURRENT_WHITE_MAX 0x2D /*9mA*/// 0x32 /* 10mA */
#define BD2802_CURRENT_BLUE_MAX 0x32 /* 10mA */
#define BD2802_CURRENT_WHITE_MIN 0x05/*1mA*/
#define BD2802_CURRENT_BLUE_MIN 0x05 /* 1mA */
thanks
Click to expand...
Click to collapse
I used 0.2 mA for min, 1mA for MAX and 10mA for PEAK.
Testing in progress....
I do not know if min/max is both really used, at the moment my phone looks always the same, except the white peak on button press.
Thanks for the info!
Greetings,
Andreas
OP updated with download link for new version.
There are several changes in kernel from ricardo, sound library changed for example. Generally it looks good, i recognized no change to better or worse
Have fun!
Andreas
cyclon1978 said:
I used 0.2 mA for min, 1mA for MAX and 10mA for PEAK.
Testing in progress....
I do not know if min/max is both really used, at the moment my phone looks always the same, except the white peak on button press.
Thanks for the info!
Greetings,
Andreas
Click to expand...
Click to collapse
thanx for trying.....
i really would like to try a rom which a led light turned down.
i wudnt mind even if the lights stayed off
actually i was happy when the korean ics version had a bug in the lights
i get speeds of around 5kb/s and 5hrs to complete
cud u upload it to mediafire
mbting said:
thanx for trying.....
i wudnt mind if the lights stayed off
actually i was happy when the korean ics version had a bug in the lights
Click to expand...
Click to collapse
Hmmm... Who want the lights to be...
a) off
b) off but pressed one flashes
c) as dark as possible
Every vote counts
but.. the (coming) button light notification may not work with a), maybe with b) too, so add to your vote if you want to use light notifications

Samsung Galaxy S6 HQ Camera Mod (G920FXXU3COI9)

Hello, here is my first HQ Camera Mod for a SM-G920F (G920FXXU3COI9).
I'm worked on the HX-Camera-Mod from SM-G900F, too.
This Camera is from my (Germany) DBT Version and it's a Decodex Version.
Before use this Mod, please make a Backup from your Files!
Manually for 6.0.1:
1.) With "Root Explorer" copy the SamsungCamera4.apk from /sdcard/ > /system/priv-app/SamsungCamera4/
2.) Set permissions from SamsungCamera4.apk to rw-r--r--
3.) Delete in /system/priv-app/SamsungCamera4 the oat/arm64 folder
4.) Clear Dalvik-Cache in /data/dalvik-cache
5.) Reboot Now
Manually for 5.1.1:
1.) With "Root Explorer" copy the SamsungCamera4.apk from /sdcard/ > /system/app/SamsungCamera4/
2.) Set permissions from SamsungCamera4.apk to rw-r--r--
3.) Delete in /system/app/SamsungCamera4 the arm64 folder
4.) Clear Dalvik-Cache in /data/dalvik-cache
5.) Reboot Now
v2 NEW for Android 6.0.1 - from - G920FXXU3DPCA
v2.1 (Flashable)
Image Quality = 100%
Low Battery Dialog = Disabled Completely!
v2.0 (Flashable)
Image Quality = 100%
v1.1 (APK / Flashable)
Image Quality = 100%
Low Battery Dialog = Disabled Completely!
Flashlight can be use everything and not more up to 1%
v1.0 (Flashable made by "Winb33")
Image Quality = 100%
Low Battery Dialog change to 1%
Flashlight can be Use to 1%
PS. Sorry for my Bad English
please instructions more clear please i cant find all files
supera3 said:
please instructions more clear please i cant find all files
Click to expand...
Click to collapse
update instructions
thanks i make it and it works!
Thanks for this mod !
Will test and report later :highfive:
@EarthQuaker
It look like working well ..
I've toke the liberty to make a flashable zip that make the job itself (deleting / cleaning cache / installing / apply proper rights )
Just flash in recovery and you' re done !
Feel free to add it in op
Tested on my 920F using Weta ROM 12.1 :good:
Winb33 said:
@EarthQuaker
It look like working well ..
I've toke the liberty to make a flashable zip that make the job itself (deleting / cleaning cache / installing / apply proper rights )
Just flash in recovery and you' re done !
Feel free to add it in op
Tested on my 920F using Weta ROM 12.1 :good:
Click to expand...
Click to collapse
Thanks, i have updated the Thread
niceeeeeee
Update to v1.1
EarthQuaker said:
Hello, here is my first HQ Camera Mod for a SM-G920F (G920FXXU3COI9).
I'm worked on the HX-Camera-Mod from SM-G900F, too.
This Camera is from my (Germany) DBT Version and it's a Decodex Version.
Before use this Mod, please make a Backup from your Files!
Manually:
1.) With "Root Explorer" copy the SamsungCamera4.apk from /sdcard/ > /system/app/SamsungCamera4/
2.) Set permissions from SamsungCamera4.apk to rw-r--r--
3.) Delete in /system/app/SamsungCamera4 the arm64 folder
4.) Clear Dalvik-Cache in /data/dalvik-cache
5.) Reboot Now
v1.1 (APK / Flashable Coming Soon)
Low Battery Dialog = Disabled Completely!
Flashlight can be use everything and not more up to 1%
v1.0 (Flashable made by "Winb33")
Image Quality = 100%
Low Battery Dialog change to 1%
Flashlight can be Use to 1%
PS. Sorry for my Bad English
Click to expand...
Click to collapse
interesting
Enviado desde mi SM-N920C mediante Tapatalk
JavierHouse said:
interesting
Enviado desde mi SM-N920C mediante Tapatalk
Click to expand...
Click to collapse
thank you ^^ i'm using it on arrow rom 10 and it works
g925f
You will do this mod for g925f galaxy s6 edge?
yakalelos7 said:
You will do this mod for g925f galaxy s6 edge?
Click to expand...
Click to collapse
the g925f is the edge model, right?
if so, i think you can use this mod. flat and edge version has identical firmware, but edge feature.
do a backup and try, i think it should work. if not, restore your backup and you're safe
Does this work with 6.0.1 marshmallow?
kevcruz092 said:
Does this work with 6.0.1 marshmallow?
Click to expand...
Click to collapse
No, camera mod is based on 5.1.1 firmware
Once Android is 6.0.1 Released I will publish a modification.
EarthQuaker said:
Once Android is 6.0.1 Released I will publish a modification.
Click to expand...
Click to collapse
+1
Could you please explain how you have modified the camera, or alternatively would it be possible to make a mod to increase the bitrate of videos?
Going away on holiday in a few months and would love to be able to record 1080p @ 25mbps instead of the default of 17 (which sometimes causes blocky video). Would changing the media_profile be enough or would the APK require altering?
Thanks
could you please enable geotagging with GPS only ? networkbased location drains battery ...
thx
Any chance this will work with a Canadian W?

[Z5,X,XZ] Ultimate Unlocked Camera with Manual Controls Version 7 Nougat - CHINMOY32

....:::: Finally Its Here ::::....
Version : 6
Modified SEMCCameraUI.APK from XZ Stock Firmware [vF8332_39.0.A.1.250]
With Unlocked All Options, Intelligent Active Everywhere,
Scenes, ISOs and So on...
First Time Ever for Z5 series users
Introducing
Manual Focus
First Time Ever for XZ series users
Introducing
Manual Focus
&
Manual Shutter Speed ​
Manual Shutter Speed option is view-able and changeable but it is not working right now for Z5 & X series .
This development project is Open-Source under Copy-Left scheme for everyone interested
So that enthusiasts like I can do more on it , probably bring Manual Shutter Speed for Z5 series to it.​ISO & HDR now Unlocked Separately Even with Scenes Selected​
If you are looking for Ultimate Unlocked Camera v7 for Z5,XZ,X Series Nougat Then Please Click HERE​
Important Notice:
This is for mild to moderately advanced users, So I am not gonna waste my time writing how to flash, copy, assign permission or other novice staffs.
Always going to upload only the APK. Use the APK as-is , copy it to the exact location of the existing camera apk and delete the old one. As I intend to attract developers here to contribute to this project and bring working Manual Shutter Speed , so you can just download ADVANCE APKTOOL and decompile this APK and use your own working framework-res.apk as framework. If you dont know how then its probably not for you. And of course no PM please, not gonna answer via PM.
Please do not steal my work, Always ask for permission via PM and give credits accordingly ​
** FC during Zoom issue fixed on version 6
Credits:
I am forever grateful to the creators of the APKTOOL & Advance APKTOOL
So far modified SMALI codes:
01 - com/sonyericsson/cameracommon/contentsview/DataLoader; -> isSupportedFileExtension() must return true
02 - com/sonymobile/cameracommon/settingpreference/SettingPreference;-> isSelectable() must return true
03 - com/sonyericsson/cameracommon/commonsetting/CommonSettings;-> isSelectable() must return true
04 - com/sonyericsson/cameracommon/setting/settingitem/TypedSettingItem;-> isSelectable() must return true
05 - com/sonyericsson/cameracommon/setting/settingitem/TypedSettingItem;-> setSelectable() must set true value
06 - com/sonyericsson/cameracommon/device/CameraOpener$CameraOpenLegacySupportStateHolder; -> isSupported() must return true
07 - com/sonyericsson/cameracommon/device/CameraExtensionVersion; -> isSupported() must return true
08 - com/sonyericsson/cameracommon/utility/ClassDefinitionChecker$JpegEncoderSupportStateHolder; -> isSupported() must return true
09 - com/sonyericsson/cameracommon/utility/ClassDefinitionChecker$isBypassCameraSupportStateHolder;-> isSupported() do not touch this method
10 - com/sonyericsson/cameracommon/utility/ClassDefinitionChecker$MediaRecorderPauseAndResumeSupportStateHolder; -> isSupported() must return true
11 - com/sonyericsson/android/camera/view/settings/SettingUi;-> isSelectable() must return true
12 - com/sonyericsson/android/camera/configuration/SupportedValueList;-> isSupported() must return true
13 - com/sonyericsson/android/camera/configuration/parameters/VideoStabilizer;-> isIntelligentActiveSupported(), isSteadyShotSupported() must return true
14 - com/sonyericsson/android/camera/configuration/ParameterKey;-> isSelectable() must return true
15 - com/sonyericsson/android/camera/configuration/parameters/Scene; -> isSupportedBeachAndSnowIndividually() must return true
16 - com/sonyericsson/android/camera/configuration/parameters/VideoStabilizer; -> isValueSupported() must return true
17 - com/sonyericsson/android/camera/configuration/parameters/Flash; -> isSupported() must return true
18 - com/sonyericsson/android/camera/configuration/parameters/Flash; -> isSceneDependent() must return false
19 - com/sonyericsson/android/camera/configuration/MmsOptions; -> isSupported() must return true
20 - com/sonyericsson/android/camera/configuration/parameters/SuperResolution; -> isSupported() must return true
21 - com/sonyericsson/android/camera/configuration/parameters/VideoHdr;-> isSupported() must return true
22 - com/sonyericsson/android/camera/device/PlatformDependencyResolver; -> all isSupported types methods must return true except isVideoMetaDataSupported()
23 - com/sonyericsson/android/camera/configuration/SupportedValueList; -> getSupportedHdr() must return true
24 - com/sonyericsson/cameracommon/device/CameraOpener; -> isCameraOpenLegacySupported() must return true
25 - com/sonyericsson/cameracommon/capability/CameraSensor; -> isIndependentHdrSupported() must return true
26 - com/sonyericsson/cameracommon/device/CommonPlatformDependencyResolver; -> isVideoNrSupported() must return true
27 - com/sonyericsson/android/camera/configuration/parameters/Hdr; -> isResolutionIndependentHdrSupported() must return true
28 - com/sonyericsson/cameracommon/commonsetting/CommonSettings; -> isUnSelectableSetting() must return false
29 - com/sonyericsson/android/camera/parameter/NormalParameters; -> all DependencyApplier;->apply and DependencyApplier;->reset must be commented out
30 - com/sonyericsson/android/camera/parameter/Parameters; -> all DependencyApplier;->apply and DependencyApplier;->reset must be commented out
31 - com/sonyericsson/android/camera/parameter/dependency/ShutterTriggerApplier; -> all DependencyApplier;->apply and DependencyApplier;->reset must be commented out
32 - com/sonyericsson/android/camera/parameter/dependency/SceneHighSensitivityApplier; -> inside it's apply() method replace all ParameterUtil;->unavailable() with ParameterUtil;->applyCurrentValue()
33 - com/sonyericsson/android/camera/device/CameraDeviceHandler; -> setShutterSpeed() method holds the key to manual shutter speed for Z5 series
34 - com/sonyericsson/android/camera/configuration/parameters/Metering; -> isParameterSupported() method must be left alone
35 - com/sonyericsson/android/camera/device/PlatformDependencyResolver; -> isExtensionVersionEqualToOrLaterThan_1_8() must return true
36 - com/sonyericsson/android/camera/configuration/parameters/VideoStabilizer; -> isIntelligentActive() must return true
37 - com/sonyericsson/android/camera/configuration/ParameterKey;-> isInvalid() must return false
38 - com/sonyericsson/android/camera/device/PlatformDependencyResolver; -> isSuperResolutionZoomSupported() must be left alone
​
Code Segment for Boolean Methods to always return TRUE :
Code:
.locals 1
const/4 v0, 0x1
return v0
Code Segment for Boolean Methods to always return FALSE :
Code:
.locals 1
const/4 v0, 0x0
return v0
Comment out any Code Segment - Just put "#" in front of the line:
Code:
.locals 1
#this is a comment
const/4 v0, 0x0
return v0
Reserved :good:
Whoaaa this is great! Thanks Bro!
Sent from my E6653 using XDA-Developers mobile app
Works "from the box"
Awesome manual focus, this is insane
Great object tracking!!!
Trying out .v2
Great job chinmoy32
Works only for rooted I guess?
BrainstormPL said:
Works only for rooted I guess?
Click to expand...
Click to collapse
Surly
My, as I read your OP, I just wanted to say thank you.
I was near to give frustrated up, because it was everything the same thing - i try to unlock mf or shutter speed and Apk Crash.
This is a amazing work - Everyone who don't believe should take a look inside, on over 6000 smali files...
[email protected] said:
My, as I read your OP, I just wanted to say thank you.
I was near to give frustrated up, because it was everything the same thing - i try to unlock mf or shutter speed and Apk Crash.
This is a amazing work - Everyone who don't believe should take a look inside, on over 6000 smali files...
Click to expand...
Click to collapse
Thanks for your appreciation
I love all things "CAMERA" and thats why I do all of these ..............................
When editing existing codes I like to keep solid tracks of what I am editing from what to what and how much, so that I can revert every edit easily without starting over from scratch.
Will this mod be Integrated into Pete's camera unlock mod?
Trying Ultimate Unlocked Camera with Manual Controls by chinmoy32 in my sony xperia xz
It works fine, and manual camera works fine with my xz and all features are unlocked.
Hope chinmoy32 and [email protected] are working together.
[email protected] works hard and have a grat mod and noise reduction in his mode especially in xz
Chinmoy32 has a great application that works with all imx300 all z5 series and x series i think
Great work both
reserved. i ll try it when unlock my bootloader again
karrouma said:
Trying Ultimate Unlocked Camera with Manual Controls by chinmoy32 in my sony xperia xz
It works fine, and manual camera works fine with my xz and all features are unlocked.
Hope chinmoy32 and [email protected] are working together.
[email protected] works hard and have a grat mod and noise reduction in his mode especially in xz
Chinmoy32 has a great application that works with all imx300 all z5 series and x series i think
Great work both
Click to expand...
Click to collapse
Tell me , do you have working manual shutter speed in your XZ with my APK ??
BrainstormPL said:
Works only for rooted I guess?
Click to expand...
Click to collapse
Hamidreza2010 said:
Surly
Click to expand...
Click to collapse
YES, you need to replace the existing APK and copy this one into the exact place in SYSTEM partition
for that alone you need ROOT. after copying the APK there you need to set permission to 644 - which requires ROOT too
sirdoha said:
Will this mod be Integrated into Pete's camera unlock mod?
Click to expand...
Click to collapse
Pete is already using some of my techniques to unlock features in his project. Whether hes gonna use more stuff from here is up to him.
More on that matter :
If anyone wants to use any portion of what I have posted here he/ she just needs to ask permission via PM and provide credits accordingly. Its that simple.
chinmoy32 said:
Tell me , do you have working manual shutter speed in your XZ with my APK ??
Click to expand...
Click to collapse
Yes it is working
karrouma said:
Yes it is working
Click to expand...
Click to collapse
What's your maximum shutter speed?
I Only have 1s max but it seems to work well.
In Z5 this apk works very well, only bug is fc when light metering on touch.
Sent from my E6653 using XDA-Developers mobile app
langeveld024 said:
What's your maximum shutter speed?
I Only have 1s max but it seems to work well.
In Z5 this apk works very well, only bug is fc when light metering on touch.
Sent from my E6653 using XDA-Developers mobile app
Click to expand...
Click to collapse
ok,
I need extensive details here :
# I am using Z5 E6683 DSDS
# I dont have light metering option
# Shutter Speed is showing and changeable through the slider but NOT WORKING ( DOESNT HAVE ANY EFFECT )
Now tell me about your setup, I mean your rom, MODs and everything installed on your device and at which point you installed my APK and get shutter speed working on your Z5 ???
I am assuming you are on Z5 by looking at your signature !!
karrouma said:
Yes it is working
Click to expand...
Click to collapse
I am very glad to hear that
Please give me your system details :
ROM version , MODs installed and other things
I want to go through your system files to see what is missing and what I could possibly do to bring manual shutter speed to Z5
chinmoy32 said:
I am very glad to hear that
Please give me your system details :
ROM version , MODs installed and other things
I want to go through your system files to see what is missing and what I could possibly do to bring manual shutter speed to Z5
Click to expand...
Click to collapse
I have xperia xz f8332
Software version stock 39.0.A.1.250
I use ([email protected] MODE) version XZ™ Camera Project Xperia XZ v3b
But i change the .apk in private app and use you application (rename your v3 to SemcCameraUI-jniLibs64-xxhdpi-release.apk) changing permission and restart
All work fine, trying all option and all working i like the new camera icon by the way.
I do a difference between your apk and peter i see that comprssion size is different and good light yours is better but in low lighte peter is better.
No lags or fc.
Thank you
---------- Post added at 05:21 AM ---------- Previous post was at 05:18 AM ----------
langeveld024 said:
What's your maximum shutter speed?
I Only have 1s max but it seems to work well.
In Z5 this apk works very well, only bug is fc when light metering on touch.
Sent from my E6653 using XDA-Developers mobile app
Click to expand...
Click to collapse
1s max shutter till now. Waiting op doing the magic 4-8-10 sec

Modified kernel image to use 4 cores on Android Wear 2.0

UPDATE: THIS VERSION SEEMS TO BE WORKING WITH JULY SECURITY PATCH UPDATE, HOWEVER, ANY CHANGE THAT HAS BEEN APPLIED TO THE KERNEL BY LG WITH LATEST VERSION WILL BE DISMISSED, MEANING THAT YOU CAN FLASH THIS KERNEL WITH NEW VERSION, OR YOU CAN WAIT UNTIL FURTHER INVESTIGATION IS DONE
ATTENTION: When trying to update from the March version, flash original kernel (https://www.androidfilehost.com/?fid=457095661767152691) and then apply OTA, if not, bootloop will occur.
Flashing instructions:
Unlock your recovery if not already done
Download the latest boot.img available below and double check you are running the necessary build number
run "fastboot flash boot nameoffile.img"
run system
Latest modified kernel for NXH19X (choose between 1, 2 or 4 cores): https://www.androidfilehost.com/?w=files&flid=194196
Original image (for rollback) for NXH19X: https://www.androidfilehost.com/?fid=817550096634782071
Older versions: https://www.androidfilehost.com/?w=files&flid=170587
Modified kernel runs 1, 2 or 4 cores without frequency limit and ondemand governor, during boot only 1 core is enabled to prevent the watch from turning off due to low battery
If you want to support make, take a look at my new game in Play Store: https://play.google.com/store/apps/details?id=albillos.criado.pablo.squarestm or my watch face: https://play.google.com/store/apps/details?id=albillos.criado.pablo.flattimeswatchface
I AM NOT RESPONSIBLE FOR ANY PROBLEMS CAUSED TO YOUR DEVICE, FLASH AT YOUR OWN RISK
the responsiveness is not the best .. I will give it a try tomorrow
pablotiss said:
Due to the horrible responsiveness of the latest version of AW, I have created a modified boot.img which enables the 4 cores and a ondemand cpu governor for better performance, haven't tested battery life yet, that's the link to the img file:
https://mega.nz/#!Fl9WHQwa!vV8mumNt0qkb_EMEQ8RmqxnPyKGYM-Tvtsef51kl430
Boot with:
fastboot boot boot.img
Flash with (NOT RECOMENDED):
fastboot flash boot boot.img
I AM NOT RESPONSIBLE FOR ANY PROBLEMS CAUSED TO YOUR DEVICE
Click to expand...
Click to collapse
Installing, giving feedback in few minutes
---------- Post added at 12:38 AM ---------- Previous post was at 12:26 AM ----------
pablotiss said:
Due to the horrible responsiveness of the latest version of AW, I have created a modified boot.img which enables the 4 cores and a ondemand cpu governor for better performance, haven't tested battery life yet, that's the link to the img file:
https://mega.nz/#!Fl9WHQwa!vV8mumNt0qkb_EMEQ8RmqxnPyKGYM-Tvtsef51kl430
Boot with:
fastboot boot boot.img
Flash with (NOT RECOMENDED):
fastboot flash boot boot.img
I AM NOT RESPONSIBLE FOR ANY PROBLEMS CAUSED TO YOUR DEVICE
Click to expand...
Click to collapse
WOW!!!!! 2x faster speed (at least),looks similar responsiveness as before the update, good work Pablo. I m going to test battery during tomorrow all the day and giving feedback at night
Wow thanks, this is exactly what is needed to make 2.0 usable, less than 24h after its release too!
I'll feed back with battery efficiency on 4 cores.
Is anyone able (and willing) to resurrect one of the battery efficient multicore kernels of the past?
Sent from my Nexus 6P using Tapatalk
Just for battery drain/responsiveness test, if you can do even a 2 core version, only if u have time to waste, u have already done a great work doing a 4 core version in a couple of hours after official release
Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
How do I actually get this on my watch? Haven't done any playing with flashing things on a watch only phone.
Sent from my SM-N920G using XDA-Developers Legacy app
pablotiss said:
Due to the horrible responsiveness of the latest version of AW, I have created a modified boot.img which enables the 4 cores and a ondemand cpu governor for better performance, haven't tested battery life yet, that's the link to the img file:
https://mega.nz/#!Fl9WHQwa!vV8mumNt0qkb_EMEQ8RmqxnPyKGYM-Tvtsef51kl430
Boot with:
fastboot boot boot.img
Flash with (NOT RECOMENDED):
fastboot flash boot boot.img
I AM NOT RESPONSIBLE FOR ANY PROBLEMS CAUSED TO YOUR DEVICE
Click to expand...
Click to collapse
Good work i will wait for battery report and will flash it.
Sent from my SM-G955F using XDA-Developers Legacy app
After 8 hours overnight, 6% battery drained.
More results this night.
javierortiz2 said:
After 8 hours overnight, 6% battery drained.
More results this night.
Click to expand...
Click to collapse
What about always on and more time because i use my watch always on.
Sent from my SM-G955F using XDA-Developers Legacy app
saint_cow said:
How do I actually get this on my watch? Haven't done any playing with flashing things on a watch only phone.
Sent from my SM-N920G using XDA-Developers Legacy app
Click to expand...
Click to collapse
Google "How to flash kernel to Android device" and you'll find it
pablotiss said:
Google "How to flash kernel to Android device" and you'll find it
Click to expand...
Click to collapse
https://forum.xda-developers.com/g-watch-r/development/fastboot-mode-lg-g-watch-r-t2946955
I'm going to assume that I need to unlock the boot loader and once I flash this boot.img OTA updates will no longer work? Wish I never updated the watch, it used to be somewhat useful but now it's a laggy pile of crapola
Sent from my SM-N920G using XDA-Developers Legacy app
saint_cow said:
https://forum.xda-developers.com/g-watch-r/development/fastboot-mode-lg-g-watch-r-t2946955
I'm going to assume that I need to unlock the boot loader and once I flash this boot.img OTA updates will no longer work? Wish I never updated the watch, it used to be somewhat useful but now it's a laggy pile of crapola
Sent from my SM-N920G using XDA-Developers Legacy app
Click to expand...
Click to collapse
You will receive OTAs but they won't install, this can be fixed by reflashing the original boot.img and then installing the OTA
This is the second day using this on my watch. I've changed the animation scales down to 0.5 in developer options and have the screen set to always on. Really responsive watch, back to how it was before the update, maybe quicker. Battery approx 40% after a full day use with screen always on and using it more than usual.
Very happy. Makes AW 2 usable again and plenty of battery for more than a days use.
Sent from my Nexus 6P using Tapatalk
@pablotiss you have a minor bug in the boot image that disables cpu1:
Code:
lenok:/ $ cat /sys/devices/system/cpu/cpu?/online
1
0
1
1
You just need to comment out the "write /sys/devices/system/cpu/cpu1/online 0" in init.lenok.rc (line 113) and it works:
Code:
lenok:/ $ cat /sys/devices/system/cpu/cpu?/online
1
1
1
1
Works alot better with the modified boot apart from now my watch shuts down after a while. I assume this is some thermal issue. Lasted about 4 hrs until it shutdown and then won't boot back up. Last time this happened had to connect to the charger to get it to finish booting, I'm out at the moment so I can't. I'm going to try and make my own 2 core version. Anyone know how to root aw2.0? Tried to obtain temps from adb but just got access denied. Only temp i can read is the battery temp.
With modified boot watch works alot better, smooth and no lag.
Sent from my Moto G (4) using Tapatalk
I'll upload three versions in a few minutes, on for 1, 2 and 4 cores enabled
Pablotiss that's great. I made a four core version earlier but dropped the max core freq down. Works well. Don't think my watch shutdown because of overheating looks like the battery's out of calibration
Sent from my Moto G (4) using Tapatalk
This is awesome! The watch is crazy fast with this! Battery life is something i'll check tomorrow when I start the day on a full charge! Will report back when it's tomorrow evening!
Update
dirtyhank said:
@pablotiss you have a minor bug in the boot image that disables cpu1:
Code:
lenok:/ $ cat /sys/devices/system/cpu/cpu?/online
1
0
1
1
You just need to comment out the "write /sys/devices/system/cpu/cpu1/online 0" in init.lenok.rc (line 113) and it works:
Code:
lenok:/ $ cat /sys/devices/system/cpu/cpu?/online
1
1
1
1
Click to expand...
Click to collapse
Fixed, thank you.
I have posted new versions to choose from
Thanks will try this tomorrow and see if my watch becomes usable again
Enviado do meu A0001 através de Tapatalk

[Magisk][Module] Xperia Z2 / Z3 / Z3c Torch Boost v1.2

Here I present you my first Magisk module.
Description:
It boosts the torch on SONY Xperia Z2 / Z3 / Z3c devices by replacing system/etc/flashled_calc_parameters.cfg with a file that sets if_torch_vr = 500000 instead of just 25000, which is the default value by SONY.
By doing this, the flash LED is operated at 500 mA instead of just 25 mA.
In my experiences, 500 mA is a sweet spot which provides good brightness, but at the same time doesn't heat the LED too much. Still, I would advice you to not use the torch for more than about 5 minutes at a time. You use this module at your own risk. If you want to set a lower brightness, then you can edit system/etc/flashled_calc_parameters.cfg in the zip and change if_torch_vr to a value lower than 500000 before installing the module. Of course you can also use a higher value, but I wouldn't exceed 1000000 (this is also the value that SONY set in the line # Max current for Torch (uA) i_batt_max_torch of the flashled_calc_parameters.cfg file.)
Background:
The method I used was first described in a thread by @olokos which you can find here. For comparison: The extreme version you can download there (which is a flashable zip and not a Magisk module obviously) sets if_torch_vr to 1000000, which corresponds to 1000 mA or 1 A. As users reported, even at this setting the torch can be used for 5 minutes before temperature increases significantly, but I want to keep it safe by using just half of that value. If you want to know more about the user experience with different settings, I recommend you to read the above mentioned thread, as well as @antkalaitzakis96's thread, who uses the same method, which you can find here.
Compatibility:
This module should work on any SONY Xperia Z2 / Z3 / Z3c device running on Android 5.0 - 8.1.0, rooted with Magisk. I'm quite sure about this since I compared the flashled_calc_parameters.cfg files from Android 4.4 (SONY stock KitKat ROM) with Android 6.0.1 (SONY stock Marshmallow ROM) and also with Android 7.1.2 (LineageOS and Carbon Nougat ROMs) and the files were always completely identical! If you still want to check if the module will be compatible with your system before installing it, grab system/etc/flashled_calc_parameters.cfg from your system by using a root file explorer and then compare it with the flashled_calc_parameters.cfg file from the module zip file. The only difference between the two files should be the if_torch_vr line.
Enjoy!
Please leave some feedback if the module works for you.
Thanks:
Many thanks to @topjohnwu for the ingenious Magisk universal systemless interface and to @olokos for the initial torch boost mod.
Changelog:
v1.0 - Initial release
v1.1 - Updated to Magisk Module Template 1500
v1.2 - On Oct 26, 2020 @t.Lancer published an updated version in post #25 which works on newer Magisk versions. Thanks a lot!
Needed this. Thank you so much.
I love this module, I always wondered why my light was dinner than everyone else's. My light cuts through the darkness now!
Hi okij, I've used your module a bit reduced. Good work! Now there is the stock camera and I believe that the flash light so not in the camera settings is considered?The images are over-exposed in the close range. Once the module has been deactivated. Perhaps the setting can be automated to take pictures?
bussi2010 said:
Now there is the stock camera and I believe that the flash light so not in the camera settings is considered?The images are over-exposed in the close range. Once the module has been deactivated. Perhaps the setting can be automated to take pictures?
Click to expand...
Click to collapse
The module only changes if_torch_vr (comment line: "# LED If setting for Torch or video recording (uA)"), so it just affects the brightness when using the torch or when using the flash LED as a lamp when doing a video recording (which is good, because you have a brighter video lamp).
On the other hand, flash brightness is controlled by max_if_flash (comment line: "# Flash LED_If max current (uA)") which is set to 1500000 by default and not altered by the module. Therefore the module doesn't change anything when taking pictures.
Anybody having problems to install this module on Magisk 13.3? When I go to MODULES, select it and install, Magisk app freezes and I have to restart my phone. After that, I cannot open Magisk app anymore. I have to completely uinstall it and install again to be able to open the app again. On Magisk 12 it was working perfectly.
@maecar: The Problem is not Magisk 13.3, but Magisk Manager 5.1.0. There are numerous reports on the last few pages of the Magisk Support thread about the freezing issue. Until @topjohnwu fixes it, reverting to Magisk Manager 5.0.6 helps.
Mind making modulesl universal for Xperias...
Thanks... I use Z5!
Thanks for proper credit mate, nice work
olokos said:
Thanks for proper credit mate, nice work
Click to expand...
Click to collapse
I have to thank you and @AndroPlus for the initial MOD! I've been happily using it since about 2 years, but of course always had to re-apply it when updating a ROM. Now with Magisk, we can just "set and forget".
Is 500,000 secure?
SALL666PL said:
Is 500,000 secure?
Click to expand...
Click to collapse
IMHO it is.
This mod is known for about 2 1/2 years by now (long before my Magisk implementation) and I haven't read of any user who damaged his phone by using it.
Anyway, as I wrote in the OP, I would advice to not use the torch for more than about 5 minutes at a time, just to go safe.
okij said:
IMHO it is.
This mod is known for about 2 1/2 years by now (long before my Magisk implementation) and I haven't read of any user who damaged his phone by using it.
Anyway, as I wrote in the OP, I would advice to not use the torch for more than about 5 minutes at a time, just to go safe.
Click to expand...
Click to collapse
Thanks for the answer
Hello. This module didn't work for me. I tried to install it via Magisk and TWRP, but I get '' installation failed'' in Magsik and two red ''ERROR'' in TWRP. Do you know how to fix it?
DARKBUB said:
Hello. This module didn't work for me. I tried to install it via Magisk and TWRP, but I get '' installation failed'' in Magsik and two red ''ERROR'' in TWRP. Do you know how to fix it?
Click to expand...
Click to collapse
Since you don't provide any logs (installation or recovery) it's impossible to know for sure.
But, a likely issue is that this module is old and hasn't been updated for later versions of Magisk. If you're on Magisk v14+, this module won't install...
DARKBUB said:
Hello. This module didn't work for me. I tried to install it via Magisk and TWRP, but I get '' installation failed'' in Magsik and two red ''ERROR'' in TWRP. Do you know how to fix it?
Click to expand...
Click to collapse
Didgeridoohan said:
Since you don't provide any logs (installation or recovery) it's impossible to know for sure.
But, a likely issue is that this module is old and hasn't been updated for later versions of Magisk. If you're on Magisk v14+, this module won't install...
Click to expand...
Click to collapse
Yes, @Didgeridoohan is right, the module used an old template. I didn't notice that it doesn't install correctly anymore on newer Magisk versions because I only installed it once and then just updated Magisk to each newer version, which always kept the module installed.
I now updated the module to v1.1 which uses the current Magisk Module Template 1500. You can find the download in the updated OP.
Xperia Z2 / Z3 / Z3c Torch Boost v1.1 installed well on my Z3 Compact, running on Magisk v16.
Please leave a note if it works for you too now.
okij said:
Here I present you my first Magisk module.
Description:
It boosts the torch on SONY Xperia Z2 / Z3 / Z3c devices by replacing system/etc/flashled_calc_parameters.cfg with a file that sets if_torch_vr = 500000 instead of just 25000, which is the default value by SONY.
By doing this, the flash LED is operated at 500 mA instead of just 25 mA.
In my experiences, 500 mA is a sweet spot which provides good brightness, but at the same time doesn't heat the LED too much. Still, I would advice you to not use the torch for more than about 5 minutes at a time. You use this module at your own risk. If you want to set a lower brightness, then you can edit system/etc/flashled_calc_parameters.cfg in the zip and change if_torch_vr to a value lower than 500000 before installing the module. Of course you can also use a higher value, but I wouldn't exceed 1000000 (this is also the value that SONY set in the line # Max current for Torch (uA) i_batt_max_torch of the flashled_calc_parameters.cfg file.)
Background:
The method I used was first described in a thread by @olokos which you can find here. For comparison: The extreme version you can download there (which is a flashable zip and not a Magisk module obviously) sets if_torch_vr to 1000000, which corresponds to 1000 mA or 1 A. As users reported, even at this setting the torch can be used for 5 minutes before temperature increases significantly, but I want to keep it safe by using just half of that value. If you want to know more about the user experience with different settings, I recommend you to read the above mentioned thread, as well as @antkalaitzakis96's thread, who uses the same method, which you can find here.
Compatibility:
This module should work on any SONY Xperia Z2 / Z3 / Z3c device running on Android 5.0 - 8.1.0, rooted with Magisk. I'm quite sure about this since I compared the flashled_calc_parameters.cfg files from Android 4.4 (SONY stock KitKat ROM) with Android 6.0.1 (SONY stock Marshmallow ROM) and also with Android 7.1.2 (LineageOS and Carbon Nougat ROMs) and the files were always completely identical! If you still want to check if the module will be compatible with your system before installing it, grab system/etc/flashled_calc_parameters.cfg from your system by using a root file explorer and then compare it with the flashled_calc_parameters.cfg file from the module zip file. The only difference between the two files should be the if_torch_vr line.
Enjoy!
Please leave some feedback if the module works for you.
Thanks:
Many thanks to @topjohnwu for the ingenious Magisk universal systemless interface and to @olokos for the initial torch boost mod.
Changelog:
v1.0 - Initial release
v1.1 - Updated to Magisk Module Template 1500
Click to expand...
Click to collapse
Hey there. I've just replaced values in flashled_calc_parameters.cfg as it's written (25000 changed to 500000) using root explorer and then rebooted my phone. It worked our too! Btw, I'm running CarbonROM 8.1 rooted with SuperSU.
@okij Hi, could u make it working with Magisk V18 and newest template + Android 9.0? But i tried searching that file and it isnt here?
Bartekreaper said:
@okij Hi, could u make it working with Magisk V18 and newest template + Android 9.0? But i tried searching that file and it isnt here?
Click to expand...
Click to collapse
I didn't try Android 9 CarbonROM yet and most likely won't use it for the next couple of weeks since I need my Z3c as my daily driver and the ROM must be reasonably stable and bug-free.
Are you saying that flashled_calc_parameters.cfg isn't in folder system/etc/ anymore on Android 9?
The Torch Boost Magisk Module v1.1 still works fine with Magisk v18.0 under Android 8.1, so currently there's no need to update to the newest template.
okij said:
I didn't try Android 9 CarbonROM yet and most likely won't use it for the next couple of weeks since I need my Z3c as my daily driver and the ROM must be reasonably stable and bug-free.
Click to expand...
Click to collapse
I'm using the latest version of CarbonROM on my Z3C and the module works fine.

Categories

Resources