Cam Fix For Los14

Fix camera on lineage14 ROM.




Today we will discuss about camera library in android To fix camera bug on any os like los/cm.

So let's get started :-


Aosp based ROM:-

1] Aosp based ROMs need some extra files to fix cam, Like

"libfeatureio.so,libmtkjpeg.so,libmtkencoder/decoder.so"

And another 8 library (download patch you will get it)....
Without those files cam can be fixed but its unstable to....
it gives fc sometimes, sometimes tourch on qs panel failed..
So better to replace those files from Stable cm13 vendor...
(NB:- if you are mt6582 user...then directly flash this patch)

2] if your boot.img (init.mt6582.rc) contains following line

 --->>export LD_PRELOAD"/system/lib/libxlog.so /system/lib/libmt6582.so"<<---

Remove it... Otherwise cam not work for you...
If you removed above line from "init.mt6582.rc" remove libmt6582.so from lib folder

3] if removed those lib and line from init.mt6582.rc....
You will face long reboot time issue...
Means ROM take 1.30+ min to boot at every reboot...
And it will cause lag on ROM..
(sometimes giving su permission too lag much more)
(Copying files from sd card to root take too much time)

4] if camera is not your priority you can add above line...

"In mt6582.rc and add libmt6582.so in lib folder"

It will fix all lag in ROM... And you can experience real performance of aosp....
(NB :- Lag on ROM, Lag while giving su permission, long reboot time all thia happens if you removed libmt6582 and export preloder line from boot...but if you removed this line then cam will fix on your ROM)

5] On aosp libfeature.so is a imp file to fix camera without it cam will not work for you

Cam fix patch link for aosp :- Click Here

======================================

Los Based ROM:-

1] To fix cam on los based ROM you have to replace "libui.so"
Without this file you cannot fix cam anymore

2] if you replaced "libui.so" to fix cam on Aosp ROM you will face BootLoop

3] and if you replaced libfeatureio.so to fix cam on los based ROM you will face "can't connect camera" issue.....

4] there is no relation between "camera" and "libmt6582.so" and "export preloder" line in boot...

5] But if no export preloder line in boot and libmt6582 in lib...
You will face lag and long reboot time issue...

6] You can add this line in boot and libmt6582 in lib....to fix above issue....

7] on los14.1 Stagefrighten****.so libs cause audio issue... Replace them from below patch

Link Can fix patch for los :- Click Here

======================================

Relation Between Cam libs :-

1] if you replaced  "libdpframeworl.so" must replace "libm4p.so"
Otherwise you will face cam issue or bootloop

2] if you replaced "libui.so" must replace "libutils.so"
On some case it will cause BootLoop

======================================

MT65×× user's :-

1] Don't weast your time in
"Bin folder, etc folder, hw folder, elg folder, vendor folder, boot.IMG (expect cam lines)"

2] Cam fix is only in lib folder and the files which I have uploaded (in patch)

3] use your stable vendor and replace same files Which I have uploaded from your stable vendo.

Hope above tutorial will fix cam bug for every device/chipset


2 comments: