yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] Inerent:
Hello and thx for developing this mod!

Does this mod support 1080p 960fps recording?
[Sony Cross-Device General] Pandemic:
no only 720p but we RXS working on it ;)
[Sony Cross-Device General] karrouma:
Here are one macro auto mode

One shadow and good light

And one backlight photo

I will post indoor at night and low light later
[Sony Cross-Device General] Indashio:
I know how to enable super slowmotion 1080pon XZ Premium but when I set in camera hd in option superslowmotion camera crashed and I need restart my phone. How it possible ? You need go to root data data com.sonyericsson.android.camera sharedprefs com.sonyericsson.android.camera.supported_values.0

and change resolution in <string name="sony-super-slow-config">1;1280x720@177/960</string>

To 1920x1080

The same situation with recorded 4K HDR

Camera crashed. Maybe someone will try to fix it. I try copy new files from vendor camera but without success

? Xperia XZ2 It has amazingly a lot similar in files to XZ Premium. I have the impression that copy all files or flash system XZ2 to premium. However, I do not bear such a risk. I flash system from xz premium dual to single and it works but from XZ2 only files. You can easily copy all your camera and sound files . SoundEnhancement from xz2 working perfect on xz premium.
[Sony Cross-Device General] karrouma:
Yes bro, i am working on it

Look at my screenshots
[Sony Cross-Device General] karrouma:
And now hdr is working on video.

Under testing
[Sony Cross-Device General] kibet85:
wow ,,,amazing,,
[Sony Cross-Device General] Indashio:
I'm keeping my fingers crossed for your work. A huge thank you for your work. I am waiting for the results with impatience.
[Sony Cross-Device General] Blackghosthm:
So if you do it why you dont share it.
[Sony Cross-Device General] karrouma:
Cz of force close

Also fullhd slomotion close , iwill try to solve problems in the coming days
[Sony Cross-Device General] woodman:
[MENTION=5327840]karrouma[/MENTION] is now the OP of this thread! :good:
[Sony Cross-Device General] Pandemic:
Yes and not from the 2nd and 3rd post bro ;)
[Sony Cross-Device General] woodman:
It's fixed! You have the ownership of 2nd and 3rd post, like previously.
[Sony Cross-Device General] ragratz14344:
thank you, your the best..
[Sony Cross-Device General] karrouma:
For all

To the mod works fine innxperia xz premium

Patch your system (service.jar and core)

Replace these files attached in .zip by the original system/framework/
[Sony Cross-Device General] Indashio:
I have problem with file service.jar after copy to system framework. After bootanimation my phone reboots. It does not start? It is problem with magisk or what? Two other files is ok but service.jar not.

With this file service.jar camera working with superslowmotion and 4k HDR from xz2? Or you upload new files camera in Google drive and mega and we need flash this one more times ?
[Sony Cross-Device General] karrouma:
crate a script for both a partition xzp

and a/b for xz2 and others

don't have time to update
[Sony Cross-Device General] vofferz:
Tried it, but that just creates a folder called 'system' with the files on the zip under system, so when I browse files with x-plore, it shows /system/system/app etc.

Maybe that /system/system is only for Treble devices with A/B partition? XZ1C doesn't have A/B.

I tried creating a magisk module from the Pie v2 zip and flashed that one, but then if I try to start Camera, it just closes with an error. Maybe it is because I don't have a patched services.jar file? Tried the Smali Patcher, but it says my services.jar isn't deodexed and I can't find a tool to do that in Windows...

Maybe I just give up on this one.
[Sony Cross-Device General] hohosanta:
I have xz1c, i manualy cpoied all the files but when i open camera app, it closes with an error... I also tried instruction at post #333, but it seems like there are no changes in camera quality. Well If there are great skilled well educated person who can make this working for xz1c please share your knowledge...
[Sony Cross-Device General] vofferz:
Does not work in XZ1 Compact. Camera just closes with "Unknown error".

