yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
Step by Step guide to enable the 5 cams using OpenCamara (probably can be extended for Gcam too)

1.- You need a unlocked Note 10

2.- Install TWRP-3.3.1-0709-XIAOMI_CC9-CN-wzsx150-fastboot or the last one

3.- Install Magix & The App Root Esentials for example

4.- Edit the file build.prop using for example Root Esentials

Edit this line :

vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.xiaomi.runin,com.xiaomi.cameratest,com.xiaomi.factory.mmi,com.android.camera,org.lineageos.snap,net.sourceforge.opencamera,troop.com.freedcam

and add this one:

camera.aux.packagelist=net.sourceforge.opencamera

5.- reboot

6.- Install Android Studio or similar to edit the source code for opencamera

7.- Create the project from the opencamera git

https://sourceforge.net/p/opencamera/code/ci/master/tree/

8.- Edit the file MainActivity.java and fix the other cameras in this function

public void clickedSwitchCamera(View view) {

......

int cameraId = getNextCameraId();

if(cameraId==6)

cameraId=7;

if(cameraId==8)

cameraId=9;

if(cameraId==10)

cameraId=11;

if(cameraId==11)

cameraId=12;

if(cameraId==12)

cameraId=13;

( there are 14 cameras found, but some fail)

9.- Install the OpenCamera from AndroidStudio

To enable the 108Mpx mode keep reading the thread.
[Xiaomi Mi Note 10 Guides, News, & Discussion] djisma86:
hi I'm trying to import that link via vcs and git, but it tells me that the link was not found, what should I import on android studio?
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
In android studio Go to

File > New > Project from version control > Git >

Type:

https://git.code.sf.net/p/opencamera/code

Test and should go Green > then it will take a while to import all the needed sources
[Xiaomi Mi Note 10 Guides, News, & Discussion] picitup:
Hi [MENTION=10329227]TF1920[/MENTION]

I just modded open camera as per your excellent instructions above and at first glance, 108mp jpeg works fine! Well done lol.

I can confirm that with your original camera-id shifting code, my open camera on EU rom crashes at camera 8->9 so I've limited the max camera ID to 5 on mine.

As you said, RAW doesn't work and on mine, if RAW is enabled, neither does jpeg. The camera only works when only jpeg is enabled. If you do choose RAW, there's a long delay where the photo canvas freezes and eventually it frees up.

I'll get some samples later.

---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------

Oh, yes I forgot. Each time I install a new version of open camera, it defaults back to camera.api from camera2 and you can't get the high res photos.

It threw me for short while lol.
[Xiaomi Mi Note 10 Guides, News, & Discussion] picitup:
Hi Again

I just had a play with RAW mode turned on and tried it with all lenses. I tried them all with Storage Access Framework on and off and this made no difference to the results.

Raw ON

======

camera 0 - 108mp

Makes click sound then screen freezes for 60 seconds.

No jpeg or raw saved.

Video and camera switch icons missing. Choose Settings/About/Back and icons reappaer

Camera 1 - selfie

Toast Message: "Failed to save RAW photo"

Save jpeg and DNG but jpeg distorted and DNG is 0 bytes

Camera 2 - 2x zoom

No RAW text on screen (below ISO text).

jpeg saved OK, no RAW saved

Camera 3 - UltraWide

jpeg and RAW both saved OK

Camera 4 - Macro

jpeg and RAW both saved OK

Camera 5 - 5x zoom

No RAW text on screen (below ISO text).

jpeg saved ok, no RAW saved.

Cheers

Steve
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
Good tests Steve, you can debug where raw fails in androidstudio , if you plug and build opencamera and run it from the play button of androidstuido without unplugin it take a look at the debug infor at the Logcat view, then try what fails and report possible errors there, I will keep looking too, also I am not sure of the quality at 108Mpx with OpenCam vs Stock need more tests., all the other stuff works well at 108Mpx with Jpg.

I my first test at 108Mpx the quality is similar as stock as long as you manual focus, easy with the 10X digital zoom with opencam once you focus go back to 0x zoom to avoid loss
[Xiaomi Mi Note 10 Guides, News, & Discussion] picitup:
Hi thanks for the tip. I'm still poking around Android Studio to get a feel for it. What I really need to do is build my own app from scratch. I'll give your suggestion a go in the next few days.

I'm intending to go out and get a few sample jpegs/raw with open camera and stock for comparison and will post them up but for some reason it's raining pretty much constantly here. I wonder why? Oh, yes I live in the UK. :)

I had a play with the stock cam to compare RAW support with open cam and got the following:

UltraWide - RAW

Wide 27MP - RAW

