Hello guys) How to enable Camera2 API?) Custom ROMs (MIUI, CM, etc)
1) Root!
2) Open build.prop, make string 'persist.camera.HAL3.enabled=1' , save, reboot.
3) Check manual features by Manual Camera Compability utility.
4) Install FV-5, Manual Camera etc and enjoy by manual exposure,focus etc)
It's working on my xiaomi.eu latest MIUI7 and Mookee ROMs)
p.s. I have Snapdragon version, pls test on the MTK who have this devices.
Thanx to Nevio (4pda.ru) )))
BUG! Stock camera in MIUI7 crashed with this feature. MIUI8 is normal.
Tested with Krexus rom and working!
It's gooood)
it's for mediatek or snapdragon version ?
SD working. Try if you have MTK version. If this hint will work - I will change head of topic to both versions)
nevelaev said:
SD working. Try if you have MTK version. If this hint will work - I will change head of topic to both versions)
Click to expand...
Click to collapse
Can you please test what is the longest shutter speed in Camera fv-5 or in AZ Camera. Thanks in advance!
I tried this feature on the Manual camera and AZ camera - 0.6s maximum shutter speed. And picture have a lag.
BUG found
BUG found - stock MIUI7 camera will not work with this ftr. Mi8 is normal)
News - bug only for MIUI7. MIUI8 - nice work with stock camera)
tested with official RR, working camera fv-5, now will try freedcam and manual camera
edit: tested other 2 apps, all working, very happy, to take all the juice from the camera
nevelaev said:
I tried this feature on the Manual camera and AZ camera - 0.6s maximum shutter speed. And picture have a lag.
Click to expand...
Click to collapse
Ok, thank you!
I enabled camera 2 api and I am experiencing a crazy battery drain with mokee ROM. Is it normal? The battery drops 10 % in a matter of 10min and the phone gets really hot
How many of the manual settings stated in the manual camera compatibility app are supported after enabling camera2 api?
Cresqo said:
How many of the manual settings stated in the manual camera compatibility app are supported after enabling camera2 api?
Click to expand...
Click to collapse
But RAW pictures are buggy on our phone, atleast on my phone
Edit: I had 3 reboots within a short time while opening camera apps since I've edited the build.prop. I'm on official RR, but the camera2 features are working fine (except raw), thanks for sharing!
Try it or die said:
But RAW pictures are buggy on our phone, atleast on my phone
Edit: I had 3 reboots within a short time while opening camera apps since I've edited the build.prop. I'm on official RR, but the camera2 features are working fine (except raw), thanks for sharing!
Click to expand...
Click to collapse
How to know its working? And which camera app to use after editing the build prop?
Sumit Samanta said:
How to know its working? And which camera app to use after editing the build prop?
Click to expand...
Click to collapse
Camera fv-5, snap cam (from play store), open camera and a lot others, they have to support camera2 api. On some camera apps you have to enable it manually in the settings. Then you can control shutter speed and some other things. I've attached also a picture, on the left side the shutter speed is short and on the right side the shutter speed is a lot longer. So for "normal" pictures you won't need manual controls, but in some cases it can be useful.
Try it or die said:
Camera fv-5, snap cam (from play store), open camera and a lot others, they have to support camera2 api. On some camera apps you have to enable it manually in the settings. Then you can control shutter speed and some other things. I've attached also a picture, on the left side the shutter speed is short and on the right side the shutter speed is a lot longer. So for "normal" pictures you won't need manual controls, but in some cases it can be useful.
Click to expand...
Click to collapse
Can u plz show the ss of build prop after the edit? And the settings in any camera app?
Thanks for the guide.....this has solve the problem of reboot while using third party camera apps......google camera is also working without any problem
At least. MANY DIGITAL COOKIES TO THE OP. This was a thing that I was asking before even buying the phone. Many thanks to the OP.
Hmm I am using Snap Camera with camera2 API. Best thing) But it's need to activate camera2 in the Snap Camera settings (menu--"other"tab--go down and check Camera2 API string). Nice manual focus and manual settings in the HDR mode) Snap camera may a RAW format. There opens in built-in viewer and (who installed) can be pen into Snapseed editor.
Example of the photo in HDR mode with manual settings) Sorry for my curved hands and academical English)))
My curved hands cannot make good man ual photos yet)) Who knows Russian - you can check 4pda.ru forum--Redmi Note 3 Pro Camera branch. http://4pda.ru/forum/index.php?showtopic=750102&st=860 Many people tested this hint and VEEEEERY pleasured)))
I have created a Magisk based DIY GCAM port for our 10's. Basically, it installs everything you need for it to work, and you try/select whatever GCAM you think works the best. All this will do is enable the extra features for GCAM
***SLOMO NOT WORKING ON OREO FOR ME***
Prerequisites:
2.xx.xxx.xx Nougat Stock sense, not sure about LOS or others (you can try, no guarantees).
3.xx.xxx.xx Oreo Stock sense, not sure about LOS or others (you can try, no guarantees).
Magisk 15.0 or newer (Uses 1500 template)
No Other GCAM installed (remove any prior to flashing magisk module)
REMEMBER TO SET ALL SETTINGS AND FC ONCE BEFORE USE!!!!!
What it does:
It replaces media_profiles.xml in system/etc : this allows for HEVC and 60fps
Oreo Version
It adds ARCore and ARStickers to system/app
It sets ro.config.calibration_cad=/system/etc/calibration_cad.xml
It adds res_ctrl.conf to system/etc
it updates all the various .xml files that have media settings within them
This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc.
I am not responsible if you get your phone messed up, it works for me, and for others. I will help as much as i can. Its a work in process, hopefully, it will make life easier for everybody. This is really close to being a DD, i will try other GCams as i find time. Im really waiting for Oreo on VZW, then ill really get into it. (AR Stickers, etc.)
Also, this is a HTC 10 thread, and while i dont mind helping people (I want everybody to have a working GCAM) this magisk module, especially the media_profiles.xml is very very very 10 specific. You can however, do the legwork, use this zip as a template, and make one for your threads/personal use as well. And i dont mind. Just dont come in here without a logcat with some phone that's not a 10 and say its broke. I will at least look at a logcat and help if its not a 10, but my demands have been expressed.
Also, for those with a 10.. Dont come in here and tell me its broke, not tell me anything relevant, have no logcat, and expect a fix...you will be meme flamed for my amusement...You have been warned. You should know better at this point!!!
Thanks
@Arnova8G2 Porting Gcam over to us, and listening to our needs
@tsalta Getting everything moving along, and testing with me
Link Nougat (DIY GCAM MOD)
https://www.androidfilehost.com/?fid=890129502657598199
Link Oreo (DIY GCAM MOD)
https://www.androidfilehost.com/?fid=746010030569969249
GCAM Repo
https://www.celsoazevedo.com/files/android/google-camera/
Old Versions Here
https://www.androidfilehost.com/?w=files&flid=256412
Enjoy
Changelog/Bugs:
DIY GCAM MODS: Everything but GCAM, Pick the one you like the best and use this mod to get the extras to work.
V31: Version back to 2 revs. 1: Skulshady V3.0, portrait works (6p or pixel 2017 zsl hdr +, that one has low light bug still), Tolyan009 v1.3.5, portrait doesnt work, more options (needs alot of configuration, pixel 2, 2017 pixel zsl hdr+ new, black level 64, hdr+ control on, turn off use google photos in debug settings)
V30: Oreo and Nougat: Added HEVC Back in, Removed Lens (Built into photos now), some people say slomo works in oreo now, you tell me Uses Arnova V7B6 Camera...too bad it's junk......
V28: Cleaned up media_profiles_vendor.xml and added HEVC support. (Slo-Mo at least loads the viewfinder now, getting warmer )
V24: Low Light/Flash Bugs fixed, increase sharpness might be better, still no slo-mo
V23: Same oreo bugs
v8 Nougat: Updated to arnova pixel2mod v6b14, probably the last good one
v8 Oreo: Initial release, has b14, and AR stickers, need someone to test it on oreo.
v7: 99.98% works, only "little" bug is if you take a low light/room is completely dark photo (front and rear), very rarely, but sometimes the camera app crashes.
v1: Initial release
Bugs: No front HDR, Slo-mo crashes went set to 240fps (120 is fine), can only take picture with hdr+ enhanced on for rear, view finder is a little slow for portrait mode rear.
V28: To ease confusion, 6P works with everything it appears, 2017 Pixel HDR ZSL has some issues in low/no light still (wanna help, PM @tsalta )
V24: Either works i believe
V23: I use nexus6P, you can use pixel 2 as well
v8: Use nexus 6P, it all works, you can use 2017 pixel zsl HDR+, but it will FC in dark/no light using flash.
How to modify the zip for your a new gcam:
1. uninstall gcam mod
2. reboot
3. Install gcam of your choosing
4. using root browser, copy directory from data/app containing google camera directory.
5. take the contents of that folder, copy the contents to the zip file, in system/app/GCAM, replace the contents in there.
6. reflash zip with new gcam
thank for share
aer0zer0 said:
I have created a Magisk based GCAM port for our 10's, based off of whatever GCAM is working mostly at the time. It has Google Lens support, portrait mode front and rear, HDR rear, Slo-Mo, 60FPS support.
Prerequisites:
2.xx.xxx.xx Nougat Stock sense, not sure about LOS or others (you can try, no guarantees).
Magisk 15.0 or newer (Uses 1500 template)
No Other GCAM installed (remove any prior to flashing magisk module)
What it does:
It replaces media_profiles.xml in system/etc : this allows for slo-mo and 60fps
It adds google_build.xml in system/etc/sysconfig: Lens
It adds nexus.xml in system/etc/sysconfig: Lens
It adds pixel_2017.xml in system/etc/sysconfig: Lens
It adds pixel_2017_exclusive.xml in system/etc/sysconfig: Lens
It adds GCAM in system/app:
This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc.
I am not responsible if you get your phone messed up, it works for me, and for others. I will help as much as i can. Its a work in process, hopefully, it will make life easier for everybody. This is really close to being a DD, i will try other GCams as i find time. Im really waiting for Oreo on VZW, then ill really get into it. (AR Stickers, etc.)
Also, this is a HTC 10 thread, and while i dont mind helping people (I want everybody to have a working GCAM) this magisk module, especially the media_profiles.xml is very very very 10 specific. You can however, do the legwork, use this zip as a template, and make one for your threads/personal use as well. And i dont mind. Just dont come in here without a logcat with some phone that's not a 10 and say its broke. I will at least look at a logcat and help if its not a 10, but my demands have been expressed.
Also, for those with a 10.. Dont come in here and tell me its broke, not tell me anything relevant, have no logcat, and expect a fix...you will be meme flamed for my amusement...You have been warned. You should know better at this point!!!
Also: Since for right now, there is really only 1 good working configuration, you will need to look at 3rd post for settings. Please fiddle as you like, post settings that are better than mine.
Link v1
https://www.androidfilehost.com/?fid=673956719939816978 (Latest Version)
Enjoy
Click to expand...
Click to collapse
Hello dude i see you are starting like you sayd befor im just wondering what version you used like a base?
Arnova 1.6 or maybe 1.2 ?
Just wondering
Thanks for the Share will test it now!
Edit: Yes 1.6 i guess or perhaps 1.7 but the feel is like more 1.6
Yes this is the most stable build with all the options that we can have the only one thing we gona miss is the Pixel 2017 HDR+ ZSL the ZSL works only with this presets and since the new versions it doesnt work anymore the last time was worked fine on V 1.2
---------- Post added at 09:20 AM ---------- Previous post was at 08:54 AM ----------
aer0zer0 said:
Changelog/Bugs:
v1: Initial release
Bugs: No front HDR, Slo-mo crashes went set to 240fps (120 is fine), can only take picture with hdr+ enhanced on for rear, view finder is a little slow for portrait mode rear.
Click to expand...
Click to collapse
well i can take pictures with HDR+ and HDR+ Enhchanced from the Back camera so it is working fine not bug.
Also the Front HDR+ is working what i mean is it is made to work only In portrait MOD so when you shoot Portrait with the Front and you have HDR+ portrait camera enabled will get the effect this is how the build is mean to work so you can remove this from the Bugs it is not actually a bug.
Slow mo crashes on stock Oreo
And also 60fps does not work
tsalta said:
Hello dude i see you are starting like you sayd befor im just wondering what version you used like a base?
Arnova 1.6 or maybe 1.2 ?
Just wondering
Thanks for the Share will test it now!
Edit: Yes 1.6 i guess or perhaps 1.7 but the feel is like more 1.6
Yes this is the most stable build with all the options that we can have the only one thing we gona miss is the Pixel 2017 HDR+ ZSL the ZSL works only with this presets and since the new versions it doesnt work anymore the last time was worked fine on V 1.2
---------- Post added at 09:20 AM ---------- Previous post was at 08:54 AM ----------
well i can take pictures with HDR+ and HDR+ Enhchanced from the Back camera so it is working fine not bug.
Also the Front HDR+ is working what i mean is it is made to work only In portrait MOD so when you shoot Portrait with the Front and you have HDR+ portrait camera enabled will get the effect this is how the build is mean to work so you can remove this from the Bugs it is not actually a bug.
Click to expand...
Click to collapse
Arnova 1.7 beta 1
It will only take pics on hdr+ if it decides hdr should be used. If you turn hdr off, it won't work.
Yea, I'm aware of the work around for front hdr+. But you can't just have hdr+ on the front camera in normal mode. So it's a bug still until we find a better alternative camera that works.
You can be the tester @tsalta if you like. I explained how to put different GCAMS in the magisk zip, so you can find the perfect version.
aer0zer0 said:
Arnova 1.7 beta 1
It will only take pics on hdr+ if it decides hdr should be used. If you turn hdr off, it won't work.
Yea, I'm aware of the work around for front hdr+. But you can't just have hdr+ on the front camera in normal mode. So it's a bug still until we find a better alternative camera that works.
You can be the tester @tsalta if you like. I explained how to put different GCAMS in the magisk zip, so you can find the perfect version.
Click to expand...
Click to collapse
Yes im planing to make one version same with 1.6 because 1.6 is more stable than 1.7 beta ad 1.7 in 1.6 will take pictures always with HDR+ or Enchanged whatever you want from the back camera.
and i think 1.6 is one idea faster no freeze slownes on the viewfinder
Los Ron (rr), HDR working, portrait mode too, but slow motion mode not
Thanks anyway)
@aer0zer0 i was planing to make another version but after alot of test the most stable build that work is 1.7 Beta 1 so thanks for the share.
I mean compared to the Other builds that have Portraid mode if not 1.2 is the most stable
Like ive sayd many times every build have some advantage and dissadvantages for example 1.2 is super fast and stable also has working Pixel config with ZSL in other hand do not have POrtrait
Well above 1.6 they have everything but the pixel config is not working and no ZSL at all.
Also i have some other builds that are Not Arnova diferent from different russian sites and i had the best Front + HDR+ mod and take amazing HQ selfies but only this is the advantage of the mod.
if we have somehow to make a mix like frankenstain from the mods we know who is best and work perfect to make One build that include all the things.
Thanks for the Magisk Module.
tsalta said:
@aer0zer0 i was planing to make another version but after alot of test the most stable build that work is 1.7 Beta 1 so thanks for the share.
I mean compared to the Other builds that have Portraid mode if not 1.2 is the most stable
Like ive sayd many times every build have some advantage and dissadvantages for example 1.2 is super fast and stable also has working Pixel config with ZSL in other hand do not have POrtrait
Well above 1.6 they have everything but the pixel config is not working and no ZSL at all.
Also i have some other builds that are Not Arnova diferent from different russian sites and i had the best Front + HDR+ mod and take amazing HQ selfies but only this is the advantage of the mod.
if we have somehow to make a mix like frankenstain from the mods we know who is best and work perfect to make One build that include all the things.
Thanks for the Magisk Module.
Click to expand...
Click to collapse
No problem, once Oreo hits, everything will be better, I'm sure
romixer said:
Los Ron (rr), HDR working, portrait mode too, but slow motion mode not
Thanks anyway)
Click to expand...
Click to collapse
You have a 10, right? The only thing I can think of is media_profiles.xml is not in the right spot.
aer0zer0 said:
You have a 10, right? The only thing I can think of is media_profiles.xml is not in the right spot.
Click to expand...
Click to collapse
Yes it is media Profile xml i never ever had Slow Mo to work no matter of the presets in best case just freeze and i found out that this heppand only in Viper Magisk ROM people who are with Lee Droid v 4 have Slow Mo working so im pretty sure its ROM related and thats why i leave it thats way i get tired of trying to fix it and just waiting the OREO.
@tsalta have you tried older builds, like in the 1.4s I would sacrifice portrait mode for clean front and rear camera implementation. The 10 was my daily driver till I got a essential phone mid September. So I haven't messed with it much. Are the bsg versions any good?
tsalta said:
Yes it is media Profile xml i never ever had Slow Mo to work no matter of the presets in best case just freeze and i found out that this heppand only in Viper Magisk ROM people who are with Lee Droid v 4 have Slow Mo working so im pretty sure its ROM related and thats why i leave it thats way i get tired of trying to fix it and just waiting the OREO.
Click to expand...
Click to collapse
You have to add Google's preset media configs to media_profiles.xml that's how it works. 240 fc, since the sensor can't handle it.
aer0zer0 said:
You have to add Google's preset media configs to media_profiles.xml that's how it works. 240 fc, since the sensor can't handle it.
Click to expand...
Click to collapse
I have the google preset for the slow motion but same the viewfinder freezes imideately when i press slow motion.
Anyway in the Magisk version u provide you have media profile xml with the settings and is the same if you have another idea how to add this google media configs let me know or write me them here to chek what i have now to see if they differ.
About the Gcam Mods.
I tested all of them by all i mean even builds that are not even listen on XDA.
for me Arnova 1.2 is one of the best for us because its fast and all HW levels are added to support level 3 so we HTC 10 users and many other devices that have and can handle camera 2 api have HW level 3 support.
In the 1.2 Bold Red build from Arnova even the Pixel 2017 ZSL HDR+ preset work in all conditions i never had a single crash there shooting day and night, the only one downside is that there is no Portrait MODE.
Another info like i mentioned befor i had one Build if you wish will upload it that it has the Most amazing fron Shooter with HDR+ it is based on BSG build but edited by some Russian folk from 4pda i used this mod only because of the front facing camera a slefie is about 5 mb in size Crisp and clear like you shoot it with back camera.
Other than that one of my Favorite as well is the ArtZ based Mod that is Pixel based Version 2.
Have everything working ZSL all is set to use Pixel configs have a Portrait Mod working and so on.
The only problem with this build is like i explain several times befor shooting in the dark when there is not Object to focus the app force crash it is somthing related to the Focus plus the Flash it is like the Flashligh do not work properpy in synhron with the Focus and the HDR+
but for a day and good light photos i got the best pictures with this ArtZ MOD.
---------- Post added at 03:55 PM ---------- Previous post was at 03:48 PM ----------
aer0zer0 said:
@tsalta have you tried older builds, like in the 1.4s I would sacrifice portrait mode for clean front and rear camera implementation. The 10 was my daily driver till I got a essential phone mid September. So I haven't messed with it much. Are the bsg versions any good?
Click to expand...
Click to collapse
Try this out just set up the camera on 1st run for Max Quality and shoot with the Front Camera in Good Light condition.
If we have somehow to see what settings use this apk for the front to implement in the 1.7 regular front will be Awesome.
https://drive.google.com/open?id=1wzNyFYW0C8Esz2yZb2M0-fvXTw_1p8Sf
tsalta said:
I have the google preset for the slow motion but same the viewfinder freezes imideately when i press slow motion.
Anyway in the Magisk version u provide you have media profile xml with the settings and is the same if you have another idea how to add this google media configs let me know or write me them here to chek what i have now to see if they differ.
About the Gcam Mods.
I tested all of them by all i mean even builds that are not even listen on XDA.
for me Arnova 1.2 is one of the best for us because its fast and all HW levels are added to support level 3 so we HTC 10 users and many other devices that have and can handle camera 2 api have HW level 3 support.
In the 1.2 Bold Red build from Arnova even the Pixel 2017 ZSL HDR+ preset work in all conditions i never had a single crash there shooting day and night, the only one downside is that there is no Portrait MODE.
Another info like i mentioned befor i had one Build if you wish will upload it that it has the Most amazing fron Shooter with HDR+ it is based on BSG build but edited by some Russian folk from 4pda i used this mod only because of the front facing camera a slefie is about 5 mb in size Crisp and clear like you shoot it with back camera.
Other than that one of my Favorite as well is the ArtZ based Mod that is Pixel based Version 2.
Have everything working ZSL all is set to use Pixel configs have a Portrait Mod working and so on.
The only problem with this build is like i explain several times befor shooting in the dark when there is not Object to focus the app force crash it is somthing related to the Focus plus the Flash it is like the Flashligh do not work properpy in synhron with the Focus and the HDR+
but for a day and good light photos i got the best pictures with this ArtZ MOD.
---------- Post added at 03:55 PM ---------- Previous post was at 03:48 PM ----------
Try this out just set up the camera on 1st run for Max Quality and shoot with the Front Camera in Good Light condition.
If we have somehow to see what settings use this apk for the front to implement in the 1.7 regular front will be Awesome.
https://drive.google.com/open?id=1wzNyFYW0C8Esz2yZb2M0-fvXTw_1p8Sf
Click to expand...
Click to collapse
So even using the magisk mod, slo- mo crashes? It works fine for me, just 240 crashes, 120 works fine
aer0zer0 said:
So even using the magisk mod, slo- mo crashes? It works fine for me, just 240 crashes, 120 works fine
Click to expand...
Click to collapse
Yes even the Magisk Mod and i know this heppans in Viper ROM i don`t know why.
Im sure if i flash now LeeDroid will work but like i say im just waiting OREO
tsalta said:
Yes even the Magisk Mod and i know this heppans in Viper ROM i don`t know why.
Im sure if i flash now LeeDroid will work but like i say im just waiting OREO
Click to expand...
Click to collapse
Works perfect here, what rom are you on?
Hi all,
Recently I bought a zhiyun smooth 4 gimbal and that the app of the gimbal does not have permission to use all the lenses. The gimbal is compatible with Filmic Pro, but neither this app can use other lenses than the main one. It is possible to let third party apps use all the lenses of the phone?
Another possibility is to use the gimbal with MIUI camera app. Somebody knows if it is possible to use the buttons on the gimbal with the MIUI camera app? I tried to connect the gimbal manually via Bluetooth but with no luck.
i think the problem is the camera API. i posted this tread a while ago:
https://forum.xda-developers.com/mi-9t/help/fix-camera2-api-to-cameras-camera-apps-t4078935
about the same problem, third party camera apps only see main camera, no wide or tele. because the phone tell the apps it has only one back camera.
only "special" apps circumvent this limitations, like the stock camera app or gcam
maybe a custom rom can shows all cameras properly.
malowz said:
i think the problem is the camera API. i posted this tread a while ago:
https://forum.xda-developers.com/mi-9t/help/fix-camera2-api-to-cameras-camera-apps-t4078935
about the same problem, third party camera apps only see main camera, no wide or tele. because the phone tell the apps it has only one back camera.
only "special" apps circumvent this limitations, like the stock camera app or gcam
maybe a custom rom can shows all cameras properly.
Click to expand...
Click to collapse
Thank you for your reply. Maybe I will try a custom rom later. But for now I observed that with Filmic Pro the recorded videos are noisy with 24 fps (with higher fps is even worse) than that I observed with the stock camera app. This happens mostly inside where the lighting conditions are not perfect, but still I don't understand from where comes the difference.
Because of this issue, now I'm more interested in using the gimbal with the sock camera app. Even if I can use just the record button on the gimbal is better than to have noisy videos and pictures. But for the moment I could not find anything regarding this.