[MOD] Camera from HTC Amaze 4G, v0.11

Search This thread

FaithCry

Senior Member
Aug 26, 2010
1,869
1,861
hmmm a little bug, i think after you take a sweep shot, you're not able to click on the gallery. at least in my experience. everything else works a charm though!
 

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
LOL

its actually quite annoying that can it be removed the battery saver?

Sent from my HTC EVO 3D X515m using XDA App

FC fixed. take new version (0.03). But it seems I can't disable low battery warning. Camera has internal setting:

I/QualcommCameraHardware( 142): startPreview E
W/QualcommCameraHardware( 142): val_low_temp_limit_3d = 15,val_batt_cap = 8, mIs3DModeOn 1
W/QualcommCameraHardware( 142): 3D Camera is DISABLED


hmmm a little bug, i think after you take a sweep shot, you're not able to click on the gallery. at least in my experience. everything else works a charm though!

Please: set camera scene to "AUTO", reboot phone, start camera, select scene "SweepShot" (Panorama), take photo and check if you able to enter gallery.

The only way to reproduce your issue I found is to activate SmartShot/BurstMode and after camera stucks start gallery.
 
  • Like
Reactions: FaithCry

jackieckfu

Member
Jul 16, 2007
22
4
Help.

Hi mate

Thanks for the post. The camera works great. I think the reduced resolution in the original factory rom was to crop to adjust the level of overlapping of 2 images to allow easy focusing for naked eyes. anyway I will take the higher resolution one for obvious reason. Thanks again.

However when shooting video, the apk freezes when you stop taking and quits itself. Any idea?

Attached logcat in rar format to reduce the size. Kindly help. I am not a linux expert.
 

Attachments

  • 2011-10-16-09-55-16.rar
    20.5 KB · Views: 20

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
Hi mate

Thanks for the post. The camera works great. I think the reduced resolution in the original factory rom was to crop to adjust the level of overlapping of 2 images to allow easy focusing for naked eyes. anyway I will take the higher resolution one for obvious reason. Thanks again.

However when shooting video, the apk freezes when you stop taking and quits itself. Any idea?

Attached logcat in rar format to reduce the size. Kindly help. I am not a linux expert.

Found msg about error in log:
java.lang.SecurityException: ConnectivityService: Neither user 10091 nor current process has android.permission.CHANGE_BACKGROUND_DATA_SETTING

1) Try to go to recovery and select:
"clear cache"
"advanced" -> "fix permissions"
"advanced" -> "clear dalvik cache"

2) If it not helped, I need more info:
- what rom do you use
- /etc/permissions/platform.xml
- /etc/media_profiles.xml
- all files from /system/ directory

I will try to reproduce this bug.
 
  • Like
Reactions: jackieckfu

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
Hi thank's, but after a video capture the application crash.

Do you have a solution?

What ROM do you use?
Video works for someone and don't works for other. Don't have solution for now because video works for me. I know what is the problem, but I can't fix problem as I don't have video recording problem for me! I need your help to fix:)

1) I need all files and folders beginning from "/system/"
and files in the root (/)

Please copy them using any Android File explorer that can explore root of device (Root Explorer, EZ Explorer (you need to set "root" to "/" in settings) to sdcard, pack to zip and upload to www.multiupload.com and send me link please:)

2) Also this may help you to solve video FC - try to go to recovery and select:
"clear cache"
"advanced" -> "fix permissions"
"advanced" -> "clear dalvik cache"
Please also reply if fixing permissions helped.

Thx
 
Last edited:

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
Check first post, section "Attention" for all who have problems with Video Recording.
Also check if you are using stock framework and you don't installed any themes.
 
Last edited:
  • Like
Reactions: benutzer1903

benutzer1903

Member
Sep 3, 2011
35
0
if you have FC (stuck) just after video recording is finished, use this test version and reply if it works for you: download link for APK


Also check if you are using stock framework and you don't installed any themes.

Thaaanks... Work with qHD...
With HD 1280x720 still FC when start recording...

Edit:
Log added

Sent from my HTC ShooterU using xda premium
 

Attachments

  • hd.rar
    24 KB · Views: 30
Last edited:

Stail60

New member
Jun 19, 2008
4
0
What ROM do you use?
Video works for someone and don't works for other. Don't have solution for now because video works for me. I know what is the problem, but I can't fix problem as I don't have video recording problem for me! I need your help to fix:)

1) I need all files and folders beginning from "/system/"
and files in the root (/)

Please copy them using any Android File explorer that can explore root of device (Root Explorer, EZ Explorer (you need to set "root" to "/" in settings) to sdcard, pack to zip and upload to

2) Also this may help you to solve video FC - try to go to recovery and select:
"clear cache"
"advanced" -> "fix permissions"
"advanced" -> "clear dalvik cache"
Please also reply if fixing permissions helped.

Thx

Hi, I use stock rom HTC.
With the .apk I have this problem when I start the record.

