yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device Development Themes and Apps] chinmoy32:
[MENTION=5222845]peter.schwake@gmail.com[/MENTION]

Sorry for hijacking your thread to communicate with others :o

---------- Post added at 09:51 AM ---------- Previous post was at 09:43 AM ----------

Yeah, i figured that much.

I want to know how and exactly what did you edit to modify the hal for 8974 ??

About porting libs, tried all XZ and X performance libs all ways possible, did not work. :(
[Sony Cross-Device Development Themes and Apps] teddan:
I also have a red box, showing rec that disappear after 2 sec.

Also i don't know why but the automode gives very blurry images, the object that is in focus is ok but rest of image is not so ok...

Maybe i need to do a fresh install of rom?
[Sony Cross-Device Development Themes and Apps] Ukiya8:
I'm experiencing same issue, currently stock .305 w/ patched kernel, superuser mod and selinux disabled, I also compared the photo quality with my partner's Xperia Z5 Unit (Stock 100%), color wise the new update is a bit dull compared to stock camera of Sony, will do further testings tomorrow with sample :)

UPDATE: problem was with my lens cover, I did multiple shots and new update is more realistic and sharper :good::good::good:, however zoom is a bit more pixelated, same goes with stock (maybe we can't really get rid of this - sony issue *noise issue), also a suggestion can we possibly go higher than 8 default or 20? I read better quality is around 12 on some parts here in xda but that was ages ago and I'm just a noob chasing great guys here :)
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Hi peter.schwake@gmail.com

For about REC text randomly display when open camera. i think there is somthing wrong with "recording_indicator_rec". :)
[Sony Cross-Device Development Themes and Apps] teddan:
That's the same as i have 2
[Sony Cross-Device Development Themes and Apps] Hamidreza2010:
and also me
[Sony Cross-Device Development Themes and Apps] kevinkoo:
Do you have plan to migrate XZ Camera to X Performance?
[Sony Cross-Device Development Themes and Apps] karrouma:
X version should works
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Updated to v2.7F, Camera now starts normally.

- next Update for Xperia XZ planned for tomorrow
[Sony Cross-Device Development Themes and Apps] Wess.a:
Thanks, how can i flash it? Just dirty flash? Or should i wipe cache? Or what?
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
viewfinder_recording_indicator : android:visibility="visible" changed to "gone" :o
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
- clean app data (Camera, CameraCommon, Video ....)

- reboot to recovery

- flash it

- reboot

you can wipe cache/dalvik-cache but it gives no advantage :o :D
[Sony Cross-Device Development Themes and Apps] SebastianAlejandro:
Hi again! i flashed the new version and its working good, can u explain me a bit what are those changes? YUV444 and YUV2RGB are color or image processing?
[Sony Cross-Device Development Themes and Apps] karrouma:
Ok bro,

Waiting for a new update for XZ,

After updating my phone today to version 30.0.A.3.30 and flashing xz camera mod v3.0b , i got fc unfortunately camera has stpped,

But stock camera now is better than before without any mod, after flashing peter.schwake@gmail.com v3.0b for xz i got better picture in back cam than stock.

Thank you peter and waiting for tomorrow
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Ok I try to explain in English

YUV is a color space, used for image/video color.

The yuv model defines a color space in terms of one lumia (Y) and two chrominance (UV) components.

YUV420sp means 6 bytes per 4 pixels, semi planar

YUV444 means 12 bytes per 4 pixels

YUV2RGB makes the YUV444 to RGB conversion. Camera used 420sp before, so I needed to add this to make it working.
[Sony Cross-Device Development Themes and Apps] SebastianAlejandro:
Thanks for explain. With your info i can deduce that color processing is better with those changes.

I found this image that explain too a bit the difference between 420 and 444: https://upload.wikimedia.org/wikipedia/commons/0/06/Colorcomp.jpg
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Oh that means I need to update to this base, too.

Maybe I need some more time then. :o
[Sony Cross-Device Development Themes and Apps] karrouma:
Bro, i clear data and cache from camera and video and camera common then reflash the mod for xz, and flashed tweeks v2, now it is ok.

All are working fine now. Thank you

Latest camera app show battery % when lower than 15
[Sony Cross-Device Development Themes and Apps] p22446633:
Thanks for update, the weird recorder icon issue on start-up has solved.

