[MOD/KERNEL][13-12-2013] Zoe Camera/Kernel parts porting from HTC Desire 601 - v0.4

Search This thread

pirlano

Senior Member
About the mod:

This is a port of HTC Desire 601 Zoe Camera. To make it working i used HTC One Mini kernel source to update camera parts.

Compatibility:

Compatible with Android 4.2.2 with Sense 5 only.

Bugs:

-Zoom->It's related to our Adreno 2xx instead of Adreno 3xx from all native Zoe devices.
Adreno driver update is causing crash, so do not use zoom with Source v2.1, i'm trying to disable it
-Cannot shoot Zoe 2 times, it will hangs on file saving, you need to disable and re-enable Zoe every time
-Original music player stops working occasionally
You tell me.

Kernel source:

https://github.com/anoane/ville-4.2.2-sense5-evitaul_porting/tree/4.2.2_zara_zoe

Download:

Kernel v0.4: fabane_ville_07_12_13_zara_zoe_1.zip 11.5 MB
https://mega.co.nz/#!iFdUGazb!PjPjhQtXvIk6YdvDMJSlhiPP7IUaiwwjTVZsOEkmYXM

HOS_Zoe_601 - v0.4.zip 22.5 MB
https://mega.co.nz/#!HBt2jKiQ!AMNvi1yKxtedxVHwUyZEOH13i55ytQUmroDYEWgH8iE

Kernel: fabane_ville_04_12_13_zara_zoe_2.zip 11.5 MB
https://mega.co.nz/#!KA0wyBja!GG2RxAco2_qbDZMhNUeXUGK8xKl85ploqJEHnFnQSX4


HOS_Zoe_601 - v0.3.zip 22.5 MB
https://mega.co.nz/#!mF8iWKDY!ZImO7DHI3djYvrknyVDAYwqfJXcDvQUTp-jz8MTWxx0


Mod: HOS_Zoe_601 - v0.1.zip 22.2 MB
https://mega.co.nz/#!rI0RXRpQ!UYMptBaJXUBBnAwsjhx8XEzKZYZwWgybGxFQR7eoXD0


you must flash both kernel and mod in recovery

Back to stock:

Install stock kernel
or
fabane v1.1: https://mega.co.nz/#!oVdSyJaY!LCxmKX3e6_UOYCIPUgHqJkHcM8pagVvgZTbb6nv8vrc
or
ElementalX 6.1: http://goo.im/devs/flar2/OneS/ElementalX-ville-6.1.zip

and

HOS_orig_camera(back-to-stock).zip 10.4 MB
https://mega.co.nz/#!LVc3nKoL!Ko41TUNX6hBQd0vm2eUVPSkJIANQbfo6fvHbjpJhniE

Credits:

HTC, @ImagioX1, @TheEndHK, @SPSPaWn (for Zara system dump and AWB calibration files -> Help him to fix recovery for Zara! http://xdaforums.com/showthread.php?t=2528645 )

Changelog:

v0.1: private release
v0.2: first public release, fix display backlight in camera
v0.3: more camera libs
v0.4: fixed awb calibration and kernel updated with htc one mini ota update

Donation:

http://xdaforums.com/donatetome.php?u=2351000

Help me to fix my broken screen, and buy an original HTC MHL Cable and an original HTC One X+ 2100mha battery (buyed 2 months ago but never arrived), i'll try to add full battery support for One S :)
 
Last edited:

RichardW1992

Senior Member
Jan 9, 2013
155
40
Just tried this on Maximus HD...

Flashed the kernel first, followed by the mod.

Camera app opens but now crashes whenever I try and press on the options menu? Zoom is fully functioning.

May I ask what this mod was meant to provide? ie enhanced quality? Or the "Zoe" animated still feature?

Edit:

Bugs aside the only differences I have noticed are drastically improved low light capture quality. Even in dark rooms indoors the camera seems to create a fairly bright image.
 
Last edited:

pirlano

Senior Member
I tryed allmost on same base (source 2.1) and it crashes (takes me out from cam app) when try to take a pic

mmm, i think it's because of updated Adreno driver (they cause a crash instead of bugged zoomed pictures), i use MaximusHD

Just tried this on Maximus HD...

Flashed the kernel first, followed by the mod.

Camera app opens but now crashes whenever I try and press on the options menu? Zoom is fully functioning.

May I ask what this mod was meant to provide? ie enhanced quality? Or the "Zoe" animated still feature?

Edit:

Bugs aside the only differences I have noticed are drastically improved low light capture quality. Even in dark rooms indoors the camera seems to create a fairly bright image.

really strange, zoom is working good for video mode only
btw there is no quality mod inside, just a first zoe test
we have to fix zoom (buffer problem) first, than we can continue to improve quality, since i don't like half working mods, but since someone asked me to release it...i did it :)
 
Last edited:

RichardW1992

Senior Member
Jan 9, 2013
155
40
mmm, i think it's because of updated Adreno driver (they cause a crash instead of bugged zoomed pictures), i use MaximusHD



really strange, zoom is working good for video mode only
btw there is no quality mod inside, just a first zoe test
we have to fix zoom (buffer problem) first, than we can continue to improve quality, since i don't like half working mods, but since someone asked me to release it...i did it :)

I don't appear to have any working Zoe features that I am aware of, how would I test this out?

Zoom is working fine for both video and stills. Just the options menu causes a force close.


Edit:

I tried flashing you v0.2 mod from the previous camera mod thread you had running on top of this mod. That resulted in a force close as soon as I opened the camera, so no camera at all. Reflashing the Zoe mod took me back to working camera but no options menu.

If I wanted to revert back to stock for the meantime, would the back-to-stock.zip from your other thread do the job? Or would that also interfere with the Zoe mod from here I have just flashed?

Thanks for all the work you are putting in to these mods kernels and ROMs!
 
Last edited:

pirlano

Senior Member
I don't appear to have any working Zoe features that I am aware of, how would I test this out?

Zoom is working fine for both video and stills. Just the options menu causes a force close.


Edit:

I tried flashing you v0.2 mod from the previous camera mod thread you had running on top of this mod. That resulted in a force close as soon as I opened the camera, so no camera at all. Reflashing the Zoe mod took me back to working camera but no options menu.

If I wanted to revert back to stock for the meantime, would the back-to-stock.zip from your other thread do the job? Or would that also interfere with the Zoe mod from here I have just flashed?

Thanks for all the work you are putting in to these mods kernels and ROMs!

Original camera needs original libs and original kernel
Zoe camera needs modded libs and zoe kernel

Try to reflash zoe mod, reflash zoe kernel, than wipe cache and dalvik cache, i think it's the old camera cache that cause crash when opening options

I'll do a back-to-stock (be sure to reflash also a stock/fabane/elementalX kernel)
 
  • Like
Reactions: Hai96

TheEndHK

Senior Member
Apr 25, 2011
2,668
808
but since someone asked me to release it...i did it :)

