From postmarketOS
Jump to: navigation, search
Samsung S4 International
S4 international
S4 international
Manufacturer Samsung
Name S4 International
Codename i9505
Released 2013
Original software Android 4.2.2 (Jelly Bean)
Chipset Qualcomm APQ8064T Snapdragon 600
CPU Quad-core 1.9 GHz Krait 300
GPU Adreno 320
Display 1920x1080 AMOLED
Storage Internal storage and external micro SD
Memory 2G ram


  • i9505_someone (rrooij on GitHub)


What works

  • Compiling the latest lineageos kernel with some patches applied
  • Booting a graphical screen when installing PostmarketOS as recovery zip in TWRP.
  • Network connection via USB and SSH access
  • Screen works
  • Brightness can be changed by echoing a value to /sys/class/backlight/panel/device/backlight as root
  • Wifi with properietary blobs
  • Touch screen
  • Wayland
  • X11
  • Keyboard and mouse with USB OTG adapter

What does not work

  • Touch screen requires a reboot to work in some rare cases
  • 3D acceleration
  • Wayland default on screen keyboard
  • Initramfs password entry for full disk encryption

How to enter flash mode

Press volume down + the power button to enter Download Mode. It is now possible to use Heimdall for flashing.


  1. git clone && cd pmbootstrap
  2. ./ init
  3. ./ install --no-fde
  4. Put your S4 in Download Mode (Volume Down + Power) and connect it with USB
  5. ./ flasher flash_kernel
  6. ./ flasher flash_system


Once the device has been successfully initialized, enable it:

$ sudo ip link set wlan0 up

Configure wpa_supplicant (only necessary on encrypted networks):

$ sudo su -
# wpa_passphrase $YOUR_SSID > /etc/wpa_supplicant/wlan0.conf
<enter passphrase here and press Enter>
# exit

Connect to network using wpa_supplicant:

$ sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wlan0.conf 

If your network uses DHCP, start the DHCP client:

$ sudo udhcpc -i wlan0


I9505 libreoffice xfce.jpg