MIUI 11 and cam2api - Xiaomi Redmi Note 5 Pro Questions & Answers

Why??? why Xiaomi why...
I've followed a lot of tutorials to flash a camera 2api module enabler this shouldn't be complicated so i'm gonna post what i have been doing to see if someone can help
Bootloader unlocked
In fastboot mode:
fastboot flash recovery twrp.img (am using the latest)
So i flash twrp temporarely just to enable gcam
In twrp i used a lot of modules but none of them work
Some even say that the flash was sucessful but in manual camera compatibilty it knows that the cam2api isn't enabled
If anyone could help it would be amazin
(Miui 11.0.5 Android 9)

My fear is that i can't flash cam2api on pie that would be a shame
Also, i don't want to root the phone that's why i'm not using a build prop editor

Ok so this just got more bizarre i've extracted the build.prop and the changes are there
the value is set to 1!!... but i am still failing any camera 2 api test...
If someone could help me understand this behaviour it would help a lot

Same for me. All camera2api guides I've seen are more or less sophisticated ways of adding lines to /system/build.prop, but that doesn't seem to be enough to enable camera2api and I'm dying to know why.
Whyred, MIUI Global 11.0.3, Android 9, bootloader unlocked. When I pull build.prop to my PC, it contains both "persist.camera.HAL3.enabled=1" and "persist.vendor.camera.HAL3.enabled=1", but camera tests fail and ported gcams just crash.
All ideas welcome.

Related

[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.

How to enable Camera2API on Mi Max 3?

My Mi Max 3 does not have Camera2API enabled, so I can't capture RAW pictures with the camera. How can I fix this? I tried Magisk but it broke the WiFi for some reason (WiFi could not be turned on at all). Is there any other way to enable Camera2API? I'm running MIUI 9.6.11.0 Stable (China ROM)
It's really stupid that Xiaomi doesn't let us capture RAW images with the default camera app of Mi Max 3. Good camera sensor totally wasted.
Was just hunting around for how to do this, is editing the build.prop file the only way I wonder? Couldn't find anything in the Magisk development and modification machine downloads section.
Look at this :
magisk-camera2-api-enabler
worked for me, i am now a happy Gcam user....
I ended up flashing a rom with it enabled.
Yeah I ended up doing the same, too as I wasn't aware of the module. I'll give it a go when MIUI 11 global finally surfaces!
1) Unlock your bootloader (Approx. wait for 1 week)
2) When it is ready, download "XiaoMiTool V2"
3) Unlock your phone.
4) Install TWRP
5) Install Magisk.

How to Download Google Camera for Redmi Note 5 (Global) without root?

I got RN5 (global) which has Android 8.1.0.OPM1.171019.011 / MIUI 9.6.4.0
I would like to install google camera to have nice photo quality like pixel.
Came across this article which says we can do it without need to root.
technobuzz.net/google-camera-redmi-note-5-pro
Wondering if anyone has done these steps or any similar steps for ref?
Stella
Any help here please?
StellaZ90 said:
I got RN5 (global) which has Android 8.1.0.OPM1.171019.011 / MIUI 9.6.4.0
I would like to install google camera to have nice photo quality like pixel.
Came across this article which says we can do it without need to root.
technobuzz.net/google-camera-redmi-note-5-pro
Wondering if anyone has done these steps or any similar steps for ref?
Stella
Click to expand...
Click to collapse
Yes, you can get Gcam to work on your device by using these steps, If you don't wanna root your device.
Though rooting your device will make the process 5x easier, it's up to you. ?
Let me know if there's anything else I can help you with.
Have a nice day
You have to unlock BL to do:
- Install twrp recovery
- Flash CameraAPI2 enabler zip file
- Install GCam
But if not root, you can't take front HDR+ Enhanced and Portrait.
If you root you can solve front cam problem.
I don't know why you don't want root. If something relate to finance apps, magisk hide will pass easily!
Zanr Zij said:
You have to unlock BL to do:
- Install twrp recovery
- Flash CameraAPI2 enabler zip file
- Install GCam
But if not root, you can't take front HDR+ Enhanced and Portrait.
If you root you can solve front cam problem.
I don't know why you don't want root. If something relate to finance apps, magisk hide will pass easily!
Click to expand...
Click to collapse
Do you have working hdr enhanced in every light conditions? Camera is working for me only in daylight scenes. Rear works but front doesn't.
Redmi Note 5 global.
StellaZ90 said:
I got RN5 (global) which has Android 8.1.0.OPM1.171019.011 / MIUI 9.6.4.0
I would like to install google camera to have nice photo quality like pixel.
Came across this article which says we can do it without need to root.
technobuzz.net/google-camera-redmi-note-5-pro
Wondering if anyone has done these steps or any similar steps for ref?
Stella
Click to expand...
Click to collapse
Yes you can, take a look here: https://forum.xda-developers.com/redmi-note-5-pro/themes/gcam-root-flashing-twrp-t3813230
Yeah you can do it but you need to unlock your bootloader at least if not root ...if you unlock your bootloader then you can temporarily boot twrp and by using you can enable camera 2 api and thus,install gcam
You can use ADB on MIUI to enable Camera2 API, which works without root.