Object Tracking focus is working fine, but when i try to turn that off and use touch focus, the camera will FC everytime.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
:crying: oh yes true... it is crazy... I fix a bug - and right after that there appears a new one...
[Sony Cross-Device Development Themes and Apps] _LLJY:
Welcome to coding XD always happens
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Hahahaha yes but the thing who makes it real worse is smali.... I mean it is sometimes more try&error than coding :laugh:
[Sony Cross-Device Development Themes and Apps] Soheil_rf:
I flashed v2.7F everything works well, but when I take photos with zoom than camera app got FC!
[Sony Cross-Device Development Themes and Apps] NexusGTS:
+1
[Sony Cross-Device Development Themes and Apps] p22446633:
Me too... Waiting for update :rolleyes:
[Sony Cross-Device Development Themes and Apps] karrouma:
[MENTION=5222845]peter.schwake@gmail.com[/MENTION]

Waiting for the update for xz today bro

Hope to be like z5 serie noice reduced

Adfing yuv and 440sp pixel RGB CONVERSION
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Me too, :(
[Sony Cross-Device Development Themes and Apps] nreuge:
Yes, get FC too with zoom.

[MENTION=5222845]peter.schwake@gmail.com[/MENTION]

[MENTION=5191252]chinmoy32[/MENTION] knows how to solve this issue, you can ask him...
[Sony Cross-Device Development Themes and Apps] chinmoy32:
Peter probably committed all the edits/ modifications of my version 5 APK.

On the 2nd post of my thread there are updated codes after version 6's release.

There lies the solution for the zooming FC issue.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Had forget you already have tried before :o

I don´t included everything 1:1, cause for a complete unlocked app your work is already perfect. :p

by the way 2.8F is online - bugs fixed
[Sony Cross-Device Development Themes and Apps] Ukiya8:
can't wait to test 2.8F tomorrow! :)
[Sony Cross-Device Development Themes and Apps] dodo1515:
Thanks for your work,Apps fc on 2.8F(sound photo,multicamera and style portrait..)
[Sony Cross-Device Development Themes and Apps] SebastianAlejandro:
Now bugs like fc when taking photos without object tracking and zoom are gone. Good job and keep the good way :).
[Sony Cross-Device Development Themes and Apps] nreuge:
Yes, timeshift burst does not work too.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Which was the last version of my camera, where these addons were working ?
[Sony Cross-Device Development Themes and Apps] dodo1515:
2.7F
[Sony Cross-Device Development Themes and Apps] theduke7:
for me only sound photo and style portrait other apps work fine (defocus, timeshift burst, timeshift video and time lapse ...) , i don't use dual camera so i wouldn't know.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
2.8.1F fixes addons hopefully
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Sadly newest version still FC on StylePortrait

One bug fixed, the other one shall rise. :-?
[Sony Cross-Device Development Themes and Apps] nreuge:
And Timeshift burst still FC too.

[MENTION=5222845]peter.schwake@gmail.com[/MENTION], keep up the good work :)
[Sony Cross-Device Development Themes and Apps] John Olien:
Tapping anywhere using the front cam causes fc.

Anyone having this issue as well?

I'm using a Z5 Compact on Stock .253 with Superusermod.

Edit: No issues on video using front cam.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Have tried, but for me it is working... Try clean app caches, clean dalvik cache...
[Sony Cross-Device Development Themes and Apps] sepehr.sd:
Plz add custom speed shuter it's best future of xz
[Sony Cross-Device Development Themes and Apps] theduke7:
yes you're right.

i thought it worked when it opened but it FCs upon taking a picture.
[Sony Cross-Device Development Themes and Apps] John Olien:
I tried that and a clean installation all together but still fc. :(

Also turning off PDAF Tracking and using touch to focus crashes the camera as well.

I'll update to 305 later and see if that solves it.
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Just weird. v2.8.1 still got FC with zoom camera when taking pictures. And camera got battery drain too much i think.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Maybe I forget to change apk inside installer - cause my app works well, only timeshift burst fc...
[Sony Cross-Device Development Themes and Apps] NexusGTS:
Zoom working fine here . No fc on v2.8.1
[Sony Cross-Device Development Themes and Apps] zemetal:
in v2.8.1F, on manual and superior auto, when predictive auto focus is switched off, touch focus cause camera to FC, z4 e6553 stock .305
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Tried to clear data and cache still FC when zooming. It's strange
[Sony Cross-Device Development Themes and Apps] p22446633:
Stock rom, updated from v2.7 to 2.8.1

Cleaned cache of three apps, cleaned dalvik cache

Still got FC when zooming

FC when I use touch focus

Can I roll back to v2.6 .... ? :crying:
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
FC

I have checked my coding and it should work. I haven´t got this bug , so this apk should work for you, too. :)