:laugh::good: lol thanks pirlano for your hard work.

Does the Zoe working right now? or just a tech demo to show the camera would run?

Zoom isn't really that needed on a 8M cmos. On Pureview808/1020 they got a 41M CMOS which is another story and ideal for digital zoom(many pixels for cropping).
 

pirlano

Senior Member
:laugh::good: lol thanks pirlano for your hard work.

Does the Zoe working right now? or just a tech demo to show the camera would run?

Zoom isn't really that needed on a 8M cmos. On Pureview808/1020 they got a 41M CMOS which is another story and ideal for digital zoom(many pixels for cropping).

Yes, everything is working (zoom excluded) :)

new v0.3, added more camera files:
HOS_Zoe_601 - v0.3.zip 22.5 MB
https://mega.co.nz/#!mF8iWKDY!ZImO7DHI3djYvrknyVDAYwqfJXcDvQUTp-jz8MTWxx0

back-to-stock added on first post
@TheEndHK: HDR seems improved to me :)
 

RichardW1992

Senior Member
Jan 9, 2013
155
40
Yes, everything is working (zoom excluded) :)

new v0.3, added more camera files:
HOS_Zoe_601 - v0.3.zip 22.5 MB
https://mega.co.nz/#!mF8iWKDY!ZImO7DHI3djYvrknyVDAYwqfJXcDvQUTp-jz8MTWxx0

back-to-stock added on first post

@TheEndHK: HDR seems improved to me :)

Still no functioning settings menu for v0.3 :( tried wiping cache and flashing kernel and mod multiple times but no dice...

I am assuming to enable Zoe you have to check something in the settings menu which is why I am not seeing any differences?

For the record though your fabane kernel is the only one that provides me with 'good' (normal) call quality on Maximus, even elementalX 6.1 with your fix added has dodgy sound :( Looks my phone likes some of your development and not others!

Keep up the good work :)
 

TheEndHK

Senior Member
Apr 25, 2011
2,668
808
Still no functioning settings menu for v0.3 :( tried wiping cache and flashing kernel and mod multiple times but no dice...

I am assuming to enable Zoe you have to check something in the settings menu which is why I am not seeing any differences?

For the record though your fabane kernel is the only one that provides me with 'good' (normal) call quality on Maximus, even elementalX 6.1 with your fix added has dodgy sound :( Looks my phone likes some of your development and not others!

Keep up the good work :)

You just need to click the Zoe on top of the screen, no need to go in the menu.

This kernel indeed comes from One Mini 4.2.2, so it's different and in theory, should be more updated. Maybe it finally fixed the call problem, we can recommend it for more guys to testing.

I just flashed my TWRP backup of MagioRom RC4 and flashed this camera mod(v03) and kernel in recovery. It works! Both Zoe and camera menu. I have no problem to access the menu in camera at all, no FC issue to me.
 
Last edited:

TheEndHK

Senior Member
Apr 25, 2011
2,668
808
Yes, everything is working (zoom excluded) :)

new v0.3, added more camera files:
HOS_Zoe_601 - v0.3.zip 22.5 MB
https://mega.co.nz/#!mF8iWKDY!ZImO7DHI3djYvrknyVDAYwqfJXcDvQUTp-jz8MTWxx0

back-to-stock added on first post

@TheEndHK: HDR seems improved to me :)

wow ... really awesome....

