Samsung Galaxy A52 4G (samsung-a52q)

From postmarketOS
Jump to navigation Jump to search
Samsung Galaxy A52 4G
The Samsung Galaxy A52 4G running Plasma Mobile on postmarketOS with a mainline Kernel, showing the result of running neofetch
The Samsung Galaxy A52 4G running Plasma Mobile on postmarketOS with a mainline Kernel, showing the result of running neofetch
Manufacturer Samsung
Name Galaxy A52 4G
Codename samsung-a52q
Released 2021
Category testing
Original software Android 11
Hardware
Chipset Qualcomm Snapdragon 720G (SM7125)
CPU Octa-Core; 2x2.3 GHz Kryo 465 Gold & 6x1.8 GHz Kryo 465 Silver
GPU Adreno 618
Display 1080 x 2400 Super AMOLED
Storage 128 / 256GB
Memory 4 / 6 / 8GB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Partial
WiFi
Works
FDE
Mainline
Works
Battery
Partial
3D Acceleration
Works
Audio
Partial
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
SMS
Calls
USB OTG
Broken
NFC
Broken
Sensors
Accelerometer
Broken
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Unavailable
TrustZone
FOSS bootloader


This device is based on the Qualcomm Snapdragon 720G (SM7125).
See the SoC page for common tips, guides and troubleshooting steps

Contributors

Users owning this device

  • Chaosleo07 (Notes: working on mainline)
  • Hilledkinged (Notes: Recently gotten and looking to play around with it)


How to enter flash mode

Press and hold Volume Up + Volume Down while plugging it in the Computer. Then click Volume Up to confirm.

Unlocking the Bootloader

!!!WARNING!!!

This will reset your device to Factory settings and blow the Knox E-Fuse! You have been warned.

Samsung made this easy (thankfully): Reboot into Download mode (hold down Vol+ and Vol- while plugging it into a computer) and hold down Vol+.

This way, you can also relock the bootloader (with the only benefit being that the message at the Beginning is gone, no more Knox)

Installation

First, install pmbootstrap.

After that, set up the device to be used:

$ pmbootstrap init
Channel [edge]:
Vendor [samsung]: samsung       <- enter this
Device codename [i9100]: a52q   <- enter this
Enable this package? (y/n) [y]  <- you probably want non-free firmware
User interface [plasma-mobile]: <- choose any UI by your preference. Plasma Mobile works without issues :)
...

Then, create the rootfs image (and install it on sd card if you want)

$ pmbootstrap install (--sdcard=/dev/whatever_your_sdcard_is if you want to install to sd card)

After that, flash the kernel by doing

$ pmbootstrap flasher flash_kernel

and if you didn't install to an SDCard, flash the rootfs by running

$ pmbootstrap flasher flash_rootfs

Status table explanation

This table explains more in detail why some features are marked as partial (P) or Broken (N). Generally it's because feature works with some limitations, or is a "work-in-progress":

Component Status notes
Screen P Changing brightness causes graphical artifacts(It's recommended to disable automatic brightness control)
Audio N Only audio from built in stereo speakers works. Seems like you have to run "alsaucm reload" after booting


Notes

  • This device is very similar to the Samsung Galaxy A72 4G, which is why me doing this is possible (thanks map220v)

Issues with DEs etc.:

  • weston: screen goes black when using panel, dont know if it works with simplefb
  • fbkeyboard: keyboard doesn't show up, probably touch issues as well
  • framebufferphone: has issues with Touch

See also