• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Making Photo Quality a Way Better - A20 + NIGHT MODE UPDATE

Search This thread

PhillipVilla

Member
Oct 13, 2019
40
12
21
Caracas
Hi to all, since I got this phone I was wondering why the camera was so terrible in specific scenarios (Mostly on low light) and then I started to experiment with an app called SnapCameraHDR, which is the ''basic'' alternative to Gcam since samsung blocked RAW on specific thrid party apps, and gave us a lib file with LIMITED CAMERA2 API, This thread is aimed to those who want tho get the most of the Sony ExmorRS 258 sensor (Which is capable of a really decent things but Samsung just blocked some features).

By now, RAW is barely working in SnapCameraHDR but for some reason every pic is taked with a blueish tint. There is no fix for it yet because it needs lib editing and that's something that is out of my reach. If someone knows how to handle this kind of libs (uses Hex) and could contribute to get RAW propertly working could be awesome.

Ok, let's start, what we would need to have at least almost full MANUAL CAMERA CONTROLS?

REQUIREMENTS

1.-A rooted A20 (Only working on A205X).
2.-A custom lib (Thanks to @YasirArafatShihab and @tbm13 who edited the libexynoscamera3.so lib to get almost all manual camera controls working).
3.-A ROM that has R/W permissions in /vendor partition (Ilusion OS v1.1, and maybe others, need testing).
4.-Latest TWRP avaible for our device properly installed.

After having verified that all the requirements are met, we begin with the installation.

INSTALLATION PROCESS

File Explorer method. Download any Root file explorer, Download libexynoscamera3.so from this thread, copy it and then paste it in: /root > /vendor > lib > and paste it here (You will wonder if you want to replace an existing file, we will say yes.) > give chmod 0644 (Rw-r - r -)

(You can do this either in an Android file explorer or in TWRP file explorer)

CONFIGURATION PROCESS

After completing the installation process we need to Download SnapCameraHDR (The apk included in this thread is only a TRIAL VERSION, it wont work connected to internet, but it will work great if you disconnect the internet or if you add this app to a firewall block list)

After this, Open SnapCameraHDR and go to: three dot menu > Other > scroll down until your find USE CAMERA 2 API an set it to ON. and check USE OPENGLES 2.0

Presets camera modes and more

By default SnapCameraHDR comes with a basic configuration, Right now I'm using 2 personalizated profiles, one for good light conditions and other for low light conditions.

Good light SnapCameraHDR Config (HOLDABLE BY HAND)

Select in the lower dial the program preset you want to be the good light preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA, ISO AND SHUTTER SPEED on AUTO > enable Low Light Mode > set Low Light Frames to 9 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0

Low light SnapCameraHDR Config (TRIPOD OR SUPPORT NEEDED)

Select in the lower dial the program preset you want to be the low light preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA, ISO AND SHUTTER SPEED on AUTO > enable Low Light Mode > set Low Light Frames to 32 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0.

My recomendation is to use a Tripod or a Phone Holder in order to keep the phone as steady as you can, because every minimal movement could affect the sharper final processed photos using the 32 frames option.

HDR Tune (FOR BALANCED PHOTOS) (Thanks to @PaperGreg who posted his config in A10 forums)

HDR Settings.jpg


Photo samples are down below, you can difference it because I've tagged SnapCameraHDR Samples, and they use IMG prefix at each picture.

(libexynoscamera3.so file is zipped in a .zip archive, you need to extract it because XDA format limitations)

FINAL VEREDICT

*Good light - Samsung Camera gives a great color palette, but it would be irreal because post processing, in the other hand, SnapCameraHDR gives accurrate colors, more closer to reality.

*Low light - SnapCameraHDR gives the best results with low noise and sharper details. Samsung Camera tends to use a high noise reduction, it's too aggressive that the photo loses too much detail.

UPDATE: NIGHT MODE SETTINGS (SAMPLES BELOW)

I've been working in a Night Mode update, and finally I can say that I've achieved a great goal, this config is v1, so maybe it can be upgraded. The next big step is to make something to improve video recording quality in low light and even in night.

Night SnapCameraHDR Config (TRIPOD NEEDEED)

Select in the lower dial the program preset you want to be the Night preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA on AUTO, set ISO to 6400 and SHUTTER SPEED to 1/2 > enable Low Light Mode > set Low Light Frames to 32 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0.

