• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

Google Camera mod with switchable telephoto/wide-angle rear lens version

batata004

New member
Dec 14, 2017
182
25
0
I read all the instructions but cant find a way to make it work on Xiaomi Mi A3 to enable the wide cam! Do I really need to root/unlock bootloader of my phone to make the wide camera work with GCAM? Thanks!
 

fu24

Senior Member
Aug 11, 2017
508
813
51
Last edited:
  • Like
Reactions: batata004

fu24

Senior Member
Aug 11, 2017
508
813
51
Thank you, that was very clear! To get root I really need to unlock bootloader? Or I can get root without unlocking bootloader? My cellphone is xiaomi mi a3.
I don't know if there is any way to ROOT without unlock bootloader.
If you are worried about losing data. You can refer here.
[GUIDE] Google Camera + Locked bootloader WITHOUT losing data AFTER OREO 8.1

If you are worried that you will not be able to update OTA in the future. Please install OrangeFox Recovery

For other questions, please go to MI A3
 

PhantomAndroid

New member
Mar 25, 2017
89
50
0
@fu24 , I think I've figured out what may be causing the issue with "zoom" and "night sight"
It seems to be related to the way Sabre is handled. I realized this because Sabre can be pretty random (leading to random crashes), and it's currently on "auto".
When I have Sabre on "yes", Night Sight with the back camera seems to work pretty consistently, and the zoom seems to work. (Pictures seem to take longer though)
Unfortunately, this seems to break Night Sight on the front camera. (it crashes the app, or makes night sight on the front camera not work properly)
It seems that I can't win with the Sabre setting, haha.
I finally figured out how to fix Night Sight and zooming. It turns out I needed to select the "Buffer" Fix. This option wasn't working properly in previous versions, so I avoided it. Night Sight seems to be working reliably now! So happy!
 
  • Like
Reactions: fu24

wongsayung

New member
Jul 24, 2018
5
0
0
hi dude

thanks fu24, latest based v2e work for me....can u make it from TlnNeun v1.4a ....and some libs maybe better....thanks for ur great works bro ?
 

PhantomAndroid

New member
Mar 25, 2017
89
50
0
I finally figured out how to fix Night Sight and zooming. It turns out I needed to select the "Buffer" Fix. This option wasn't working properly in previous versions, so I avoided it. Night Sight seems to be working reliably now! So happy!

@fu24 Actually, so I think I spoke too soon.
For some reason, installing MGC_6.1.021_V2e-fu24_Aux3way_4Lens-04h-dual.apk seemed to have "fixed" Night Sight on Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02.apk for me. I realized this because uninstalling the MGC version caused Night Sight to stop working properly on the Gcam version. After re-installing MGC, it started working again.
They must be sharing some kind of library for NightSight where only the MGC version works.
 

Brusilovsky

New member
Sep 20, 2016
29
18
0
Update. Telephoto and wide-angle lens switchable versions.
https://forum.xda-developers.com/showpost.php?p=78002404&postcount=1


5. This is based on Gcam_6.1.021_Advanced_V1.6.190614.0200.apk, by Arnova8G2

Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02.apk(Updated on 2019.12.30 )
Package name: org.codeaurora.snapcam

Changelog:]
Thank you for your wonderful work!
On xiaomi mi note 10, the assembly works very well. Three cameras are available. There is one single problem. If in 4x3 it shoots in full 27mp., Then with an aspect ratio of 16x9 it shoots only in 9.1Mp. If you do not find it difficult to correct, please, this is so that she shoots in 20Mp.
Sorry for my English (translator).
 

fu24

Senior Member
Aug 11, 2017
508
813
51
Thank you for your wonderful work!
On xiaomi mi note 10, the assembly works very well. Three cameras are available. There is one single problem. If in 4x3 it shoots in full 27mp., Then with an aspect ratio of 16x9 it shoots only in 9.1Mp. If you do not find it difficult to correct, please, this is so that she shoots in 20Mp.
Sorry for my English (translator).
This should be caused by the "enable real resolution". Try to disable.
 

fu24

Senior Member
Aug 11, 2017
508
813
51
Update. Telephoto and wide-angle lens switchable versions.
https://forum.xda-developers.com/showpost.php?p=78002404&postcount=1

5. This is based on Gcam_6.1.021_Advanced_V1.6.190614.0200.apk, by Arnova8G2

Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02b.apk(Updated on 2020.01.23 )
Package name: org.codeaurora.snapcam