Camera2api module not compatible with GSI ROMs

Hello everyone, I have perhaps the biggest doubt. Why can i easily install the Gcam in the Stock version of the firmware by enabling the module; but if I install a GSI Rom and try to enable the module, does the default camera stop working? And even the possible Gcam to install does not work. Someone could tell me why? Truly I would be infinitely grateful!:fingers-crossed::fingers-crossed:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
celrau said:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
Click to expand...
Click to collapse
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
YouKnowAirborne said:
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
Click to expand...
Click to collapse
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
celrau said:
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
Click to expand...
Click to collapse
compatible modules unfortunately I have not found, maybe there will be something that does not go with the libraries as you say. But unfortunately about this, I understand little and nothing. unless someone tells me directly what I have to implement
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
boe323 said:
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
Click to expand...
Click to collapse
Thanks mate, i'll try it!
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
BJumperBR said:
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
Click to expand...
Click to collapse
Thanks a lot mate, i'll try this solution too!!

How To Guide A Complete Guide to Unlocking and Flashing for the A52s 5G.

Disclaimer​
Your warranty will be void
Some carriers' Terms of Service prohibit device modifications
Modifying will trip Samsung Knox and SafetyNet, so be aware that some apps will cease to work
I AM NOT RESPONSIBLE FOR BRICKED DEVICES, FAILED ATTEMPTS AND OTHER CAUSES OF IMPROPER USAGE OF THIS GUIDE!​Now that we got that out of the way, we can continue.
Unlocking the Bootloader​UNLOCKING THE BOOTLOADER WILL ERASE ALL OF YOUR DATA!​
Go into Settings > About Phone > Software Information
Find Build Number and quickly tap it 7 times. This will enable Developer Options
Find OEM Unlocking and USB Debugging options and enable them
Turn off the phone
Hold Volume Up and Volume Down while connecting your phone to a PC to boot into Download Mode
Read the Warning carefully to understand it and then if you want to continue press Volume Up
On the Unlock Bootloader screen, press and hold the Volume Up button one more time (This is the step that erases all of your data, if you don't want to do it, now is the time to turn back!)
After the automatic reboot, repeat steps 1. - 3. and make sure that OEM Unlocking is greyed out and enabled
Congratulations! You bootloader is now unlocked.
Flashing a Custom Recovery​Credit to @BlackMesa123 for this guide.
Rooting your Phone​
Download the latest version of Magisk on your Computer
Follow the Official Installation Guide from Magisk developers
Flashing a GSI (Generic System Image)​
Choose a GSI from this List
Power Off your phone and connect it to your Computer
Hold Volume Up and Power buttons, after the logo appears, release only the Power button, this will boot you into TWRP
Do a Wipe and transfer the GSI file from you Computer to your Phone
Click Install >Image Flashing, find your transferred GSI file and tap on it.
Toggle the System Image option and flash the file.
After flashing Format Data to be able to boot into your new System.
I know your Camera doesn't work, don't worry check out this Post to get it to work again.
Useful Resources​
A52s bootloader/modem collection repository
OrangeFox Recovery
SafetyNet Fix for Magisk (Zygisk)
Custom ROMs: RayOS (One UI 4.1), NcX (One UI 5.0)
Mesa's Custom Kernel
Credit to @BlackMesa123 @Ryzen5950XT @ShaDisNX255 for the additional resources.
That's it! Thank you for following the guide and enjoy your unlocked Samsung.
This is very helpful thanks
Thank you for the guide. Here's some additional resources/changes that can be added in the post:
- A52s bootloader/modem collection repository
- OrangeFox Custom Recovery, same as TWRP but with a different UI
- SafetyNet and (some) Knox features can still work with the correct adjustments. See the SafetyNet fix for Magisk (Zygisk) or custom ROM's such as RayOS (One UI 4.1), NcX (One UI 5.0)
- Mesa's Custom Kernel, greatly improves device's performance
Hoping to see the list enhanced soon.
BlackMesa123 said:
Thank you for the guide. Here's some additional resources/changes that can be added in the post:
- A52s bootloader/modem collection repository
- OrangeFox Custom Recovery, same as TWRP but with a different UI
- SafetyNet and (some) Knox features can still work with the correct adjustments. See the SafetyNet fix for Magisk (Zygisk) or custom ROM's such as RayOS (One UI 4.1), NcX (One UI 5.0)
- Mesa's Custom Kernel, greatly improves device's performance
Hoping to see the list enhanced soon.
Click to expand...
Click to collapse
Thank you for the links, thread is now updated.
Quick question, with MCK, should I wipe everything before/after flashing and will it work with PE+ GSI?
kzyx said:
Thank you for the links, thread is now updated.
Quick question, with MCK, should I wipe everything before/after flashing and will it work with PE+ GSI?
Click to expand...
Click to collapse
You shouldn’t wipe anything when flashing the kernel. If the stock kernel works fine, I don’t see why mine shouldn’t
Everything is working perfectly, thanks for the guide. I installed the PixelExperience GSI but for some reason Fingerprint sensor is not working. The process is stuck on "Touch the sensor" and the sensor is not lighting up. Yes, I set the color of fingerprint sensor to White (and even tried all other colors).
I even have the following options checked
- Enable Extra Sensor
- Enable workaround for broken fingerprint sensor
- Enable workaround for white-ish screen
Any help will be appreciated, thanks.
Mian-786 said:
Everything is working perfectly, thanks for the guide. I installed the PixelExperience GSI but for some reason Fingerprint sensor is not working. The process is stuck on "Touch the sensor" and the sensor is not lighting up. Yes, I set the color of fingerprint sensor to White (and even tried all other colors).
I even have the following options checked
- Enable Extra Sensor
- Enable workaround for broken fingerprint sensor
- Enable workaround for white-ish screen
Any help will be appreciated, thanks.
Click to expand...
Click to collapse
I don't know what could be the issue, maybe try to google or try disabling and enabling the fingerprint lock again.
I have tried few GSI Roms. Here is my summary:
Android 13
- AOSP, Android 13, No image with GAPPs pre-installed and cannot seem to install it. Tried NikGAPPs, and LiteGAPPs, both didn't work
- Google GSI, Android 13, same issue
- Pixel Experience, Android 13, GAPPs pre-installed but Fingerprint sensor won't get detected.
Android 12
- AOSP, Android 12, GAPPs pre-installed, Fingerprint sensor detected (changing color to white). Will stick to it unless there is an issue detected.
Mian-786 said:
I have tried few GSI Roms. Here is my summary:
Android 13
- AOSP, Android 13, No image with GAPPs pre-installed and cannot seem to install it. Tried NikGAPPs, and LiteGAPPs, both didn't work
- Google GSI, Android 13, same issue
- Pixel Experience, Android 13, GAPPs pre-installed but Fingerprint sensor won't get detected.
Android 12
- AOSP, Android 12, GAPPs pre-installed, Fingerprint sensor detected (changing color to white). Will stick to it unless there is an issue detected.
Click to expand...
Click to collapse
Thanks for the feedback, have you tried any ROMs instead of GSIs?
You have links for them in this thread.
kzyx said:
Thanks for the feedback, have you tried any ROMs instead of GSIs?
You have links for them in this thread.
Click to expand...
Click to collapse
Nope, I tried to find a good custom rom for A52s but couldn't find any.
What about volte and hotspot on GSI pixel experience 13?
Mian-786 said:
I have tried few GSI Roms. Here is my summary:
Android 13
- AOSP, Android 13, No image with GAPPs pre-installed and cannot seem to install it. Tried NikGAPPs, and LiteGAPPs, both didn't work
- Google GSI, Android 13, same issue
- Pixel Experience, Android 13, GAPPs pre-installed but Fingerprint sensor won't get detected.
Android 12
- AOSP, Android 12, GAPPs pre-installed, Fingerprint sensor detected (changing color to white). Will stick to it unless there is an issue detected.
Click to expand...
Click to collapse
Thanks for your summary,
Is there any experience with MicroG on this device with AOSP 13?
7slaper said:
Thanks for your summary,
I'm on AOSP 13 now, but perhabs it's better to go back to 12. I'm very interested in the AOSP with the GAPPs pre-installed. Could you share a link to the file?
Click to expand...
Click to collapse
I got the image from AOSP under the official Android 12/12L section. You can find release here. The exact image I got is the system-squeak-arm64-ab-vndklite-gapps-secure.img.xz one since the standard gapps one came with an app called "superuser" which I couldn't seem to uninstall (I tried the scripts to remove supersu). This caused my banking apps to not run. That is why I installed the "secure" one and then installed Magisk and added my banking apps to the defylist.
Zhazhael said:
What about volte and hotspot on GSI pixel experience 13?
Click to expand...
Click to collapse
I think VoLTE was available as an option in one of the ROM I tested but I don't remember exactly. Currently AOSP 12 doesn't support it. Hotspot worked on every ROM just fine.
Mian-786 said:
I got the image from AOSP under the official Android 12/12L section. You can find release here. The exact image I got is the system-squeak-arm64-ab-vndklite-gapps-secure.img.xz one since the standard gapps one came with an app called "superuser" which I couldn't seem to uninstall (I tried the scripts to remove supersu). This caused my banking apps to not run. That is why I installed the "secure" one and then installed Magisk and added my banking apps to the defylist.
Click to expand...
Click to collapse
Hi Mian,
Thanks for your response. When I typed my question I realized that in the end I want to have and de-googled phone. So I changed my question in the direction of MicroG. I didn't expect you to be so quick with answering.
7slaper said:
Hi Mian,
Thanks for your response. When I typed my question I realized that in the end I want to have and de-googled phone. So I changed my question in the direction of MicroG. I didn't expect you to be so quick with answering.
Click to expand...
Click to collapse
I haven't tried MicroG in any of the ROM. I just to have as little Google apps as possible but if you do find a good guide, let me know, I will try to use a de-googled phone.
Thx, all worked.
Mian-786 said:
I haven't tried MicroG in any of the ROM. I just to have as little Google apps as possible but if you do find a good guide, let me know, I will try to use a de-googled phone.
Click to expand...
Click to collapse
I've installed MicroG. But it seems AOSP doen't allaw support system spoofs signature. Play services (GmsCore) is installed but without the spoofed signature it can't do much I guess...
I have been using AOSP Android 12 for the past week or so. Most of the things just plain works but somethings don't. Here is the list of things that are not working so you can decide if the hassle of installing GSI is worth it or not.
- Proximity Sensor is worse than it was in OneUI. Yes, it is a virtual sensor but on OneUI, it worked better. Now, it is worse. More often than not, it turns on the screen during the call. It would have been better if it simply didn't work.
- The viewport of default camera App in the AOSP displays picture in 4:3 but the camera hardware is giving out 16:9, so the viewport was squeezed. After installing GCam everything is good.
- Fingerprint Sensor simply doesn't work in-app like those in banking apps. It works on the lock screen but nowhere else.
- USB Audio Devices don't work. I have a USB-C to A OTG where I used to insert my headphones. On OneUI they used to work but here they don't. Storage devices work.
- 120 Hz felt smoother on OneUI.
Hello everyone
I managed to install LineageOS with working GApps and camera using this guide, so a big thanks to everyone who worked on flashing this phone
If anyone wants to install it, you need to:
Chose a bgN package (I installed this one : https://sourceforge.net/projects/an...UNOFFICIAL-arm64_bgN-vndklite.img.xz/download). It includes the GApps. You won't be able to install GApps after installing a vanilla (bvS / bvN) package. For some reasons, the /system partition is too small.
For unlocking camera and install magisk, just flash this kernel : https://forum.xda-developers.com/t/kernel-12-13-a528b-n-mesas-custom-kernel-r4.4490653/
I also installed magiskhide prop conf module, but I'm not sure it changed anything and the camera fix was probably already in the MCK. You can find it here anyway : https://forum.xda-developers.com/t/...safetynet-prop-edits-and-more-v6-1-2.3789228/

Categories

Resources