This config is aimed to offer the best luminosity, sharper details, and a high overall quality in night conditions,
IT'S MANDATORY TO USE A TRIPOD!!!
 

Attachments

  • IMG_20210518_161533.jpg
    IMG_20210518_161533.jpg
    3.2 MB · Views: 54
  • IMG_20210518_161744.jpg
    IMG_20210518_161744.jpg
    3.4 MB · Views: 50
  • IMG_20210518_161936.jpg
    IMG_20210518_161936.jpg
    3.4 MB · Views: 42
  • IMG_20210518_163055.jpg
    IMG_20210518_163055.jpg
    2 MB · Views: 37
  • IMG_20210519_134556.jpg
    IMG_20210519_134556.jpg
    2.4 MB · Views: 33
  • 20210518_161605.jpg
    20210518_161605.jpg
    5.2 MB · Views: 31
  • 20210518_161711.jpg
    20210518_161711.jpg
    5.2 MB · Views: 31
  • 20210518_161923.jpg
    20210518_161923.jpg
    5.7 MB · Views: 28
  • 20210518_162943.jpg
    20210518_162943.jpg
    2.6 MB · Views: 29
  • 20210519_134504.jpg
    20210519_134504.jpg
    3.1 MB · Views: 27
  • libexynoscamera3.zip
    649.7 KB · Views: 21
  • Snap Camera HDR v8.7.8.apk
    5.8 MB · Views: 16
  • IMG_20210610_045050.jpg
    IMG_20210610_045050.jpg
    2 MB · Views: 22
  • IMG_20210610_045336.jpg
    IMG_20210610_045336.jpg
    2.3 MB · Views: 24
  • IMG_20210610_045618.jpg
    IMG_20210610_045618.jpg
    2.9 MB · Views: 25
  • IMG_20210610_190219.jpg
    IMG_20210610_190219.jpg
    3 MB · Views: 19
  • IMG_20210610_190612.jpg
    IMG_20210610_190612.jpg
    2.8 MB · Views: 20
  • IMG_20210610_190905.jpg
    IMG_20210610_190905.jpg
    2.7 MB · Views: 19
  • IMG_20210610_191234.jpg
    IMG_20210610_191234.jpg
    3 MB · Views: 27
Last edited:
  • Like
Reactions: YasirArafatShihab

PhillipVilla

Member
Oct 13, 2019
40
12
21
Caracas
Here I attach the same photos but has been taken using Samsung camera, you can see the massive difference between Samsung camera and Snap Camera HDR.
 