Changelog:
* Added "NS viewfinder lag fix". Must be enabled with "Alternative config"
# This fix comes from BSG's GCam6.2.030. Also thanks to ohcello for testing.
* Add "Resampling Method".
# This may be helpful for phones with resolution issues. Tested by Brusilovsky. For MI note 10 16: 9 resolution can reach 20MP.
* Added "video parameter" option. These are related to video stabilization, focus, AE, etc.
# The options that appear after selecting "some". It worked for me.
As for "ALL", there are more options to test whether it works. But for me, there are three options that do not work. And the names used are different from "some". But I am too lazy to remove them.
* "ReINIT Camera Session" can now choose how it works. "Off", "Processing completed", "Processing begins".
# "Processing begins" This is an experimental feature. It will run "ReINIT Camera Session" immediately after the photo is taken. I did not lose the photo when I tested it myself. This may allow mobile phones that require "Buffer Fix". Reduce waiting time To take the next picture.
# It doesn't work in ZSL. But phones that require "Buffer Fix". ZSL should not work either.
* Add some fixes. Thank Alexey070315.

Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02b-A10.apk(Updated on 2020.01.23 )
Package name: com.google.android.GoogleCamera

Changelog:
* Same as above.
* Change the package name to correspond to android 10.


Demo video.

ReINIT Camera Session
https://youtu.be/6_GhzfMp5vc

How to set the resolution to 16: 9 when the auxiliary lens cannot access the settings.
Change the auxiliary camera ID to 0 >> switch to the auxiliary lens >> change the resolution to 16: 9 + disable the setting mode >> switch to the main lens >> switch to the auxiliary lens.
If you still ca n’t succeed when you choose the highest resolution of 16: 9. Try reducing the resolution. This may be caused by the difference between the resolution of the main lens and the auxiliary lens.
https://www.youtube.com/watch?v=Uw-UdnXxnrU

Direct switching (long press mode)
https://youtu.be/o3-XvGV_WMY

Direct switching (viewfinder button mode)
https://youtu.be/KjnX8nssmZs

"Keep pre-switch mode" demo video
https://www.youtube.com/watch?v=VDAtf6xvi24
https://www.youtube.com/watch?v=kWKYRym0Znc

Disable repeated taps
https://www.youtube.com/watch?v=g52eeT_N_1U
 

Attachments

Last edited:

Brusilovsky

New member
Sep 20, 2016
29
18
0
Update. Telephoto and wide-angle lens switchable versions.
https://forum.xda-developers.com/showpost.php?p=78002404&postcount=1
Good afternoon, dear, fu24!
I would like to thank you for the help and support from myself and all users of mi note 10!
There are still small requests - for the correction of some errors and minor improvements.

1. We can’t change the resolution for aux cameras, as here
https://www.youtube.com/watch?v=Uw-UdnXxnrU
As soon as we switch to any aux, and then return to Settings (to change the resolution), the program crashes with this error:
https://drive.google.com/open?id=19whlBC7Y06kRcf3Ac0WegEkX-i7Nv7fm

2. We have 4 cameras in the model (mi note 10), except for the main one, but unfortunately there are only two aux buttons. A big request is to add at least one more button for aux and make it possible to pin it
another camera.

3. For some reason, your program sees all of our cameras, except for the fifth - 5x. Maybe because there are not 4, but 5? She sees the main one, tele, superwide and macro, but there is no way to choose the 5th - 5x camera.
4. Now, if you select the BSG Config PixelPlusNSHdr + config, the camera will correctly correctly reacts to switch between the "Fast HDR +" and "Advanced HDR +" modes.
But if you select any other Config, it is enough to switch once from Fast HDR + to Advanced HDR + and vice versa, as the camera will shoot all the time in Advanced.
I do not remember such an error in your old versions, it seems to me that it appeared recently. This error leads to the fact that now you can only use the BSG config ...
(But this Config from BSG has a serious drawback, since it only shoots in portrait mode in Advanced HDR + - which is very bad for devices without an optical stabilizer - for example, TV cameras)
5. Among the libraries, we urge all users of the forum 4pda to add the best (according to most) library under 6.1 from CSeUs
Gmm25K (v9 | t4.95)
You can download it from the link
https://drive.google.com/open?id=1sR0PMvjMHYKE-kLerPValTt0KzNX3kr1
You can check her work to see how good she is by downloading your mod already with her.
https://drive.google.com/open?id=1nYfl9vIo-FswE9l4KOYAAAvLuTEjaFHt
Here is a post about it in the developer forum
https://4pda.ru/forum/index.php?showtopic=937006&st=8260#entry89460594
(Perhaps if you don’t want the mod to grow very much - delete the old low-contrast Savitar V5 library - it is very different in color from reality.
However, maybe someone needs it or you like it.)

