Camera STOCK for custom ROM (Portrait mode work) - Xiaomi Mi A2 Lite Themes, Apps, and Mods

Friends we can finally use dual camera in any custom rom.
Install using Magisk.
If it does not work at the first attempt it is recommended to return to the stock rom and then install the custom rom.
That way everything will work without problem.
Venezolano desde Argentina.

Hmmm... Portrait mode on rear camera not working... It fc app.. Aosip

Works
I am on RR

adag1 said:
Hmmm... Portrait mode on rear camera not working... It fc app.. Aosip
Click to expand...
Click to collapse
Work on PE and EvolutionX

Portrait mode no work in RR
Force Close

leechgid said:
Portrait mode no work in RR
Force Close
Click to expand...
Click to collapse
Strange. I am on the latest build, with DragonHeart Kernel. All seems to work fine.

Portrait mode no work in Bootleggers 4.2
Force Close

Does this cam crashes frequently? I know cameras have been always the most difficult part o custom roms, I am still on stock only for the camera, other roms I tried (with a mi a1, to be honest) crashed when I need to take a quick picture... Also tried the GCam, it has better quality but it was worse at the end, it broke the whatsapp camera taking green pictures and random crashes were common. I would really like to install RR or any other rom, but the camera is dragging me back.
I wish there would be a debloated stock rom (no GAPS and the few xiaomi extras) just for keeping the camera working normally, but noone has done it (and I am far for been able to )

DARKEASC said:
Does this cam crashes frequently? I know cameras have been always the most difficult part o custom roms, I am still on stock only for the camera, other roms I tried (with a mi a1, to be honest) crashed when I need to take a quick picture... Also tried the GCam, it has better quality but it was worse at the end, it broke the whatsapp camera taking green pictures and random crashes were common. I would really like to install RR or any other rom, but the camera is dragging me back.
I wish there would be a debloated stock rom (no GAPS and the few xiaomi extras) just for keeping the camera working normally, but noone has done it (and I am far for been able to )
Click to expand...
Click to collapse
I get green tinted photos when I zoom in this camera app. Otherwise, I encounter no crashes or other problems.

Fix for the color bug:
Set the HDR mode to "live".

Portrait Mode is absent on AOSiP ROM

Portrait mode does not work on back camera.
Front camera has color bug. But, if hdr turn on or in portrait mode it works fine.
On superior OS

I got bootloop after flash this module in magisk 19.4 on (AEX) AOSP Extended v6.7 Is working only on LineageOS based roms?