I have tried everything that has been mentioned here: flashing in TWRP / manual copy / I made a magisk module from the original zip / Tried to rename the SemcCameraUI-xxhdpi-release to SemcCameraUI-xhdpi-release to match the existing folder/file. None of these work.

I even patched my services.jar with smali patcher - did not change anything.

If there is anyone who has been able to make it work on XZ1C, please report.

If the port doesn't work with other than XZP, [MENTION=5327840]karrouma[/MENTION] or [MENTION=2902434]Pandemic[/MENTION] should maybe remove the mention of XZ1/C from the title.
[Sony Cross-Device General] karrouma:
This work for xzp now and xz1

Others need other fikes rename

Iwill edit the thread when have time

And i will create flashabke for xz2 a small ome that modify media files and add some framework files
[Sony Cross-Device General] hohosanta:
karrouma can you please support xz1c ?
[Sony Cross-Device General] JDC2389:
Like they said xz1c camera closes with unknown error, I copied all the files manually and did what was said like the other guy, make an edit so other people don't waste time trying it, it takes no time to say it doesn't work.
[Sony Cross-Device General] vofferz:
I ran logcat while trying to start the Pie v2 (XZ3 port) in XZ1 Compact. As stated before, the app just stops with "Error: Unknown error" and closes.

Here's what the logcat says (only errors and fatal errors):

01-14 22:43:12.208 11671 11671 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.somc.hardware.camera.provider@1.0-service": cannot locate symbol "cameralight_displayflash_set_current" referenced by "/vendor/lib/libcammw.so"...
01-14 22:43:15.195 1520 1985 E ANDR-PERF-JNI: Iop tryGetService failed
01-14 22:43:15.217 11679 11679 E .android.camer: Not starting debugger since process cannot load the jdwp agent.
01-14 22:43:15.237 11679 11679 E .android.camer: Dex checksum does not match for dex: /system/framework/com.sonymobile.camera.addon_impl.jar.Expected: 3726747447, actual: 3259154773
01-14 22:43:15.275 11679 11699 E CameraApp: [PlatformCapability] Camera list could not be retrieved from camera device.
01-14 22:43:15.288 11679 11699 E CameraApp: [PlatformCapability] Camera list could not be retrieved from camera device.
01-14 22:43:16.430 1520 1913 E InputDispatcher: channel '82505da com.sonyericsson.android.camera/com.sonyericsson.android.camera.CameraActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-14 22:43:17.184 11723 11723 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.somc.hardware.camera.provider@1.0-service": cannot locate symbol "cameralight_displayflash_set_current" referenced by "/vendor/lib/libcammw.so"...

So, I'm not a developer or even have any idea about how to fix this, but maybe someone here could help? [MENTION=2902434]Pandemic[/MENTION] or [MENTION=5327840]karrouma[/MENTION] would you have any idea how to try fixing it? I know (or at least assume) you don't have XZ1C devices yourself so it's probably impossible for you to test things, but I could try something if I get a hint or few...

Edit: it seems that the error "InputDispatcher: channel '82505da com.sonyericsson.android.camera/com.sonyericsson.android.camera.CameraActivity (server)' ~ Channel is unrecoverably broken and will be disposed!" (or similar) is also given with the stock xz1c camera for my setup when the camera works just fine, so it's probably not the issue here.

The error "dex checksum mismatch" and FATAL error "CANNOT LINK EXECUTABLE" don't show up with the working stock camera. Neither of the files mentioned in the FATAL error don't seem to be included in the zip for the port...
[Sony Cross-Device General] karrouma:
Xz1c use differant libcameralight.so file

Try to replace by your xz1c original file

Thank you
[Sony Cross-Device General] Sgellz:
new

Has this been updated again 2019 ? And do I just flash file only xzp
[Sony Cross-Device General] vofferz:
Thanks. I deleted both libcameralight.so files from the port files and now the camera starts and seems to work fine after flashing (I made a magisk module out of it).

Can't say that the image quality is better with the port though...

