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

[Magisk Module] Enable RAW capture (A20/A20e)

Search This thread
This is a Magisk Module that enables RAW Capture on the Galaxy A20 and Galaxy A20e. It also changes the camera Hardware Level from Limited to Full.

How does it work?
It works by replacing the library located at /vendor/lib/libexynoscamera3.so with an edited one. For reverse engineering enthusiasts, here is the patch applied to the library.

Prerequisites
- Magisk v20.0+
- Android 11 vendor and kernel (Eureka Kernel isn't compatible, take a look at this for more info)

Installation
Install as a normal Magisk Module, through Magisk Manager or TWRP.

Troubleshooting
  • Images have a pink tint
    • Use a camera application that allows to change the camera's Black Level to 0, like BSG's GCam.
  • Camera doesn't work, shows Black Screen
    • Make sure you are using a compatible Android 11 kernel and vendor.
View on GitHub

Download (Galaxy A20)
Download (Galaxy A20e)
 
Last edited:

Arthurcfsousa

Member
Aug 13, 2018
7
0
great job, you should do one for the custom roms, i'm stuck on the samsung one cause this mod only works there, when i install in other roms the camera stops working
 
i tried on all android 11 custom roms really, lineageos dotos etc
Did those ROMs ask you to flash a custom kernel/vendor? If that's the case i'd suggest to try in phhusson's AOSP GSI with stock Android R kernel and vendor.

I can't test it on my phone right now as i don't have enough free space to make a TWRP backup.
 

Arthurcfsousa

Member
Aug 13, 2018
7
0
Did those ROMs ask you to flash a custom kernel/vendor? If that's the case i'd suggest to try in phhusson's AOSP GSI with stock Android R kernel and vendor.

I can't test it on my phone right now as i don't have enough free space to make a TWRP backup.
I installed the GSI version of dotos and It worked! Thanks
 

Attachments

  • Screenshot_20211207-073517_Camera2_Probe.png
    Screenshot_20211207-073517_Camera2_Probe.png
    119.1 KB · Views: 29
After I flash and all of my phone's cameras is disappear. I'm using this rom
The kernel used by that ROM is using the camera drivers from Android Q, that's why it's not compatible with this module. You will have to use another kernel or build its kernel without this commit.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    This is a Magisk Module that enables RAW Capture on the Galaxy A20 and Galaxy A20e. It also changes the camera Hardware Level from Limited to Full.

    How does it work?
    It works by replacing the library located at /vendor/lib/libexynoscamera3.so with an edited one. For reverse engineering enthusiasts, here is the patch applied to the library.

    Prerequisites
    - Magisk v20.0+
    - Android 11 vendor and kernel (Eureka Kernel isn't compatible, take a look at this for more info)

    Installation
    Install as a normal Magisk Module, through Magisk Manager or TWRP.

    Troubleshooting
    • Images have a pink tint
      • Use a camera application that allows to change the camera's Black Level to 0, like BSG's GCam.
    • Camera doesn't work, shows Black Screen
      • Make sure you are using a compatible Android 11 kernel and vendor.
    View on GitHub

    Download (Galaxy A20)
    Download (Galaxy A20e)