Macro RAW

Wide 108mp No RAW

TELE 2x No RAW

Tele 5x No RAW
[Xiaomi Mi Note 10 Guides, News, & Discussion] picitup:
Hi

I've taken a bunch of photos using opencam and stockcam, including RAW when possible and posted here:

https://xdaforums.com/mi-note-10/help/sample-photos-original-resolution-t4013951#post81263619
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
Thanks Steve, I still see a bit more resolution in the stock 108Mpx vs the OpenCam, maybe a bit more sharpen due to some post process or other things may need further research, I am testing the unlimited repeats of opencam and works quite well made 4200 108Mpx picts 80Gbs total of 20Mb each at 100% jpg in about 1,5h
[Xiaomi Mi Note 10 Guides, News, & Discussion] sonice21:
Anyone who has modified the apk and the build.prop could pass it? I have tried it several times and I am not able.

Thank you
[Xiaomi Mi Note 10 Guides, News, & Discussion] studioworks123:
any sample of shots on gcam at 108mpx?

Raw if possible
[Xiaomi Mi Note 10 Guides, News, & Discussion] iSonik:
In LOS 16 all 5 cameras are enabled by default with Open Camera.
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
And LineageOS 16 enable raw for 108 Mpx? can you post link to the rom please
[Xiaomi Mi Note 10 Guides, News, & Discussion] D1G1TE:
Hi everyone,

I have created Open Camera MOD for Xiaomi Note 10 based on latest OpenCamera GIT code, that DOES NOT REQUIRE ROOT OR CUSTOM RECOVERY to be able to use all 5 rear cameras. Note that 108MP code patch is not included since its breaking Camera 2 API switch in preferences and making camera app to crash when you try to switch to Camera 2 API.

How I did it?

I have refactored Open Camera app in Android studio. Using this guide https://stackoverflow.com/questions/16804093/rename-package-in-android-studio + some simple "replace in files" for leftover references to old package name. During refactoring I have changed package name from "net.sourceforge.opencamera" to "org.codeaurora.snapcam" since that one is white listed to use AUX cameras in build.prop without any changes required. I have also changed labels for cameras so instead showing ID1, ID2, etc... Every camera have now proper name.

I have used similar technique of changing package name for GCam ports and Hedge Camera 2 in past and it works quite well for me.

Link to APK: https://drive.google.com/open?id=14kYxCPGvBEe1KujD07BX2t5r-u-owaq2

I hope this will make you happy. :)
[Xiaomi Mi Note 10 Guides, News, & Discussion] xterminater07:
Do you have telegram? I want to see if you can get aux to expose in gcam properly because when I tried it did not work, only ultrawide works in gcam 7.2 with code aurora package
[Xiaomi Mi Note 10 Guides, News, & Discussion] polfmarti:
Hi, I'm very interested in video recording with the x5 telephoto, since it's is not supported wit the stock camera. I couldn't install your apk, I have stock MIUI 11 and Android 9. What shoul I do in order to install it?
[Xiaomi Mi Note 10 Guides, News, & Discussion] D1G1TE:
I am also on stock MIUI 11 / Android 9 - Global ROM. What error do you get?

---------- Post added at 02:30 AM ---------- Previous post was at 02:26 AM ----------

I am no expert in GCam, sorry. :) I don't even have GCam source code.
[Xiaomi Mi Note 10 Guides, News, & Discussion] FloZee:
---------- Post added at 08:33 PM ---------- Previous post was at 08:22 PM ----------

[/COLOR]

I was searching exactly for this! After testing Hedgecam 2 and Open Camera because I want more control for my videos, I was immediately dissapointed by the lack of support for ultra wide and 5x cameras. Your version of open cam works flawless! Thanks and wish you the best,

Flo
[Xiaomi Mi Note 10 Guides, News, & Discussion] sajjadmajjad:
HI would you please clone it
[Xiaomi Mi Note 10 Guides, News, & Discussion] truffle1234:
I could not install it....
[Xiaomi Mi Note 10 Guides, News, & Discussion] George B. Coman:
How do you exactly install the app that doesn't require root? I can't install it at the moment.

Edit1: nevermind, I had gcam installed with the same package name. I read the previous comments, I thought my version of gcam has a different package name

Edit2: How do I shoot 108mp photos? can't see the option in resolutions. Oh,nvm this one either, I read that 108mp doesn't work without the rooted version.