Also, it seems that the camera ui is same with both XZ1C and XZ3 Pie, so it's hard to say if the port installed. All the files at least are replaced by the ones in the zip, so I guess it did.

I renamed the SemcCameraUI-xxhdpi-release folder and file into SemcCameraUI-xhdpi-release to match the files on XZ1C and made the magisk module to automatically replace the whole folder so that the oat/arm-folders are removed and replaced with the lib folder of the port.

Also removed the sound mod.

Also the video image enchantment breaks (crashes when going to settings / display / video image enchantment) with the port files, even though it works without them (DRM keys restored and a secd ignore unlock patch flashed). I removed the ImageEnchancer folders and com.sonymobile.imageenhancer_impl.jar from framework so it wouldn't crash. I think that the imageenchancer.apk only affects the Video Image Enchantment (X-reality) so it doesn't have anything to do with photo quality(?).

Anyway, I have to say I don't see any real improvement in photo quality on Auto settings... Tried many different versions with and without the ImageEnchancer - no difference.

I'm having trouble to upload the test images here, so if someone wants to compare, I can probably send them later.

Also if someone wants to compare themself and try the magisk module with the modifications I made to prevent the error when starting the Camera / Video enchantment, I can send that too.

It's also possible that I have made some mistake and that's why I can't see the difference in quality, but all the files are updated with the module so I think it's not that.
[Sony Cross-Device General] karrouma:
For the Video Image Enchantment it is from xz3z i will replace by xzp one. it doesn't have anything to do with photo quality it is for album app.

Thank you for your remark
[Sony Cross-Device General] immelman3:
[MENTION=7803472]vofferz[/MENTION] would u mind sharing a zip/magisk for the file you are using?

I've been tried to brutally copy files from original firmware and signing them but I am definetely missing some .so.
[Sony Cross-Device General] vofferz:
Sure. You can find it here: http://aeitis.org/CameraPort/Magisk_XZ3Camera_for_XZ1C.zip

It's the same as [MENTION=5327840]karrouma[/MENTION]'s v2 Pie in the first post but I deleted the sound mod file, ImageEnchancer files and the libcameralight.so so that the Camera starts in XZ1C. as it uses the original stock files for them. Also the priv-app/SemcCameraUI-xxhdpi-release (and the .apk inside) has been renamed into SemcCameraUI-xhdpi-release to match the folder/apk in XZ1C.

As I stated earlier, I could'n see any improvement in image quality though so I don't know if it's of any use.

