Samsung Galaxy A6 2018 (samsung-a6lte)

Contributors

 * sleirsgoevy

How to enter flash mode

 * Recovery: Power on the device by holding and.
 * Download: Hold and  while plugging the device to a computer with an USB cable.
 * Hard reboot: Press and hold and  for 7 seconds.

Unlocking the bootloader

 * 1) Enable developer mode by tapping on the build number seven times in Settings → About phone → Software information
 * 2) Return to the main settings page and go to the developer options
 * 3) In developer options, enable OEM unlocking. Make sure you have an internet connection if it doesn't show up.

Installation

 * 1) Unlock the bootloader if not done.
 * 2) Select   and Xfce4 UI with
 * 3) Generate the rootfs with   to install postmarketOS to the phone or   to install it on an SD card.
 * 4) Generate the flashable images with  . They will be stored in , or you can specify another location like this:
 * 5) Reboot into download mode
 * 6) Flash postmarketOS with   (replace the paths if necessary). If you installed to an SD card, specify only the BOOT argument. Also you may choose the bigger USERDATA partition for the system image.
 * 7) The phone should reboot straight into postmarketOS.

Note: installation with  and   will probably work, but this is untested.

Alternative Installation
If installation with heimdall/ fails you could use the recovery-zip method, see Installation_from_recovery_mode.

Note: if you desire to use the bigger partition, use

Mainline status

 * Pinctrl works, clock controller missing drivers
 * Display, touchscreen, eMMC and external sdcard full work
 * Wi-Fi sometimes works, but it seems that brcmfmac is not fully compatible with it
 * Fuelgauge works (thanks @Tooniis), but is not enabled in the current .config