Edit 3: [MENTION=7949382]D1G1TE[/MENTION] So I tried to change the package names for both gcam and open cam. They install fine, but neither of them works with all the cameras if I change package names. Could you change the package name so that it works? Thanks.
[Xiaomi Mi Note 10 Guides, News, & Discussion] jcfung:
Indeed I am very happy with your creation. It is a great replacement for the unreliable stock cam. I am going to use it as main cam app. It's only significant weakness seems to be low light. The stock cam seems good for low light, and for night sight I will keep a version of gcam.
[Xiaomi Mi Note 10 Guides, News, & Discussion] luisarriaga:
is it faster then the stock camera?
[Xiaomi Mi Note 10 Guides, News, & Discussion] jcfung:
It is a bit slower than the stock cam. However, it does not freeze up, and uploads full res to Google photos.
[Xiaomi Mi Note 10 Guides, News, & Discussion] freeDom21:
Yes,

[MENTION=7949382]D1G1TE[/MENTION] could you change the package name/modify it that it could work together with most of other GCAM builds? Many thanks!!

p.s. as the [MENTION=9669109]George B. Coman[/MENTION] wrote previously, I've also tried renaming package name in different ways, cloning apps and so on, but then after installed new app, all its functions with 5 cameras disappears.. So there has to be any other way
[Xiaomi Mi Note 10 Guides, News, & Discussion] metrickx:
What about S10+, S20 Ultra?

Hello folk!

Is this works with S20 Ultra? 108mp will be available too?

OpenCamera supports 4 cameras in S10+, but not telecamera x2. Does it helps to unlock it too?

Thank you!
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
maybe we Could help, do you have a unlocked S20 ultra?
[Xiaomi Mi Note 10 Guides, News, & Discussion] metrickx:
I don't have S20 Ultra. The reason why I'm not bought it yet is automatic HDR which is can't be turned off (even if check to off all options of camera, it's bug which they not fixed during the year).

So I look for ways to take photos without HDR.

One of ways is OpenCamera, but on my current S10+ I can't shoot via tele-camera (x2) and I fear abuout OpenCamera on S20 Ultra will be not supports most of cameras.

I think at first I can unlock the S10+. Can I repeat steps on first post to do that on S10+?

Thank you!
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
Yes could be , please check also all the posts here https://xdaforums.com/mi-note-10/help/camera2-api-t4011239 here is where we did the reasearch that lead to this thread.
[Xiaomi Mi Note 10 Guides, News, & Discussion] D1G1TE:
I am not aware about any other way without root. It's same workaround GCAM ports are using. :)

---------- Post added at 09:32 AM ---------- Previous post was at 09:30 AM ----------

Yes, for low light it's good to use NR mode in Open Camera.
[Xiaomi Mi Note 10 Guides, News, & Discussion] sethstorm:
Is root necessary for the 108mp mode? I've applied the patches (5 camera, 108mp, package rename) and only get 27mp modes at most.

