Google Pixel 3a (google-sargo)
Google Pixel 3a | |
Manufacturer | |
---|---|
Name | Pixel 3a |
Codename | google-sargo |
Released | 2019 |
Type | handset |
Hardware | |
Chipset | Qualcomm Snapdragon 670 (SDM670) |
CPU | Octa-core (2x2.0 GHz 360 Gold & 6x1.7 GHz Kryo 360 Silver) |
GPU | Adreno 615 |
Display | 1080x2220 OLED |
Storage | 64 GB |
Memory | 4 GB |
Architecture | aarch64 |
Software | |
Original software | Android |
Original version | 9 |
postmarketOS | |
Category | community |
Pre-built images | yes |
Unixbench Whet/Dhry score | 4417.7 |
Flashing |
Works |
---|---|
USB Networking |
Works |
Internal storage |
Works |
SD card | |
Battery |
Partial |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Works |
Audio |
Partial |
Camera |
Partial |
Camera Flash |
Works |
Connectivity | |
WiFi |
Partial |
Bluetooth |
Works |
GPS | |
NFC |
Partial |
Modem | |
Calls |
Partial |
SMS |
Works |
Mobile data |
Works |
Miscellaneous | |
FDE |
Works |
USB OTG |
Broken |
HDMI/DP | |
Sensors | |
Accelerometer |
Partial |
Magnetometer | |
Ambient Light | |
Proximity | |
Hall Effect | |
Haptics |
Works |
Barometer | |
Contributors
Maintainer(s)
- Flamingradian (non-XL devices)
Users owning this device
- Adrian
- Anoraktrend (Notes: Broken Screen)
- Anthony (Notes: GrapheneOS)
- Bapt17 (Notes: Daily driver)
- BlackEyedSquid (Notes: Bootloader unlocked, Google Edition)
- CalcProgrammer1
- Cralex (Notes: Running Android)
- Earboxer (Notes: VZW OEM-locked and stuck on Android 12)
- Eriki73 (Notes: cracked screen)
- Flamingradian (Notes: PVT 1.0, daily driver + mainlining target)
- Froggo (Notes: 4+64GB, Verizon OEM Locked)
- Ignapk (Notes: Daily driver)
- Joshaspinall (Notes: Currently running Lineage Android)
- Linmob (Notes: 2x, 64 GB, Ubuntu Touch / Droidian)
- Marlock (Notes: Secondary device on Ubuntu Touch)
- MasanoriOgino (Notes: eMMC 64 GB SKHynix)
- Mint (Notes: Screen shade)
- Pabloyoyoista
- Proycon
- QC8086
- Robert.mader (Notes: Development / Testing)
- Socksinspace (Notes: Dual boot with postmarketOS and LOS microg)
- Syboxez (Notes: Currently dual booting pmOS and kupfer)
- UltrasonicMadness
- Vipaol (Notes: Daily driver, a14, crdroid, microG, pmos in dualboot (stowaway rootfs))
Entering Fastboot
Hold Volume Down and Power until device loads into Fastboot
Fastboot commands
Might be convenient for dual boot
fastboot getvar current-slot
fastboot set_active a
andfastboot set_active b
Installation
You can follow a relatively typical installation using pmbootstrap as documented here (there are no pre-built images) or using the device-specific Installation guide. This section documents some quirks in installation.
Bootloader configuration
The bootloader on the Pixel 3a appends console=null
to the kernel cmdline by default, but this can cause issues with the boot process. A custom manufacturer fastboot command can configure console=tty0
:
$ fastboot oem uart enable
Flashing
Like most devices, the Pixel 3a has internal storage with partitions.
As main OS
WARNING: This will erase your existing data on the device. |
For a normal installation with access to the majority of internal storage (53 GB), flashing can be done with simple commands:
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher flash_kernel
or:
$ xz -d 20241017-1407-postmarketOS-edge-phosh-22.4-google-sargo-boot.img.xz
$ fastboot flash boot 20241017-1407-postmarketOS-edge-phosh-22.4-google-sargo-boot.img
$ xz -d 20241017-1407-postmarketOS-edge-phosh-22.4-google-sargo.img.xz
$ fastboot flash userdata 20241017-1407-postmarketOS-edge-phosh-22.4-google-sargo.img
As dual-boot installation
When requesting support, you should state your intention of dual-booting and accepting the reduced drive space. Users are generally assumed to not want this option. |
A dual-boot installation will only provide up to 4.0 GB of storage.
Dual booting can allow you to use Android for missing features, check on the project occasionally from the comfort of a device running your main OS, and attempt to replicate the remaining Android-only features. It will normally keep all data stored on your device (it may erase data if you or the software make mistakes). However, an increasing number of users are buying Pixels for the sole purpose of exclusively running postmarketOS. The option to dual boot has been a source of confusion for these users.
Directions to install for dual-boot
This device uses Android dynamic partitions and Android AB Slots.
For dual-boot (important for developing without affecting your phone's normal usability), you can flash to the system_b
dynamic partition.
$ fastboot set_active a
$ fastboot reboot fastboot # this will change the UI shown on the device
Once in the fastboot screen, you can flash.
$ fastboot delete-logical-partition vendor_b # optional, for more space
$ fastboot delete-logical-partition product_b # optional, for more space
$ fastboot delete-logical-partition system_ext_b # optional, for more space
$ pmbootstrap flasher flash_rootfs --partition system_b
$ pmbootstrap flasher flash_kernel
$ fastboot resize-logical-partition system_b 4068474880 # or 1176113152, if you skip deleting the other partitions
$ fastboot set_active b
$ fastboot reboot
It is also possible to flash to the GPT-defined (GUID Partition Table-defined) system_b
partition with 3.1 GB, which may be required in the future (see pmaports#3219). This can be done with pmbootstrap export
and fastboot flash --force system_b /tmp/postmarketOS-export/google-sargo.img
.
DTBO
Thanks to a hack in the kernel fork, you do not need to erase the DTBO partition. Keeping the DTBO comes with a side effect. Instead of seeing "Google Pixel 3a" as the machine name, you might see something like "Google Inc. MSM sdm670 S4 PVT v1.0".
If you don't like this side effect, erasing the DTBO is simple and normal for most mainline device ports:
$ fastboot erase dtbo
Audio provider
Pipewire is recommended for audio, but Pulseaudio is still the default audio provider. On the device, the audio provider is implemented as a package:
google-sargo:~# apk add postmarketos-base-ui-audio-pipewire
Features
Battery
Support for charging was developed by the SDM845 mainlining community, with no thermals and only 1 A. There was passive cooling logic but it has been removed due to being faulty.
If you wish to run resource-intensive programs for long periods of time, you can manually monitor the battery temperature and adjust the charging current as appropriate.
Temperature in tenths of a degree Celsius (example: 22.5 degrees):
$ cat /sys/class/power_supply/qcom-battery/temp
225
Charging current limit in microamps (further limited by the driver to 1A):
$ cat /sys/class/power_supply/pm660-charger/current_max
1500000
Set the current limit:
# tee /sys/class/power_supply/pm660-charger/current_max
500000
500000
Fingerprint sensor
This device has the FPC1020 fingerprint sensor which is accessible through the QSEECOM interface. A driver for FPC1020 is being worked on here but can only work by interacting directly with the fingerprint sensor.
NFC
NFC card detection works. Nothing else was tested. The embedded secure element seems to have no driver support.
WiFi
WiFi is tested regularly in North America. In Europe, 5 GHz has been reported to not work (pmaports#3134).
You don't get the same MAC address as on Android, even though it is possible to detect the MAC address that Android uses (somewhere in /sys/firmware/devicetree/base/chosen/cdt/cdb2/wlan_mac1). Instead, it is generated with the serial number.
WiFi hotspots are on the same interface as the one used to connect to WiFi, so a hotspot cannot be set up over a WiFi connection, unlike on Android.
WoWLAN does not seem to work.
The WiFi firmware has no support for thermal throttling, although this may be handled by the unsupported Thermal Mitigation Device interface over QMI. Transmitting at high bandwidths from the device while charging can cause a reboot due to overheating.
Calls
Support for VoLTE is currently experimental and is managed by 81voltd instead of ModemManager. Calls may or may not work for you. |
It is possible to initiate calls and hear them on the 3.5 mm jack, and on speakers. Call audio on the microphone is implemented but may be tested less regularly.
The "Voice calls" use case should be selected in the settings to hear calls. Users may also have to install postmarketos-base-ui-audio-pipewirePMOS if they're unable to be heard during calls.
Warning: Call audio may be loud. Call audio goes directly from the modem to the ADSP via proprietary firmware, so volume cannot be applied in software. Volume can be controlled by hardware, but it is not hooked up to the normal volume controls. Please change the hardware volume if you wish to hear calls at a reasonable level:
$ amixer -c 0 cset name='Top Digital PCM Volume' 70% # Earpiece
$ amixer -c 0 cset name='Bottom Digital PCM Volume' 70% # Speaker
$ amixer -c 0 cset name='Digital RX1 Digital Volume' 70% # Headphones Left
$ amixer -c 0 cset name='Digital RX2 Digital Volume' 70% # Headphones Right
# alsactl store # Make this configuration persist across reboots
Camera
Taking pictures with Megapixels using the front camera is supported, but the results are dark. With the v4l-utils
package, the exposure can be set to 2605, the maximum value, using:
$ v4l2-ctl -d /dev/v4l-subdev18 -c exposure=2605
Applications using libcamera can read from both cameras.
Audio
You can get audio over Bluetooth, on the built-in speakers, on the built-in microphone, and on the 3.5 mm headphone jack. The built-in speakers and headphone jack only support 16-bit audio.
Sensors
FastRPC delivers sensor-related files to the modem to allow iio-sensor-proxy to discover sensors hosted by the ADSP.
The ADSP (Audio DSP, with the additional role as the SSC on this device) crashes and the device hangs after resuming from suspend if FastRPC continues while the device is suspended. A pre-suspend hook for elogind is installed to stop FastRPC communication and prevent this. In case your UI doesn't use elogind for suspend, you may need to disable FastRPC.
Disabling FastRPC:
# rc-update del hexagonrpcd-adsp-sensorspd
Enabling FastRPC:
# rc-update add hexagonrpcd-adsp-sensorspd
See (pmaports#3052).
Thermals
The CPU throttles at high temperatures. The Pixel 3a and Pixel 3a XL share thermal profiles. Throttling on the GPU has not been tested yet.
Trusted Platform Module
The Pixel 3a's TPM, the Titan M, controls verified boot and is capable of performing cryptographic operations. It is currently not supported.