lars00 said:
I got bootloop after flash this module in magisk 19.4 on (AEX) AOSP Extended v6.7 Is working only on LineageOS based roms?
Click to expand...
Click to collapse
Miui camera works with almost every custom rom : Superior , crdroid , POSP , RR (I've tested on them )
Portrait mode crashing with back camera is fixable , you'll need some file explorer with root permissions . The problem is with vendor mismatch , and you'll need to make some changes , here is the walkthrough:
How to solve vendor mismatch bug:
Find string ro.vendor.build.fingerprint in the file /vendor/build.prop, copy the value from it and replace this value to ro.build.fingerprint in the file /system/build.prop ,reboot and portrait mode has to be working , it works for me all the time

Unfortunately I don't know where is the problem. After install this module and restart device, then stuck on AEX boot animation. After uninstall module in Magisk Mnanager 4 Recovery boots again normally For me also not working MI A2 camera port in generic Magisk modules, respectively not all functions, no live image filters, crashing etc. Can't it cause the custom Vendor of AEX rom?
Base lineageos.snap camera and GCam 6.2.030 works fine. I use both of them, it is not the conflict in there?
Thank you for your tips...

lars00 said:
Unfortunately I don't know where is the problem. After install this module and restart device, then stuck on AEX boot animation. After uninstall module in Magisk Mnanager 4 Recovery boots again normally For me also not working MI A2 camera port in generic Magisk modules, respectively not all functions, no live image filters, crashing etc. Can't it cause the custom Vendor of AEX rom?
Base lineageos.snap camera and GCam 6.2.030 works fine. I use both of them, it is not the conflict in there?
Thank you for your tips...
Click to expand...
Click to collapse
Try using this magisk module:
https://drive.google.com/file/d/1po2DDLUifIEJe_zMJvpVXuWch8jffZzw/view?usp=drivesdk
This is stock Daisy camera ,uninstall miui camera from magisk ,then install this zip,reboot and try again

nikoman1987 said:
Try using this magisk module:
.......
This is stock Daisy camera ,uninstall miui camera from magisk ,then install this zip,reboot and try again
Click to expand...
Click to collapse
This link doesn't contain any magisk zip module, this is nova launcher backup file(?). I'm using Lawnchair on Aex.
I have all Magisk modules unistalled before flash MiuiCamera.zip of course, but stuck on AEX screen persist.
I have tried more versions of miui camera, but no satisfying success.

nikoman1987 said:
Try using this magisk module:
https://drive.google.com/file/d/1aSX4odE5fAqtl4ImEwRrDxdkWuABbX_J/view?usp=drivesdk
This is stock Daisy camera ,uninstall miui camera from magisk ,then install this zip,reboot and try again
Click to expand...
Click to collapse
wrong link bro

lars00 said:
This link doesn't contain any magisk zip module, this is nova launcher backup file(?). I'm using Lawnchair on Aex.
I have all Magisk modules unistalled before flash MiuiCamera.zip of course, but stuck on AEX screen persist.
I have tried more versions of miui camera, but no satisfying success.
Click to expand...
Click to collapse
Sorry , copied the wrong link , the link is fixed now

can this work on 10 GSI maybe? i would rather not bootloop

Related

[APP] Working MIUI Camera Solution for LOS

Hey guys,
after getting very angry because no camera solution worked for me I finally found one which works perfectly fine. I just extracted the sagit.xml from the current global dev rom.
EDIT 2:
I ****ed up a little lol..just use this one and dont use any xml:
- Flashable MiuiCamera support portrait mode by Verevka -> https://androidfilehost.com/?fid=962021903579483289
Edit: Seems not to work on Oreo based roms. Nougat is fine.
What is working for me:
- everything exept Portrait mode and that Bokeh effekt ( even manual fokus ) :good:
Instructions
1. Download MIUICamera.zip (a port from Mi A1 Credits to Miftahzy from MIUI Forum) and flash it through TWRP
2. Create a folder on SDCARD root named "device_features" and place the sagit.xml in it.
3. reboot and have fun
for LOS 14.1 or LOS 15?
I tried only on 14.1, of u try in 15 i would appreciate it
Got fc in los 15
fc in AICP Oreo:crying:
ebautista said:
Got fc in los 15
Click to expand...
Click to collapse
Raymond.William said:
fc in AICP Oreo:crying:
Click to expand...
Click to collapse
Thanks for clarifying this! So this solution aint work on Oreo!
Good news, I replaced another MIUICamera.apk that I took it from RR 5.8.5.
And I flashed it in AICP ver 13.0 released at 171106 https://androidfilehost.com/?fid=817906626617944462 and finally the MIUICamera work normally.
This has been tested and maybe work normally ONLY on my Mi6 running AICP 13.0
https://drive.google.com/file/d/1gloeH9Iko6kfo_Xr91p0mDi4FBPvrm1D/view?usp=drivesdk Download and flash it. Good luck
Well I found some bug. When you choose "Slow motion" mode camera will FC and when you open it next time it will show you "cannot connect the camera"
Raymond.William said:
This has been tested and maybe work normally ONLY on my Mi6 running AICP 13.0
https://drive.google.com/file/d/1gloeH9Iko6kfo_Xr91p0mDi4FBPvrm1D/view?usp=drivesdk Download and flash it. Good luck
Click to expand...
Click to collapse
Access denied.
ebautista said:
Access denied.
Click to expand...
Click to collapse
oops I am soo sorry. Now I open the access.
Camera seems to be working on aicp 8.0
Still switching between the front to the back camera tales forever
Raymond.William said:
This has been tested and maybe work normally ONLY on my Mi6 running AICP 13.0
https://drive.google.com/file/d/1gloeH9Iko6kfo_Xr91p0mDi4FBPvrm1D/view?usp=drivesdk Download and flash it. Good luck
Click to expand...
Click to collapse
Is this for Oreo?
On LOS 14.1 I got no connection to camera issue with this.
Raymond.William said:
Good news, I replaced another MIUICamera.apk that I took it from RR 5.8.5.
And I flashed it in AICP ver 13.0 released at 171106 https://androidfilehost.com/?fid=817906626617944462 and finally the MIUICamera work normally.
Click to expand...
Click to collapse
Can I add your wechat? I have some questions about the camera of mi6
does this work on the xiaomi mi a1 ?
It does not work with Lineage Os 15 Oreo. Is there a port opportunity for oreo ??
There are many a1 oreo ports on the xda. I've tried every one of them and still couldnt figure it out. I've really missed the miui camera. Can some dev could look at it ?
I was curious enough to the try the flashable ZIP on a Mi 6 with LOS 15.1 -- didn't work (like it's stated in the op). For those of you who also need to remove all files from add_MIUI_Camera_by_Verevka.zip try the attached removal script.
Work on lineageos15.1 official. İnstall zip then restart phone and give permmissions miui camera apk on app settings.
akmoy92 said:
Work on lineageos15.1 official. İnstall zip then restart phone and give permmissions miui camera apk on app settings.
Click to expand...
Click to collapse
in my lineage os 15,1 work, but there is not the bokeh effect!

