[MOD][CUSTOM-ROM][ROOT] Use B/W Sensor on third party cameras - Xiaomi Mi 5s Plus Themes, Apps, and Mods

Hi everyone!
Since a lot of users that use custom roms usually miss the use of the secondary camera on Mi5SP (the Black&White sensor) i'll write here a guide to enable it on most third party cameras (GCamera excluded)
As you may already know it does work on Snapdragon camera, but i never use it because it's an old version and it's so buggy (when press to focus you can't shoot).
ok, enough talk, here's what to do:
Pick the camera of your choice, i find the best use with FreeDCam or OpenCamera
Open the info about the app from the app list to copy its package name (for example, OpenCamera: net.sourceforge.opencamera ; FreeDCamera: troop.com.freedcam )
Using a root file manager open build.prop (on Pie and some recent Oreo roms it will be /vendor/build.prop , /system/build.prop otherwise)
Find the string
Code:
vendor.camera.aux.packagelist
(or add it at the end of the file) and append
Code:
,[package-name]
(eg. for opencamera will be
Code:
[COLOR="red"]vendor.camera.aux.packagelist=[/COLOR]other.snap.cameras[COLOR="red"],net.sourceforge.opencamera[/COLOR]
)
Save the file and reboot
Voilà! Open up your camera and upon switching between cameras now includes the secondary sensor!
Hope you'll find it useful, remember that you'll need to add this line every update of the rom, i'll may make a magisk module later to make things easier between updates/rom changes.
Cheers! :highfive:

danypava said:
ok, enough talk, here's what to do:
Pick the camera of your choice, i find the best use with FreeDCam or OpenCamera
Using a root file manager open build.prop (on Pie and some recent Oreo roms it will be /vendor/build.prop , /system/build.prop otherwise) :
Click to expand...
Click to collapse
Open build.prop and.. what next?

maniakjabuek said:
Open build.prop and.. what next?
Click to expand...
Click to collapse
I think it's clear enough... Open it (meaning with a text editor of course, we're going to add some code here) and just search for the string vendor.camera.aux.packagelist. If you can't find it, add it to the end of the file.
Then just write any camera package name according to the guide, if you want to use one of the two mentioned use the packages provided.
If you want it plain and simple, copy and paste:
Code:
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,org.lineageos.snap,net.sourceforge.opencamera,troop.com.freedcam
Paste this in your build.prop (and override the existing line if there is any), save and reboot.

Thank you very much

Is there any way to install the MIUI original camera on a custom ROM?
I'm currently using LOS16 and it's much better than stock MIUI.. but I really miss the original camera app with the b/w option..