Info for this device

Thank you for your attention and wonderful assembly!

Alexander.

P.S. Sorry for my English (google translation)
 
Last edited:
  • Like
Reactions: Andry7

fu24

Senior Member
Aug 11, 2017
508
813
51
Good afternoon, dear, fu24!
I would like to thank you for the help and support from myself and all users of mi note 10!
There are still small requests - for the correction of some errors and minor improvements.

1. We can’t change the resolution for aux cameras, as here
https://www.youtube.com/watch?v=Uw-UdnXxnrU
As soon as we switch to any aux, and then return to Settings (to change the resolution), the program crashes with this error:
https://drive.google.com/open?id=19whlBC7Y06kRcf3Ac0WegEkX-i7Nv7fm

2. We have 4 cameras in the model (mi note 10), except for the main one, but unfortunately there are only two aux buttons. A big request is to add at least one more button for aux and make it possible to pin it
another camera.

3. For some reason, your program sees all of our cameras, except for the fifth - 5x. Maybe because there are not 4, but 5? She sees the main one, tele, superwide and macro, but there is no way to choose the 5th - 5x camera.
4. Now, if you select the BSG Config PixelPlusNSHdr + config, the camera will correctly correctly reacts to switch between the "Fast HDR +" and "Advanced HDR +" modes.
But if you select any other Config, it is enough to switch once from Fast HDR + to Advanced HDR + and vice versa, as the camera will shoot all the time in Advanced.
I do not remember such an error in your old versions, it seems to me that it appeared recently. This error leads to the fact that now you can only use the BSG config ...
(But this Config from BSG has a serious drawback, since it only shoots in portrait mode in Advanced HDR + - which is very bad for devices without an optical stabilizer - for example, TV cameras)
5. Among the libraries, we urge all users of the forum 4pda to add the best (according to most) library under 6.1 from CSeUs
Gmm25K (v9 | t4.95)
You can download it from the link
https://drive.google.com/open?id=1sR0PMvjMHYKE-kLerPValTt0KzNX3kr1
You can check her work to see how good she is by downloading your mod already with her.
https://drive.google.com/open?id=1nYfl9vIo-FswE9l4KOYAAAvLuTEjaFHt
Here is a post about it in the developer forum
https://4pda.ru/forum/index.php?showtopic=937006&st=8260#entry89460594
(Perhaps if you don’t want the mod to grow very much - delete the old low-contrast Savitar V5 library - it is very different in color from reality.
However, maybe someone needs it or you like it.)

Info for this device

Thank you for your attention and wonderful assembly!

Alexander.

P.S. Sorry for my English (google translation)
1. You have to follow the steps exactly.
Change the auxiliary camera ID to 0 >> switch to the auxiliary lens >> change the resolution to 16: 9 + disable the setting mode >> switch to the main lens >> switch to the auxiliary lens.
If you still ca n’t succeed when you choose the highest resolution of 16: 9. Try reducing the resolution. This may be caused by the difference between the resolution of the main lens and the auxiliary lens.

2. Added support for a lens button. Many need to be modified. I don't know if I would like to do it.

3. Camera 0 - 6016x4512, Camera 1 - 3280x2464, Camera 20 - 4032x3024, Camera 21 - 5184x3880, Camera 22 - 1600x1200, Camera 23 - 3264x2448, 60, 61, 62, 100, 101, 102.
Your test files are confusing. auxiliary camera ID is not 2, 3, 4, 5. This way you can also switch to the secondary lens. It ’s weird.


4. For me this problem has always existed from GCam5.x to 6.1. As for 6.2 to 7.x, I do n’t know. This problem is related to the mobile phone (because there is no problem with the same version in POCOPHONE F1). I do n’t know if it can be fixed.

5. I will consider.
 
  • Like
Reactions: Makshow

Brusilovsky

New member
Sep 20, 2016
29
18
0
1. You have to follow the steps exactly.
Change the auxiliary camera ID to 0 >> switch to the auxiliary lens >> change the resolution to 16: 9 + disable the setting mode >> switch to the main lens >> switch to the auxiliary lens.
If you still ca n’t succeed when you choose the highest resolution of 16: 9. Try reducing the resolution. This may be caused by the difference between the resolution of the main lens and the auxiliary lens.

2. Added support for a lens button. Many need to be modified. I don't know if I would like to do it.