That said, I do get all cameras (including the ones that obviously aren't 108mp capable).
[Xiaomi Mi Note 10 Guides, News, & Discussion] ribariba:
Hello,

I'm a newbie ! I downloaded the file created by D1G1TE, installed it, but i can't see the other cam/cant choose them. Is there anything i should perform after installed the app ?

I'm not rooted.

Thanks a lot guys
[Xiaomi Mi Note 10 Guides, News, & Discussion] ribariba:
It's OK i can make it works. MANY THANKS FOR THIS MOD !!

But i cannot install GCAM anymore... there is a lot of version but i'm looking for a version where i can set the bitrate and enable EIS like the Urnyx05 one. But unfortunatly, i can't install OC modified and this version of GCAM.
[Xiaomi Mi Note 10 Guides, News, & Discussion] yay1974:
Can u please tell how you figured out 108 mp?
[Xiaomi Mi Note 10 Guides, News, & Discussion] frosch6669:
Any able to take real 108 mpix with provided APK?
[Xiaomi Mi Note 10 Guides, News, & Discussion] TSGames:
Hi guys,

pretty impressive what you've archived so far! Are you still tinkering on this? I've just got a mi note 10 and was pretty impressed with the camera. I've experience in Android programming (developed a raw editing app back in the days), so may I could try to help at some points if there is still stuff that's crashing... Do you have a project on github or somewhere to get the current camera code?

Regards

Torsten
[Xiaomi Mi Note 10 Guides, News, & Discussion] tsoureki:
Nice tutorial! All aux cameras worked with video too? You can record video with the 3.7x camera?
[Xiaomi Mi Note 10 Guides, News, & Discussion] jokerpack:
With version of post #15 i could record video with all cameras
[Xiaomi Mi Note 10 Guides, News, & Discussion] tsoureki:
Nice. If you select 3.7x lense is possible to reach the zoom further (5x, 10x)?
[Xiaomi Mi Note 10 Guides, News, & Discussion] jokerpack:
Digitally i can zoom ten times on every lens (max should be 37x)

What i really love is the option to disable the sharpening algorithm when taking video. It looks much more neutral thank in The stock cam app

Especially on the zoom lenses.

Open camera is getting an good alternative to filmic
[Xiaomi Mi Note 10 Guides, News, & Discussion] edwward:
Hello. Maybe it's stupid question but how do I switch to other lenses? I don't see any options. Thanks.
[Xiaomi Mi Note 10 Guides, News, & Discussion] jokerpack:
Just tap the camera icon with the arrows on the right side.

Press multiple times to switch through the different lenses.
[Xiaomi Mi Note 10 Guides, News, & Discussion] Daniel Dev:
Hi, I tried to follow the steps. I also implemeted the CameraStreamConfigurations class.

When I Debug I can see all resultions in configurations Object.

But OpenCamera crashes at

Constructor<?> streamConfigurationMapConstructor = android.hardware.camera2.params.StreamConfigurationMap.class.getConstructors()[0];

I use OpenCamera Version 1.48.2.

And I have a Mi note 10 nonpro.

I hope someone could help.

Thanks in advance.

Daniel

---------- Post added at 05:55 PM ---------- Previous post was at 04:59 PM ----------

One Additional Information.

I bought this Phone in Germany so Iguess I have EU ROM.
[Xiaomi Mi Note 10 Guides, News, & Discussion] Slaw_:
I'm also having trouble getting 108MP to work on my global ROM. The only difference I can see is

Does the CN version kill a global ROM?
[Xiaomi Mi Note 10 Guides, News, & Discussion] Daniel Dev:
I have used twrp-3.4.0-1-tucana.

I thought I just need this to install Magisk for rooting.

So is it relevant which version of twrp I use?
[Xiaomi Mi Note 10 Guides, News, & Discussion] Slaw_:
Yeah, that makes sense. Rooting was just to be able to edit the build.prop.

Maybe it's the OpenCamera version which I also tried. I tried it with version 1.47.3 as it was the version around the time of TF1920's post. Still no luck tho and I'm running out of ideas.
[Xiaomi Mi Note 10 Guides, News, & Discussion] Daniel Dev:
I noticed That I have Global Rom even that I live in the EU.

I maybe Try EU Rom.

I found the .apk from Open Camera that TF1920 made.

https://xdaforums.com/showpost.php?p=81407415&postcount=64

But there I get the same crash.

I wrote PM to TF1920 hope he answers.
[Xiaomi Mi Note 10 Guides, News, & Discussion] Slaw_:
Just to specify I have MIUI Global 11.1.3 ROM on the mi note 10 pro (with pro only being more storage I believe).

Using TF1920's apk I get the toast error "Serious camera error" with "FAILED TO OPEN CAMERA. CAMERA MAY BE IN USE BY ANOTHER APPLICATION?"

I'm tempted to goto the MIUI 12 beta to get the

I'd hope that doesn't matter.
[Xiaomi Mi Note 10 Guides, News, & Discussion] mat_yan:
Hi. I'm just wondering if this method would probably allow other 3rd party app like filmic pro to access all lenses.
[Xiaomi Mi Note 10 Guides, News, & Discussion] typos1:
On the Mi 10 Pro several Gcam apps version 7.3 and above allow access to all lenses, including Burial, worth trying them on the Note 10 too.
[Xiaomi Mi Note 10 Guides, News, & Discussion] freeDom21:
Yes it allows access, and it's fine - but when talking about video recording in FULL resolutions, it does not work. Only modded opencamera and mcpro24fps works with all lenses properly. GCAM (Urnyx) lets you record keeping "capture photo" button - but it records in the screens resolution and low quality. Hope one day there will be workaround to use FilmicPro with other lenses.
[Xiaomi Mi Note 10 Guides, News, & Discussion] sanpolac:
Hi D1G1TE, i have tried your open cam mod, i successfully switch to cam2api, big thanks :D.. but unfortunately the 60/90/120fps video recording mode is gone.. our native miui cam can do 1080p@60fps, can u please check it?
[Xiaomi Mi Note 10 Guides, News, & Discussion] Lord Sithek:
wyroczen: OpenCamera_Wyroczen_1.0.apk (celsoazevedo.com)

Working exellent
[Xiaomi Mi Note 10 Guides, News, & Discussion] borlom:
108 MP does not work, it records images at much lower MP. All cameras are perfectly accessible. I'm use Mi Note 10.
[Xiaomi Mi Note 10 Guides, News, & Discussion] Jdorman12:
hey man your code is giving me a java error on the CameraController2.java edit, configs =CameraStreamConfigurations.getCustomStreamConfigurationMap(characteristics); is making it not build
[Xiaomi Mi Note 10 Guides, News, & Discussion] TF1920:
did you create the file CameraStreamConfigurations.java ? and this mod will requiere an older verison of the sources of opencam to work, new ones change things and will break some stuff

Anyway better go for https://github.com/KillerInk/FreeDcam it is more updated and deals better with several cams and modes
[Xiaomi Mi Note 10 Guides, News, & Discussion] Jdorman12:
10-4, yeah I did, think it was the newer source... I was going to try that next and sounds good.
[Xiaomi Mi Note 10 Guides, News, & Discussion] jonashh:
Hi, I've got a problem with both versions of the .apk files you've shared. It seems that the app is working fine but every time I try to start recording using 2x lens the app crashes, and it happens ONLY when uisng 2x lens. the other work fine. Unfortunately, 2x photolens is the only one I really care of - this is the reason I bought the phone assuming it has PRO video mode in it. Could anyone help with that? MIUI13
[8525, TyTN, MDA Vario II, JasJam ROM Development] djac965930:
Had a little play last week with page pool settings and ever since my keyboard has been awful. Not just a bit bad, but I'll be typing away and half the letters don't register! Is there a best settings thread for the keyboard or is it just god telling me to upgrade?
[8525, TyTN, MDA Vario II, JasJam ROM Development] joshkoss:
dude, What rom did you flash? i've had no troubles and i've flashed maaaaany roms and changed them all to 8mb pp
[8525, TyTN, MDA Vario II, JasJam ROM Development] hamster0914:
I've had that happen to me on some ROMs, (without changing the pagepool) and I thought it was just my keyboard as well, but I flashed CRCinAU's latest 10.8 development ROM, and it seems to have cleared up. What ROM are you using?
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] bgcngm:
​

