Samsung Galaxy S8 (samsung-dreamlte)
![]() Samsung Galaxy S8 | |
Manufacturer | Samsung |
---|---|
Name | Galaxy S8 |
Codename | samsung-dreamlte, samsung-dream2lte |
Released | 2017 |
Hardware | |
Chipset | Exynos 8895 |
CPU | 4x2.3 GHz Mongoose M2 & 4x1.7 GHz Cortex-A53 |
GPU | Mali-G71 MP20 |
Display | 1440 x 2960 Super AMOLED |
Storage | 64 GB |
Memory | 4 GB |
Architecture | aarch64 |
Software | |
Original software | Android 7.1 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Flashing |
Works |
---|---|
USB Networking |
Partial |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Partial |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
No data |
Audio |
No data |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Partial |
Bluetooth |
No data |
GPS |
No data |
NFC |
No data |
Modem | |
Calls |
No data |
SMS |
No data |
Mobile data |
No data |
Miscellaneous | |
FDE |
No data |
USB OTG |
Broken |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
No data |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
Contributors
Maintainers
Users owning this device
- AlleM43
- Andrisas
- Congo666 (Notes: Running LineageOS)
- DaKnig (Notes: Half broken, stock based droid)
- Dhruv22592 (Notes: Samsung Galaxy S8+ as Main Phone, has PostmarketOS with SXMO installed.)
- Drebrez
- Idi112 (Notes: Samsung Galaxy S8+, Currently loaned out.)
- Ivoszbg
- Kachiyama Nao (Notes: With cracked, but working screen)
- Kaffeine
- Lachtan999
- Langfingaz (Notes: Running Android)
- M2m
- Manty (Notes: Won't boot PMOS)
- Silence
- Tacokoneko (Notes: Samsung Galaxy S8+ International (dream2lte))
- Vladuwka12 (Notes: dream2lte, Running Android)
- XVT 360 (Notes: Running pmOS)
How to enter recovery/odin mode
- Press and hold + + simultaneously while device is powered off for odin mode
- Press and hold + + simultaneously while device is powered off for recovery mode.
What works
- Phone boots
- Touchscreen
- Framebuffer with msm-fb-refresher
- Phone is charging and battery status is working
- Volume and power buttons on gnome
- Weston, Gnome, SXMO, Xfce4, Mate
- Screen brightness changing on Mate (echo a value between 0 and 36600 to /sys/devices/platform/panel_drv@001/backlight/panel/brightness)
- Wifi with firmware package
Merge request is going to be done.
Installation
Note: Installation will not work before until a merge request has been done. |
Note: If your device is dream2lte, type dream2lte instead of dreamlte! |
2. Unlock the bootloader and flash twrp
3. Setup pmbootstrap:
$ pmbootstrap init
...
Vendor [samsung]: samsung <- enter this
Device codename [dreamlte]: dreamlte <- enter this
User interface [weston]: <- choose your preferred UI
...
4. Create a twrp flashable .zip and export it at /tmp/postmarketOS-export/
$ pmbootstrap install --android-recovery-zip
...
$ pmbootstrap export
5. Grap the zip file from /tmp/postmarketOS-export/ and put it in the phone internal storage/sd card, boot to twrp and install it.
Note: Formatting the system partition before flashing the zip will result in an error during the installation! |
Wifi
To connect to a wifi the same steps as for the Medion Lifetab S9714 (medion-kai) works:
1. Verify that the wlan0 interface exists
$ ip link
2. Turn on wifi
nmcli radio wifi on
3. List available wifis
$ nmcli device wifi list ifname wlan0
4. Connect to your wifi
$ nmcli device wifi connect "$SSID" password "$PASSWORD" ifname wlan0
5. Verify that you have been given an ip address on the wlan0 interface
$ ip a
Usb networking
For some reason the init functions to start usb networking do not work when run. Running them after booting successfully works however. To be able to ssh into the device connect the device to your computer with a usb-c cable and run these commands from a shell on the device:
1. Verify that you do not have a rndis interface already:
$ ip a
2. Set a root password
$ sudo passwd
$ su
3. Source init_functions.sh and run setup_usb_network from that file
# source /usr/share/postmarketos-mkinitfs/init_functions.sh
# setup_usb_network
4. Verify that a rndis0 interface has been created on both the device and computer
# ip a
On your computer look for a new interface named enp0s29u1u2 or similar
# ip a
5. Set ip address and start the interface
# ip address add dev rndis0 172.16.42.1/24
# ip link set rndis0 up
6. If the interface on your computer does not have an ip address, run (in a shell on the computer)
# ip address add dev enp0s29u1u2 172.16.42.2/24
The exact interface name might be different. The connection seem to timeout for some reason every now and then. To bring it back up, run this command again.
To be able to run all of this on device you need a touchscreen keyboard, add one as an extra package when running pmbootstrap init
.
ssh -p 22 <your-username>@172.16.42.1
should now work!
Additional info
Partition layout
~ # fdisk -l /dev/block/sda Note: sector size is 4096 (not 512) Found valid GPT with protective MBR; using GPT Disk /dev/block/sda: 124928000 sectors, 576M Logical sector size: 4096 Disk identifier (GUID): 52444e41-494f-2044-4d4d-43204449534b Partition table holds up to 128 entries First usable sector is 6, last usable sector is 15615994 Number Start (sector) End (sector) Size Code Name 1 1024 2047 4096K 0700 BOTA0 2 2048 3071 4096K 0700 NA 3 3072 8191 20.0M 0700 EFS 4 8192 10239 8192K 0700 PARAM 5 10240 12287 8192K 0700 UP_PARAM 6 12288 14335 8192K 0700 BOTA2 7 14336 24575 40.0M 0700 BOOT 8 24576 36351 46.0M 0700 RECOVERY 9 36352 38399 8192K 0700 BOTA1 10 38400 49151 42.0M 0700 RADIO 11 49152 49407 1024K 0700 TOMBSTONES 12 49408 49663 1024K 0700 DNT 13 49664 49791 512K 0700 PERSISTENT 14 49792 50047 1024K 0700 MISC 15 50048 51071 4096K 0700 STEADY 16 51072 55167 16.0M 0700 KEYREFUGE 17 55168 1168767 4350M 0700 SYSTEM 18 1168768 1296767 500M 0700 CACHE 19 1296768 1299327 10.0M 0700 HIDDEN 20 1299328 1312127 50.0M 0700 OMR 21 1312128 1313407 5120K 0700 CP_DEBUG 22 1313408 1318527 20.0M 0700 NAD_FW 23 1318528 1318783 1024K 0700 NAD_REFER 24 1318784 15614847 54.5G 0700 USERDATA