danypava said:
Hi everyone!
Since a lot of users that use custom roms usually miss the use of the secondary camera on Mi5SP (the Black&White sensor) i'll write here a guide to enable it on most third party cameras (GCamera excluded)
As you may already know it does work on Snapdragon camera, but i never use it because it's an old version and it's so buggy (when press to focus you can't shoot).
ok, enough talk, here's what to do:
Pick the camera of your choice, i find the best use with FreeDCam or OpenCamera
Open the info about the app from the app list to copy its package name (for example, OpenCamera: net.sourceforge.opencamera ; FreeDCamera: troop.com.freedcam )
Using a root file manager open build.prop (on Pie and some recent Oreo roms it will be /vendor/build.prop , /system/build.prop otherwise)
Find the string
Code:
vendor.camera.aux.packagelist
(or add it at the end of the file) and append
Code:
,[package-name]
(eg. for opencamera will be
Code:
[COLOR="red"]vendor.camera.aux.packagelist=[/COLOR]other.snap.cameras[COLOR="red"],net.sourceforge.opencamera[/COLOR]
)
Save the file and reboot
Voilà! Open up your camera and upon switching between cameras now includes the secondary sensor!
Hope you'll find it useful, remember that you'll need to add this line every update of the rom, i'll may make a magisk module later to make things easier between updates/rom changes.
Cheers! :highfive:
Click to expand...
Click to collapse
how it works? It will show a option to select the black and white sensor or I can mix to make a better photo?

samuk190 said:
how it works? It will show a option to select the black and white sensor or I can mix to make a better photo?
Click to expand...
Click to collapse
No, it just enables third party cameras to access the B&W sensor, it will be used as a standalone camera and switchable in the app by pressing the "change camera" button. Can't use both at the same time

Related

Android 4.4.3 - STOCK OS - DEBLOATED - 64bit

Android 4.4.3 - STOCK OS - DEBLOATED - 64bit
Hello everyone. Lets jump straight to the point. This here is a backup made with TWRP from the STOCK OS for the HTC Desire 510 64bit. The few plus sides are that is DEBLOATED and that it uses a kernel that has write protection removed. Just a side note: I am trying to make a flashable ZIP for this but I'm having issues. I always get boot loops. So for now this is your only option.
If you are familiar with TWRP and backups and all that stuff you can skip the next parts and download the ROM, If not, I advise you to read carefully the whole thread if you don't want to brick your device.
DOWNLOADs
Version 0.0.1 (STABLE) - https://mega.nz/#!nBJUDL7D!bmkQzsbywpbyJ7tzPybSRtYUG1LzsPNnv_M7wZr4PoA
Version 0.2.0 - DEODEXED - (BETA) - https://mega.nz/#!jApGjZDJ!zQoSmyaCSRBV6iBtQwEOR_mTYhzqYeFxhm5p1P-fk68
DISCLAIMER
I'm not responsible if you damage your device in any way!
What is changed?
Not much is changed.
Bellow are the app replacments I made:
1. Sense Home ---> NOVA Launcher
2. Sense Messages ---> Google Messages (Material Design)
3. Sense Calculator ---> Xlythe Calculator (Material Design)
4. Sense Calendar ---> Google Calendar (Material Design)
5. Sense Clock ---> Google Clock (Material Design)
6. Sense File Manager ---> ES File Explorer
7. Sense Weather ---> AccuWeather
4. Sense Keyboard ---> Google Keyboard
I removed a lot of HTCs and Google’s useless apps and other things, that are taking up space and resources.
From Google apps you have left:
1. Google Play Store
2. Google Chrome
3. Google Play Games
4. Google Drive
4. YouTube
5. All other background apps and services that are required for the Google apps to function properly.
From HTC apps you have left:
1. Camera app
2. FM Radio
3. Gallery (I couldn't find a decent replacement)
4. Music
5. Photo Editor
6. LockScreen
I have removed the HTC Browser, Zoe, E-mail and other useless stuff from HTC.
I have included:
1. Clean Master Lite - It's much faster than the full blown app and gets the job done. Lots of people hate it but it works like a charm on this device.
2. DiskInfo - With this little app you can see all of the partitions on your device. Regardless if you are S-ON or S-OFF.
3. Glim Lite - A set of beautiful Material design icons for NOVA launcher.
I didn't include an E-mail app because the Play Store is full of them and I couldn't choose. This choice is up to you.
How to install it?
First of all you need an unlocked bootloader with a TWRP - custom recovery installed on your device.
To unlock your bootloader go here http://forum.xda-developers.com/desire-510/development/bootloader-unlock-htc-desire-510-t2910233. Follow that tutorial to get your bootloader unlocked. After a successful unlocking you'll need a custom recovery.
Download this file: https://dl.twrp.me/a11ul/twrp-3.0.2-0-a11ul.img. This is the latest TWRP recovery for our device. Now we need to flash this file on the device:
Before starting put the contents of the ZIP file on to your SD card. And make sure that it has this folder structure:
Code:
--SD CARD
--TWRP
--BACKUPS
--Your device serial number (The name of this folder should be the serial number of your device otherwise TWRP won't see the backups in this folder)
--2016-04-17--13-49-21_KTU84L_release-keys (Don't change this, I don't know what will happen if you do)
1. Power off your device by pulling the battery out and putting it in again.
2. Press the Volume Down and Power Buttons until you see the HBOOT screen.
3. Press the Power button again to enter Fastboot mode.
4. Connect your phone with your PC using an USB cable.
5. Now open your terminal (I'm using Ubuntu but it's same in Windows as well) and type:
Code:
fastboot devices
This will show you an output like this:
Code:
--your devices serial number-- fastboot
If it doesn't show you an output like that then you probably didn't install the drivers correctly or you have a faulty USB cable.
If your output is the same as above than we can move on.
This command will flash the TWRP recovery on your device:
Code:
fastboot flash recovery /full/path/to/the/recovery.img
Example:
Code:
fastboot flash recovery /home/denny/Downloads/twrp-3.0.2-0-a11ul.img
Now you have TWRP on your device.
To boot TWRP press the Power button to go back to the HBOOT screen and navigate to the RECOVERY option with the volume keys and again press the Power button. After a few seconds you'll see your new recovery.
Restoring the backup
First we need to wipe any potential data that will cause conflicts with the new system.
1. Tap on "Wipe"
2. Tap on "Advanced Wipe"
3. Select all but leave the Micro SDCard option unchecked.
4. Swipe the slider to wipe the data.
After that is complete press on the house button on the lower end of the screen.
Now we are going to restore the backup:
1. Tap on the "Restore" button.
2. At the lower left corner tap on "Select Storage" button.
3. Choose "Micro SDCard" option and press OK.
4. Now you should see the backup folder. Open it.
5. Select "Boot" and "System" and swipe to start the restoring process.
6. Press "Reboot System" after the restoring has finished.
After you setup you system apply the Glim Lite icon pack to NOVA launcher.
Bellow are some screenshots of the new look.
Big thanks to:
@wolfaas12345 - for providing a tutorial on how to unlock your bootloader.
@rbheromax - for making a kernel with write protection removed.
@patrik.KT - for developing the TWRP recovery for our device.
If you are having any trouble ask a question on this thread or send me a private message.
XDA:DevDB Information
DeSense, ROM for the HTC Desire 510
Contributors
denny.hell
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: None
Based On: Stock Sense 6.0 / 1.51.401.7
Version Information
Status: Stable
Created 2016-08-13
Last Updated 2018-03-23
BETA testers for OTA updates
I have managed to enable a function for our ROM to receive OTA updates directly from me. This will make updates more easy to be deployed and cuts down the time for me to upload the whole ROM and for you to download it and flash it. Be advised that this is for testing purposes only (for now). I don't know how much stable the ROM will be after receiving an update.
By flashing the ZIP file below you acknowledge that you are wiling to become a BETA tester and that you do this at your own risk.
Step 1.
You need to download the ZIP file below this post and flash it like any normal flashable ZIP.
The ZIP file contains a new app for OTA Updates, a new lib file for proper functioning of the app and an edited build.prop file. The build.prop file contains information to tell the app where to check if new updates are available, so please do not edit it yourself.
The app will say that there are no updates. That is not a bug, error or a glitch. Currently there are no updates. When an update is deployed the app will send you a notification.
Step 2.
Send an email to [email protected] to confirm that you have downloaded and flashed the ZIP file and that you are willing to be a BETA tester. Please use a valid email because I will be contacting you to share feedback about the new updates and discuss any issues you might have.
Reserved
Thanks a lot for the sharing!
I will definitely test it
BTW you say that you have problem - bootloop with the .zip, did you tried to flash boot.img manually after flashing of the .zip?
Also instead of gallery I use simply photos by google
Or there is also lightweight Gallery app by google (com.android.gallery3d). You will probably find it in GAPPS
Benik3 said:
BTW you say that you have problem - bootloop with the .zip, did you tried to flash boot.img manually after flashing of the .zip?
Also instead of gallery I use simply photos by google
Or there is also lightweight Gallery app by google (com.android.gallery3d). You will probably find it in GAPPS
Click to expand...
Click to collapse
Thanks for those tips. I will definitely take a look at the lightweight gallery.
I tried flashing the boot.img manually but nothing. I've got it to boot up just once but there was no wi-fi. That leads me to belive that the permissions in the updater-script are not set up properly but also could be something else. If you have experience with updater-script do you think that you could help me out?
Unfortunately I don't have any bigger experiences with updater-script
Few times I edited it, but never so big one like installing ROM...
Anyway can you sand me the zip? I will try to look, but I don't promise anything
hi,
thanks so much for this Debloate.:good:
Well done developer! Phone itself is 10x faster without the bloatware apps on! Thank you so much developer!
Thanks a lot for your sharing. I finally have a nice going device. Its the best solution currently for this phone.
Hello mates i have an question
This version has fix that permision for sd card ?
Sent from my HTC Desire 510 using XDA-Developers mobile app
4. Now you should see the backup folder. Open it.
I do not see anywhere
what to do with the zip file that I downloaded from the above link
My bad, I did not read everything you've written
myke_angell said:
Hello mates i have an question
This version has fix that permision for sd card ?
Click to expand...
Click to collapse
Yes...I don't have any trouble with my SD card
Moki1 said:
4. Now you should see the backup folder. Open it.
I do not see anywhere
what to do with the zip file that I downloaded from the above link
My bad, I did not read everything you've written
Click to expand...
Click to collapse
No problem, if you have any further problems don't hesitate to ask
would be nice to have HTC Sense UI and email app left and htc foto editor and gallery removed and replaced by Google Photos, I don't understand why stick to ES File Explorer which does have in app ads rather have native file explorer, also I don't understand why I need that clean tool when android is managing ram just fine in this version.
Sorry if that sound rude, language barrier
Keep up with good work.
X-77 said:
would be nice to have HTC Sense UI left and email app and htc foto editor and gallery removed and replaced by Google Photos, I don't understand why stick to ES File Explorer which does have in app ads rather have native file explorer, also I don't understand why I need that clean tool when android is managing ram just fine in this version.
Sorry if that sound rude, language barrier
Keep up with good work.
Click to expand...
Click to collapse
No problem, any feedback is more than welcome. The Sense UI will remain, the theming I'm gonna make will only be on the icons and maybe the QuickSettings layout of the buttons, nothing too big to ruin the Sense feel. I might get back the e-mail app if I can't find a descent replacement for it. In the next update the HTC Gallery, alongside the Photo Editor will be replaced by Google Photos. Also the ES File Explorer, I'm gonna replace it with something that is adds free, simple to use but versatile. The Clean tool is not much for RAM as it is for Junk removal. Here is an example: Yesterday I was listening to some music on YouTube for about two hours. After that, I run the Junk Removal tool....It removed somewhere around 900Mb of useless data. You see how you can free up some space with it. I plan to keep it, but If I get negative feedback about it I will remove it.
Again thank you for your feedback.
E.g. Total Commander is simple and nice explorer without adds
BTW now when you have root, you can install "adblocker" app
deodex is not good for this device beacuse have small memory and charge it useless, odex files have sufficient space in system.
my oppinion
lucyr03 said:
deodex is not good for this device beacuse have small memory and charge it useless, odex files have sufficient space in system.
my oppinion
Click to expand...
Click to collapse
Thank you for your opinion. The main reason that I deodexed the ROM is to save up on the size of the actual download. I'm currently running the deodexed version on my phone and it works just fine. But still it will remain in BETA version unless I get positiv feedback about it.
Guys, I recall what I said, don't listen to me I'm a noob

[MOD][ROOT] 1080p 60fps Recording 6P/5X

Android 7.0+ See this
Donated
@Charles_l |
@drago10029 |
@LluisAzm |
@spitsyn Sergey |
@vexierspiegel |
@starbase64|
@ Anders Grandt|
@ Singgih Putra -Mi 4c Indonesia|
@ Shaneel Chanderpaul | @sopebird
$150 needed for new device
OLD OP for Android MM and 7.0
::::::::::::::::::::::::::::::::::::::::::::::::::::: 6.0 / 7.0 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Extract libmmcamera_imx377.so from this https://www.androidfilehost.com/?fid=457095661767120784
Using Some Root File Browser/Explorer
Copy libmmcamera_imx377.so to /vendor/lib/ if file size shows 0b then vendor tripping .
In Case vendor/lib tripping delete libmmcamera_imx377.so from vendor/lib/ and copy modded lib to /system/lib/ instead
Set Chmod 644 or rw-r-r permission
Reboot
Install This APK https://www.androidfilehost.com/?fid=385035244224403590 give requested permissions
In API Camera 2 Select 1080pHS Video Profile > Record Video
it may FC on First Run is a known bug
Should Work FOR MM/N some 7.1.1 roms might be give some trouble consult your rom dev
If you press record but it does not start recording switch to pic mode take a picture switch back to movie mode then record
Trouble with mounting vendor renaming copying Check this GUIDE
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: OLD MM ONLY BELOW :::::::::::::::::::::::::::::::::::::::::::::::::
Code:
[HIDE][STRIKE]Made this app to make it easier to copy modified Libs
There three things you can do with the
Backup original lib
Install Modified lib
Install Custom Media Profile .
The lib may work Nexus 5X as Well.
To get 60fps working
1. Install Lib Changer.
2. Install Freedcam.
3. Run Libchanger
3.5 Grant app root permission
4.Tap on the blue are with SELECT MOD
5.Select 60fps_1080p you be asked to be reboot .
6. After Reboot relaunch lib Changer if freedcam is installed Tap on the Yellow Area to install Custom media profile.
7.Start Freedcam In the menu scroll down to api tap on it and select camera1 make sure it's not in camera 2 mode.
8. Scroll up whilst still the menu select 1080pHFR in video Menu if its not showing exit relaunch lib changer repeat step 6.
9. If had to repeat step 6 start freedam then in mode select right side of ui select Movie Mode if video profile is set to 1080HFR and lib is applied click on the shutter button to start Recording .
10. Enjoy 60fps Video
Latest Freedcam Build -?> [url]https://github.com/troop/FreeDcam/releases[/url]
Sample Video [media=youtube]UBMuIA0vkdc[/media]
Update ::::::::::::::::::::::::::::::: 11/18/2016 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
app-release.apk Supports N and MM also added HTC10 60fps[/STRIKE][/HIDE]
For Stock Camera See this post
http://forum.xda-developers.com/showthread.php?p=70748865
Having issues getting 1080pHFR, after doing step 6, i go into settings, make sure the API is set to camera 1, and check the video profile,
1080pHFR doesn't show up, so i repeat step 6, reopen the camera select movie mode, go into video profiles and 1080P HFR still doesn't show up, any ideas?
defcomg said:
Made this app to make it easier to copy modified Libs
There three things you can do with the
Backup original lib
Install Modified lib
Install Custom Media Profile .
The lib may work Nexus 5X as Well.
To get 60fps working
1. Install Lib Changer.
2. Install Freedcam.
3. Run Libchanger
3.5 Grant app root permission
4.Tap on the blue are with SELECT MOD
5.Select 60fps_1080p you be asked to be reboot .
6. After Reboot relaunch lib Changer if freedcam is installed Tap on the Yellow Area to install Custom media profile.
7.Start Freedcam In the menu scroll down to api tap on it and select camera1 make sure it's not in camera 2 mode.
8. Scroll up whilst still the menu select 1080pHFR in video Menu if its not showing exit relaunch lib changer repeat step 6.
9. If had to repeat step 6 start freedam then in mode select right side of ui select Movie Mode if video profile is set to 1080HFR and lib is applied click on the shutter button to start Recording .
10. Enjoy 60fps Video
Latest Freedcam Build -?> https://github.com/troop/FreeDcam/releases
If you like my work donate link in my profile
Click to expand...
Click to collapse
Thanks @drago10029 and @jal3223 for testing
DeathSentinels said:
Having issues getting 1080pHFR, after doing step 6, i go into settings, make sure the API is set to camera 1, and check the video profile,
1080pHFR doesn't show up, so i repeat step 6, reopen the camera select movie mode, go into video profiles and 1080P HFR still doesn't show up, any ideas?
Click to expand...
Click to collapse
Same here all I see is 720phfr which fails
DeathSentinels said:
Having issues getting 1080pHFR, after doing step 6, i go into settings, make sure the API is set to camera 1, and check the video profile,
1080pHFR doesn't show up, so i repeat step 6, reopen the camera select movie mode, go into video profiles and 1080P HFR still doesn't show up, any ideas?
Click to expand...
Click to collapse
Hmmm try going into DCIM/FreeDcam/config/ and delete CustomMediaProfiles.text retry 6 or copy it manually attached it below
defcomg said:
Hmmm try going into DCIM/FreeDcam/config/ and delete CustomMediaProfiles.text retry 6 or copy it manually attached it below
Click to expand...
Click to collapse
Copying from the .text file and replacing my current profile worked perfectly!,
Thanks for the quick reply and the help, its appreciated!
defcomg said:
Hmmm try going into DCIM/FreeDcam/config/ and delete CustomMediaProfiles.text retry 6 or copy it manually attached it below
Click to expand...
Click to collapse
That worked but the file properties are still 1080/30
---------- Post added 24th July 2016 at 12:19 AM ---------- Previous post was 23rd July 2016 at 11:58 PM ----------
Seems the app isn't replacing the lib file.
joeyddr said:
That worked but the file properties are still 1080/30
---------- Post added 24th July 2016 at 12:19 AM ---------- Previous post was 23rd July 2016 at 11:58 PM ----------
Seems the app isn't replacing the lib file.
Click to expand...
Click to collapse
Strange its working 100% but my device is not running marshmallow something similar happened during testing where libs stayed the same even after replacing them will try and delete before copying over new ones think it's something to do with the root binary.
But I will attach the libs to whoever wants to copy them manually while I get that sorted
Extract the zip copy the file to system/vendor/lib/ delete or rename the stock lib by adding .bak to the end of the file name then copy it over set permission to rw-r-r
Libmmcamera_imx377.zip working 60fps
htcNexus2.zip experimental 80fps+ 1080p
Flashable Zip Nexus 6P/5X provided by @przemcio510
defcomg said:
Strange its working 100% but my device is not running marshmallow something similar happened during testing where libs stayed the same even after replacing them will try and delete before copying over new ones think it's something to do with the root binary.
But I will attach the libs to whoever wants to copy them manually while I get that sorted
Extract the zip copy the file to system/vendor/lib/ delete or rename the stock lib by adding .bak to the end of the file name then copy it over set permission to rw-r-r
Libmmcamera_imx377.zip working 60fps
htcNexus2.zip experimental 80fps+ 1080p
Click to expand...
Click to collapse
I'm running pure Nexus rom btw. When I looked in the lib replacer install folder there is a lib folder under that but it's empty if that helps
joeyddr said:
I'm running pure Nexus rom btw. When I looked in the lib replacer install folder there is a lib folder under that but it's empty if that helps
Click to expand...
Click to collapse
Did you give the app SD card access ?
it stores the temp lib in sdcard/Libchanger/ I also just remembered the 6p vendor is another partition and not part of /system so try /vendor/lib/ path
It should work on all MM ROMs these lib stays pretty much the same
Works!! Been waiting for something like this since the launch of this phone! One question: is it possible to make this mod work on different camera apps (for example: google camera)?
MrTemz said:
Works!! Been waiting for something like this since the launch of this phone! One question: is it possible to make this mod work on different camera apps (for example: google camera)?
Click to expand...
Click to collapse
Possibly via smali editing
defcomg said:
Did you give the app SD card access ?
it stores the temp lib in sdcard/Libchanger/ I also just remembered the 6p vendor is another partition and not part of /system so try /vendor/lib/ path
It should work on all MM ROMs these lib stays pretty much the same
Click to expand...
Click to collapse
So I manually replaced it and it's working but seems to of killed the slow motion option in Google camera.
joeyddr said:
So I manually replaced it and it's working but seems to of killed the slow motion option in Google camera.
Click to expand...
Click to collapse
It kills only 120fps only 240fps is untouched
defcomg said:
It kills only 120fps only 240fps is untouched
Click to expand...
Click to collapse
Google camera crashes when I select slow motion from the menu.
joeyddr said:
Google camera crashes when I select slow motion from the menu.
Click to expand...
Click to collapse
Hmm weird but I can workaround it so freedcam outputs 720p at 240fps .
Or try copy stock lib then in Google Camera select 240fps exit copy back modded lib and try reopen Google camera see if it crashes .
Third possible option is to trick it into thinking 60fps is actually 120fps so when it looks for it no crash happens
Here is a log of the crash.
Also want to say that if I use the 5:4 lib Google camera does not crash but I don't have the 120/240 option
joeyddr said:
Also want to say that if I use the 5:4 lib Google camera does not crash but I don't have the 120/240 option
Click to expand...
Click to collapse
Right that lib was capped to 120fps but actually outputted at 240fps .
Attached lib with the same cap in freedcam select 720pHFR it will record at actual 240fps which you can slow down in post.
I do not understand how you want to explain a simple step by step. I try to follow the steps you teach. It has not been a resolution of 1080p 60fps.

[MOD][LIB][A5 2015 & A7 variants] Enable/Disable TouchKey Lights

WHAT IS THIS?
It is just a simple mod to turn off the TouchKey Light permanently without the need to install boot time scripts or 3rd party apps. If you're not familiar with the name, maybe SoftKey Button Light or the Recents/Menu and Back button key lights will give you the idea. This will not disable or break the button functions itself, just the lights.
now before i get post replies saying "but on {insert rom name} by {insert developer name} you could turn ON/OFF this feature from {insert menu name}".. i'm going to make it clear :
This mod is intended to be used on A500 variants with Custom ROM and NOT Stock Based ROMS, at the time of writing, most (if not all) custom roms/kernel for A5 can't turn this off permanently
This mod is intended only for people who want the touchkey lights to be OFF all the time/permanently
TECHNICAL NOTES
I'm almost embarrassed releasing this and calling this a mod, but then again there must be some other people that surely want this feature but have no clue how to turn this off. so here it goes :silly:
The library modded is /system/lib/hw/lights.msm8916.so *duh*
patched offset is at BD8 or 3032 and it's a 1 byte patch which effectively forcing the lib to push value 0 to /sys/class/sec/../../devices/virtual/sec/sec_touchkey/brightness everytime it is triggered to turn on the lights.
list of events/triggers affected by this mod
rt5033-charger-online
msm-usb-online
mmc0 (mount/dismount i think)
mmc1 (mount/dismount i think)
rt5033-fuelgauge-online
ps-online
wireless-online
usb-online
ac-online
battery-charging-or-full
battery-charging
battery-full
battery-charging-blink-full-solid
making a boot time script to write 0 to brightness won't make permanent change because there are low level events that triggers the lib to push value 1.
making a service to always set the value to 0 isn't an elegant solution also because it will hog up your memory.
revoking permissions (if you can) to brightness will likely derp the logger and may cause wakelocks.
PREREQUISITES
1. As mentioned earlier, you must have a custom rom installed.
2. Custom recovery to flash this zip. (using flashfire, flashify and similar tools have not been tested, you could try and report)
3. Downloaded modded lib zip file and saved to your device
INSTALLATION / REVERTING
Golden rule : make backups before doing these steps, or just backup this file : /system/lib/hw/lights.msm8916.so
i have tested these zips on my device several of times without issue
Method 1 :
1. Boot into recovery
2. Flash zip (A500x_TouchkeyLibPatcher-Twiq.zip)
3. Enjoy :highfive:
Method 2 : no longer used
1. Extract lights.msm8916.so from the zip file and put it in your device's storage
2. Using filemanager with elevated permissions (Root Explorer, Mixplorer etc) copy the file into /system/lib/hw/
3. If you could set Owner/Group then set it to ROOT then set the permission to 644 or -rw-r-r-
4. reboot and enjoy :highfive:
if my provided libs are not working out for you please attach your original lib here so i can take a look at it.
UPDATES / CHANGELOGS
01/02/2017
added support for A700FD variant
note: don't worry about the zip's filename, it should work fine with A7 too..
it's perfectly safe, library with unknown checksums will not be patched or replaced
15/08/2016
I have removed the old flashable zip and replaced it with a better and safer one as it checks for MD5 checksums, library with unknown checksums will not be patched or replaced.
With some shell script magic, now you only need 1 flashable zip to conveniently toggle On/Off the lights.
Flash OFF, Flash ON :highfive:
11/08/2016
initial release
seperate flashable zips for known A5 library
Works like a charm :good::good::good:
Sent from my Samsung SM-A500F using XDA Labs
Cool,this was a great idea,worx perfect.Thanx.
UPDATES
I have removed the old flashable zip and replaced it with a better one.
With some shell script magic, now you only need 1 flashable zip to conveniently toggle On/Off the lights.
Flash OFF, Flash ON :highfive:
if you need the old lib, just request it here. And if your lib is not supported by the patcher, attach your original lib here and i'll take a look
Work fine, very thanks bro. :good:
Super easy to install...works on A500G
Had been looking for this for such a long time, and finally someone came with a fix...Thank you @Twiq
Hi!
Will be posible to you to do this for A510? (I have A510M)
Anyway , awesome! Cheers
refes said:
Hi!
Will be posible to you to do this for A510? (I have A510M)
Anyway , awesome! Cheers
Click to expand...
Click to collapse
no problem, just attach your lights.*.so from /system/lib/hw here so i could take a peek
Attached file /system/lib/hw/lights.goldfish.so
From a Samsung A510M with ROM Stock MM 6.0.1
@ Twiq : Thaaaanks!!!
refes said:
Attached file /system/lib/hw/lights.goldfish.so
From a Samsung A510M with ROM Stock MM 6.0.1
@ Twiq : Thaaaanks!!!
Click to expand...
Click to collapse
i took a quick peek and it looked very different.
do you have any other lights.*.so inside your /system/lib/hw/ ?
like lights.msm8939.so or lights.default.so maybe?
I have samsung A510F and i sharing my hw folder and files. Please check it
refes said:
Attached file /system/lib/hw/lights.goldfish.so
From a Samsung A510M with ROM Stock MM 6.0.1
@ Twiq : Thaaaanks!!!
Click to expand...
Click to collapse
xpity34 said:
I have samsung A510F and i sharing my hw folder and files. Please check it
Click to expand...
Click to collapse
sorry for not noticing earlier..
You're running stock rom and therefor you don't need to edit any libs at all to turn off your touchkey lights.
you only need to go to System Settings > Display > scroll down to bottom and you'll see Touch Key Light Duration, set it to Always Off and you're good to go
edit: if you're still interested in this mod lib, could you also post any lights.*.so from /system/vendor/lib/hw if there are any
thanks
Thank you !
Why don't you develope something to make "softbutton notification" for our devices?
MarcoFal said:
Thank you !
Why don't you develope something to make "softbutton notification" for our devices?
Click to expand...
Click to collapse
the feature you're referring is called BLN (backlight notification), it blinks light or giving breathing effect on touchkey lights whenever you have a notification. It has to be supported by the kernel and not software sided
you will have to look for an experienced kernel developer for that
Twiq said:
i took a quick peek and it looked very different.
do you have any other lights.*.so inside your /system/lib/hw/ ?
like lights.msm8939.so or lights.default.so maybe?
Click to expand...
Click to collapse
I see, but no, there's no other file "lights*" in that folder, sorry... and thxs
refes said:
I see, but no, there's no other file "lights*" in that folder, sorry... and thxs
Click to expand...
Click to collapse
apparently the lib you provided could not be modded with just a simple patch and a bit beyond my skills right now. i will take a look at it again this weekend, but no promises
A700FD variant
Attached is the lights.msm8916.so file zipped, from my A700FD running a custom ROM.
I would appreciate it if you could take a look at it and inform me if anything can be done to get this mod to work with this variant.
Thank you!
xenthm said:
Attached is the lights.msm8916.so file zipped, from my A700FD running a custom ROM.
I would appreciate it if you could take a look at it and inform me if anything can be done to get this mod to work with this variant.
Thank you!
Click to expand...
Click to collapse
added support for attached lib.. just download and flash the flashable zip from the first post.
don't worry about the name of the zip, it should work fine
please report back
Twiq said:
added support for attached lib.. just download and flash the flashable zip from the first post.
don't worry about the name of the zip, it should work fine
please report back
Click to expand...
Click to collapse
The patch works perfectly! TouchKey Lights are now off for the A700FD variant. Thanks for the help!
xenthm said:
The patch works perfectly! TouchKey Lights are now off for the A700FD variant. Thanks for the help!
Click to expand...
Click to collapse
good to know, thanks for reporting back :good:

Camera2 API

can we get camera2 API enabled for LeTv le 2 ?
DEVINDER1995 said:
can we get camera2 API enabled for LeTv le 2 ?
Click to expand...
Click to collapse
Yes you can.
You need to be rooted on custom kernel. Go to root explorer > system > build.prop > open and edit .Go to bottom, add this line "persist.camera.HAL3.enabled=1" without string
save, reboot.
Main stock camera works but doesn't see any changes.
But you can install Manual camera, FreeDcam for manual controls like shutter speed, ISO, etc.
If you are not rooted , you can still use FreeDcam to manually control over all parameter except you can't take raw images.
but i want to take raw images that's why i want to enable camera 2
This works on stock EUI only, on lineageos, all thirxd party app force closed for some reason.
DEVINDER1995 said:
but i want to take raw images that's why i want to enable camera 2
Click to expand...
Click to collapse
You must "Root" your mobile , install custom kernel like quassam kernel or AndroModX kernel and follow above procedure and enjoy raw image photography.
You can use any of these app like manual camera , FreeDcam , ProShot , AZ camera etc ..
Note: you must uninstall previously install camera app and reinstall again.
It works for X620? (Le 2 MediaTek version)
indiankundan said:
Yes you can.
You need to be rooted on custom kernel. Go to root explorer > system > build.prop > open and edit .Go to bottom, add this line "persist.camera.HAL3.enabled=1" without string
save, reboot.
Main stock camera works but doesn't see any changes.
But you can install Manual camera, FreeDcam for manual controls like shutter speed, ISO, etc.
If you are not rooted , you can still use FreeDcam to manually control over all parameter except you can't take raw images.
Click to expand...
Click to collapse
I edit the build prop but the camera broke, only show me black screen.
Hhh

[MODULE][Terminal] Debloater v17.3.2 - Debloat Systemlessly!

[TERMINAL] DEBLOATER
Debloat your phone Systemlessly! Debloating can sometimes be device specific. OEM apps can sometimes be a trash to a user but not to the other. So I decided to make a module to Customize the uninstallation of a system app (in Magisk) with a UI in Terminal emulator. So you can help yourself in uninstalling your own bloat!​[/SIZE]
How to use:
Flash in a recovery
Go to Terminal emulator or adb shell (use -nc, refer below)
Type su and enter
Code:
debloat
or use the command line for ease of use or other stuff
Select the apps to uninstall (systemless!). But remember that the names of the apps won't be accurate (like Velvet which is actually the Google app) if you have no aapt in your system.
** Use the options
Enter
Code:
debloat -h
and it will be pretty easy to understand.
** How to debloat multiple apps
Enter multiple numbers. That's it.
For example, enter 1 18 25 24 56. That would debloat the apps with the corresponding number in the listed apps shown to you in the menu.
** If you have a blank list of apps, or want to use ADB Shell, use -nc.
Code:
debloat -nc
** Uploading logs
Go to the menu and type `logs`, this will upload the log files of this module and will generate a link. Send that
Alternatively, Send `/cache/terminal_debloater-verbose.log` here. I'll examine it for problems and will try to fix it.
Short video guide:
Download here or at Magisk Manager
GitHub
Changelogs
Telegram Channel
Notification Channel
DONATE? If you want to (ノ・ω・)ノ゙
LIST OF ALL SH*TTY APPS BY OEMs
All ****ty LG apps
by @popy2006
All ****ty T-Mobile LG apps
by @famewolf
Give me a list to be posted here ?
F.A.Q
Q. How does this work?
A. To put it simply, debloat is a script magic mounted in /system/bin ($PATH variable) so that it can be executed directly in Terminal Emulator and present you with a "UI" that you can interact with to uninstall System Apps.​
Q. Are the apps frozen or uninstalled?
A. They're uninstalled. To put it simply, the apk files in /system are replaced by a blank file, which basically removes/uninstalls them from /system.​
Q. How does the Reinstall option work?
A. It removes the blank files used to replace to apk files in /system. Which brings the apk back after a reboot. Basically the same thing that happens when you disable/uninstall a Magisk module. ​Q. Some kind of error popped out, what do I do?
A. Type logs in the menu then send the link generated or send me these files: /cache/terminal_debloater.log and /cache/terminal_debloater-verbose.log ; so I can look for the bug :good:​
Q. I accidentally uninstalled an important system app (e.g. System UI) and got in a bootloop, what do I do?
A. Simple, mount magisk from here. Then delete the app folder of the system app you've uninstalled in /sbin/.core/img/terminal_debloater/system/app or /sbin/.core/img/terminal_debloater/system/priv-app then that should undo it ​
Q. Apps are still in the app drawer after debloating...
A. You can then uninstall them like a normal user app.​
Here's a little video tutorial on how to use this module by @Truant_Luce
Nice! One for the repo, I'd say!
Should probably warn the user a bit clearer that the list won't always accurately reflect the name of the app they're looking for... You'll probably get a lot of questions about it anyway (taking into account the average users indisposition towards reading instructions), but still.
Didgeridoohan said:
Nice! One for the repo, I'd say!
Should probably warn the user a bit clearer that the list won't always accurately reflect the name of the app they're looking for... You'll probably get a lot of questions about it anyway (taking into account the average users indisposition towards reading instructions), but still.
Click to expand...
Click to collapse
Thanks. Should have probably added that from the beginning.
I'll submit it to the repo soon
@veez21 check lines 99 and 126:
mktouch $MODDIR${app[$(($app))]}/.replace
mktouch $MODDIR${privapp[$((privapp))]}/.replace
crusader727 said:
@veez21 check lines 99 and 126:
mktouch $MODDIR${app[$(($app))]}/.replace
mktouch $MODDIR${privapp[$((privapp))]}/.replace
Click to expand...
Click to collapse
There was supposed to be something else in there ( a difference between another variable) and i removed it. But it still works like that. Try it and tell me if there are errors
veez21 said:
There was supposed to be something else in there ( a difference between another variable) and i removed it. But it still works like that. Try it and tell me if there are errors
Click to expand...
Click to collapse
I was wondering if someone would make a debloater. Great job!
Great think, gonna test it tomorrow
Thank you very much !!
Would you be able to create a module to hide apps (user/system) from the pixel launcher?
If yes, would it be much work to do?
Gratefully
Blade
BIade said:
Great think, gonna test it tomorrow
Thank you very much !!
Would you be able to create a module to hide apps (user/system) from the pixel launcher?
If yes, would it be much work to do?
Gratefully
Blade
Click to expand...
Click to collapse
I don't know. But I'll look into it
Screenshots please!
Can someone post some screenshots of the module in action?
Thank you. Can I debloat them and install some of them back as the user app from the play store..?
min9ox2 said:
Thank you. Can I debloat them and install some of them back as the user app from the play store..?
Click to expand...
Click to collapse
Yes you can
Git link added in the OP!
Added git link and submitted it to the repo. Hope it gets accepted soon
https://github.com/veez21/terminal_debloater_magisk
I keep getting this when I try it. Anything I'm not doing right? The app does have root permissions. But not too familiar with working with terminals.
Great module, was thinking of making one myself.
What about incorporating something of the functionality of App Inspector so that the terminal display shows both display name and package name?
Telperion said:
Great module, was thinking of making one myself.
What about incorporating something of the functionality of App Inspector so that the terminal display shows both display name and package name?
Click to expand...
Click to collapse
Its actually in the next version I'll update in just a sec
Truant_Luce said:
I keep getting this when I try it. Anything I'm not doing right? The app does have root permissions. But not too familiar with working with terminals.
Click to expand...
Click to collapse
Did you type su before debloat_magisk? If not then type su first
Updated to v2! Changes are significantly related to UX.
CHANGELOG:
UI Improved a bit
Now shows the name of the app! (if aapt binary is present in /system)
Now hides uninstalled apps!
Added Reinstall Apps (but not working just yet don't try it for now)
Code Optimizations
Download here or in the OP
Git - later
Note: Updating removes all the files in the module, so all the uninstalled apps will be reinstalled. That's a magisk problem

Categories

Resources