[MAGISK][mido]White Torch Light with Dual Flash for Camera and More - Xiaomi Redmi Note 4 Themes, Apps, and Mods

This is my personal MAGISK mod that I use. It's quite versatile as one can change it depending on what one needs. It's just a matter of uncommenting/commenting out the related lines, beginning with 'write /sys/....'
You'll find them in the common folder in services.sh and post-fs-data.sh.
Currently it has been set up to change the yellow torch light in custom ROMs to white while retaining the camera's dual flash.
You do not need to change anything if you just need the above functionality, just download and load the mod in Magisk.
However, if you wish to try out the other tweaks included then you'll need to unzip it, change the wanted values and zip them again to be able to flash it in Magisk; I use ZArchiver.
All these tweaks were cherry picked from the sample.sh script so generously provided by @DarthJabba9 in his thread.
If your looking for more cool tweaks and tweaks for devices without Magisk, you should check out his thread.
Tweaks available in this MOD:
-white flash light and/or torch (depending on what you change)
-limit max CPU scaling frequency (for more battery life)
-set idle GPU to 133 Mhz (for more battery life)
-correct screen retention for Tianma displays
-change the read ahead value for external storage
Read the codes in the services.sh and post-fs-data.sh to find out more.
This has been tested on Oreo but should work for Nougats as well
Enjoy!!
Download
CREDITS:
@DarthJabba9
WORD OF CAUTION:
Apart from using the values provided in the scripts by un-commenting them, do not try to change the values or lines on your own if you're not aware of what it does/will do. It can seriously damage your device and anyone including me shall not be held responsible for it.

'''Update:'''
'''07/10/2018'''
using only
write /sys/class/leds/led:torch_1/max_brightness 0

Thanks man.. ??

Will this work in lineageOS 15.1 (build 2018-06-18) on mido?
Will i have to unpack and repack it if i just want white light from notifications panel or just installing from magisk will be sufficient?
Sorry , I am a noob.

Yes
Yes, just use as is
OP updated for more clarity, thanks

This module of your magisk could have bad effect in custom kernel sir?

jhun3xx said:
This module of your magisk could have bad effect in custom kernel sir?
Click to expand...
Click to collapse
In which way?

thapaavijeet said:
In which way?
Click to expand...
Click to collapse
In speed and batt life sir.. Im using overclock kernel

jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.

jhun3xx said:
In speed and batt life sir.. Im using overclock kernel
Click to expand...
Click to collapse
If your just using the mod as is, without changing anything in it, then it does not do anything else other than change the torch light colour.

Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Sent from my Redmi Note 4 using XDA Labs

arvarobert said:
Noob here!
I want this tweak:correct screen retention for Tianma display.
What to do in service.sh?Should i remove the"#"sign from that line or what?
Click to expand...
Click to collapse
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!

thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Ok i will inform you, but how to know if it's working?
Sent from my Redmi Note 4 using XDA Labs

arvarobert said:
Ok i will inform you, but how to know if it's working?
Click to expand...
Click to collapse
I was trying this for sometime now and it appears that this only works with kernels that have support for KCal control.
However, I might be completely wrong considering that I'm a bigger noob than what you yourself claim to be....
I was trying to take screenshots of screen retention... :laugh: :silly:

thapaavijeet said:
Yeah, remove, zip and then load in Magisk.
However, I'm not sure that it will work coz I guess it has got something to do with the kernel too.
You may try and let me know, would be great!
Click to expand...
Click to collapse
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention

chickentuna said:
Hey man, this module does not seem to work in RR unofficial by endless. This rom has XiaomiParts included in it wherein you can adjust the white/yellow led brightness. I only want white led in torch but dual led in camera flash.
Sorry for quoting this. Just needed to get your attention
Click to expand...
Click to collapse
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Code:
cat /sys/class/leds/led:flash_1/max_brightness
cat /sys/class/leds/led:torch_1/max_brightness
cat /sys/class/leds/torch-light1/max_brightness

thapaavijeet said:
could you get the output of these three commands from a terminal emulator or adb. You would require root privileges to run them
Click to expand...
Click to collapse
All done using default led settings
Edit: This is with the magisk module enabled

chickentuna said:
All done using default led settings
Click to expand...
Click to collapse
unpack the mod zip and remove the comment in the below line in service.sh
Code:
#write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
to
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 0
zip all the files again and load it in Magisk.
Check if that works

