Nokia HMD Camera with working front and back EIS !PORT! TWRP - Xiaomi Mi 8 Lite Themes, Apps, and Mods

Hello everyone, this is my port of Nokia camera, Eis for front and back camera should work on any Aosp based rom... Flash, test and report bugs down in comments :good:
Requirements:
Rooted Xiaomi Mi 8 Lite with installed Twrp recovery...
---------------Downloads----------------------------------------
https://drive.google.com/open?id=1gRjM4-IxKktZuFOoh1w3eyfEtUhJJDxs

Well done, I just have to report a bug and few things to improve. The bug is with the beauty mode, it doesn't work give a message of action 706. The exposure is a bit off but I can correct using manual mode and exposure compensation -1 as for sharpness in low light the imagem has worms artifacts. Apart of this all is working amazingly.

How to uninstall?

Related

Google Camera with HDR+ ported. Finally!

https://www.xda-developers.com/google-camera-hdr-ported/
Works on Redmi Note 4X (SD625)!
Tested on Redmi Note 4X running official Lineage OS 14.1, Camera HAL3 enabled by default
- Photo Image Stabilisation through HDR+
- (Often) more accurate exposure
- (Often) more accurate colour rendition
- (Often) sharper and more detailed shots.
- Far far more usable images in low light.
- I can actually capture some still pics of my kids! (with HDR+ turned to ON instead of AUTO)
Problem is the port is still quite buggy. Certain modes don't work. Hopefully it will be ironed out somewhere down the line.
doesn't work on omnivision sensor... Picture taken have a pink layer...
On samsung sensor,
Some captured pics have green tinted on it.
I say man , HDR+ works pretty well.
Only i had that kind of problemo
How does one get any update for the modded APK?
With sony sensor on MIUI 9 the app crashes on open.
Crashes on startup on Redmi Note 4X Snapdragon, MIUI 9
It crashes because you did not enable Camera2 API, you must add persist.camera.HAL3.enabled=1 to build.prop, save it and restart phone.
Then app will work.
Already a good thread here:
https://forum.xda-developers.com/redmi-note-4/themes/google-camerawith-hdr-mido-t3656196
i'm using this right now, my device have a samsung sensor if you turn off the hdr+ the photo will have a green tint on it, also slow motion is not working, i have seen a post from mi 5s users they don't have the slow motion as well but someone made a flashable zip that made the slow mo worked, i don't know if we can do that as well on our device because the mod is actually made for 820+ devices, but because of this app i never went back to miui photos are way better that miui cam
k3lcior said:
It crashes because you did not enable Camera2 API, you must add persist.camera.HAL3.enabled=1 to build.prop, save it and restart phone.
Then app will work.
Click to expand...
Click to collapse
miui9?

Camera takes a right-shifted picture when zoomed

Hello XDAers,
I'm on Lineage OS 14.1 with the GCam installed. It works well except for when I zoom to take a picture (or even the portrait mode on the rear camera) the image after clicking is shifted to the right. I'm attaching examples below.
The first picture is a screenshot of what I'm actually focussing on. The second pic is the actually picture clicked. As you can see it always shifts to the right!
This happens with the LOS stock cam and all versions of GCams when I zoom. Portrait mode (which is 1.5x zoomed by default) also has the same problem!
Any help will be appreciated!
Known bug
Is it a bug in LOS or in the device itself? I bought it as an X829.
It would be great if you can share what this bug is called and any links describing it
It's a bug with Nougat and this device (camera blob problem). It's only digital zoom anyways, so nobody really cares.
True. My only gripe with it is the problem caused in the portrait mode (GCam). Otherwise doesn't bother me so much.
Thanks!
The only way to have correct zoom is by using pic size of 16:9.
hope some one else have a batter solution with the size of 4:3 so we can enjoy the full power of the camera.
I have the same problem but left-shifted and only on Messenger camera. In GCam i haven't this problem .
Thanks @ali7_has !
That's pretty unusual that you have a problem only with the messenger cam.
I haven't this problem on stock ROM or other based stock but I have this in Nougat and Oreo ROMs ( i tested 2 roms Nougat and one Oreo ROM). I have this only in Messenger cam, in GCam or preinstalled cam iI have no issue
thanks to @prsapphire the zoom is working correctly even for 4:3.
fist I installed his EUI 6.0 from this link https://forum.xda-developers.com/le-max-2/development/rom-eui-6-0-0617t-prerc-port-x850-t3739612
than I clean install AICP oreo and now the zoom is working correctly.
I think his modem firmware is the solution for our zoom problem.
ali7_has said:
thanks to @prsapphire the zoom is working correctly even for 4:3.
fist I installed his EUI 6.0 from this link https://forum.xda-developers.com/le-max-2/development/rom-eui-6-0-0617t-prerc-port-x850-t3739612
than I clean install AICP oreo and now the zoom is working correctly.
I think his modem firmware is the solution for our zoom problem.
Click to expand...
Click to collapse
Are you sure? That didn't solve it for me. Still right shifted in 4:3 ratios.
EDIT: Just installed latest Pixel Experience and low and behold, zooming works correctly. However I think this might be to do with the fact it's now using the open source Camera HAL?
Heyyo, use Camu from the Play Store. It's the only camera app without that issue... Not sure why tbh.
As for Oreo ROMS? If they use the new Open Source Camera HAL? They won't have the zoom issue. It's a known bug with the camera shim used in Nougat and early Oreo ROMs.