There is one photo for comparison in the same folder (http://aeitis.org/CameraPort/) taken with stock camera and the port. It's taken with the camera sitting as still as possible on the table, so I don't know if it's a perfect test shot though.
[Sony Cross-Device General] karrouma:
Try to copy media_profiles_v1.xml to odm/etc
[Sony Cross-Device General] immelman3:
Hey, thank you for your answer.

I am currently trying to port any stock camera to Phusson GSI's which, being GSI uses stock kernel, so it should work! Am I right?

Before I was using my custom made AEX rom with included stock camera as of https://github.com/russel5/android_vendor_sony_lilac so I think it should work somehow.

I've been looking at the logs but I am not able to figure out what's missing.

Both Yours or [MENTION=5327840]karrouma[/MENTION]'s mods complain for a missing libimageprocessor in lib64 so I extracted it from original firmware, but right now I can't proceed.

Can someone with spare time look at this log and tell me if something else is missing?

Shall I include some framework in the apks?
[Sony Cross-Device General] karrouma:
Thank you for all your info.

Libcamera..... 64 is from xz3 system

Didn't test it befor posting.
[Sony Cross-Device General] vofferz:
Do you know which media_profiles xml is used to determine the compression level for photos and bitrates for videos as there seems to be several files in different locations containing similar information?

I can find files in /system/etc, /vendor/etc and /vendor/odm/etc.

Filenames include media_profiles.xml, media_profiles_v1_0.xml, media_profiles_vendor.xml and media_profiles_v1_0.dtd.

Some of them contain more information than others.
[Sony Cross-Device General] karrouma:
media_profiles_v1_0.xml,
[Sony Cross-Device General] immelman3:
Sorry, are you suggesting to use the files from xz3 stock rom? :confused:
[Sony Cross-Device General] hohosanta:
immelman3 Can you share you custom AEX rom with stock camera???? It will be great for me. Because the one we have now on xz1c forum doesn't have stock camera.
[Sony Cross-Device General] karrouma:
if he want he can share his work here
[Sony Cross-Device General] raven213:
Any word on brighter flashlight?
[Sony Cross-Device General] karrouma:
don't have the right to post it in the tbread
[Sony Cross-Device General] vofferz:
Try here: https://xdaforums.com/xperia-xz1-compact/development/flashlight-low-flashlight-brightnress-t3872858
[Sony Cross-Device General] immelman3:
Hi,

since you requested it I am sharing this with you but please keep in mind that it has the same exact bugs as modpunk's lineage os, at least the one I have found, so:

-Audio sometimes not working and requires apps to be closed and open again (phone app too)

-Power button sometimes is not working so volume rocker wake is required

https://drive.google.com/open?id=1OkRG61DXUodVAOTOZnlL24mKiiHhPEAW

That's why I am currently using phusson's GSI as main driver.

I also please ask everyone NOT to post here in order to mantain this thread clean.

If someone want I can include building instruction.

Now, back on track,:) [MENTION=5327840]karrouma[/MENTION] Do you modify your releases starting from sony's one? Include framework's jar?

Is anyone using this releases on any rom other than the stock one?

Sorry, it's my first sony since sp and I am still trying to figure out stuff:eek:
[Sony Cross-Device General] Indashio:
First working version Google Camera 6.1 on Xperia. Some option still not working. Tested o XZ Premium I have set in build.prop device name Pixel XL but maybe working normally. Maybe someone will be interested in moving with all function to our devices.

[MENTION=5327840]karrouma[/MENTION] ? What do you think ? There is a chance for the night sight mode ?

Not working:

- Portrait Mode

- Night sight mode

- Camera video working with interface Pixel 1 but then taking pictures not wotrking.

https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_RP1_V1.3.0-BSG.apk
[Sony Cross-Device General] karrouma:
When including framework selfie cam crash

I am working on a solution when have time
[Sony Cross-Device General] asobi01:
HDR+ mode working ?
[Sony Cross-Device General] karrouma:
no

back cam 8mp
[Sony Cross-Device General] gacky1601:
would it work on GSI roms(Pixel Experience)?
[Sony Cross-Device General] highgel:
how to silent this cam?
[Sony Cross-Device General] Alvian_P:
Silent your phone, camera also silent
[Sony Cross-Device General] steso90:
Nothing new on making bitrate higher? [MENTION=5327840]karrouma[/MENTION]
[Sony Cross-Device General] karrouma:
Till now no. But i will take a look
[Sony Cross-Device General] belovank@gmail.com:
Xperia X works?
[Sony Cross-Device General] karrouma:
new version for pie V3

thank you all for sharing my works
[Sony Cross-Device General] LazerL0rd:
Any changes or just app update? I misunderstood the OP changelog, sorry.
[Sony Cross-Device General] karrouma:
app updated

and modified some files in vendor
[Sony Cross-Device General] Pandemic:
any news for XZ2 [MENTION=5327840]karrouma[/MENTION] ? i sended you the camera file
[Sony Cross-Device General] karrouma:
Didn't have a flashable for xz2 a/b partition.

I think it is system/system
[Sony Cross-Device General] Pandemic:
Oke and yes its system/system ;)
[Sony Cross-Device General] wyt18:
does anyone have a ready made magisk module for v3 pie? thanks!
[Sony Cross-Device General] aleks2405:
HI! Nice work! How to delete this mod, is any uninstall for it. Thank You in advance!