My root folder in (/) is empty. Do you want thile folder or do you want all folder in / ?

Edit : All is ok, I dl the file direct on my phone and all work. Thanks
 
Last edited:

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
Hi, I use stock rom HTC.
With the .apk I have this problem when I start the record.

My root folder in (/) is empty. Do you want thile folder or do you want all folder in / ?

Edit : All is ok, I dl the file direct on my phone and all work. Thanks

There is no more separate test version.
Please retake new (fully fixed) version (0.05)! I hope there is no more FC!!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 93
    == important =======================================================
    Development is frozen.
    Thank you all for your help in debug and for your thanksful posts.
    It is possible that I will return to development of this project, but this is unpredictable for now.
    Thanks to all of You!
    If someone wants to continue development of this camera or to port any other camera he could see source code and changes I've made here:.
    https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g

    =================================================================
    HTC Amaze 4G camera app is amazing.

    (for example, http://www.youtube.com/watch?v=T9AmViR_twM)

    ========================================================
    app: HTC Camera application
    base: HTC Amaze 4G camera app
    platform: HTC EVO 3D (GSM & CDMA)
    version: 0.11
    how to install:
    1) for non-rooted phone install apk
    2) for rooted phone flash zip file via recovery or just install apk
    programmer: Igor Bezkrovny
    source code: https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g
    ========================================================
    I have created poll for two questions: camera name for flashable zip & photo file naming convention. Also you can suggest something (last question in the poll).
    Please answer to questions only once.
    PLEASE ANSWER TO POLL. THX

    * In order to access the custom image parameters you have to set the scene mode to manual. Then and only then will the white balance, contrast, brightness, sharpness, etc. be available to you.

    Tweaks:
    1. 3D resolution changed to 2048x1152
    2. iso 1250 (realy it seems like iso 450-500)
    3. long touch makes photo
    4. Jpeg quality set to 100%

    Known issues:
    0. Some EVO 3D has smaller second camera sensor! Try 2048x1152 version first and if it crashes in 3D mode, use 1920x1080 version
    1. BurstShot and SmartShot disabled - it seems we need updated kernel with ZERO SHUTTER LAG driver included. So, if HTC doesn't give even kernel src for us we have only choice to wait for new stock kernel with ZSL driver.
    2. Face/Blinks detections doesn't work in 3D
    3. Disabled Panorama and Portrait scenes when in 3D.
    4. CDMA issue: it seems that for most cdma phones Panorama stucks in 2D :(
    5. Codec MPEG can't be used with bitrate higher than 12 mbps. Codec H264 can be used with any bitrate.

    Changelog:
    0.11 (GSM&CDMA 2048x1152 in 3D) Flashable zip
    0.11 (GSM&CDMA 1920x1080 in 3D) Flashable zip
    0.11 (GSM&CDMA 2048x1152 in 3D) standalone apk
    0.11 (GSM&CDMA 1920x1080 in 3D) standalone apk
    1. Codec H264 is automaticaly used for 3D video recording.
    2. Flash is always turned ON if flash mode is "ON" (when taking picture). It is very useful to see what you are shooting when taking picture in low light conditions.

    0.10 (GSM&CDMA 2048x1152 in 3D) Flashable zip
    0.10 (GSM&CDMA 1920x1080 in 3D) Flashable zip
    0.10 (GSM&CDMA 2048x1152 in 3D) standalone apk
    0.10 (GSM&CDMA 1920x1080 in 3D) standalone apk
    * You should select "H264" codec to record video in 3D. Codec h264 will be autoselected for 3D in next version
    1. Added option to set 50HZ/60HZ antibanding.
    2. Removed video format selection. It doesn't needed! 3GP and MP4 are just a containers. Video encoding bitrate is the only important to reduce file size.
    3. Added codec selection (H264/MPEG)
    4. Enabled video encoding bitrate selection for 720p and 540p
    5. Added more bitrate choices.

    0.09 - removed because it always saves video into 3GP container
    1. 3GP/MP4 video format selection
    2. Added Camera version to Tutorial title
    3. Universal flash script rewritten
    4. Added autobuilder to sources in git

    0.08 (GSM 2048x1152 in 3D)
    0.08 (GSM 1920x1080 in 3D)
    0.08 (CDMA 2048x1152 in 3D)
    0.08 (CDMA 1920x1080 in 3D)
    1. Preview after capture -> Share ->"Midnight" button changed to "More..."
    2. Install script fixed

    0.08 with video 1920x1080 recording. DEV VERSION. Tweaks in KERNEL, media_profiles.xml & possibly in libxxxxxxx.so needed

    1. test HTCCamera.apk that is configured to record 1920x1080 video, but it doesn't work for me.

    0.07
    1. Fixed code to correctly disable Panorama and Portrait in 3D mode

    0.06 (has issue, use 0.07)
    1. Disabled Panorama and Portrait scenes when in 3D.

    0.05
    1. fixed FC in Video Recording

    0.04
    1. Gallery is now available directly from camera screen after taking Panorama (SweepShot).

    0.03
    1. fixed FC in 3D mode when battery is lower than 15%
    2. SmartShot/BurstMode disabled (if you select it, mode will not change)

    0.02
    1. fixed FC in 3D, but face detection and blink detection works now in 2D!
    2. Jpeg QUALITY set to 100% (was 85%)

    0.01
    1. Ported from version of Baadnewz & CdTDroiD link
    2. Tweaked
    3. Fixed FC in 3D mode by disabling for both modes face detection and blink detection.

    If you found not listed issue:
    1. Reboot phone
    2. Install and run android application "catlog", press "menu"->"Record"
    3. Launch Camera and take video till camera FC
    4. "catlog"->"menu"->"stop". Log file created in /sdcard/catlog_saved_logs/
    5. email me with attached log file: [underscore]iga[underscore] at mail.ru or reply with attached log file in this post. Also please specify your ROM version.

    ========================================================
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    ========================================================

    divedr made comparison of different cameras/pictures:
    Evo3DCamComp_1.jpg

    The dynamic range from the Amaze port is superior to the stock and modded stock cameras. The lower set of images illustrate the resolution (level of detail) from the Amaze port is better than stock or the modded stock camera from Clean ROM 2.8.
    5
    New version v0.10 uploaded.

    Igor, as you asked here are the data from the comparisons I made. As they say a picture is worth a thousand words:

    Evo3DCamComp_2.jpg


    The dynamic range from the Amaze port is superior to the stock and modded stock cameras. The lower set of images illustrate the resolution (level of detail) from the Amaze port is better than stock or the modded stock camera from Clean ROM 2.8.

    All things considered, if you can enable metering mode selection it would make this port the BEST camera app hands down for the evo 3D. I wouldn't look to change anything before getting metering working. The other parameters (Sweep Shot, Burst, Video CODECs, etc.) are eye candy compared to the metering modes. The ability to change metering modes affects the capabilities of a digiital imaging system significantly. The ability to switch metering modes is a real photographic tool which when enabled would endow the evo 3D with significantly increased abilities as a photographic instrument. Igor if you can pull this off it would be a coup!

    Thanks again for all the hard work!
    3
    Overview

    I would like to start by apologizing for the extremely long post.I have made an attempt at evaluating the ported Amaze camera to the stock and modified stock apps available. There are some pretty interesting results.

    In order to make a valid comparison we first have to identify and understand the variables involved in any digital imaging system which determine the ultimate image quality that can be attained. First and foremost are the limitations placed on the system by virtue of the innate functionality imposed by hardware specifications. You cant make a 5MP sensor an 8MP sensor however, software plays an equally important role in determining the ultimate image output of the system. This is best illustrated by comparison of the The Nikon D80 and the Sony DSLR-A100. Both use the same APS c Sony sensoy however the performance, image quality and characteristics of the two camera bodies are significantly different. This is largely due to differing ASIC technology and image processing software. If you want to read more about the technical aspects of digital imaging systems a good place to start is here: http://www.dpreview.com/learn/glossary.asp

    Under standardized conditions I shot several test images using the evo 3D and the Amaze port, stock camera and the modded stock camera of Clean ROM 2.8. The results are a bit surprising. It would seem that the Amaze port brings to the evo 3D something which the modded stock cameras do not. It would appear that the iso boost from the Amaze port does more than boost the iso. Looking closely at the image histograms it would appear it gives an increased dynamic range of 1 to 2 stops. This is extremely significant. The Amaze port low light performance appears to be measurably better than the stock or modded stock cameras can deliver.

    In the past the overall consensus regarding HTCs methodology in developing camera software is to develop a generic application for a relatively similar group of hardware iterations and use switches within the software to accomodate the various hardware configurations. It is reasonable to beieve this is the case as it is from a production standpoint a cost effective strategy. If that is the case it would seem the Amaze camera ap may have some fundamental differences (seperate from software switches) as compared to stock or modded stock cameras.

    This inclines me to opine that what we have here in the Amaze port may represent a fundamentally different iteration of the camera application perhaps marking HTCs cutoff point for sundowning the camera app wich shipped with the evo 3D.

    Whatever the functionality and image quality provided by the Amaze port offers significant advantages over stock. If there is a way to enable selection of different metering modes (which I do not believe are enabled in the Amaze as there are no references to such functionality in the HTC user manual) it would make this THE hands down BEST camera app for the 3D.

    Agan sorry for the LOOONG post!

    Nice work Igor, please keep it up, its greatly appreciated!
    3
    camera now works in both modes (2d + 3d)
    3
    On CDMA. Infected Eternity.
    Everything but sweepshot (Force Closes) and taking 3D pics work. When attempting to take a 3D pic it sits as if it's saving. Then crashes to homewcreen everytime. :-\

    I don't have cdma evo 3d. If you want to be a tester on cdma, we will make a cdma camera together. If so - pm me, do not post here.