Samsung Galaxy A20s - TrebleDroid/treble_experimentations GitHub Wiki

Samsung Galaxy A20s

A budget A-Series Android smartphone manufactured by Samsung in Late 2019 running on the msm8953 platform (with Snapdragon 450 CPU, Adreno 506 GPU), and three variants (3/32GB, 4/64GB, 2/32GB) for RAM/Storage, and 3 models depending on your region (SM-A207F, SM-A207M, SM-A2070).

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 needed.
  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. Try the vndklite/non-vndklite variant. If one doesn't boot, try the other one.
  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 (but auxiliary cameras aren't exposed so apps can't use them)[7]
Speaker / Mic Works
Bluetooth Works (and BT Audio works too)[1]
Wi-Fi Works (and Hotspot works too)
Wi-Fi Direct Doesn't work[8]
SIM / Mobile Data / Voice Works (Voice only works for SIM 1)[3]
VoLTE / VoWiFi Not working, works in stock OS
Fingerprint Works
Offline Charging Works[5]
Fast Charging Works[4]
Screen mirroring (Cast) Doesn't work[6]
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[2]
ADB (via Wi-Fi or USB) Works
Other feature To be tested

[1]-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, the only solution to this issue is to flash the custom kernel and use a GSI that reports the correct device model (SM-A207F) or modify props in the file build.prop to reflect the correct device model.

[2]-MTP works on a modified kernel with this patch and this patch and a magisk module that reverts this patch

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

[3]-You may need to enable the option to automatically restart RIL in Phh-treble settings if the in-call Audio is broken after a very long system uptime, Also, PhhTreble GSIs have a bug (specific to Samsung devices) where the incall audio for SIM 2 isn't working, and if you are using Dual SIMs, you will not be able to hear any audio in calls made by SIM 2, this issue can be fixed by just flashing this Magisk module.

[3]-For Mobile Data, This phone (or the GSI) currently has a bug when using 4G (LTE) as the connection mode where it fails to access internet and causes the phone to excessively overheat, this can be fixed by enabling the option to restart qcrild on boot in PhhTreble Settings app.

[4]-The functionality of Fast Charging while booted into the system is dependent upon the GSI you are running, but you can try to flash the custom kernel, it may fix your problem.

[5]-Some GSIs have buggy or broken Offline Charging, but that's pretty rare as most GSIs I have tested have Offline Charging working just fine.

[6]-Screen Mirroring (Cast) feature can be enabled on AOSP-based GSIs by setting the prop persist.debug.wfd.enable=1 in the build.prop file, flashing this Magisk module, Enabling the Xposed module "WiFi P2P Fixes for A20s" and setting its scope to "System Framework".

[7]-Auxiliary cameras are hidden to the Android's Camera HAL by default on non-stock firmware, this is the default behavior of stock vendor, You need to set property vendor.gsi.test to 0 to force the vendor to expose them.

[8]-Wi-Fi Direct can be fixed by installing this Magisk module then Enabling the Xposed module "WiFi P2P Fixes for A20s" and setting its scope to "System Framework".

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

GSI Tested: Pixel Experience Plus 2025-06-22 Android 13 (arm64 A/B, Slim, No SuperUser, and with Gapps installed)


Android 14

Note: Android 14 QPR2 and QPR3 GSIs require a permissive kernel, OR Modifying the Platform SEPolicy of the GSI image to be able to boot it with the enforcing modified kernel image, click here for more information.

Component Comment
Camera Works (but auxiliary cameras aren't exposed so apps can't use them)[1]
Speaker / Mic Works
Bluetooth Works (and BT Audio works too)
WiFi Works
WiFi Direct Doesn't work[1]
SIM / Mobile Data / Voice Works (Voice only works for SIM 1)[1]
VoLTE Not working, works in stock FW
Fingerprint Works
Offline Charging Untested
Fast Charging Works[2]
Screen mirroring (Cast) Doesn't work[1]
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[1]
ADB (via Wi-Fi or USB) Works
Other feature To be tested

[1]-Fixes to these issues and other notes are available on the Android 13 notes. [2]-Fast Charging on most GSIs require the SELinux mode of the kernel to be Permissive to work properly OR You can flash this magisk module that fixes the SELinux denials responsible for this issue.

Pretty much all notes of Android 13 apply to Android 14 too.

GSI tested: android_14.0.0_r27 ci-20240226 TrebleDroid


Android 15

To boot Android 15 GSIs you need a modified kernel with a fix & permissive SELinux, like this one OR Modify the Platform SEPolicy of the GSI image to be able to boot it with the enforcing modified kernel image, click here for more information.

Component Works?
SIM / Mobile Data / Voice / SMS Yes (Voice only works for SIM 1)[1]
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[1]
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

[1]-These bugs can be fixed using the Magisk module and steps shown in Android 13 info.

Note: r26 builds don't boot due to an issue.


Android 16

To boot Android 16 GSIs you need a kernel with permissive SELinux, like this one. OR Modify the Platform SEPolicy of the GSI image to be able to boot it with the enforcing modified kernel image, click here for more information.

Component Works?
SIM / Mobile Data / Voice / SMS Not tested (Voice only works for SIM 1)[1]
VoLTE / VoWiFi Works (Depending on the GSI)
WiFi / Hotspot WiFi works. Hotspot not tested
Wi-Fi Direct Not working[1]
Bluetooth / BT Tethering Tried a BT speaker & BT Tethering. Both seem to work fine
USB Tethering Yes
GPS Yes
Camera / Flashlight Yes, but ultrawide & depth cameras aren't exposed so apps can't detect them[1]
Speaker / Mic Yes
Headphones Yes
Fingerprint No (It works on some GSIs without any other workarounds)
SD Card Yes
ADB / MTP / PTP / MIDI ADB works. MTP and other modes don't.
Offline Charging Yes

[1]-These issues can be fixed using the Magisk module and steps shown in Android 13 info.

GSI tested: android_16.0.0_r1 ci-20250617 (system-td-arm64-vanilla.img.xz) on an A207M/DS with permissive SELinux by TBM13

  • Another testing took place by Insertx2k on 21th of May 2026 on SM-A207F/DS (EGY Variant) - Build number: A207FXXS5CWF1
⚠️ **GitHub.com Fallback** ⚠️