Just put apk to priv-app/SemcCameraUI-xxhdpi-release and set the right permissions (0644). If it solve the problem ( or not) please report me ;)
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Of course you can. But maybe try changing apk first :o
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
thank you for your hard worked. it's seem manual speed setting won't work. i've tried to take picture with high speed but the picture not capture at that speed.
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Manual Shutter Speed didn´t work for Z5/Z4, but you can see the option to change it- depends on Sony´s Driver side restrictions.

The good news are - it will be unlocked with Android 7 ;)

I wrote it somewhere in the OP as I remeber . :)

For Xperia XZ it is woking ;)
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Good job. Zooming FC has gone but timeshift burst, style portrait still FC. :confused:
[Sony Cross-Device Development Themes and Apps] Wess.a:
Zooming fc has gone

Touch to focus fc has gone
[Sony Cross-Device Development Themes and Apps] p22446633:
Thanks! the problem has solved!
[Sony Cross-Device Development Themes and Apps] mele80:
XZ™ Camera Project v2.8.1F - [ XZ/X/Z5-Series/Z4 ]

Just installed tweaks and 2.8.1. Timeshift burst works and no fc with camera zoom
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
style portrait - maybe you would like to try the xz one ?

https://drive.google.com/open?id=0B9QQMZsv2eHIOThhUUVJejNDQkE

timeshift burst - ...... as I remember Z5 Camera has a lot of files included for timeshift burst. On the newer apk they are totally removed by Sony. Maybe this causes the problems. I will try to re-include.
[Sony Cross-Device Development Themes and Apps] dodo1515:
Thanks [MENTION=5222845]peter.schwake@gmail.com[/MENTION],no more fc, all apps work perfect on 2.8.1F
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
:o I really put the wrong apk in the installer first - crazy :silly:
[Sony Cross-Device Development Themes and Apps] zemetal:
flashed v2.8.1 all works fine on camera side, style portrait and timeshift burst FC, e6553 z3+ MM: .305

any idea why? O.o
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Have you tried xz style portrait apk? Posted a download link today... :)
[Sony Cross-Device Development Themes and Apps] zemetal:
Sure did, that's why am asking xD seems weird

well, i'll try the mod on Kryptonian Rom today, i hope it works :D :D
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
Camera got battery drain too much.
[Sony Cross-Device Development Themes and Apps] karrouma:
It is normal on all devices

---------- Post added at 09:06 AM ---------- Previous post was at 08:59 AM ----------

@peter.schwake@gmail.com

Bro , when checking your v2.8.1f for z5 series i found a file called libyuv2rgb.so in lib folder.

If i copy it in my xz to lib folder and give it right permission the 444 works with the plase of 420 ps (i see arm/v7 in the file but z5 and xz use arm /v8a)

Or should copy another file with like msm8994 to rename to msm8996.xml in etc

It helps to reduce some grain ??
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
It is a little bit more :p inside the apk you find a folder called raw. Into this folder I added 2 files : opengl_yuv444_fragment.glsl and yuv2rgb.glsl.

Then I changed the smali instructions from 420semiplanar to 444. - This is the necessary part, cause without app creates 420semiplanar color space. If you add only a lib, it don't get used.

XZ and Z5 are able to use arm64-v8a, armebi-v7a, armebi. Take a look at your build.prop: (ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi).

The xml file define the camera sensor and is rewritten from the XZ to Z5. So you already have it.

The noise reduction is a XZ port. Reduce ISO to reduce noise ;)
[Sony Cross-Device Development Themes and Apps] karrouma:
Ok bro,

About 444 sp i will wait your new version for xz

Or new apk

I triyed latest version fir z5 in my xz i got cameea used by other app.

Now i use ur v3.0b for xz clean without any fc and v2 tweeks
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Have you renamed the z5 file? And add all libs? With right names arm / arm64 for folders inside lib?
[Sony Cross-Device Development Themes and Apps] karrouma:
Yes and not working
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Crazy :silly: I think it is caused by some changes I did to improve stability for Z5 series.

But thats no problem at all, I use 3 different projects :)
[Sony Cross-Device Development Themes and Apps] karrouma:
Now i use xz serie apk and the latest libs of z5