[MOD REQUEST] [PLATINA] Miui Camera for custom ROMs

I request Miui Camera mod for the Mi 8 Lite specifically.
There is a mod for the Redmi Note 5 that apparently works on the Mi 8 Lite too, but changes several parameters of the build.prop such as the model and the device's code name. When trying to change them the mod stops working correctly and gives an error message (can not connect to the camera)
There is also GCam, but with some bugs and errors.
Anyone who can make a functional port of the Miui camera for this device?
I would also like.
I'm waiting to unlock my bootloader and then i will try to port stock camera app ??
Stefke93 said:
I'm waiting to unlock my bootloader and then i will try to port stock camera app ??
Click to expand...
Click to collapse
That's great! Thank you:laugh:
GuGor said:
I request Miui Camera mod for the Mi 8 Lite specifically.
There is a mod for the Redmi Note 5 that apparently works on the Mi 8 Lite too, but changes several parameters of the build.prop such as the model and the device's code name. When trying to change them the mod stops working correctly and gives an error message (can not connect to the camera)
There is also GCam, but with some bugs and errors.
Anyone who can make a functional port of the Miui camera for this device?
Click to expand...
Click to collapse
i successfully ported stock Miui Camera to Aosp based custom roms Platina device, for now i need to fix lot of bugs. Cheers
Stefke93 said:
i successfully ported stock Miui Camera to Aosp based custom roms Platina device, for now i need to fix lot of bugs. Cheers ?
Click to expand...
Click to collapse
One word: Amazing:laugh:
What kind of bugs does the current port have? Any serious bug?
GuGor said:
One word: Amazing:laugh:
What kind of bugs does the current port have? Any serious bug?
Click to expand...
Click to collapse
Front camera:
Working:Short video, Beauty mode, Group selfie, filters, taking pictures with timer for both portrait and non portrait mode, Sharpnes, contrast etc,camera 2 api 24mp
Not working:
Square photo, Normal photo, Portrait, Normal video rec, age gender, with camera2 api enabled instagram not connect to front camera without libmmcamera_platina_imx576_sunny Fix
Back camera:
Working:Short video, square photo, normal photo, manual mod, filters, Beauty mode, Group selfie, Tilt-shift,Straighten, Gridlines, Timestamp, Watermark,Focus Shot,Scan qr codes, Capture or focus with volume rocker,camera 2 api
fingerprint shutter, picture quality,, sharpness and etc, camera fram 4:3 16:9, Sounds
Not working:Normal video rec, Panorama, Portrait, Ai, Led flash
Lot of bugs but no one so serious, camera connect every time so i hope i can fix everything
Known bugs:Back portrait don't work, Hdr, AI, front camera portrait work after disabled beauty mode, bad quality blur for front facing camera on white background, interface glich somethimes..
Tested on last Mokee aosp build, install this module with magisk
https://drive.google.com/open?id=1frIYQ83SEGuijmdARYMiKmMRJA6wl166
Install Pixel Expirience CAF last version, install stock miui camera via Magisk and restart phone, replace vendor/lib libmmcamera_platina_imx576_sunny with this lib from zip and disable Hal3 support in vendor/build.prop and restart again. After this steps Miui front camera will work with 24.8mp, also Instagram, messenger etc will work like charm on 24.8mp ....
What about with Gcam? Without HAL3 enabled, it can't be used. Would there be any way for both cameras to work? Personally, I like both applications very much.
You can open a thread where you go picking up the different revisions of this port, so more people will try it.
Hallelujah, we already have the Miui camera for Platina (with bugs for the moment hahaha). Thank you:fingers-crossed:
GuGor said:
What about with Gcam? Without HAL3 enabled, it can't be used. Would there be any way for both cameras to work? Personally, I like both applications very much.
You can open a thread where you go picking up the different revisions of this port, so more people will try it.
Hallelujah, we already have the Miui camera for Platina (with bugs for the moment hahaha). Thank you:fingers-crossed:
Click to expand...
Click to collapse
For now there is no way to make working both cameras alongside with camera2api and Gcam, another great thing is that I managed to port portrait for back camera and utilize both sensors for depth and main shooter, later I will made thread when i finish my work
Stefke93 said:
i successfully ported stock Miui Camera to Aosp based custom roms Platina device, for now i need to fix lot of bugs. Cheers
Click to expand...
Click to collapse
Amazing work bro now i am on havoc os (10) and i want my stock camera plz can it possible?
shawon 56 said:
Amazing work bro now i am on havoc os (10) and i want my stock camera plz can it possible?
Click to expand...
Click to collapse
Yes, but i sold phone
Stefke93 said:
Yes, but i sold phone
Click to expand...
Click to collapse
Bro how can i get back my stock camera in havoc os