3. Camera 0 - 6016x4512, Camera 1 - 3280x2464, Camera 20 - 4032x3024, Camera 21 - 5184x3880, Camera 22 - 1600x1200, Camera 23 - 3264x2448, 60, 61, 62, 100, 101, 102.
Your test files are confusing. auxiliary camera ID is not 2, 3, 4, 5. This way you can also switch to the secondary lens. It ’s weird.


4. For me this problem has always existed from GCam5.x to 6.1. As for 6.2 to 7.x, I do n’t know. This problem is related to the mobile phone (because there is no problem with the same version in POCOPHONE F1). I do n’t know if it can be fixed.

5. I will consider.
Thank you for your responses! According to the first point, everything turned out according to the instructions (Direct Switching mode also interfered)
 

Makshow

New member
Jun 10, 2013
210
143
0
Kharkov
3. Camera 0 - 6016x4512, Camera 1 - 3280x2464, Camera 20 - 4032x3024, Camera 21 - 5184x3880, Camera 22 - 1600x1200, Camera 23 - 3264x2448, 60, 61, 62, 100, 101, 102.
Your test files are confusing. auxiliary camera ID is not 2, 3, 4, 5. This way you can also switch to the secondary lens. It ’s weird.
That's totally right, if not using org.codeaurora.snapcam then we on Mi Note 10 have id 20 - Tele camera, id 21 - ultrawide, id 22 - macro, id 23 - ultratele aka x5 tele camera. Same is on Mi9 (id 20 - tele, 21 - ultrawide).

If using org.codeaurora.snapcam then camera ids are 0,2,3,4,5 as they should. So basically we Note 10 users ask you to add some new options to Camera ID change setting (just adding id5 will give access to the x5 tele, and if you can add 20,21,22,23 then we won't need snapcam package name anymore, which is important as Android 10 will be released soon for our device).
As always, big thanks for your work!
 
Last edited:
  • Like
Reactions: Brusilovsky

mburaky06

New member
Jul 29, 2019
47
5
0
Update. Telephoto and wide-angle lens switchable versions.
https://forum.xda-developers.com/showpost.php?p=78002404&postcount=1

5. This is based on Gcam_6.1.021_Advanced_V1.6.190614.0200.apk, by Arnova8G2

Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02b.apk(Updated on 2020.01.23 )
Package name: org.codeaurora.snapcam

Changelog:
* Added "NS viewfinder lag fix". Must be enabled with "Alternative config"
# This fix comes from BSG's GCam6.2.030. Also thanks to ohcello for testing.
* Add "Resampling Method".
# This may be helpful for phones with resolution issues. Tested by Brusilovsky. For MI note 10 16: 9 resolution can reach 20MP.
* Added "video parameter" option. These are related to video stabilization, focus, AE, etc.
# The options that appear after selecting "some". It worked for me.
As for "ALL", there are more options to test whether it works. But for me, there are three options that do not work. And the names used are different from "some". But I am too lazy to remove them.
* "ReINIT Camera Session" can now choose how it works. "Off", "Processing completed", "Processing begins".
# "Processing begins" This is an experimental feature. It will run "ReINIT Camera Session" immediately after the photo is taken. I did not lose the photo when I tested it myself. This may allow mobile phones that require "Buffer Fix". Reduce waiting time To take the next picture.
# It doesn't work in ZSL. But phones that require "Buffer Fix". ZSL should not work either.
* Add some fixes. Thank Alexey070315.

Gcam_6.1.021_Advanced_V1.6-Fu24_5Lens-02b-A10.apk(Updated on 2020.01.23 )
Package name: com.google.android.GoogleCamera

Changelog:
* Same as above.
* Change the package name to correspond to android 10.


Demo video.

ReINIT Camera Session

How to set the resolution to 16: 9 when the auxiliary lens cannot access the settings.
Change the auxiliary camera ID to 0 >> switch to the auxiliary lens >> change the resolution to 16: 9 + disable the setting mode >> switch to the main lens >> switch to the auxiliary lens.
If you still ca n’t succeed when you choose the highest resolution of 16: 9. Try reducing the resolution. This may be caused by the difference between the resolution of the main lens and the auxiliary lens.

Direct switching (long press mode)

Direct switching (viewfinder button mode)

"Keep pre-switch mode" demo video

Disable repeated taps
Firstly thank you for your work.
I am using Lenovo z6 pro but I cant enable aux lenses. I gave permissive to selinux and installed module for android 10. Maybe I need to change whitelist but dont know how. Any help would be great thank you