Pictures are great

Any solution to reduce grain in picture when zooming
[Sony Cross-Device Development Themes and Apps] chinmoy32:
I dont have any problem , all the addons are working just fine :) :good:
[Sony Cross-Device Development Themes and Apps] LMcR92:
Grain is natural when zooming on most cameras, also any shaking will make horrible shots. Take a high pixel shot and crop works 10x better than using zoom.

---------- Post added at 06:39 AM ---------- Previous post was at 06:35 AM ----------

Yeah that is normal. I use my camera for 3-10 minutes and it hits battery hard. It's a very intense action on the CPU and GPU. Made worse on higher pixel, HD and 4k video you can watch it drop. :silly:

To Op Will there be the old 16Mp 16/9 mode added? And possibly a 20.7 16/9 like in the older unlocked xposed mod had be a nice edition. :angel:

Dis try this mod in the first edition but I had more grain and looked worse than stock. I will test when it is daytime where I am for optimal lighting and post some shots. Keep up the good work :svetius:
[Sony Cross-Device Development Themes and Apps] nreuge:
I've retested these versions today:

v2.8F: Zoom ok, timeshifit burst FC

v2.8.1F: Zoom FC, timeshifit burst FC
[Sony Cross-Device Development Themes and Apps] LMcR92:
No forced close on my side. I did install on a clean system, maybe because I installed the v2 prop and 2.8.1 fresh.
[Sony Cross-Device Development Themes and Apps] nreuge:
I think my issues with this mod come the rom Moonwalker Amaluna Pro-Spect Ultimate X, which has already some camera files/libs changed and/or modified compared to stock.

Bro [MENTION=2902434]Pandemic[/MENTION], can you tell us what you have changed compared to stock?

[MENTION=5222845]peter.schwake@gmail.com[/MENTION]

Maybe can you add all unmodified camera libs/files in your mod, in this way all of us would be sure to get the same base whatever the rom...
[Sony Cross-Device Development Themes and Apps] Pandemic:
Bro [MENTION=5231789]nreuge[/MENTION] i did nothing related to camera i just use stock so far i can remember :)

Verstuurd vanaf mijn E6653 met Tapatalk
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
[MENTION=5231789]nreuge[/MENTION] maybe you didn't use the Re-release. :)

News:

- ETA v3.0F later today

- Update for Z5 and XZ

- New base 39.0.A.3.30

- Various small improvements
[Sony Cross-Device Development Themes and Apps] luvmdy:
Goodjob,bro. I'm curious to see what changes you've made, and look forward to you can post a video tutorial of how you change codes in the apk and libs one day. Although I am new, but I also want to have a try, I think it's very interesting.
[Sony Cross-Device Development Themes and Apps] nreuge:
I indeed missed the re-release :eek:

Zoom and timeshift burst are now working fine :D

Now we are tomorrow!!!! :p

No, seriously, take your time ^^
[Sony Cross-Device Development Themes and Apps] sepehr.sd:
do shuter speed work on 2.8.1f ?
[Sony Cross-Device Development Themes and Apps] Ptamigi:
Read the first post Bro;)

No don't work
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
:laugh: Last time I put the wrong APK in the installer, so this time I didn´t finish installer in the night :o
[Sony Cross-Device Development Themes and Apps] karrouma:
Thank you bro for your hard work.

Thank you for your time .

My xz now have a beautifull camera and nice pictures.

Tanks for your mod bro you are a genius.

Latest sony flagship have now an unlock camera and really now better than other camera phone.

I replaced all files manually (but in etc folder when replacing media_profiles.xml i got bootloop my phone didn't start)

i get error with the installer i try manual root file manager to replace files

Got fc when switching to front camera in video in photo it works perfect

V3.1nxt is working thank you bro
[Sony Cross-Device Development Themes and Apps] p22446633:
Updated my Z5P to 3.X, everything is working fine so far
[Sony Cross-Device Development Themes and Apps] luvmdy:
Did your style portal work?
[Sony Cross-Device Development Themes and Apps] karrouma:
For style portrait use style portrait for xz.

Who use style portrait or timeshift

Say tanks to our bro peter for his work and don't blame if style portrait or somethink who didn't use didn't work (there are many other app in store like style portrait - or if u use ot onve [MENTION=5290311]month[/MENTION])
[Sony Cross-Device Development Themes and Apps] luvmdy:
I did, but still FC. I have cleared data before install style portrait for xz. Why did your work but I can't?
[Sony Cross-Device Development Themes and Apps] chinmoy32:
its nice to see you still fighting the good fight :) :good:

