HTC Desire 816 single SIM (htc-a5ul)

From postmarketOS
Jump to: navigation, search
hTC Desire 816
Desire 816 running stock Android
Desire 816 running stock Android
Manufacturer hTC
Name Desire 816
Codename a5ul
Released 2014
Original software Android 6.0 on Linux 3.4.0
Chipset Qualcomm Snapdragon S400 MSM8228
CPU Quad-core 1.6 GHz (ARM Cortex-A7)
GPU Adreno 305
Display 720x1280 5.5" SLCD
Storage 8 GB + microSD card
Memory 1.5 GB


  • Aerotinge


  • Aerotinge

What works

  • Booting with fastboot
  • USB Network
  • SSH
  • Screen

What does not work

  • The device stuck at the pmOS loading screen.

What has not been tested

  • Accelerometer, GPS, light sensor
  • Wifi, Bluetooth, RIL
  • Vibrator
  • Camera, Flashlight
  • Battery

How to enter flash mode (HBOOT)

  • Power off the phone
  • Press volume down
  • Keep volume down pressed, and press power button.

How to turn off the phone

Hold power button for ten seconds.


The bootloader have to been unlocked (s-off). If not, see htcdev here.
  • Install
    • using an microsd card (replace mmcblk0 with your sd slot, recommended): pmbootstrap install --sdcard=/dev/mmcblk0
    • until #1206 is fixed, it is necessary to copy the extracted QCDT from a known working ROM such as the TWRP image (see #1378):
      • sudo cp ~/mkbootimg/boot.img-dtb ~/.local/var/pmbootstrap/chroot_rootfs_htc-a5ul/boot/dt.img
    • using /data partition pmbootstrap flasher flash_rootfs --partition userdata
  • Insert the microsd card on the device
  • Connect usb cable to your phone and boot it into flash mode (HBOOT)
  • Select "FASTBOOT" by volumes and power button. Make sure it displays "FASTBOOT USB" on top.
    • Boot kernel using pmbootstrap flasher boot(recommended)
    • Flash kernel using pmbootstrap flasher flash_kernel, then reboot.


The device is similar to the flagship in 2014, hTC One (m8) in many aspect.

Some resources can be shared between two devices.