I have xz1 dual oreo;)
[Sony Cross-Device General] Mara-X:
I would love a magisk module with the latest pie version, too :) Thanks!
[Sony Cross-Device General] Mara-X:
For anyone with the XZ1c/XZ1, do the XZ3 port improve the camera quality considerably? I'm considering unlocking my bootloader, but would prefer not to, if it's just a minimal improvement :)
[Sony Cross-Device General] Indashio:
You've tried Xperia 10 camera
[Sony Cross-Device General] vanokurilov@gmail.com:
Will there be video recording in 4kHDR in the future?
[Sony Cross-Device General] karrouma:
Yes

Ported all files but not stable

Fc when taked some photo and video fc also

I am working on it

Maybe after 10 days i have some free time

But for pie latest one here is better
[Sony Cross-Device General] karrouma:
I will try when have time

Work/kids/family etc..

No free time
[Sony Cross-Device General] LazerL0rd:
When you're free just a request: HDR Video.
[Sony Cross-Device General] karrouma:
For hd and full hd maybe i can add it.

But for 4k i think i can't

I will find solution for full hd and hd
[Sony Cross-Device General] Tarch1:
V3 for Pie

Dosen't install in RR 7 GSI on Xperia XZ1
[Sony Cross-Device General] Pandemic:
Because its for Sony stock based roms and not for aosp or whatever ;)
[Sony Cross-Device General] Tarch1:
There Is any way to install It on this rom?
[Sony Cross-Device General] beammer335d:
Any new updates ??
[Sony Cross-Device General] karrouma:
i will try this week

but no major update. some newer files and app
[Sony Cross-Device General] yuezhengbaizhi:
does this mean that I don't need to back up TA partition any more if I want camera to work in the stock rom?
[Sony Cross-Device General] karrouma:
.ta partition is differant than this mod.

This mod is to have better quality and some modification. It co tIn xz3 files the newe algorith than xzp
[Sony Cross-Device General] yuezhengbaizhi:
so I still need to back up TA partition for camera to work in the stock rom?
[Sony Cross-Device General] aquaboy11:
On Pie the camera just works, so you don't have to use a DRM fix anymore. Backing up your TA is always a good idea though.
[Sony Cross-Device General] yuezhengbaizhi:
On the latest 47.2.A10.28 the camera just work?
[Sony Cross-Device General] karrouma:
yes it is working
[Sony Cross-Device General] Dark Pwince:
[MENTION=5327840]karrouma[/MENTION]

you are great work for port cam but

XZs user still waiting ,,.. so if you have some time ,please make this for XZs . :)
[Sony Cross-Device General] karrouma:
I am sorry my friend

Xzs has differant hardware and differant software.

Xzp has android 9 and xzs oreo

Differant files.

I have an uodate for xzp but no time for compiling fikes in one flashable file
[Sony Cross-Device General] kirkzp:
Further thoughts on quality of port to xz1c?

vofferz, I Appreciate the work to make this function on xz1c -- and to put it into a Magisk module -- and to share it. I don't see notable difference in quality in the two pics you shared a few months back. Any further thoughts? Anyone else been running this on xz1c and have perspective to share? I guess low-light is really the only situation where I am disappointed with stock performance...does this do better there? Thanks!
[Sony Cross-Device General] aquaboy11:
I could probably just put them in a magisk module and set the correct permissions if you'd like. Did the same with v3 ;p.
[Sony Cross-Device General] karrouma:
Okey. Do it:good:
[Sony Cross-Device General] snake218:
Any working version for XZ1?
[Sony Cross-Device General] steso90:
Any progress on 4khdr or any new features? [MENTION=5327840]karrouma[/MENTION]
[Sony Cross-Device General] karrouma:
It force close all time
[Sony Cross-Device General] steso90:
Thanks for your reply. Have you tried to make slowmotion time on 960fps longer? That would be awesome.

[MENTION=5327840]karrouma[/MENTION]
[Sony Cross-Device General] karrouma:
I tried