downloading them , will try em and report here accordingly .

thanks :)
[Sony Cross-Device Development Themes and Apps] PeppeBove:
Good job! Great mod! ?

Just few bugs on my Z5C:

When i took ISO 3600 sometimes it shoot at 1600 (and everytime it never remember that option when i return on camera app).

On option we have 1sec and 1/4 as timing exposition, but on my z5c maximum is 1/8

Inviato dal mio E5823 utilizzando Tapatalk
[Sony Cross-Device Development Themes and Apps] dodo1515:
Sorry l thought it was for z5..
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
XZ Camera is for Z5 / Z5P

XC Camera is for Z5C

XperiaX is for X

Only Xperia X can use 13mp front cam.

For z5 i needed to remove 13mp front cam value (otherwise front cam fc).

FOR ALL:

Please... Read the OP... Ask if you have questions...

I try to answer all questions. And I will answer same questions again and again. But please don't flash something if you are not sure. Never. If you flash wrong Camera from here, you don't get real problems, but... You know what I mean.
[Sony Cross-Device Development Themes and Apps] karrouma:
Thank you

I try it in my stck xperia x i got app not installed

I will try tomorrow after unlocking and root my xperia x
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
Yes, on stock you cannot simply install apk, because I recompile with original signature and version number.
[Sony Cross-Device Development Themes and Apps] chinmoy32:
Its totally working great on my Z5 dual E6683

Thanks man, for the MOD

Its totally working great on my Z5 dual E6683

- no FCs

- no lag on savings,

- all SCN are working properly.

- viewfinder is fluid enough.

- ISO, HDR is working properly.

- Video is working nicely.

Not sure about any image quality improvement though as I did not find any quality change comparing with stock Z5 camera from .253 MM. Besides that excellent work :good:
[Sony Cross-Device Development Themes and Apps] karrouma:
Xperia x version is working with rooted xperia x.

I try it in my wife xperia x after root .

No lag

Scn unlocked

Iso unlocked

Thank you
[Sony Cross-Device Development Themes and Apps] furkandeger:
Now If we can only get manual focus and shutter speed to work... :D:D
[Sony Cross-Device Development Themes and Apps] devilmaycry2020:
For me Xz cam for z5 still lagging when saving. It took about over 1 second
[Sony Cross-Device Development Themes and Apps] noobster213:
I'm using the XPower 4.0 for Z5 Compact with Androplus v36 kernel.

I tried flashing the app after deleting the app data of the old camera app as mentioned. But when I turn on the camera after reboot, it says "The camera may be in use by another application. Please close the other application and try again."

Flashing this camera mod on stock OS gave me no problems so I am not sure if the fact that my current ROM is deodexed is the root of the issue. :(
[Sony Cross-Device Development Themes and Apps] Pandemic:
[MENTION=5417981]noobster213[/MENTION]

Why people like you quoting the entire 1st post -__-

Please edit it.
[Sony Cross-Device Development Themes and Apps] noobster213:
I'm sorry about that. I have edited my initial post.
[Sony Cross-Device Development Themes and Apps] TheEndHK:
Do you install superusermod ....? try it first.
[Sony Cross-Device Development Themes and Apps] noobster213:
Oh I have not. I'll go check it out and get back to you. Thanks! :)
[Sony Cross-Device Development Themes and Apps] peter.schwake@gmail.com:
No, my system is deodexed, too.

Maybe ROM has included Camera related mods/ports.

First idea to fix:

- Be shure you use XC-Camera,

- use superusermode

- Try.... if working please report me

- Clear Caches of Camera Apps

- Extract Apk from zip

- Pull only Apk manually to /system/priv-app/SemcCameraUI-generic-xhdpi-release/

( if folder have different name, please rename)

- Set permission for apk » 0644

- Set permission for folder » 0755

- RESTART Device now, Test and then hopefully report me working. :laugh:

Please
[Sony Cross-Device Development Themes and Apps] noobster213:
Hey thanks for the reply bro. I did exactly as you instructed however it still gives me the same problem. :(
[Sony Cross-Device Development Themes and Apps] TheEndHK:
I'm on XPower V3 Full with stock kernel, no problem here. Try disable all xposed modules only superusermod active or maybe Androplus v36 conflicted with it.