I just tested it out. Oh..my god... Zoe works but there is still a problem in Zoe, the video it shoot in Zoe mode is 720p not 1080p.

http://xdaforums.com/showpost.php?p=46575875&postcount=48
Some old method here still work.

1. adb push libcimagegif-jni.so /system/lib
2. adb push libcodecjpeg.so /system/lib
3. adb push libcodecwrapper.so /system/lib
4. adb push libscr-bcr_camdict.so /system/lib

These lib files is okay, I've tested it, they are from HTC One 4.2.2 so not surprised still working. I used the HTC gallery and click save frame in Zoe video, yes the image is saved at 4.1M resolution.

However, the media_profiles.xml I provided don't work with your mod camera in Zoe mode will force close at the end. I will try to fix it if possible so that we can continue to shoot 1080p at 40Mbit max.
 

pirlano

Senior Member
wow ... really awesome....

I just tested it out. Oh..my god... Zoe works but there is still a problem in Zoe, the video it shoot in Zoe mode is 720p not 1080p.

http://xdaforums.com/showpost.php?p=46575875&postcount=48
Some old method here still work.

1. adb push libcimagegif-jni.so /system/lib
2. adb push libcodecjpeg.so /system/lib
3. adb push libcodecwrapper.so /system/lib
4. adb push libscr-bcr_camdict.so /system/lib

These lib files is okay, I've tested it, they are from HTC One 4.2.2 so not surprised still working. I used the HTC gallery and click save frame in Zoe video, yes the image is saved at 4.1M resolution.

However, the media_profiles.xml I provided don't work with your mod camera in Zoe mode will force close at the end. I will try to fix it if possible so that we can continue to shoot 1080p at 40Mbit max.

I want to fix bad awb_calib and disable zoom (in lib) than if quality is ok, I'll port camera quality mod.
I'll look if Zoe resolution is only a software lock ;)
 

TheEndHK

Senior Member
Apr 25, 2011
2,668
808
I want to fix bad awb_calib and disable zoom (in lib) than if quality is ok, I'll port camera quality mod.
I'll look if Zoe resolution is only a software lock ;)

I think I know why set 1080P 40Mbit in media_profiles.xml will force close in Zoe mode because your Zoe currently only shoot at 720p. It will first read out the 40Mbit setting off media_profiles.xml from the 1080P line but ended up decide to shoot it in 720p for some unknown reasons, so it must result in crash.

In Qualcomm platform, videobit is controlled/limited by CPU not from imagechip. Our imagechip will provide some help during in video like fast focus but no videobit. To my understanding, S4 CPU is limited to 20Mbit max at 720p and 40Mbit max at 1080P. So, when you tell the 720p to do 40Mbit it will FC. Without running Zoe, I've tested the 1080P video in normal mode still can capture at 40Mbit in your mod camera.

Wish you can change the Zoe video to 1080P and port the camera quality mod. If possible, please change the 16:9 4M to 16:9 5M because our CMOS and imagechip is capable to do 1080P and 16:9 5M photo natively. 4M@16:9 will be resized by HTC suck algorithm and lost huge quality.


Added: I meet a bug, do you have it? I reflashed my MagioRom RC4 backup from TWRP still got the problem. I found I can't shoot Zoe two times it will freeze the camera(stuck at saving files). I can shoot two times but I will need to disable Zoe mode first and enable Zoe again. Or quit the camera everytime after I shoot Zoe and re-launch the camera.

I think the auto white balance is okay though really not as good as 4.0.4/4.1.1 but the main problem is exposure value bad, easy to over exposure in some high light area both outdoor and indoor. It can be caused by either the kernel(camera driver) from One mini or the Camera.apk(application level) from Desire 601. It's really hard to tell, I'll do more testing when I have time tomorrow.
 
Last edited:
  • Like
Reactions: el7145

pirlano

Senior Member
Wish you can change the Zoe video to 1080P

It can be done, i just shooted a Zoe video at 1080p with 8MP photo + duration increased to 5 seconds, but it's a big laggy at 1080P

Added: I meet a bug, do you have it? I reflashed my MagioRom RC4 backup from TWRP still got the problem. I found I can't shoot Zoe two times it will freeze the camera(stuck at saving files). I can shoot two times but I will need to disable Zoe mode first and enable Zoe again. Or quit the camera everytime after I shoot Zoe and re-launch the camera.

added bug to first post, looking now at this

I think the auto white balance is okay though really not as good as 4.0.4/4.1.1 but the main problem is exposure value bad, easy to over exposure in some high light area both outdoor and indoor. It can be caused by either the kernel(camera driver) from One mini or the Camera.apk(application level) from Desire 601. It's really hard to tell, I'll do more testing when I have time tomorrow.

failed awb calibration is a liboemcamera.so problem
 
Last edited:

blade_h

Senior Member
Mar 18, 2012
81
5
I use it around day...i am with MaximusHD 10.0.0 ROM ...All bugs listen are true and also original music player stop work (some times work but most of the time give error something " Process Media stop working "..Mod is great but must be fix bugs to be able to use for daily needs :))) Thanks again for the mod :)))
 

Top Liked Posts