But not working well

The slomotion video taken stop after some time to rework with passing some scene and moment
[Sony Cross-Device General] steso90:
Ah okej thats tog bad. Maybe its a hardware limitation? Thanks for trying!
[Sony Cross-Device General] Indashio:
What do you think about Xperia 1 camera files? Possible to Port ?
[Sony Cross-Device General] karrouma:
Yes it is possible.

Ported some working files.

Applicstion works but when taking picture an error. Sd Card Unavailable. I will try to solve if i have z chance
[Sony Cross-Device General] Indashio:
You can do it ? :)
[Sony Cross-Device General] Indashio:
Cinema Pro it has very similar files Maybe with new camera Cinema Pro will gain access to all functions now some not working in this app Even after changing false to true On YouTube I see a few features that are not yet available to us. Have you looked at files Cinema pro? [MENTION=5327840]karrouma[/MENTION]
[Sony Cross-Device General] karrouma:
I will take a look

Also album didn't read all pictures before the app installed
[Sony Cross-Device General] Indashio:
[MENTION=5327840]karrouma[/MENTION] And how do you progress?
[Sony Cross-Device General] karrouma:
All time error

Camera open and got error

I am placing some libs files and others

I need the vendor / etc /media_profiles files
[Sony Cross-Device General] Indashio:
I have obtained this file for you

But I thing you need system/ etc not vendor yes ?

? in system/etc on Xperia 1 is not available media_profiles users Xperia 1 say

I replace too vendor odm /etc / media_profiles_V1_0 for change audio Below I leave a link to This two Xperia 1 files It may be useful to you
[Sony Cross-Device General] ΒΕΓΑ:
it doesnt work for xz1, flashed but nothing happened. then i placed all of these files manually. and nothing happened again. camera saves images slowly after this and no hdr video rec. same ui...
[Sony Cross-Device General] karrouma:
V4 pie beta FOR TEST

https://drive.google.com/file/d/1idD...ew?usp=sharing

Please do a backup for camera folder

It is for xz2

Xzp

Xz1

Please give right permission for folder and files

After extracting the .zip

Flashable will be soon and containe some X1 libs and files
[Sony Cross-Device General] Indashio:
V4 XZ Premium works without a problem :good:
[Sony Cross-Device General] snake218:
"file doesn't exist"
[Sony Cross-Device General] karrouma:
Oops

I will check the file

And will correct the link

https://drive.google.com/file/d/1idDr8hihnIVEVQw7YDqEA-ueiHdJ9aAc/view?usp=sharing

Try this
[Sony Cross-Device General] Pandemic:
[MENTION=5327840]karrouma[/MENTION] it have also smart launch ?
[Sony Cross-Device General] karrouma:
It is not the final version. I will try to add it in the final version if it work. In xz2 it work i think in xzp no
[Sony Cross-Device General] snake218:
Thanks, working fine now. I notice a little less noise in both daylight and night shots. (hope is not a placebo effect)

Im currently stock xz1 pie fw .62

I don't have services.jar patched, installed replacing only the folder provided. It's superuser mod really need?
[Sony Cross-Device General] Pandemic:
Xz3 have standard the steady shot so its not xz3 camera port bro, see exisyenz and use that camera and edit it for us xz2 users.
[Sony Cross-Device General] karrouma:
No, it work with all xzp xz1 xz2 and xz3 devices

Xz1c and xz3 should rename the cam app ftom xx to xxx or x
[Sony Cross-Device General] karrouma:
Thank you
[Sony Cross-Device General] haiha2001:
If X1 Camera App works in the future, can 30s exposure be possible?
[Sony Cross-Device General] karrouma:
Impossible
[Sony Cross-Device General] wyt18:
could someone make a magisk module of the latest v4 pie? thanks!
[Sony Cross-Device General] jlespiritu:
I installes v4 for oreo. What is the next step to update to v5? What isnthe difference aside from new camera app?