Trying to enable Camera2 API (manual camera settings)

LeonardoGC

Senior Member
Oct 28, 2017
105
15
28
Lima
Hi.

Is it possible to enable Camera2 API (for manual camera settings) on the ZTE Axon 7 Mini (LineageOS 14.1/Android 7.1.2)?

I tried to enable it by modifying the build.prop file adding this line at the end:

Code:
persist.camera.HAL3.enabled=1
After the reboot it passes all the tests of the Manual Camera Compatibility app but when opening any camera app (Open camera or LOS's stock) an error message appears and indicates that it is not possible to establish a connection with the camera.

The error message is solved after deleting the added line and rebooting.

The camera section of the build.prop file is the following:

Code:
# Camera
camera.hal1.packagelist=com.skype.raider,com.google.android.talk
camera.lowpower.record.enable=1
camera.display.umax=1920x1080
camera.display.lmax=1280x720
media.camera.ts.monotonic=1
persist.camera.stats.test=5
Maybe there are some more tweaks needed.

Thanks in advance.
 

Attachments

Lexed

Member
Mar 31, 2017
7
2
0
I found only this :(
To all who came here hoping to use Google Camera HDR+ port, for the last time, it will NOT work on the Axon 7. Stop trying, it's impossible to get it to work. As mentioned above, our kernel lacks proper HAL2 API support, so the Nexus 6 HDR+ mode doesn't work. You either cause Google Camera to force close, or the pictures you take will appear the exact same as without HDR+(if you somehow managed to get it to work). A lot of people have tried in other threads and confirmed that the HDR+ mode doesn't work so don't try to be a genius and think that with some luck magic will happen. Devs have looked into the kernel code and found that proper Camera2 API code is missing. Unless you are better than the devs here, and think you can implement Camera2 API yourself, I suggest you either contact ZTE to request for proper Camera2 API support, or just give up. You don't just plant a flag in your build.prop and then cause an API to work, your software has to support it. The manual controls that are enabled by Camera2 API work with the build.prop flag because ZTE used some hacks to implement only those features and not the full Camera2 API. So having manual controls doesn't mean anything. Please stop spamming this thread about trying Google Camera Port, thank you. Just use non-HDR+ mode, if you really want a good camera buy another phone that has been confirmed to work with the Google Camera port like OnePlus phones. Or get the Google Pixel yourself
 

haoyangw

Senior Member
Mar 25, 2013
627
885
133
Singapore
I found only this :(
My apologies, my post was only relevant for non-B12 ROMs. ZTE has fixed Camera2 API in B12 so if you flash the B12 Beta Mifavor, LOS 15.1 or latest AEX(after June) you'll be able to use HDR+! I have tested it myself and it works :) My sincere apologies for the stern tone and very pessimistic words, I was wrong. ZTE does care a lot(they're even implementing Treble)
 
  • Like
Reactions: Lexed

bius88

Senior Member
Jan 2, 2011
139
55
0
Wroclaw
My apologies, my post was only relevant for non-B12 ROMs. ZTE has fixed Camera2 API in B12 so if you flash the B12 Beta Mifavor, LOS 15.1 or latest AEX(after June) you'll be able to use HDR+! I have tested it myself and it works :) My sincere apologies for the stern tone and very pessimistic words, I was wrong. ZTE does care a lot(they're even implementing Treble)
Do we have Los 15?
 

auxillium

Member
Apr 10, 2018
38
12
0
My apologies, my post was only relevant for non-B12 ROMs. ZTE has fixed Camera2 API in B12 so if you flash the B12 Beta Mifavor, LOS 15.1 or latest AEX(after June) you'll be able to use HDR+! I have tested it myself and it works :) My sincere apologies for the stern tone and very pessimistic words, I was wrong. ZTE does care a lot(they're even implementing Treble)
Sadly I don't think ZTE cares anymore for the mini. And the dev community for this phone isn't as active as it used to, as everyone's busy with their own lives i guess.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone