Samsung Galaxy A20s - TrebleDroid/treble_experimentations GitHub Wiki

Samsung Galaxy A20s

Steps to install

  1. All of the following information applies only to devices with the Android 11 firmware. So update yours to Android 11 if you haven't already
  2. Unlock the bootloader (This will wipe all data so make sure to backup first)
    • Make sure the phone is connected to internet
    • Enable developer options
    • In developer options, enable OEM unlocking
    • Boot into download mode
      • With the phone off, hold both volume keys and plug your device to a computer. Release the buttons once you see a blue screen
    • Hold Volume Up for about 7 seconds then let go of it
    • Press volume up once to confirm bootloader unlocking process (This will erase all the data in the phone)
  3. Download a GSI, make sure it's ARM64 A/B. Its file extension should be ".img" if its a zip, tar or xz (whatever) it probably needs to be extracted.
  4. Download an empty vbmeta (to disable secure boot verification)
  5. Boot into recovery mode (adb reboot recovery or turn on the phone holding the volume up & power key)
  6. Press factory reset, erase cache partition and then Reboot to bootloader (to boot into download mode).
  7. With the device in download mode, flash the GSI and VBMETA using your preferred method:
    • Heimdall (Windows/Linux): Run heimdall flash --SYSTEM <gsi.img> --VBMETA <vbmeta.img>. Note that Heimdall on Windows might require you to install some drivers.
    • Odin (Windows): Rename the GSI to system.img.ext4, rename the VBMETA image to vbmeta.img, add both to a TAR file & flash it in the AP slot. Note that some versions of Odin might not work properly.

Important

The bootloader of this device has a bug where it refuses to load modified boot or recovery partitions. If you ever plan on modifying them (for example to install Magisk or TWRP), you need to "fix" the boot/recovery image first. More information here

Hardware support

Android 13

Component Comment
Camera Works
Speaker / Mic Works
Bluetooth Works (and BT Audio works too)*
WiFi Works
SIM / Mobile Data / Voice Works***
VoLTE / VoWiFi Not working, works in stock OS
Fingerprint Works
Offline Charging Works
Fast Charging Works****
Screen mirroring (Cast) Doesn't work
SD Card Works
MTP (Connection to PC via Cable) and other connection modes Only options File Transfer and PTP don't work, USB Tethering and MIDI work properly**
ADB (via Wi-Fi or USB) Works
Other feature To be tested

*-Bluetooth file transfer works ONLY if you are sending or receiving files from a device with bluetooth version newer than 2.0, and connecting to more than one device at once can cause bluetooth to become buggy.

**-MTP works on a modified kernel with this patch and this patch and a magisk module that reverts this patch

***-In-call audio functionality depends on the GSI, the one linked below is tested to have call audio working just fine.

****-On the GSI linked below, Fast Charging only works when device is fully powered off (in the Offline Charging state), it also works on other GSIs (see Android 14).

Tested By: InsertX2k - On SM-A207F/DS(EGY), Build Number - A207FXXS5CWF1

GSI Tested: LineageOS 20.0 TD-Based (arm64 a/b vndklite GSI with Gapps and No SuperUser)


Android 14

Note: Android 14 QPR2 and QPR3 GSIs don't boot. This is probably caused by the same issue preventing Android 15 from booting (more info below)

Component Comment
Camera Works
Speaker / Mic Works
Bluetooth Works (and BT Audio works too)
WiFi Works
SIM / Mobile Data / Voice Untested
VoLTE Not working, works in stock FW
Fingerprint Works
Offline Charging Untested
Fast Charging Works
Screen mirroring (Cast) Doesn't work
SD Card Works
MTP (Connection to PC via Cable) and other connection modes Only options File Transfer and PTP don't work, USB Tethering and MIDI work properly
ADB (via Wi-Fi or USB) Works
Other feature To be tested

GSI tested: android_14.0.0_r27 ci-20240226 TrebleDroid


Android 15

To boot Android 15 GSIs, you need a custom kernel with this fix.

Component Works?
SIM / Mobile Data / Voice / SMS Yes
VoLTE / VoWiFi No. Tried PHH's FLOSS IMS but didn't manage to get it to work
WiFi / Hotspot Yes
Bluetooth / BT Tethering Turns on, but didn't test it yet
USB Tethering Yes
GPS Yes
Camera / Flashlight Yes, but ultrawide & depth cameras aren't exposed so apps can't detect them
Speaker / Mic Yes
Headphones Yes
Fingerprint No
SD Card Not tested
ADB / MTP / PTP / MIDI ADB works. MTP and other modes don't.
Offline Charging No

GSI tested: android_15.0.0_r9 ci-20250117 on an A207M/DS with permissive SELinux

⚠️ **GitHub.com Fallback** ⚠️