[GUIDE][MOD][TREBLE]Camera2 API Enabler - Asus ZenFone Max Pro M1 Themes, Apps, and Mods

Flashing this enable Camera2 API for GSI/Treble based roms. Remains even after clean flashing another GSI
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Cam2API.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. Google camera mod should work now

Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.

Desmanto said:
Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.
Click to expand...
Click to collapse
t1 zip changes that 0 to 1, no new entry is added
t2 zip adds a new line to enable the same

Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.

SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
No

SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
OP doesn't have the device. We need to try and share feedback. Else wait for someone to share.
Appreciate efforts from OP.

Someone check what is supported camera 2 level
Via camera2 probe app

Any improvement in picture quality when captured in gCam?

Sudeep Duhoon said:
Flashing this should enable Camera2 API.
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Camera2 API_t1.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. If fails, flash Camera2 API_t2.zip same way.
5. Google camera mod should work now
Someone please test and report
Click to expand...
Click to collapse
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro

arjunav4748 said:
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro
Click to expand...
Click to collapse
I tried both api doesn't work

is there any way to enable it on a locked bootloader and without root?

austinpinto said:
is there any way to enable it on a locked bootloader and without root?
Click to expand...
Click to collapse
sadly, no

learntechnology8452 said:
I tried both api doesn't work
Click to expand...
Click to collapse
works for everyone else (it was reported though)
tested myself and was not working
fixed
dafaq you doing testers???

Can anyone tell the performance of the camera,Is it better than the stock sd camera!

google camera keeps stopping please help even after following all steps

Akashnaresh said:
google camera keeps stopping please help even after following all steps
Click to expand...
Click to collapse
Enable camera2api manually

Yeah, I have done it using buildprop...still it's not working

Akashnaresh said:
Yeah, I have done it using buildprop...still it's not working
Click to expand...
Click to collapse
Have you tried bacon camera, it's quite a substitute for flashing a module for enabling c2api

Do I need to unlock my bootloader and flash twrp to flash this zip?

Tried the zip method and manual method but google camera still crash when open. Any other solution?

Related