So currently I'm running on these settings and this gives me super bright while torch along with dual flash as long as I focus and click.
Can someone out there please guide us on what the appropriate values should be before one of us ends up blowing our leds.
I could only figure out that one of them should be always set to zero for the white torch
Code:
write /sys/devices/soc/qpnp-flash-led-25/leds/led:torch_1/max_brightness 2000
write /sys/class/leds/led:flash_1/max_brightness 1000
write /sys/class/leds/led:torch_1/max_brightness 0
write /sys/class/leds/torch-light1/max_brightness 1000
changed the values again in hopes for moderation

thapaavijeet said:
unpack the mod zip and remove the comment in the below line in service.sh
to
zip all the files again and load it in Magisk.
Check if that works
Click to expand...
Click to collapse
Tried. Didn't work

Related

[CM12/12.1-UPDATED] S4 Display Color Profiles for CyanogenMod 11, 12, 12.1

### CM12(.1) UPDATE ### (see bottom)
Hey Folks,
are you also tired of the oversaturated colors of the S4 amoled display??
I found out that the S4minisettings.apk, that was originally developed for the S4 Mini by @F4k to regulate the saturation and other colour concerning features, does the job for the S4 aswell! It works very similar to the colour profiles built into samsung stock roms.
After installation you can find a new settings option "advanced settings" in systemsettings/display just like they're are built in into the carbon roms.
Installation:
Download the apk from the link below.
Then you have to manually put the s4minisettings.apk to /system/app and after that it's very important to set ownership and permissions as follows:
Owner: root, root
Permissions: rw,r,r (644)
reboot!
The main option to reduce the saturation is called "Mode - Set the mDNIe mode". I choose "natural" and the oversaturation of the display is gone!
Some other options don't apply until you switch screen off an on once.
___________________________________________________
The apk can be downloaded here:
http://forum.xda-developers.com/attachment.php?attachmentid=2443961&d=1386605141
original thread here (search for F4K's post):
http://forum.xda-developers.com/showthread.php?t=2558702&page=11
you may also want to have a look at s4miniarchive who did a good article/video about it:
http://www.s4miniarchive.com/2014/01/enable-color-saturation-galaxy-s4-mini-cyanogenmod11.html
all thanks go to @F4k for creating this nice apk!
###CM12(.1)-Instructions###
So, f4k made a new lollipop version of this tool S4MiniSettings and built it into his S4 Mini cm12 rom. I extracted it and offer it to you for download.
Instructions:
- extract zip
- copy the folder "S4Minisettings" to /system/app folder
- set permissions of the folder to rwxr-xr-x (755), the apk to rw-r--r-- (644)
- reboot
- after reboot there is a new icon in the app drawer
- if you prefered the setting "natural" from the kitkat version, now choose "movie"
Notes:
- Important: SELinux level higher than "strikt"/"enforcing" is needed to write to system folder and/or set permissions, and the apk to be loaded at boot. Custom kernels like Alucard mostly got SELinux set to "moderat".
- Don't be confused about the app name - it does work with the S4 - definitely!
Doesn't S4 4.4.2 have this by default? I can do same changes through my Display settings - no need for additional apk.
I use kernel perseus to better experience with real colors.
Enviado do meu GT-I9500
creage said:
Doesn't S4 4.4.2 have this by default? I can do same changes through my Display settings - no need for additional apk.
Click to expand...
Click to collapse
The "S4" has this by default in the Touchwiz ROM it ships with, but this thread is about CyanogenMod.
Speaking of which, it possible to adjust color cast in CM11 on my Note 8.0 under Display/Display Advanced. Maybe this feature will also come to CM11 on the i9500.
When i reboot nothing happends :/ i have everything like you said, bit it doestn appear. I have cm 11 snapshot m3, help?
Or does this only work on nightlies build?? :crying:
elmaku said:
When i reboot nothing happends :/ i have everything like you said, bit it doestn appear. I have cm 11 snapshot m3, help?
Click to expand...
Click to collapse
Did you set the permissions and owner correctly? Otherwise it can't work.
Peter Semper said:
Did you set the permissions and owner correctly? Otherwise it can't work.
Click to expand...
Click to collapse
the permissions are exactly like you have it, but still its not working. It doesnt scan my apps when I reboot :/. Also worth noting, every time i go to see the permissions or change it it says in a square. "The current file system is read-only. Do you want to remount as read-write and continue the operation?" I click yes, then i change it rw--r--r and reboot and nothing happends. When I go check it againg is the same prosses all over againg.
Edit: Also, in my settings I have Display & lights instead of "Display" as the video shows. I know nothing and I understand this may be a dumb question, but it may had to do with the problem? sorry.
Over-saturated colours of S4? Oh Dear Lord :|
elmaku said:
the permissions are exactly like you have it, but still its not working. It doesnt scan my apps when I reboot :/. Also worth noting, every time i go to see the permissions or change it it says in a square. "The current file system is read-only. Do you want to remount as read-write and continue the operation?" I click yes, then i change it rw--r--r and reboot and nothing happends. When I go check it againg is the same prosses all over againg.
Click to expand...
Click to collapse
Which file manager do you use? "root explorer" i.e. has sometimes problems and sais it's write protected. I use "root browser" which does a good job, mostly.
devilsdouble said:
Over-saturated colours of S4? Oh Dear Lord :|
Click to expand...
Click to collapse
killjoy
Peter Semper said:
Which file manager do you use? "root explorer" i.e. has sometimes problems and sais it's write protected. I use "root browser" which does a good job, mostly.
Click to expand...
Click to collapse
I have used both! and none of them works when I reboot . Man what a bad luck I have.
elmaku said:
I have used both! and none of them works when I reboot . Man what a bad luck I have.
Click to expand...
Click to collapse
And also tried the file manager provided with cm 11? Just have to "unleash" it in the options, I mean enable root mode.
Peter Semper said:
And also tried the file manager provided with cm 11? Just have to "unleash" it in the options.
Click to expand...
Click to collapse
Nope... just tried it and it doesnt optimize the apps when rebooting. I'm stuck.
elmaku said:
Nope... just tried it and it doesnt optimize the apps when rebooting. I'm stuck.
Click to expand...
Click to collapse
Very strange, you must have done something wrong.
Peter Semper said:
Very strange, you must have done something wrong.
Click to expand...
Click to collapse
I really don't understand :/... It is just not detecting it... maybe an option I have enable? I hate these saturated colors... :/ maybe it is only on nightlies?
Another options
splitterzelle said:
Hey Folks,
are you also tired of the oversaturated colours of the S4 amoled display??
I found out that the S4minisettings.apk, that was originally developed for the S4 Mini by F4K to regulate the saturation and other colour concerning features, does the job for the S4 aswell! It works very similar to the colour profiles built into samsung stock roms.
....
The apk can be downloaded here:
http://forum.xda-developers.com/attachment.php?attachmentid=2443961&d=1386605141
....
all thanks go to F4K for creating this nice apk!
Click to expand...
Click to collapse
This apk requires way too many permissions for the task it performs... Suspicious...
There is another option: KTweaker tool which comes with Ktoonsez kernels also allows to modify this setting (works with CM11 kernel, not only with Ktoonsez) .
After all this setting can be set via kernel "/sys" filesystem. From terminal emulator execute command:
Code:
echo 2 > /sys/class/mdnie/mdnie/mode
To make this change permanent (survive reboots and ROM updates) one may use init.d supplied with CM11, and create additional script in /data/local/ (in this location script will survive CM update).
Seems like init.d in CM11-M10 doesn't start scripts in /data/local/userinit.d/ directory, so the only option is to place script code to /data/local/userinit.sh
Permissions of this script must be set to 0755 (-rwxr-xr-x).
For anyone who interested in adopting this method I've prepared template script (also it sets some other available screen options, not only mode):
Code:
#!/system/bin/sh
# For SGS4 screen mode can be chosen from:
# 0 - STANDARD
# 1 - DYNAMIC
# 2 - MOVIE
# 3 - NATURAL
echo 3 > /sys/class/mdnie/mdnie/mode
# For SGS4 screen scenario can be chosen from:
# 0 - UI_MODE
# 1 - VIDEO_MODE
# 2 - VIDEO_WARM_MODE
# 3 - VIDEO_COLD_MODE
# 4 - CAMERA_MODE
# 5 - NAVI
# 6 - GALLERY_MODE
# 7 - VT_MODE
# 8 - BROWSER
# 9 - eBOOK
echo 0 > /sys/class/mdnie/mdnie/scenario
# Other parameters are boolean: 0 - Disabled, 1 - Enabled
echo 0 > /sys/class/mdnie/mdnie/negative
echo 0 > /sys/class/mdnie/mdnie/outdoor
Additionally I've prepared TWRP (CWM should work also, but I've not tested) installable version of this script (see attachment).
In that case if you dislike my default setting you'll need to unpack it, edit "data/local/userinit.sh" and pack it back using zip.
PS
This MAY work with other Samsung AMOLED devices. I can confirm that it works with galaxy tab 7.7 (p6800).
qolob said:
This apk requires way too many permissions for the task it performs... Suspicious...
Click to expand...
Click to collapse
It's not suspicious in any way! The developer f4k who wrote this little apk is a very honorable guy, just have a look at his profile and all of the work he does...
This apk does the job perfectly and doesn't do any harm to nothing.
Your remark/comment is very unnessessary here. So why don't you go start a thread your own instead of lousing this one up?
splitterzelle said:
It's not suspicious in any way! The developer f4k who wrote this little apk is a very honorable guy, just have a look at his profile and all of the work he does...
This apk does the job perfectly and doesn't do any harm to nothing.
Click to expand...
Click to collapse
I'm not trying to blame anyone in anything.
I'm not a pro in android programming and maybe such permissions are implied to all apk's that manage system settings.
However I can't see any reason for app that manages screen settings to require permissions to make calls, access user contacts etc. and it seems suspicious to me. That's all.
splitterzelle said:
Your remark/comment is very unnessessary here. So why don't you go start a thread your own instead of lousing this one up?
Click to expand...
Click to collapse
When I was searching how to setup screen settings in CM11 on SGS4 I've found only this thread. And when I've managed to solve this problem with alternative method I've decided that other users maybe interested in this information. I've posted to Your thread because I thought that it is a good idea to post all possible solutions for 'S4 amoled display colour profiles with cyanogenmod 11' in one thread to help other people find them quickly and in one place.
Sorry if I was wrong and violated something.
qolob said:
I'm not trying to blame anyone in anything.
I'm not a pro in android programming and maybe such permissions are implied to all apk's that manage system settings.
However I can't see any reason for app that manages screen settings to require permissions to make calls, access user contacts etc.
...
Sorry if I was wrong and violated something.
Click to expand...
Click to collapse
Mostly when there are high ranking permissions for an app requested, it isn't because of maliciousness of the author, it's often just carelessness of the creator not deactivating them in the building tool's presets he uses.
And after all, just don't be so mistrustful about things coming from senior xda developers......
This method I announced here is very simple to install, safe and works perfectly even with the latest nightlies so far.