Mi A2 stock MIUI Camera for Xiaomi MI8 Lite platina AOSP Based ROMS fully |PORTED| UP

Hello guys, as someone who loves the stock Miui camera in the past few days, I've been start porting project with camera from the MiA2 device to our Platina Xiaomi Mi8 Lite and this is my first stable relase of port, test and report bugs down in comments if you find any, suggestions for improving are always welcome
FEATURES:
----------------------------------------------------------------------------------------
Working on back camera:
-Both cameras are utilised IMX363 and (Samsung S5K5E8 Sensors for bokeh depth)
-Video recording:720,1080,4K
-Eis stabilisation
-Portrait with improved depth in photos
-Square photos
-Panorama
-Short video
-Filters
-Manual modes:WB, Focus, Iso, Focus Peaking
-Timer
-Group Selfies
-Tilt-shift
-Straighten
-Slow motion 120fps
-ISO9600
-Burst shooting 100 photos in 5s in 12MP
-Auto HDR and Pro HDR
-HHT night mode for low light
-AI Mode
-Scenes
Working on front camera:
-Normal photo
-Portrait photo
-Video recording
-Short video
-Square with HDR
-Filters
-Timer
-Screen as led flash
-Face tracking for better exposition
-Auto HDR Level 3
-Auto low light enhance
Working in settings:
-Save location info
-Camera sounds
-Save previous mode
-Mirror on front selfie
-Add time stamp on photos
-Dual camera watermark
-Show gridlines
-Focus & shot
-Save original photos as well
-Camera frame 4:3 and 16:9
-Picture quality low:med:high
-Volume buttons function
-Anti banding
-Auto exposure settings
-Contrast
-Saturation
-Sharpness
-Restore default settings
-Press & hold buttons function
-pocket mode
----------Changelog-----------
6:11:2019
-----------------------------------
-Fixed HDR
-Fixed noise in pictures
-Added HHT night mode
-Various fixes for stability
6:12:2019
-----------------------------------
-Fixed AI Modes
-Fixed Beauty mode
-Added make up and remodeling under beauty modes for portrait and square mode
7:14:2019
-----------------------------------
-Fixed front screen led again
-Added scenes menu to photo
-Merged with new libs
-------------------------bugs-----------------------------
-Beauty mode overexpose photos
-Eis don't work on some roms, don't blame me, not my fault..
Installation:
Flash module with magisk, and copy provided lib in vendor/lib if you want front camera to work, however this port is compatible with Camera2api HAL3
Downloads:
Initial release: https://drive.google.com/open?id=1MREkVcM3zz329ks85rV5mvjzlfj-fLPA
6:11:2019 https://drive.google.com/open?id=1m1QXK5Lz2_DtjkuTw8QFR435E1BgE-cq
6:12:2019 https://drive.google.com/open?id=1f6GEkIa7K5KxRFLjnNBXqH9-cFEAMZ51
7:14:2019 https://drive.google.com/open?id=1HaDKAEhtKUjgFWRp9mLm9KputkJVFyWi
Front camera fix, flash via TWRP Only PixelExpirience rom. Flashable zip include sunny lib from vendor and buildprop with disabled camera2 HAL3
Thanks, I'll try
Bootloop after install
On xiaomi eu 23.05
blackbuga said:
Bootloop after install
On xiaomi eu 23.05
Click to expand...
Click to collapse
Install on Pixel Expirience or Mokee, this is port for aosp roms
I have been testing it (with default settings, HAL3 enabled and gcam front camera fix) and I found some bugs.
Sometimes, the shutter does not respond correctly and when I move the camera I can appreciate some lens distortion. I also noticed that the pictures taken with the rear camera are saved with a lot of background noise. It is normal?
If I disable HAL3 (into /vendor/build.prop), replace libmmcamera_platina_imx576_sunny.so (into /vendor/ lib/ ) and restart the device to be able to use the front camera, it takes photos but camera interface freezes instantly.
I am using Pixel Experience Pie (aosp version 2019 05 08) with Acrux Kernel 1.0.1 Stable
GuGor said:
I have been testing it (with default settings, HAL3 enabled and gcam front camera fix) and I found some bugs.
Sometimes, the shutter does not respond correctly and when I move the camera I can appreciate some lens distortion. I also noticed that the pictures taken with the rear camera are saved with a lot of background noise. It is normal?
If I disable HAL3 (into /vendor/build.prop), replace libmmcamera_platina_imx576_sunny.so (into /vendor/ lib/ ) and restart the device to be able to use the front camera, it takes photos but camera interface freezes instantly.
I am using Pixel Experience Pie (aosp version 2019 05 08) with Acrux Kernel 1.0.1 Stable
Click to expand...
Click to collapse
Put beauty mode to 0 and then you can shoot with front camera without freezing, noise is there, but pictures have much more details in comparation with stock mi 8 lite camera. I will post new version with night mode and longer default shutter speed soon, also i find how to fix beauty mode. Lens disortion is associated with cameraservice lib, stock lib from mi8 lite make lens totally distorted and wrongly oriented. I will try to fix disortion if i can. Miui camera from Pixel expirience don't use second lens for depth ??
Can i install this on RR Rom?
Great!!
keep a good work devs
panjisung said:
Can i install this on RR Rom?
Click to expand...
Click to collapse
Try to flash module with magisk, if camera app don't get installed you need to delete other camera apps manually via root file manager and flash again. With some roms camera won't get installed and after flashing you need to extract module and copy from priv-app miuicamera folder together with other libs in miuicamera priv-app in your phone
Good work, working on pe caf ?
Edit
After replace lib, 3rd party app like WA, IG cant access front cam ?
xteroit said:
Good work, working on pe caf
Edit
After replace lib, 3rd party app like WA, IG cant access front cam
Click to expand...
Click to collapse
Use lib form my post, disable camera2api, and add this line to vendor/build.prop persist.vendor.camera.HAL3.enabled=0 Every app should work then with Pe, there is no benefit from Gcam if you broke everything with camera2 api enabled. Miui camera taking great photos now and portrait work perfect
Stefke93 said:
Use lib form my post, disable camera2api, and add this line to vendor/build.prop persist.vendor.camera.HAL3.enabled=1 Every app should work then with Pe, there is no benefit from Gcam if you broke everything with camera2 api enabled. Miui camera taking great photos now and portrait work perfect
Click to expand...
Click to collapse
So i need to edit build.prop
persist.vendor.camera.HAL3.enabled=0 to disable cam2api?
Prefer front cam from miui 24mp, and back cam from gcam, but i will try..
Exactly, copy lib in vendor and turn off HAL3 to 0, and everything will work perfect, but Gcam will be broken.
It works on BootleggersROM, thank you very much.
gatolar said:
It works on BootleggersROM, thank you very much.
Click to expand...
Click to collapse
Yep bro, port work very smooth on Bootleggers, you can try Viper OS too ?
To Stefke majstore svaka ti dala ovo sam cekao dugo!
(Great job dev!)
Works awesome on RR with lib replaced.
Is there a way of adding Night mode?
Immortal0907 said:
Is there a way of adding Night mode?
Click to expand...
Click to collapse
Yes, HHT mode can be fixed, accidentally i broke something and now seems like don't work, also different scenes can be added, problem is with Platina xml in device feature folder, some lines are wrong ??
Why does the interface look like this? Did I do something wrong? Please help me [emoji24]
Enviado desde mi MI 8 Lite mediante Tapatalk
It's something about nav bar and gestures. With nav bar active there's no problem View attachment 4782697
Enviado desde mi MI 8 Lite mediante Tapatalk