[Q] Enable Camera2 APi on MTK variant? (tried editing build.prop but doesn't work)

Hello guys,
Been lurking here for ages and already benefited tons from the help posted here. However, this is one issue that I can't seem to figure out.
I have the MTK variant of the RN4 and I'm trying to enable the Camera2 API so that I can take RAW pictures, use Google HDR+ etc.
I am rooted on MIUI 9 (though as it's MTK, it is still Android 6.0) and I edited the build.prop file using ES Explorer (I added the persist.camera.HAL3.enabled=1 line). I've rebooted the device, used checker apps and Lightroom to check if there's RAW support, but without luck.
Do you guys have any other ideas as to how I can enable Camera2 API support?
I don't have bootloops, I don't have any issues other than the fact that there's no Camera2 API support. Restarting the device does not erase my mods to the build.prop file.
Any help is appreciated!
Forget about it since GCam is supposed to work on Snapdragon devices only.
Kavute said:
Forget about it since GCam is supposed to work on Snapdragon devices only.
Click to expand...
Click to collapse
I wouldn't mind using other apps such as Lightroom if I can get RAW to work. Any ideas as to whether that's possible?
I've had a similar problem before, but MIUI would revert my changes to the build.prop. I solved it by using a systemless root via Magisk.
What I did:
1. Unroot your phone
2. Flash Magisk using TWRP (link to Magisk thread).
3. Download the "camera2api-enabler.zip" from this thread
4. Add the zip (Module) using the Magisk Manager app that comes installed after you flash Magisk
5. Reboot, and you should see the camera2api enabled.
If you do run into a boot loop after installing Magisk, you may need to flash the LazyFlasher zip file after Step 2.
yohyah said:
I've had a similar problem before, but MIUI would revert my changes to the build.prop. I solved it by using a systemless root via Magisk.
What I did:
1. Unroot your phone
2. Flash Magisk using TWRP (link to Magisk thread).
3. Download the "camera2api-enabler.zip" from this thread
4. Add the zip (Module) using the Magisk Manager app that comes installed after you flash Magisk
5. Reboot, and you should see the camera2api enabled.
If you do run into a boot loop after installing Magisk, you may need to flash the LazyFlasher zip file after Step 2.
Click to expand...
Click to collapse
Thank you! I'll look into Magisk. I have to admit that I'm tempted if only to get this and Super Mario Run working.
But I do like having sys root access, I've just fixed the Cell Standby battery drain with an edit to the build.prop file, as MIUI 9 doesn't have the option to disable VoLTE.
So I'll give it a thought.
Thank you! and if anyone has any other tips, preferably something that doesn't alter my setup too much, it'd be ace.
rottensong said:
Thank you! I'll look into Magisk. I have to admit that I'm tempted if only to get this and Super Mario Run working.
But I do like having sys root access, I've just fixed the Cell Standby battery drain with an edit to the build.prop file, as MIUI 9 doesn't have the option to disable VoLTE.
So I'll give it a thought.
Thank you! and if anyone has any other tips, preferably something that doesn't alter my setup too much, it'd be ace.
Click to expand...
Click to collapse
Hi!
If it isn't work, you should try out this:
Go in Engineer mode https://forum.xda-developers.com/showthread.php?t=2313812 or download the Engineer mod apk from play store. (It's working just on stock ROM)
Swipe left to Hardware testing, and there will be the Camera option.
I think, after you find this, you can get through the settings (where will be a raw capture option)

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM
Hello.
By default, phhusson's generic AOSP Treble ROM is bare bones. That means it does not include features such as Night Light, Ambient Display, or Adaptive Brightness. Luckily all you need is the right overlay and you can bring these features back.
I tested this on the Huawei Mate 10 Pro and everything seems to work save for the lift-to-wake gesture. I am not sure if a simple overlay can enable that, as I already target the right boolean value for it. As for Adaptive Brightness, the lux and corresponding backlight values were borrowed from the Huawei Mate 9's framework-res.
Update 2/19/18
With the release of phhusson's Android 8.1 Oreo Treble GSI, I thought I would take the time to update my overlay as well with a new feature: Always on Display. You can download the overlay from the attachment in this comment, and install it using the same set of instructions below (don't install the overlay attached in this post if you want AOD). Please read the warnings carefully. I accept no responsibility for anything you do with your phone.
Update 2/6/18
I have updated the attached framework overlay to include the following features:
WiFi automatic wakeup
Pinner service for the default camera app and critical framework files
This should work on any device that can boot phhusson's Treble ROM.
Installation Instructions
Download the attached overlay
With root, push the overlay to /vendor/overlay. Create the folder if it doesn't exist.
Run the following command in a rooted terminal or ADB shell:
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Reboot
XDA Labs adds emojis in the command for some reason. Open this thread in a browser to get the right command.
Why do you need to run that command? Without it, the overlay won't be seen as installed and isn't enabled. I'm not sure why, but according to phhusson it's an SELinux-related issue and this command fixes that.
Enjoy!
What is the code?
独影阑珊 said:
What is the code?
Click to expand...
Click to collapse
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Why?
独影阑珊 said:
Why?
Click to expand...
Click to collapse
It does not work because you have included spaces in the command that are not there.
tusko5 said:
It does not work because you have included spaces in the command that are not there.
Click to expand...
Click to collapse
Oh, thanks.
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
how can i get the root access on the rom?
It is also not working on honor v9 .
mrassol said:
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
Click to expand...
Click to collapse
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
javawppp said:
how can i get the root access on the rom?
Click to expand...
Click to collapse
Install phhusson's SuperUser from the Play Store.
独影阑珊 said:
It is also not working on honor v9 .
Click to expand...
Click to collapse
Did you follow the steps exactly? This can't be installed like a regular app.
you did'nt read my post
I did all you wrote (I even add mount -o rw,remount /system and mount -o rw,remount /vendor) and nothing changed
AFTER that, I install the apk from /vendor/overlay using a root explorer and now the options are visible, brightness is working (I didn't saw it first), night mode is also working, ambiant display is also working but the option to turn on phone on pickup don't work.
So my bad, I didn't test it so much
MishaalRahman said:
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
Install phhusson's SuperUser from the Play Store.
Did you follow the steps exactly? This can't be installed like a regular app.
Click to expand...
Click to collapse
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
独影阑珊 said:
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
Click to expand...
Click to collapse
You are running phhusson's AOSP Treble ROM, correct? What device?
MishaalRahman said:
You are running phhusson's AOSP Treble ROM, correct? What device?
Click to expand...
Click to collapse
Yes,My device is Honor V9.
独影阑珊 said:
Yes,My device is Honor V9.
Click to expand...
Click to collapse
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
MishaalRahman said:
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
Click to expand...
Click to collapse
Thanks,I will try it.
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
etern1ty said:
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
Click to expand...
Click to collapse
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
MishaalRahman said:
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
Click to expand...
Click to collapse
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
etern1ty said:
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
Click to expand...
Click to collapse
Decompile my overlay. Look in /res/values/arrays.xml. Look at "config_autoBrightnessLcdBacklightValues" array and change the first item, <item>6</item> to <item>1</item>. Build the APK, sign it, and then push.

Is there anyway to install GCAM to photos in HDR+ in MM?

Well, it's possible to install Gcam to use HDR+ on stock rom rooted? Thanks!
Not possible.
I just read this
Manual installation for all 6.0 rom
Google Gcamera HDR + Android 6.0 ported ..
Enable Cam2api in build.prop, install the APK, enjoy HDR + photos in Android MM 6.0.1
INSTRUCTIONS
0. Install and Apk install...
1. Enter system (system) with root explorer-file manager or with a buld.prop-editor from the playstore. Of course we must be root.
2. Find the file build.prop and press and hold until the window prompts us to open it and press the text editor.
3. Here we also give the root rights to the program if requested.
4. We look low to the end (vx roms in the middle of buil.prop.tweaks below) if it writes somewhere persist.camera.HAL3.enabled = 0 and 0 does it 1.
5. We hit save and exit and restart.
6. If there is not persist.camera.HAL3.enabled = 0 , we add it to the end of the document so persist.camera.HAL3.enabled = 1
7. Press save and exit and restart.
8. We are ready with the camera running.
I can't even imagine any reason why somebody still want to use Marshmallow (and EUI). This is crazy.
giaur said:
I can't even imagine any reason why somebody still want to use Marshmallow (and EUI). This is crazy.
Click to expand...
Click to collapse
Nice reply realy helped the op
VC-34 said:
Nice reply realy helped the op
Click to expand...
Click to collapse
Well it's offtopic, but I still would recommend to switch to more modern rom.
giaur said:
I can't even imagine any reason why somebody still want to use Marshmallow (and EUI). This is crazy.
Click to expand...
Click to collapse
I think you can be more respectful giaur...it's a choice. I like EUI, I like my phone, I got good SoT and decent battery stand by time

[Locked] IR camera - MI8

I've made a modded version of the great "Simple Camera" by SimpleMobileTools ( simplemobiletools.github.io ) to work with the secondary pocophone and MI8 cameras including the front facing infrared camera, you can record videos and take pictures, it's free, no ads, no analytics, and open source.
Working:
- Camera and using back secondary camera or infrared camera on LineageOS/AOSP roms
Let me know if you have problems on any other rom
Not yet working:
it seems it is NOT WORKING on MIUI roms - it seems that MIUI has disabled the camera access on newer versions, maybe with root there is a way to reconfigure miui to allow the two new cameras to work, still investigating, if someone has an idea i would love to know
If someone knows some rom/kernel/root/magisk module developer that may be able to help me let me know and i'll be more than happy to try and make it work on MIUI!
Hope it's useful, thank you!
Download Links Removed
XDA:DevDB Information
IR camera - MI8, Device Specific App for the Xiaomi Mi 8
Contributors
TeraJL
Source Code: https://github.com/jlvcm/Simple-Camera
Version Information
Status: Testing
Current Stable Version: 1
Stable Release Date: 2019-01-04
Created 2019-01-07
Last Updated 2019-01-06
Wow, this is actually very good.
Working fine on Pixel Experience.
Thanks a lot. It is awesome in the dark.
Thank you. It works.
Out of curiosity, any use beyond "trying"?
Can you please post screenshots?
The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?
This photo attached I've shot in a 99% dark room.
The background is dark because it's pointing to my face. But if you point to the background ambient it all gets insanely brighter and visible (second attachment)
Of course the quality sucks. But we can clearly see what's in the path.
for me wont work on pixel3rom, only black screen, only work with the back camera
H4R81N63R said:
The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?
Click to expand...
Click to collapse
thats true. it works in xiaomi.eu rom also.
H4R81N63R said:
The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?
Click to expand...
Click to collapse
Good find!
Did you manage to find the pictures taken ? Don't think they're actually saved..
Stoffl_ said:
Good find!
Did you manage to find the pictures taken ? Don't think they're actually saved..
Click to expand...
Click to collapse
No, I haven't found the saved pictures. I'm not a 100% sure, but I think that the Hidden Settings app uses the factory/feature testing methods because of the Pass/Fail buttons that appear while using the Front Camera IR in it. I also get a green check mark next to the front camera entry in the QMMI list after I have tapped the 'take picture' button.
Yeah I think you're right.
Wow this is working quite good. Thank you for the mod.
Great it works on MIUI stock rom with magisk root
thank you
Latest xiaomi.eu doesnt work even with root.
After granting root, there is still problem
Mi8
Literally says in OP that MIUI roms aren't supported......
kael2404 said:
Latest xiaomi.eu doesnt work even with root.
After granting root, there is still problem
Mi8
Click to expand...
Click to collapse
i'm on xiomi.eu 9.1.24, and the IR camera works if you add this line to /system/build.prop
Code:
camera.aux.packagelist=com.joaolvcm.pocoseccamera
Stoffl_ said:
Literally says in OP that MIUI roms aren't supported......
Click to expand...
Click to collapse
Read changelog in play store
Yeah I tested it after reading gulps post,neat.
gulp79 said:
i'm on xiomi.eu 9.1.24, and the IR camera works if you add this line to /system/build.prop
Code:
camera.aux.packagelist=com.joaolvcm.pocoseccamera
Click to expand...
Click to collapse
D'OH!
I can't modify build.prop, tried mixplorer, kernel adiutor and build.prop editor from playstore. they all get root permission but fail on saving build.prop
I am on latest xiaomi.eu stable, BL unlocked, TWRP and and Magisk
if I open connectbot and try as root i am able to "mount -o remount,rw /" but no luck with build.prop
If I try to "mount -o remount,rw /system" i get:
'/dev/block/platform/soc/1d840000.ufshc/by-name/system' us read-only
How did you managed to do it? (te prego ^_^)
Z
zavorrax said:
D'OH!
I can't modify build.prop, tried mixplorer, kernel adiutor and build.prop editor from playstore. they all get root permission but fail on saving build.prop
I am on latest xiaomi.eu stable, BL unlocked, TWRP and and Magisk
if I open connectbot and try as root i am able to "mount -o remount,rw /" but no luck with build.prop
If I try to "mount -o remount,rw /system" i get:
'/dev/block/platform/soc/1d840000.ufshc/by-name/system' us read-only
How did you managed to do it? (te prego ^_^)
Z
Click to expand...
Click to collapse
Seem the usual problem with /system mount....
Try this:
1) Reboot in TWRP
2) in TWRP go to "Mount" and select "cache, System, Vendor, Data"
3) Reboot to System, and now you should be able to modify the "build.prop"
Daje!!!