Deleted

Old thread.
You're the best, mate
minimale_ldz said:
You're the best, mate
Click to expand...
Click to collapse
Much appreciated and hope you all find it usefull to use. Just saw soniCron released a new script called "hawktail" based on a total different technique using an extreme low timer_rate. Shall try to translate that also next week and if it works ill add this in the thread.
Make a donation link. We love you.
Hi guys! And thanks for your work, @Sickaxis79!
A noob question here. Could these scripts be applied to another governor? Precisely, impulse which is supposed to be similar to interactive?
Sent from my XT1562 using Tapatalk
stazz83 said:
Hi guys! And thanks for your work, @Sickaxis79!
A noob question here. Could these scripts be applied to another governor? Precisely, impulse which is supposed to be similar to interactive?
Sent from my XT1562 using Tapatalk
Click to expand...
Click to collapse
Im afraid that ain't possible. Impulse governor use some different tunables, but you can for example use one interactive script for the big or small cpu and use impulse governor for the other cpu.
Applied the two profiles with latest squids kernel and cm13. Working Great so Far. I guess i have to manually disable touchboost everytime?
Leni_YO said:
Applied the two profiles with latest squids kernel and cm13. Working Great so Far. I guess i have to manually disable touchboost everytime?
Click to expand...
Click to collapse
Yes, its best to disable touchboost. Touchboost is a kernel/rom extra feature. Im also using latest squid kernel with stock rom and dont have this feature and forgot to disable it by default. I will check if i can update the script so its also disables touchboost. Im used to create and edit init.d scripts, but json files k.a. uses are a total different language, but ill try.
Master Mike, how are these scripsts working with optimized init.qcom.post_boot.sh you posted once. Should it be restored to default/stock one or can it all work together? Thanks
minimale_ldz said:
Master Mike, how are these scripsts working with optimized init.qcom.post_boot.sh you posted once. Should it be restored to default/stock one or can it all work together? Thanks
Click to expand...
Click to collapse
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.
Sickaxis79 said:
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.
Click to expand...
Click to collapse
Is KA changing them after boot anyway if it's got some scripts applied?
minimale_ldz said:
Is KA changing them after boot anyway if it's got some scripts applied?
Click to expand...
Click to collapse
Reboot reverts all stock settings unless you enable the checkbox "on boot". It will always first launch your normal stock settings and after the phone finished starting up it will launch the k.a. scripts.In the settings menu you can set the timer how many seconds after boot the scripts will launch.
You can always launch them manually when you dont want to apply them on boot. Just tap on the 2 scripts you imported and it will ask to launch them and finished.
Edit: K.a. overwrites the normal stock settings after youre phone booted temporarily.
Sickaxis79 said:
Reboot reverts all stock settings unless you enable the checkbox "on boot". It will always first launch your normal stock settings and after the phone finished starting up it will launch the k.a. scripts.In the settings menu you can set the timer how many seconds after boot the scripts will launch.
You can always launch them manually when you dont want to apply them on boot. Just tap on the 2 scripts you imported and it will ask to launch them and finished.
Edit: K.a. overwrites the normal stock settings after youre phone booted temporarily.
Click to expand...
Click to collapse
Got it, thanks
Can't import ghostpepper profiles, k.a. says the file is malformed. Great work btw, keep it up.
too bad i have the free version ...
thanks for your work, the script works very well in resurrection rom and optimus kernel, can someone upload the stopperfd script? the KA doesnt work for me creating the script
I've reached over 7hrs SOT on the first run after applying the profiles with 75% Charge left. Good job!
zenez said:
thanks for your work, the script works very well in resurrection rom and optimus kernel, can someone upload the stopperfd script? the KA doesnt work for me creating the script
Click to expand...
Click to collapse
You can also do this using a terminal emulator
Type: "su" (root permission) and "stop perfd".
Sickaxis79 said:
No problem. Post_boot script contains the stock settings and applies them first when the phone startup.
Click to expand...
Click to collapse
Thanks for answering for me.
ViperX85 said:
Can't import ghostpepper profiles, k.a. says the file is malformed. Great work btw, keep it up.
Click to expand...
Click to collapse
BUMP