[MAGISK][APP][FIX]Google Camera with HDR+ on FRONT/BACK, Portrait mod fix and Guides

As everyone was asking for some guides and fixes of the Google Camera on our Mi Note 3 device, I decided to help you out with a guide and all necessary resources to get it working.
First of all, for people new to Google Camera, follow @dimi89 's guide as an introduction to all processes needed to achieve a working camera port.
To make it simple, you need to:
Unlock bootloader
Flash TWRP or boot it through fastboot (there are plenty of guides here)
Install Magisk systemless root through TWRP recovery
Flash my fixes module below to enable Camera 2 API and make front camera working as desired
Install the best APK for you from https://www.celsoazevedo.com/files/android/google-camera/
Be happy
Until now, we had it working but some features like Portrait mode, front camera HDR+ and portrait, plus front camera flash were missing.
With the help of @defcomg I managed to make a Magisk Module as a bundle that does both enabling Camera2API and adds necessary libs to fix the camera. You can download it below.
As per the apk of the GCam on your device, I recommend latest Arnova8G2 version. You can also find it at the bottom of this post. It is great and does not require any other settings after you apply the fix in Magisk.
Downloads here:
-Camera2API, Portrait mode + HDR on front camera fix (MAGISK MODULE) - https://mega.nz/#!M5gjSQxJ!K5Q4XmdRimI_x2xpOWexHR52qUi5sklOV7SVhWWo9RE
-Stable and autoconfig GCam - https://www.celsoazevedo.com/files/...eCamera-Pixel2Mod-Arnova8G2-V7beta-test-9.apk
For any other questions, feel free to ask me.
IMPORTANT!! The fix for front cam may not work with all ROMs. It was tested on the following:
XIAOMI.EU Stable 9.5.4.0
XIAOMI.EU Stable 9.2.x.x
XIAOMI.EU Developer 8.3.22
Lineage OS
AOSP Extended
You can test it on your device on your own risk. If it does not work you can delete module from magisk.
Credits to @defcomg for the help with the library, @WebDingo for the magisk module and @Arnova8G2 for the amazing work with all GCam ports. Also crediting other developers for their great additions to this community.
Enjoy!
Great job
Great job Gcam now works very well, the only thing I noticed is that is laggy at times in portrait mode. Is it normal?
will it work on my mi5s?
Thank you, its working! Mi Note 3 xiaomi.eu 9.5.4.0
Artic02 said:
Great job Gcam now works very well, the only thing I noticed is that is laggy at times in portrait mode. Is it normal?
Click to expand...
Click to collapse
Did you use the GCam version I recommended?
Sporso said:
will it work on my mi5s?
Click to expand...
Click to collapse
No, MI 5S uses a different front camera sensor.
WebDingo said:
Did you use the GCam version I recommended?
Yes, latest Arnova's version. Hovewer it's not annoying because most of the times it runs smoothly, I wrote here only to inform you
Sent from my Xiaomi Mi Note 3 using XDA Labs
Click to expand...
Click to collapse
Works on epic rom! Thanks!
Works on multirom 8.3.15
thanks bro for sharing
it works well
Anyone have flash via twrp fix version ?
Thanksss. With arnova v6 (and this beta) works fine. So I've a problem but...you have 60 FPS video? For me is ever 30 FPS and I search in every part of the web the way to have got 60 FPS in full hd. For me is very important. If you know a way, please tell me (also use another new custom ROM). Thanks
moredex said:
Anyone have flash via twrp fix version ?
Click to expand...
Click to collapse
Yes it works through twrp.
What if i already add a c2api lines in build prop? Will it conflict?
Hey guys. Mıuı pro 8.3.22 good but pls help. I want to front camera mirror photo??
Mi Note 3 cihazımdan Tapatalk kullanılarak gönderildi
This libs conflict with miui camera original libs if i install them with magisk? I want miui camera and its things untouched. Thanks!
Damm....
I do not know how the install this thing Magisk...
Cant be done by TWRP?
Big thanks for this been waiting for this to happen in months!
Do you think that this could be ported to Redmi 5/5plus? They exactly have the problem in portrait and hdr+. Anyways thanks again!
You made my day. The fix works perfectly and i love the selfie portrait mode.
Thank you very much and Arnova of course!
Working.....
Thank youuuuu!!
Also first install of Magisk!!
pyronia said:
What if i already add a c2api lines in build prop? Will it conflict?
Click to expand...
Click to collapse
No, you shouldn't have any issue with that.