LineageOS is a free, community built, aftermarket firmware distribution of Android 10 (Q), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

GPL compliance:

​

​

Device tree source code: LineageOS/android_device_xiaomi_lithium

Kernel source code: LineageOS/android_kernel_xiaomi_msm8996

Broken / not yet supported:

VoLTE (?)

Working:

Camera (and flashlight)

WiFi

NFC

Bluetooth

Telephony (Calls and Data)

Audio (Record and Playback)

Video Playback

Sensors

GPS

Encryption (FDE)

Compatibility:

Compatible with all Xiaomi Mi MIX variants (64GB / 128GB / 256GB).​

Builds are based off the Xiaomi's Android 8.0 firmware with proprietary blobs from MIUI 8.5.10 dev package.​

Downloads:

Official download links

Notice:

No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

Installation:

Reboot to recovery (TWRP recovery for Mi MIX - Direct link)

Format /system, /data and /cache

Install LineageOS zip package

Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

Important notes:​

Current minimal * required * firmware version is MIUI 8.5.10 Global dev, otherwise installation will fail.

GApps can only be flashed on clean installs.

Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

Credits & collaborations:

This work is due to efforts from Mi5Devs founding members (@h2o64 and me) that did the full device bring-up. Huge thanks to @deovferreira for all the help during the kernel bring-up after source code dropped. Last but not least, pleasure having @luca020400 and @LuK1337 onboard since the bring-up of the whole Xiaomi 8996 family.​

​

Finally, all LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​

Device wiki:

Official wiki link
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] bgcngm:
Working beta OpenGapps packages: https://sourceforge.net/projects/opengapps/files/arm64/beta/20191114/
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] hatbo:
bgcngm, thanks a lot!!!

great job! works fine!

was flash kernelx - all ok, now i flash micro-g
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] bgcngm:
Can you please confirm if ultrasound proximity sensor is working properly?
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] Inkypen:
I haven't installed your Lineage myself, but on the ROMs I build I had to pick the ultrasound hal from the lineage gerrit to get it working. I think you need to get it merged :)

https://review.lineageos.org/c/LineageOS/android_hardware_qcom_audio/+/260615
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] bgcngm:
That's what I wanted to know. Thanks. :good:
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] hatbo:
I had no problem with sensor. I returned on los16, as in los17 there is no access ban to the Internet for programs. will this be done in the future, as in los16?
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] bgcngm:
Maybe yes, maybe not.
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] Spider84:
Why screen is locking during phone talk? When I trying to end talk - I can't press red button because screen is locked. Screen is on but I need to enter code or Finger ID.
[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] JoshReuben:
Same problem in Lineage 16. No issue if connected to Bluetooth.