[MOD][All Variants ~ G93xx][6.0 - 8.0] Bett3r Battery and Performance with Kernel Twe

Hola Amigos!
Gonna do some Spanglish here... Well just that. Anyways; Welcome to the thread!​
The goal of this is to give you better performance and battery, and now supports ALL S7s!!!
Instructions -
1.) Download .zip
2.) Flash with FlashFire
3.) Enjoy​
A very in-depth explanation of what everything does can be found here
Downloads - ​
Qualcomm V1.7 -
Download
MD5: e4a12cdae58062b956d18d72bdd1f8be
Exynos V1.7 -
Download
MD5: 273f7e01c3ddc49cbb8d205fd4d9133d
If you're rooted with Magisk, make sure to copy the file "44tweaks" from /system/su.d into the service.d directory and give it full permissions (0777)
(/magisk/.core/service.d)
Thanks -​ @kevp75 - The usual, him being great
@king3opobn - Exynos info and testing
sweet.
will test next time I flash
Hi can i install this in G9350?i tried to flash but there is an error...
thanks
krisjuls said:
Hi can i install this in G9350?i tried to flash but there is an error...
thanks
Click to expand...
Click to collapse
What type of error? Make sure to mount /system on FlashFire
Craz Basics said:
What type of error? Make sure to mount /system on FlashFire
Click to expand...
Click to collapse
i use twrp and the error is: updater process ended with error: 7
error installing zip file 'external-sd/download/
craz_s7_Tweaks_v1.2.zip'
Thanks
krisjuls said:
i use twrp and the error is: updater process ended with error: 7
error installing zip file 'external-sd/download/
craz_s7_Tweaks_v1.2.zip'
Thanks
Click to expand...
Click to collapse
Try FlashFire and/or move to internal storage?
If still no cigar, I'll take a look tomorrow. For now if you'd like to use it you can extract it and in "system" take the file and put it in /system/su.d
If you do not have the folder su.d, create it and give it full permissions "0777" and then also give the script fill permissions inside the su.d folder "0777". Then reboot
Thanks
Craz Basics said:
Try FlashFire and/or move to internal storage?
If still no cigar, I'll take a look tomorrow. For now if you'd like to use it you can extract it and in "system" take the file and put it in /system/su.d
If you do not have the folder su.d, create it and give it full permissions "0777" and then also give the script fill permissions inside the su.d folder "0777". Then reboot
Thanks
Click to expand...
Click to collapse
I use flashfire and its done....'ll test the battery life & performance....Many Thanks
If I root and flash this in flashfire and then unroot, will the kernel tweaks still be working or no?
Illyakulinych said:
If I root and flash this in flashfire and then unroot, will the kernel tweaks still be working or no?
Click to expand...
Click to collapse
No, su daemon is needed for su.d to work.
krisjuls said:
I use flashfire and its done....'ll test the battery life & performance....Many Thanks
Click to expand...
Click to collapse
Can you ensure that it is running on boot please (go to /data and you'll see a log file at the bottom).
Then make sure the tweaks are taking... Go into kernel adiutor and go to the CPU tab (it's an app) and then make sure the governor is set to "interactive" and then select governor tunables on the little governor (second governor tunables button, closer to the bottom) and tell me what the first box says.
Thanks
Craz Basics said:
- I have also changed the scaling_max_freq so the CPUs can reach their full freq. (1593 mhz for little and 2150 mhz for big)​
Click to expand...
Click to collapse
Arent full frequency speeds different speeds ? like 2600Mhz on the big core for instance ?​
whitelightning76 said:
Arent full frequency speeds different speeds ? like 2600Mhz on the big core for instance ?
Click to expand...
Click to collapse
Yes, I've set 2160 mhz for big, and 1593 mhz for litte... the max.
Not sure if I understood your question fully, hopefully I answered it.
Here are some results with version 1.2 (brightness is just under half) -
I'm still working on making it better
* Those of you on non US qualcomm variants will probably get better than this!
I know, I know... Three posts in a row... Deal with it ;p
Version 1.3 is up! Check out changes in OP!
i want to install with TWRP how can i do u could convert for it
montafede said:
i want to install with TWRP how can i do u could convert for it
Click to expand...
Click to collapse
Should be able to
*unrelated to above*
I will be taking a break, not sure when ill be back. Ill still be active in threads but no updates until Im back.
Craz Basics said:
Should be able to
*unrelated to above*
I will be taking a break, not sure when ill be back. Ill still be active in threads but no updates until Im back.
Click to expand...
Click to collapse
tank u but no work with TWRP i used flashfire great work bro
best reguards take care
montafede said:
tank u but no work with TWRP i used flashfire great work bro
best reguards take care
Click to expand...
Click to collapse
TWRP still didn't work? And thanks!
Phone heating up, battery drain , performance gud
Sac23 s8 port / TGP kernel . / stock config.
hardik190 said:
Phone heating up, battery drain , performance gud
Sac23 s8 port / TGP kernel . / stock config.
Click to expand...
Click to collapse
With tweaks?

[MOD][7.1 ONLY][FLASHABLE ZIP] Fix Yellow Torchlight

Install in recovery. Im sharing a fix for getting white torchlight in quicksettings.
Download :
https://drive.google.com/file/d/1_zQQ6iuRmefIUAZbYbxlMrJZutmYpTQb/view?usp=drivesdk
Kevin Saiza said:
Install in recovery. Im sharing a fix for getting white torchlight in quicksettings.
Download :
https://drive.google.com/file/d/1_zQQ6iuRmefIUAZbYbxlMrJZutmYpTQb/view?usp=drivesdk
Click to expand...
Click to collapse
Anything for oreo 8.1?
Sent from my Redmi Note 4 using Tapatalk
Souptik Mukherjee said:
Anything for oreo 8.1?
Click to expand...
Click to collapse
You can use magisk module to disable yellow flash
Thanks for the contribution, but I have a question, this permanently disables the yellow flash or only does it when you turn on the flashlight, because the yellow flash if I need it for the photos
thanks for the reply
jawahar.T said:
You can use magisk module to disable yellow flash
Click to expand...
Click to collapse
share the link pls?
iamdrdrb said:
share the link pls?
Click to expand...
Click to collapse
https://forum.xda-developers.com/redmi-note-4/themes/magisk-module-disable-yellow-flash-t3788346
Kevin Saiza said:
Install in recovery. Im sharing a fix for getting white torchlight in quicksettings.
Download :
https://drive.google.com/file/d/1_zQQ6iuRmefIUAZbYbxlMrJZutmYpTQb/view?usp=drivesdk
Click to expand...
Click to collapse
Thanks for this resource. But did you realise that the zip also contains many other things that have nothing to do with torchlights (some of your own stuff)?
Kevin Saiza said:
Install in recovery. Im sharing a fix for getting white torchlight in quicksettings.
Download :
https://drive.google.com/file/d/1_zQQ6iuRmefIUAZbYbxlMrJZutmYpTQb/view?usp=drivesdk
Click to expand...
Click to collapse
Will I be able to enable yellow light( if needed) after flashing this? Also, what colour of light is flashed in camera?
I'm on LineageOS 14.1 for mido, 3 gb ram and 32 gb memory, snapdragon processor.
Pranjul said:
Will I be able to enable yellow light( if needed) after flashing this? Also, what colour of light is flashed in camera?
I'm on LineageOS 14.1 for mido, 3 gb ram and 32 gb memory, snapdragon processor.
Click to expand...
Click to collapse
Yellow light will be permanently disabled
DarthJabba9 said:
Thanks for this resource. But did you realise that the zip also contains many other things that have nothing to do with torchlights (some of your own stuff)?
Click to expand...
Click to collapse
I just found this zip in lineage 14 forum. Its not mine. Can you identify whats other things in it except the yellowish flash fix ?
Also can i delete the system/bin/ files seen on zip file on my rom ?? Will that cause system crash ?
And backup file in addon.d/ ?
Kevin Saiza said:
I just found this zip in lineage 14 forum. Its not mine. Can you identify whats other things in it except the yellowish flash fix ?
Also can i delete the system/bin/ files seen on zip file on my rom ?? Will that cause system crash ?
And backup file in addon.d/ ?
Click to expand...
Click to collapse
I never install a zip without first checking its contents.
Everything in the zip file's system directory has no relevance to the yellow flash fix. It replaces your /etc/hosts file. It also installs several scripts into your /system/bin/ directory, and (with /system/addon.d/76-backup.sh) tries to make them persistent when you change your ROM.
I have not bothered to study all the scripts that it installs to your /system/bin/ directory - but I personally would delete them (and the script that it installed to /system/addon.d as well). I cannot see why deleting them would cause a system crash - but, as I said, I have not studied them all.

Magisk AOSP WiFi mod

I already created a similar mod for the OnePlus 5. Although Essential seems to use - more or less - the stock Google WCNSS_qcom_cfg.ini file, there is always some space to improve things a little bit.
So, what does this mod do? It replaces the /system/vendor/etc/wifi/WCNSS_qcom_cfg.ini and the /system/vendor/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini files with the stock Google one's, with some custom values. For example, GreeAp is enabled, or changed the Phy Mode from 0=Auto to 9=ac. I'll add the source code on GitHub later. In the meanwhile, enjoy!
Source:
https://github.com/RogerF81/aospwifi
RogerF81 said:
I already created a similar mod for the OnePlus 5. Although Essential seems to use - more or less - the stock Google WCNSS_qcom_cfg.ini file, there is always some space to improve things a little bit.
So, what does this mod do? It replaces the /system/vendor/etc/wifi/WCNSS_qcom_cfg.ini and the /system/vendor/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini files with the stock Google one's, with some custom values. For example, GreeAp is enabled, or changed the Phy Mode from 0=Auto to 9=ac. I'll add the source code on GitHub later. In the meanwhile, enjoy!
Click to expand...
Click to collapse
Can you add some ELI5 info on what this is? I'll look it up for now, but it means nothing to me, and I'm normally pretty savvy.
gk1984 said:
Can you add some ELI5 info on what this is? I'll look it up for now, but it means nothing to me, and I'm normally pretty savvy.
Click to expand...
Click to collapse
Yeah sure, I can try at least :good:
Will it work with custom roms?
crankiro97 said:
Will it work with custom roms?
Click to expand...
Click to collapse
Yes.
how this benefits wifi bro?
yenkoPR said:
how this benefits wifi bro?
Click to expand...
Click to collapse
In theory, espacially higher speeds. In practice, you have to find out
Update
New update is out! I updated to the latest Magisk module template, which is compatible or better said mandatory for Magisk v19+. Also, I changed some minor things.
Note: It is not possible to just put the according stock Pixel 3 XL's file in here, as ithis will lead to no working WiFi (it can't be turned on). I don't why this happens, but I'm digging into it and perhaps I can find the culprit. In the meanwhile, the modded stock Essential's file is fine for sure
Edit: Finally added the source in OP, too!

Categories

Resources