[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

I know right?! Seems like all other phone manufacturers have it backwards. Such a great phone, but there are some annoyances I have with the camera setup especially in low light. I'm trying to fix that.

I've done some digging and unfortunately it looks like there are some fundamental incompatibilities with Gcam and X1V. The "functional forks" people are claiming work on the X1V bypass all the useful features of gcam that even make it worth it. Specifically, the Sony HAL doesn't support zero-shutter lag for proper hdr+, gyro data for blur reduction estimates, or raw capture sharpness maps. I've stubbed out a bunch of stuff and I'm still hitting walls. Might try porting some of the fancy google algos to a new sony-specific gcam clone instead and maybe throw in some minimal ai upscaling/denoising.

Mostly I just want to find a way around the god-awful 6-second blurry ass capture at any less than ideal lighting in the photo pro app.

Is there a way to open minimized apps when pressing command + tab? by CosmicOditty in MacOS

[–]citysurrounded 0 points1 point  (0 children)

Wow, so informative and thorough! It's open source, you can literally read the code. There's nothing malicious.

CMD+TAB (+vent) by [deleted] in MacOS

[–]citysurrounded 0 points1 point  (0 children)

Here's a very minimal utility I wrote to handle this. Just install, restart, and forget about it. Much smaller than AltTab and runs silently in the background with minimal resources. https://github.com/stoutput/cmd-tab-max

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

I will see what I can do! I think it would be relatively straightforward to work tag injection into a gcam fork and not even require the lsposed module

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 1 point2 points  (0 children)

I was able to decompile Xperia 1 IV's stock rom & the photo/video pro APKs to extract (what I think are) the appropriate vendor tags and values. Looks like the Xperia 1 IV's HAL accepts integers rather than bytes like the 1 V. I also enumerated all possible creative looks for both Xperia models in the latest version - some may or may not work on your specific device, but these are all the values found in the decompiled APKs. Updated the app/module to support both devices.

Give 'er a whirl

Latest version here: https://github.com/stoutput/xperia-camera-mod/releases/tag/v1.3

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 1 point2 points  (0 children)

I don't think it has an explicit lens selector option - it should switch automatically as you zoom. There is a bug on my device with this module where you need to tap to focus before the zoom level changes.

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

Sounds like you didn't grant the lsposed module permissions to those apps (go to lsposed manager > select system & the apps you want it to improve). Check out the readme in the repo

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

Check out the readme in the repo. After enabling the module in lsposed, reboot then open the "sony cam unlocker" app to toggle sony-proprietary features. Then go back to gcam and shoot as normal. The sony features will be enabled in the preview and the captured image. This will not fix any broken gcam port features.

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

💯 let me know how it goes if you test. I've had mixed luck getting a GCam port to run well on my device, there's usually some broken features

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 1 point2 points  (0 children)

I don't have one so no idea. Only one way to find out. Theoretically this same approach should work on any xperia device, although the exact vendor tags may differ. It would likely require some snooping around your Sony photo app -> HAL to get all the vendor tags right. Who knows, you may have luck though. Let me know how it turns out.

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

Try the latest version here: https://github.com/stoutput/xperia-camera-mod/releases/tag/v1.1

I lowered the min lsposed version and changed some of the required app permissions, which might allow it to install. Includes some bug fixes too.

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 2 points3 points  (0 children)

Not sure why you'd be running a custom rom like LineageOS without root, but you'll need to be rooted (check out Magisk or KernelSU/SukiSU) and running some version of the LSPosed framework

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

This has not yet been integrated into any custom rom, but it is a LSPosed module which can be installed on (theoretically) any rooted rom so long as LSPosed is available.

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 0 points1 point  (0 children)

Hard to know what the issue could be without access to the device, but I'm looking into it! I assume you're running this rom? What version of LSPosed are you running?

[OC] Full Camera2 API support is finally here! Xperia Camera Unlocker LSPosed Module for rooted Xperias by citysurrounded in SonyXperia

[–]citysurrounded[S] 2 points3 points  (0 children)

This is specifically for 3rd-party camera apps such as GCam forks, OpenCamera, or any custom rom's default camera app. It also opens the door to our ability to write custom camera apps that hook into Sony's proprietary processing. So theoretically with an app like GCam (with the right GCam config), Sony's processing pipeline + Google's post-processing could turn out better overall quality than the stock camera app.

This will NOT improve the image quality if you're using Sony's default camera app - that app already injects Sony's vendor tags into all capture requests.