Google Camera mods doesn't work on Xperia XZ1 and here's why

If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Suggest rom with working gcam and gcam link
Generic123. said:
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Click to expand...
Click to collapse
Before and after root when I looked for camera probe app I couldn't able to check RAW and some other white balance settings XZ1's camera capable to provide most of the Camera 2 API's needings out of the box but if you've any way to enable raw image processing I genuinely want to know how. Thanks for your reply by the way.
deniz_nam said:
Before and after root when I looked for camera probe app I couldn't able to check RAW and some other white balance settings XZ1's camera capable to provide most of the Camera 2 API's needings out of the box but if you've any way to enable raw image processing I genuinely want to know how. Thanks for your reply by the way.
Click to expand...
Click to collapse
Check this and this. These are both AOSP ROMs, which I've heard have full Camera 2 api support(including RAW). Unfortunately, neither are even remotely stable enough for daily use, so it's not really worth it. Besides, the forums seem to show that google cam doesn't work too well(although no photos, so it may be a subjective thing). That's honestly all I know about this kind of stuff; if you want a decent camera experience on a custom ROM, you might want to try LineageOS; the stock camera was ported and works for the most part(except 4K recording, which I heard was fixed in the next version). Other than that, I have no other idea on how to get RAW support on stock firmware, sorry.
Generic123. said:
I think RAW capture is supported on the official AOSP builds. So ,theoretically, Camera2 api should work on the official AOSP.
Click to expand...
Click to collapse
what about this link : https://androidfilehost.com/?fid=6006931924117914458. by SonyAOSP Team are they stable builds and how to flash them? they are updated evey month and have the latest security patch as i think
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
UPDATE: By the way after couple days of use with
device I found out a strange behavior. After many tries to get a working gcam I gave up so while I was looking for how to see device's cameras status I used getprop in adb shell to look for did I enable Camera 2 API or not, actually I was very surprised it looks like it's enabled (persist.camera.HAL3.enabled = 1) then I looked for an alternative to gcam and downloaded the open camera. While in the app tweaking with the settings, found out that there's a Camera 2 API toggle for that supported devices. After tweaking, I take some photos with that I've shocked how good the HDR was I added some sample photos and HDR settings that I used in open camera. I hope I could help you with the journey of yours.
NOTE:In the sample photos when you zoom in there are artifacts on leafs and car that passing away thats because of hdr is 3 stops of dynamic range and shooting 3 different exposed photos so for the best detailed photos you should keep your hands stable and you should be around somewhere has not much moving objects. And in open camera there is a scene mod option, with that if you adjust your camera you can get night sight like photos in near complete dark scenes.
As always take care of yourselves and be aware of what you're doing with your lifes and your devices.
https://drive.google.com/drive/folders/1-4Jc5HIxvzi2T4Zb3Ws_kreCGPHfUBhm?usp=sharing
deniz_nam said:
UPDATE: By the way after couple days of use with
device I found out a strange behavior. After many tries to get a working gcam I gave up so while I was looking for how to see device's cameras status I used getprop in adb shell to look for did I enable Camera 2 API or not, actually I was very surprised it looks like it's enabled (persist.camera.HAL3.enabled = 1) then I looked for an alternative to gcam and downloaded the open camera. While in the app tweaking with the settings, found out that there's a Camera 2 API toggle for that supported devices. After tweaking, I take some photos with that I've shocked how good the HDR was I added some sample photos and HDR settings that I used in open camera. I hope I could help you with the journey of yours.
NOTE:In the sample photos when you zoom in there are artifacts on leafs and car that passing away thats because of hdr is 3 stops of dynamic range and shooting 3 different exposed photos so for the best detailed photos you should keep your hands stable and you should be around somewhere has not much moving objects. And in open camera there is a scene mod option, with that if you adjust your camera you can get night sight like photos in near complete dark scenes.
As always take care of yourselves and be aware of what you're doing with your lifes and your devices.
https://drive.google.com/drive/folders/1-4Jc5HIxvzi2T4Zb3Ws_kreCGPHfUBhm?usp=sharing
Click to expand...
Click to collapse
Can you give instructions to be able to do as you can?
Sent from my Sony G8342 using XDA Labs
haiha2001 said:
Can you give instructions to be able to do as you can?
Sent from my Sony G8342 using XDA Labs
Click to expand...
Click to collapse
If you asking for enabling the Camera 2 API I mentioned it in the original post but basically you need;
bootloader unlocked device (You need to get a key for it from Sony's website)
TWRP .img file
some adb and fastboot commands
newest Magisk .zip file (for root)
Basic Steps You Need To Follow (I'm not giving all the details because there could be a difference between devices from software wise or steps that could damage your performance or device and I'm not taking any responsibility for it.)
First you need to unlock your bootloader there many posts that explain how to in xda.(You need a key from Sony that you can get with your IMEI)
Then you need latest drivers and files for ADB and Fastboot that you can get it from developer.android site.
After that, you have to plug your device to computer with USB debugging on. And reboot in fastboot mode that you can make with adb commands or volume up with power buton (after 3 vibrations release just the power buton until you see a blue indicator from your notification led.).
In fastboot mode boot in recovery that you downloaded into your computer (in my case that was TWRP).
If you can find magisk file in install section you can do it from there but I couldn't find in install section so I use adb sideload to install magisk.(XDA has very nice explanation for how to download magisk on your device you should check that out.)
After installation and reboot I downloaded Magisk Manager apk file to device I used both build.prop and terminal (also both in device's and computer's terminal) to write camera.HAL3 code. ( I couldn't able to check the RAW box in camera prob app)
Finally you should need to look for camera specifications in your terminal that your proccess made it or not. (with getprop method)
I would recommend downloading Open Camera from play store and enabling for Camera 2 API for app and tweaking other settings for your liking. (Especially HDR settings)
If have any other question don't hesitate to ask. And if I skipped any steps or so please inform me about it.
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that ...
Click to expand...
Click to collapse
So, versions without HDR+ works on our devices?
If yes could you please provide the link, thanks.
sohrab1985 said:
So, versions without HDR+ works on our devices?
If yes could you please provide the link, thanks.
Click to expand...
Click to collapse
https://forum.xda-developers.com/xperia-xz1/themes/google-camera-mod-xperia-xz1-t3786993 from this discussion you can get the apk but like I said I tried this apk too, it has photosphere and panorama as features no HDR+ or night sight which you want I believe. I'd download open camera rather than this apk. Open camera hasn't that beautiful ui but it's better capabilities than gcam without HDR+.
deniz_nam said:
https://forum.xda-developers.com/xperia-xz1/themes/google-camera-mod-xperia-xz1-t3786993 from this discussion you can get the apk but like I said I tried this apk too, it has photosphere and panorama as features no HDR+ or night sight which you want I believe. I'd download open camera rather than this apk. Open camera hasn't that beautiful ui but it's better capabilities than gcam without HDR+.
Click to expand...
Click to collapse
Exactly, I'm looking for night sight feature.
I try open camera then.
Thanks for the help.
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
I tried it in a similar way in June,and the results are the same. As far as I know, Sony has no plans to open Camera2 APIs - they are more inclined to force users to use Sony's own cameras,than open APIs to allow users to use Google cameras or others. This brand is just like this, always paying less attention to user feedback. But at least we've tried to do this - it's better than someone who hasn't tried it.
P.S.There's a way to backup TA partition before unlock bootloader: https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510 .I know it's too late to tell you...sorry.
TimCrownie said:
I tried it in a similar way in June,and the results are the same. As far as I know, Sony has no plans to open Camera2 APIs - they are more inclined to force users to use Sony's own cameras,than open APIs to allow users to use Google cameras or others. This brand is just like this, always paying less attention to user feedback. But at least we've tried to do this - it's better than someone who hasn't tried it.
P.S.There's a way to backup TA partition before unlock bootloader: https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510 .I know it's too late to tell you...sorry.
Click to expand...
Click to collapse
Thanks for your explanation and help, I really appreciate it. Only if Sony listen us their market share can grow and they can compete with others much better.
Hi, thanks for share this tutorials!
I've some questions, sorry before, im like super noob
1. Its seems you still using stock rom, is right? And what version?
2. The image looks very noisy, is that because you lost the drm keys?
Thanks before
Apakah maksudnya kamera terbuka adalah kamera manual?
deniz_nam said:
If you looking for a google camera mod for XZ1 and whatever you already downloaded is crashing while opening the app (except the apks that hasn't HDR+ feature) and you want this gcam so bad that thinking about opening your bootloader and rooting your phone just for that feature don't do it (againg if you rooting just for gcam).
First of all the reason that gcam not working because in your device Camera 2 API isn't enabled so if you made a little research you know that you can enable that with just unlocking your bootloader but here is the catch if you already unlock the bootloader even rooted your phone and you still can't enable Camera 2 API that's because SONY doesn't want you to enable. Now I'm going to talk what I already tried. (If you know how please kindly explain it in the mentions)
DAY 1(Bootloader locked - Non rooted)
Making research from various sites for just getting information about camera 2 api
After research backing up my phone several times with companion app
Looking for tutorials to enable without rooting and unlocking the bootloader
DAY2(Bootloader unlocked - Non rooted)
After realizing that you can't do anything without unlocking your bootloader prepared for unlocking (By the way you need to get a unlocking key from Sony's website with your IMEI)
After unlocking bootloader trying adb shell and fastboot commands I couldn't able to enable then searched for solutions in fastboot mode booting on custom recovery (in my case TWRP) try to flash it and running adb shell commands it didn't enable. (The main problem is I couldn't get RAW checked from camera probe app and gcam needs it for processing.)
DAY3(Bootloader unlocked - Rooted)
I rooted with magisk but with TWRP i didn't use the install section because I couldn't able to find the .zip file so I used the adb sideload thing. After downloading the magisk manager app and access to root I've tried using build.prop, terminal both phone and computer, magisk modules and adb sideload to flash .zip files for enabling camera 2 API (that gave me error while doing) but whatever I've tried to do didn't work out for me.
For who are wanting gcam to work in your Xperia XZ1 for my case and research I couldn't able to enable Camera 2 API and couldn't find a way to enable I think Sony needs to give us RAW processing option. All in all rooting your XZ1 not that bad idea after all because I don't think Sony give this lineup an another android update (Android Q). If you have any questions about the process don't hesitate to ask. Take care of yourselves and be aware of what you're doing with your lifes and your devices.
Click to expand...
Click to collapse
CameraAPI 2 works normally on the XZ1 AOSP10 under development by Sjll, but there is an ISP problem and the pictures taken are not saved.
try and camera super pixel for static themes.
excellent performance!!!
a little edit after just for shadows and hight light and you will have an outstanding results.
Georgerapp said:
try and camera super pixel for static themes.
excellent performance!!! a little edit after just for shadows and highlights and you will have an outstanding results.
Click to expand...
Click to collapse
Outstanding pictures for real! Did you take these pictures with the Open Camera App? Which app you used for the 'little editing' afterwards? Nice church! :good:
SGH-i200 said:
Outstanding pictures for real! Did you take these pictures with the Open Camera App? Which app you used for the 'little editing' afterwards? Nice church! :good:
Click to expand...
Click to collapse
ι shoot them with camera super pixel from playstore .
that app is for stills photos , no people , no pets .
after i edit the large file that gives on photoshop express and reduse the file at 40% quality to give me more comfortable image size.
open the app and at settings put resolution at 32 mp for back and 51.9 for the front.
enable noise reduction edge enhancement debug mode and place jpeg quality at 100.

Categories

Resources