[gcam]how to get front portrait

Here's how to get front portrait on Cedric :
•Download This https://drive.google.com/file/d/1skMGmQlHOn0pVXh5UD7AS6F6LIQNTF91/view?usp=drivesdk
•Everything has been done for you except front camera black level offset which needs to be set at 12.00 or 16.00
•Dont complain about bugs this is only for front portrait
•Please share your pics
•All credits go to the porter all I did was make the presets
•Use Hal3
•If you don't have hal3 enabled here is a module created by Robson Williams (Flash in twrp)
•Please join our telegram @cedricchat
Can't install. I'm getting this app isn't compatible with your device. I'm on stock 7.0 debloated and optimized, magisk 16 with hal3 module enabled. Gcam custom curve is working but no portrait mode.
Thanks!
gkornaks said:
Can't install. I'm getting this app isn't compatible with your device. I'm on stock 7.0 debloated and optimized, magisk 16 with hal3 module enabled. Gcam custom curve is working but no portrait mode.
Thanks!
Click to expand...
Click to collapse
U reminded me I should state its for Oreo
I have tried this and many other camera apks and nothing is working, all crashing at boot. I'm on the Pixel Experience Rom. I flashed Hal3 too (I tried MOTO Camera before flashing hal3 and it worked, but that doesn't work either)
Any ideas?
OMG ty
friend install the file by magisk but footej camera does not record me videos
infixremix said:
U reminded me I should state its for Oreo
Click to expand...
Click to collapse
I wanted to ask that I have 8.1 stock on Moto g5 Cedric so will this work and also can I download xposed installer from magisk and will it work?? Thank you btw for providing the download option.

⚠️ I need help ⚠️ (Camera issue)

I'm on MIUI 10 (10.3.4 miui.eu) stable oreo
rooted with magisk 19.1 stable
kangarooX Kernel 3.4 stable oc
Now everything works just fine, but I'm facing weird problem with cam on all messenger apps like (Telegram - Skype ...), when I'm trying to take a photo or make a video call the cam preview (what i see on my side) is flipped cam view! Even when i hold my phone in vertical way and auto rotation is off!. I tried everything (trun on/off cam2api - used multi cam fix module - clear cache from recovery - clear cam app data - reflash rom - edit some cam-related values on whyred.xml ....)
Can anyone help me to fix this problem please ?
As you haven't mentioned, I ask: Does this also happen with the stock kernel of Miui? You tested with custom roms (AOSP)?
onliner said:
As you haven't mentioned, I ask: Does this also happen with the stock kernel of Miui? You tested with custom roms (AOSP)?
Click to expand...
Click to collapse
nope, i figure it out.. it has nothing to do with kernel or rom, it was caused by magisk module called "skia enabler", so i just disabled it
thanks for caring

[MIUI Camera][ANXCamera][48MP Fixed][Working][Custom roms]

MIUI camera for all custom roms.
Uninstall all camera mods and patches
AXN Camera v94 modded
1-portrait mode fixed.
2-48mp fixed
Download-https://drive.google.com/file/d/15-czv6xrbp0-DJjyjGgZQeLVdfsqJfKO/view?usp=sharing
All credit goes to #AEonAX for his ANXcamera port and Me
Try it and report me back what is working and what is not.
Tested on Mokee latest 201906190631 nightly rom .
Every thing is working perfectly
Tested it. The camera works fine, the 48MP options working good. But always crashed on potrait mode camera.
IMHO, gcam had a better picture quality.
This mod replaces the default camera apps on installed. It means, your default camera apps will gone after flash this mod.
Any way to recover it?
Thanks anyway.
Good job devs.
Testing on PE Rom CAF Edition latest build.
psychoelmo said:
Tested it. The camera works fine, the 48MP options working good. But always crashed on potrait mode camera.
IMHO, gcam had a better picture quality.
This mod replaces the default camera apps on installed. It means, your default camera apps will gone after flash this mod.
Any way to recover it?
Thanks anyway.
Good job devs.
Testing on PE Rom CAF Edition latest build.
Click to expand...
Click to collapse
Only portrait mode is not working??
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender?? Then I can make that version stable with 48Mp mod.
ARNOB XENON said:
Only portrait mode is not working??
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender?? Then I can make that version stable with 48Mp mod.
Click to expand...
Click to collapse
Yeah, for me the potrait mode made the apps crashed and when I open the camera again, it stays on potrait mode. So I can barely open the apps, the only way to recover it just with clear the storage of the apps. So the camera restarting the state, just like when opened for the first time.
ARNOB XENON said:
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender??
Click to expand...
Click to collapse
Idk, never tried ported anx camera before. This was my first time.
Maybe you can provide the link for other version of this ported apps for lavender? I can try if I know where to download the files.
psychoelmo said:
Yeah, for me the potrait mode made the apps crashed and when I open the camera again, it stays on potrait mode. So I can barely open the apps, the only way to recover it just with clear the storage of the apps. So the camera restarting the state, just like when opened for the first time.
Idk, never tried ported anx camera before. This was my first time.
Maybe you can provide the link for other version of this ported apps for lavender? I can try if I know where to download the files.
Click to expand...
Click to collapse
https://github.com/XEonAX/ANXCamera/releases/
try the lower versions and let me know
ARNOB XENON said:
https://github.com/XEonAX/ANXCamera/releases/
try the lower versions and let me know
Click to expand...
Click to collapse
Tried every lower version till v100
V98 cannot even open in photo mode.
So I'm guessing lower than that will not work anymore.
Every version till v100, none of them works in potrait mode.
The rom still on PE ROM CAF editions.
I flashed it in my Redmi note 7 Indian version and it broke everything the anxCamera says can't connect to the camera. GCam is crashing and WhatsApp is crashing while opening camera.
I'm on PE ROM caf edition.
AsifKhan22 said:
I flashed it in my Redmi note 7 Indian version and it broke everything the anxCamera says can't connect to the camera. GCam is crashing and WhatsApp is crashing while opening camera.
I'm on PE ROM caf edition.
Click to expand...
Click to collapse
Reflash the zip in twrp, it will uninstall the anxCamera.
psychoelmo said:
Reflash the zip in twrp, it will uninstall the anxCamera.
Click to expand...
Click to collapse
Reflashing the zip uninstalled the camera but gcam and other camera apps still didn't work. I had to reflash the ROM to make it work again.
psychoelmo said:
Tried every lower version till v100
V98 cannot even open in photo mode.
So I'm guessing lower than that will not work anymore.
Every version till v100, none of them works in potrait mode.
The rom still on PE ROM CAF editions.
Click to expand...
Click to collapse
please change the rom and try something else like other caf based roms.And see if it works or not because in our violet some the people stated that they are having same portrait mode bug but after switching 1/2 roms they found everything working.I don't have lavender so u need to test. And portrait mode bug is reported on the official Camera mod too.So if they fix portrait mode u will have fully bugless camera app from me .
AsifKhan22 said:
Reflashing the zip uninstalled the camera but gcam and other camera apps still didn't work. I had to reflash the ROM to make it work again.
Click to expand...
Click to collapse
Same here, Lavender with Havoc OS 2.6. Installed everything (camera related) crashed, uninstalled, still nothing works. Even the stock camera app stops working.
Please check it, or put a warning in the first post.
papp0us said:
Same here, Lavender with Havoc OS 2.6. Installed everything (camera related) crashed, uninstalled, still nothing works. Even the stock camera app stops working.
Please check it, or put a warning in the first post.
Click to expand...
Click to collapse
The post is updated try out the official one.
Note- It will never work on havoc and OOS try some other caf based rom
ARNOB XENON said:
The post is updated try out the official one.
Note- It will never work on havoc and OOS try some other caf based rom
Click to expand...
Click to collapse
Well not working is one thing, creating problems is another
Thanks for mentioning though, too bad it looked great.
papp0us said:
Well not working is one thing, creating problems is another
Thanks for mentioning though, too bad it looked great.
Click to expand...
Click to collapse
Use v115 and use this patch uninstall previous patch before flashing this https://drive.google.com/file/d/1c5t-rlIZN8j3D2wPv5aoVzfFkKmJc3kr/view
And report me back
AXN Camera Official 115
Download-https://github.com/XEonAX/ANXCamera/releases/download/115.singularity/ANXCameraUnity_115.BlissfulHeftyLion.zip
Patch link-https://drive.google.com/file/d/1c5t-rlIZN8j3D2wPv5aoVzfFkKmJc3kr/view?usp=sharing
At 1st flash the camera then reboot then flash the 48mp patch fix.
Do not flash the 48Mp patch from Github
All users please try this one with new patch
I'm using V83 and it so good to work. No problem with Gcam & other. But when i use v111 - 114 it crash all. No Camera can working, Anx & Gcam. So i uninstall it and Gcam working good again. Hope v115 so good than.
Can i flash v115 on v83 or uninstall 83 before install v115
V115: Portrait make app error. Come back v83 is the good idea !
v115 works fine except for portrait mode where the app crashes. Also shooting in 48mp mode only gives 12mp images.
can anyone test 4k eis?
BabyRed2234 said:
V115: Portrait make app error. Come back v83 is the good idea !
Click to expand...
Click to collapse
V115 with patch?? Installed

Categories

Resources