OnePlus 5 (oneplus-cheeseburger)
![]() OnePlus 5T with Phosh on 5.15.0 mainline kernel! | |
Manufacturer | OnePlus |
---|---|
Name |
5/ 5T |
Codename | oneplus-cheeseburger, oneplus-dumpling |
Released | 2017 |
Hardware | |
Chipset | Qualcomm MSM8998 Snapdragon 835 |
CPU | Octa-core (4x 2.45 GHz Kryo 280 Gold + 4x 1.9 GHz Kryo 280 Silver) |
GPU | Adreno 540 |
Display | 1080x1920/1080x2160 Optic AMOLED (5/5T) |
Storage | 64/128 GB UFS 2.1 |
Memory | 6/8 GB LPDDR4X RAM |
Architecture | aarch64 |
Software | |
Original software | Android 7.1.1 (up to 10) on Linux 4.4 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | yes |
postmarketOS kernel | 5.15.0 |
Unixbench Whet/Dhry score | 3919.7 |
Flashing |
Works |
---|---|
USB Networking |
Works |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Works |
Audio |
Broken |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Works |
Bluetooth |
Works |
GPS |
Works |
NFC |
Works |
Modem | |
Calls |
Broken |
SMS |
Broken |
Mobile data |
Broken |
Miscellaneous | |
FDE |
Works |
USB OTG |
Partial |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
Broken |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
This device is based on the Snapdragon 835. See the SoC page for common tips, guides and troubleshooting steps |
Entering fastboot mode
The OnePlus 5/5T uses fastboot
as its flashing protocol.
Unplug from USB, hold FastBoot Mode
text.
Installation
Prerequisites
Fastboot
Install fastboot
on your host, refer to Google for instructions.
Unlocking the bootloader
WARNING: Doing this will delete ALL your data on the device, so backup all your data before continuing!
Before flashing postmarketOS you have to unlock your bootloader. The following is all that's needed to do this:
1. Go to Settings
, About
and tap on the Build number
7 times until you get a message saying you are now a developer.
2. Go back to Settings
, System
and Developer options
to enable OEM unlocking
3. Refer to entering fastboot mode above and re-attach the USB cable afterwards. Run the following command on your host:
fastboot oem unlock
4. Read the message displayed on your device screen, once happy confirm the unlock and continue to installing postmarketOS.
Installing postmarketOS
Follow the usual flashing guide via pmbootstrap.
NOTE: ONLY choose downstream kernel if you accept it will have MUCH less overall working features, otherwise always pick mainline! |
LEDs
The LEDs present on the device can be controlled via sysfs
by writing values to their brightness control files as root
. Here are some examples:
Screen backlight brightness (0-255, 0-1023 on 5T)
echo 255 > /sys/class/backlight/c994000.dsi0/brightness
Notification light brightness (0-255)
echo 255 > /sys/class/leds/notification-led/brightness
Notification light color (0-255, R G B), e.g. green
echo 0 255 0 > /sys/class/leds/notification-led/multi_intensity
The backlight for physical buttons can be enabled (1) or disabled (0)
echo 1 > /sys/class/leds/white\:kbd_backlight/brightness
Control of the rear camera flashlight isn't yet possible; it's missing a driver on mainline.
Partition layout
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sda
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdb
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdc
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdd
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sde
oneplus5:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdf
Community Info
postmarketOS users that own the device
- Bdju (Notes: Android backup)
- Cherryband
- CubeCat (Notes: Tinkering device, battery is pretty bad)
- Dartvader316 (Notes: 8/128 GB)
- Deathmist (Notes: 8/128 GB model)
- Double-hash (Notes: 8/128 GB, damaged usb-c port)
- EspiDev (Notes: 6/64 GB Plasma Mobile)
- Frost I7 (Notes: AlphaDroid 3.1)
- Langfingaz (Notes: Running LineageOS 20)
- Mtek89 (Notes: Running LineageOS 19.1, girlfriend's phone)
- Poipa
Maintainers
Contributors
- Deathmist
- R0551 (mainlining)
See also
- pmaports!908 Initial merge request
- pmaports!1110 OnePlus 5T merge request
- pmaports!2591 Mainline enablement merge request
- OnePlus 5 device package
- OnePlus 5T device package
- Shared kernel package
- Shared mainline MSM8998 kernel package
- Firmware package
- OnePlus 5 wiki page
- OnePlus 5T wiki page
- LineageOS downstream kernel fork
- Close to mainline kernel source
- Linux mainline kernel source (torvalds)