Motorola Moto G4 Play (motorola-harpia)

From postmarketOS
Revision as of 16:54, 18 June 2020 by Unrznbl (talk | contribs) (XT1607 Modem status, mine might be network locked)
Jump to navigation Jump to search
Motorola Moto G4 Play
Moto G4 Play running Weston
Moto G4 Play running Weston
Manufacturer Motorola
Name Moto G4 Play
Codename motorola-harpia
Released 2016
Category community
Original software Android 6.0.1
Hardware
Chipset Qualcomm MSM8916 Snapdragon 410
CPU Quad-core 1.21 GHz Cortex-A53
GPU Adreno 306
Display HD (720x1280)
Storage 8GB or 16GB
Memory 1GB or 2GB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Mainline
Works
Battery
Works
3D Acceleration
Works
Accelerometer
Works
Audio
Works
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Works
Calls
Works
USB OTG
NFC



Users owning this device

  • ChexM1xstar (Notes: XT1601)
  • Flak79 (Notes: XT1603; running phosh pmbootstrap_build)
  • Ityt (Notes: XT1602; Plasma-mobile unstable, Phosh stable)
  • Libertus (Notes: XT1600)
  • Minecrell (Notes: XT1602)
  • R31k0
  • Sorixelle
  • Thejsa (Notes: 16GB/1GB XT1604; loaned to family)
  • Timbz
  • Unrznbl (Notes: XT1607, need firmware-from-device updater in order for my modem to work, shelli ui works well, needs mms then daily driver!)
  • VR25 (Notes: XT1607; date and time get messed up on reboot; need help to get modem working)


Contributors

  • Sorixelle

How to enter flash mode

Hold down Power + Volume Down while booting to enter Flash Mode.

Installation

Install the lk2nd bootloader, as it is required to handle some quirks with msm8916 devices on mainline kernels. Flash the lk2nd.img image to the boot partition with fastboot flash boot /path/to/lk2nd.img. lk2nd also provides a fastboot interface that allows for flashing kernels without overwriting lk2nd itself. To enter it, power on the device, then hold down Vol Down as soon as you see the boot splash. You should be presented with a menu that looks like the following:

Motorola-harpia lk2nd example.jpeg

After that, proceed with installation as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.

Usage

Audio

See Qualcomm_Snapdragon_410_(MSM8916)#Audio.

Modem

Follow the directions on this wiki page to use the modem. If you have a device model other than what is listed here, please edit the list below with the results of modem functionality testing.

  • XT1602: Modem working, can send and receive text messages. Can initiate and answer phone calls. Mobile data does not work.
  • XT1607: Modem working, SIM is recognized by qmicli but not ofonoctl says "No SIM". Maybe my device is network locked. I will research.
 harpia:~$ sudo qmicli -d /dev/modem --uim-get-card-status
 [/dev/modem] Successfully got card status
 Provisioning applications:
       Primary GW:   slot '1', application '1'
       Primary 1X:   session doesn't exist
       Secondary GW: session doesn't exist
       Secondary 1X: session doesn't exist
 Slot [1]:
       Card state: 'present'
       UPIN state: 'not-initialized'
               UPIN retries: '0'
               UPUK retries: '0'
       Application [1]:
               Application type:  'usim (2)'
               Application state: 'check-personalization-state'
               Application ID:
                       (app-id-redacted)
               Personalization state: 'code-required' (feature: gw-service-provider)
                       Disable retries:     '9'
                       Unblock retries:     '32'
               UPIN replaces PIN1: 'no'
               PIN1 state: 'disabled'
                       PIN1 retries: '3'
                       PUK1 retries: '10'
               PIN2 state: 'enabled-not-verified'
                       PIN2 retries: '10'
                       PUK2 retries: '10'

Running --uim-change-provisioning-session seems happy, but still no SIM in ofonoctl

 harpia:~$ sudo qmicli -d /dev/modem --uim-change-provisioning-session="slot=1,activate=yes,session-type=primary-gw-provisioning,aid=$REDACTED"
 [/dev/modem] Successfully changed provisioning session


See also