[Discussion] ANXCamera on R

I saw that all the threads about anxcamera got closed because they contained links to the anxcamera website, violating rule 13, which is why I won't be posting any links here. I just hope to be able to discuss ANXCamera tips and tricks in this thread, just like we can in the gcam thread.
There is now an ANXCamera version available for android R, which is great for the people on aosp custom roms. I am particularly interested in ANXCamera for the wide angle lens because gcam doesn't do wide angle lens distortion correction as of now, and the MIUI camera also has a little more options for video recording. The video recording for the main lens works really well, all 1080p and 4k modes work, also their AI 8k whatever that is works fine. For some reason EIS only appears to be working on [email protected], [email protected], it doesn't work at all for 4k and [email protected] Most of the alternative modes on the main camera, panorama slowmotion etc seem to work fine. 64MP seems to give me an overly saturated (like it's deepfried) image and the night mode processes infinitely. On top of that, no AUX lenses appear to be working. Portrait mode doesn't work, wide angle lens crashes the camera and there is no option for the macro lens. At least the front camera works fine, I usually prefer it over gcam for selfies because gcam shows too much detail in selfies. All my testing is done on the derpfest R rom with the latest firmware.
So in short, ANXCamera for R is pretty broken right now and I would only use it for selfies and video recording in some cases.
Too bad this discussion did not get any replies yet.
@GalaxyTroll, which version of ANXCamera did you test? I noticed on the website that in the changelog of v204 lmi is mentioned, but the wiki states that it still needs to be tested on this device.
I'm hesitating to test this version myself, because due to personal circumstances I might not be able to restore my phone in case something goes wrong and for now I'm totally depending on it. Did anybody try v204 on the Poco F2 Pro?
I'm on Lineageos 18.1.
The version I tested here was 185R by Noid. I also just tested version 190R (on 19-09 crdroid) and it's still pretty bad, in some ways worse than 185R. For starters, EIS doesn't appear to be working at all anymore. "Steady Mode" can only record in [email protected] and even then it's not even applying EIS. The only available video options are [email protected] [email protected] and [email protected] and those work fine, but I couldn't find a 4k option so I think it's gone.. H265 encoding doesn't work although H264 works fine. Slowmotion and timelapse modes seem to be working just like in the previous version.
As for photos, wide angle lens is still broken but this time "super macro" switches to the macro lens so that works now. Portrait mode does seem to work this time, and it seems to apply the bokeh effect correctly. Panorama mode still works as well. However 64M mode still produces wayy overexposed photos and Night Mode results in a "cannot connect to camera" error.
Props to Noid for making this mod. but for our device it's still a long ways off. Too bad that EIS doesn't work at all anymore because video recording was one of the things anxcamera could do possibly better than gcam.
btw @heinhuiz v204 does not work at all when I tested it, it's not even able to connect to the main camera and the app just closes.

Categories

Resources