Attachments

  • 20210610_190124.jpg
    20210610_190124.jpg
    3.4 MB · Views: 17
  • 20210610_190528.jpg
    20210610_190528.jpg
    3.5 MB · Views: 14
  • 20210610_190823.jpg
    20210610_190823.jpg
    2.4 MB · Views: 11
  • 20210610_191024.jpg
    20210610_191024.jpg
    1.1 MB · Views: 11
  • 20210610_191201.jpg
    20210610_191201.jpg
    2.4 MB · Views: 15
  • 20210610_191544.jpg
    20210610_191544.jpg
    1.7 MB · Views: 14
  • 20210610_191607.jpg
    20210610_191607.jpg
    942.4 KB · Views: 18

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi to all, since I got this phone I was wondering why the camera was so terrible in specific scenarios (Mostly on low light) and then I started to experiment with an app called SnapCameraHDR, which is the ''basic'' alternative to Gcam since samsung blocked RAW on specific thrid party apps, and gave us a lib file with LIMITED CAMERA2 API, This thread is aimed to those who want tho get the most of the Sony ExmorRS 258 sensor (Which is capable of a really decent things but Samsung just blocked some features).

    By now, RAW is barely working in SnapCameraHDR but for some reason every pic is taked with a blueish tint. There is no fix for it yet because it needs lib editing and that's something that is out of my reach. If someone knows how to handle this kind of libs (uses Hex) and could contribute to get RAW propertly working could be awesome.

    Ok, let's start, what we would need to have at least almost full MANUAL CAMERA CONTROLS?

    REQUIREMENTS

    1.-A rooted A20 (Only working on A205X).
    2.-A custom lib (Thanks to @YasirArafatShihab and @tbm13 who edited the libexynoscamera3.so lib to get almost all manual camera controls working).
    3.-A ROM that has R/W permissions in /vendor partition (Ilusion OS v1.1, and maybe others, need testing).
    4.-Latest TWRP avaible for our device properly installed.

    After having verified that all the requirements are met, we begin with the installation.

    INSTALLATION PROCESS

    File Explorer method. Download any Root file explorer, Download libexynoscamera3.so from this thread, copy it and then paste it in: /root > /vendor > lib > and paste it here (You will wonder if you want to replace an existing file, we will say yes.) > give chmod 0644 (Rw-r - r -)

    (You can do this either in an Android file explorer or in TWRP file explorer)

    CONFIGURATION PROCESS

    After completing the installation process we need to Download SnapCameraHDR (The apk included in this thread is only a TRIAL VERSION, it wont work connected to internet, but it will work great if you disconnect the internet or if you add this app to a firewall block list)

    After this, Open SnapCameraHDR and go to: three dot menu > Other > scroll down until your find USE CAMERA 2 API an set it to ON. and check USE OPENGLES 2.0

    Presets camera modes and more

    By default SnapCameraHDR comes with a basic configuration, Right now I'm using 2 personalizated profiles, one for good light conditions and other for low light conditions.

    Good light SnapCameraHDR Config (HOLDABLE BY HAND)

    Select in the lower dial the program preset you want to be the good light preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA, ISO AND SHUTTER SPEED on AUTO > enable Low Light Mode > set Low Light Frames to 9 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0

    Low light SnapCameraHDR Config (TRIPOD OR SUPPORT NEEDED)

    Select in the lower dial the program preset you want to be the low light preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA, ISO AND SHUTTER SPEED on AUTO > enable Low Light Mode > set Low Light Frames to 32 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0.

    My recomendation is to use a Tripod or a Phone Holder in order to keep the phone as steady as you can, because every minimal movement could affect the sharper final processed photos using the 32 frames option.

    HDR Tune (FOR BALANCED PHOTOS) (Thanks to @PaperGreg who posted his config in A10 forums)

    HDR Settings.jpg


    Photo samples are down below, you can difference it because I've tagged SnapCameraHDR Samples, and they use IMG prefix at each picture.

    (libexynoscamera3.so file is zipped in a .zip archive, you need to extract it because XDA format limitations)

    FINAL VEREDICT

    *Good light - Samsung Camera gives a great color palette, but it would be irreal because post processing, in the other hand, SnapCameraHDR gives accurrate colors, more closer to reality.

    *Low light - SnapCameraHDR gives the best results with low noise and sharper details. Samsung Camera tends to use a high noise reduction, it's too aggressive that the photo loses too much detail.

    UPDATE: NIGHT MODE SETTINGS (SAMPLES BELOW)

    I've been working in a Night Mode update, and finally I can say that I've achieved a great goal, this config is v1, so maybe it can be upgraded. The next big step is to make something to improve video recording quality in low light and even in night.

    Night SnapCameraHDR Config (TRIPOD NEEDEED)

    Select in the lower dial the program preset you want to be the Night preset (P1, P2 OR P3) > open the three dot menu > set PICTURE Size to maximum avaible > keep focus mode on AUTO > scroll down to JPEG QUALITY and set it to BEST > keep POST PROCESSING OFF >keep METERING AREA on AUTO, set ISO to 6400 and SHUTTER SPEED to 1/2 > enable Low Light Mode > set Low Light Frames to 32 > scroll down to PREVIEW SIZE and set it to maximum avaible > keep DENOISE OFF > keep SHARPNESS in 0.

    This config is aimed to offer the best luminosity, sharper details, and a high overall quality in night conditions,
    IT'S MANDATORY TO USE A TRIPOD!!!
    1
    Nice work man
    Keep it up
    😄
    1
    For anyone interested, this is the patch applied to the libexynoscamera3 library:

    Raw Support:
    Code:
    Address      Original Value         New value
    000B46E2     C0                     3F
    000B46E3     F8                     25
    000B46E4     34                     00
    000B46E5     37                     00
    000B4710     44                     F8
    000B4711     56                     55

    Set Hardware Level to FULL:
    Code:
    Address      Original Value         New value
    000B444B     15                     25