Changes

Jump to: navigation, search

Moto G4 Play (motorola-harpia)

23 bytes added, 17:27, 24 May 2018
no edit summary
<code> pmbootstrap menuconfig linux-motorola-harpia </code>
 
<code>pmbootstrap build linux-motorola-harpia </code>
On the device extract firmware
<code>cd /lib/firmware</code>
 
<code>mkdir postmarketos</code>
 
<code>cd postmarketos</code>
 
<code>mount /dev/disk/by-partlabel/system /mnt</code>
 
<code>cp -ap /mnt/etc/firmware/* /lib/firmware/postmarketos</code>
 
<code>umount /mnt</code>
 
<code>mount /dev/disk/by-partlabel/fsg /mnt</code>
 
<code>cp -ap /mnt/* /lib/firmware/postmarketos</code>
 
<code>umount /mnt</code>
 
<code>mount /dev/disk/by-partlabel/modem /mnt</code>
 
<code>cp -ap /mnt/image/* /lib/firmware/postmarketos</code>
 
<code>umount /mnt</code>
 
<code>mount /dev/disk/by-partlabel/persist /mnt</code>
 
<code>mkdir -p wlan/prima</code>
 
<code>cp -ap /mnt/WCNSS_wlan_dictionary.dat wlan/prima/</code>
 
<code>umount /mnt</code>
<code>cd /lib/firmware</code>
 
<code>ln -s /lib/firmware/postmarketos/* /lib/firmware/</code>
<code>cd /boot</code>
 
<code>ln -s /dev/disk/by-partlabel/modemst1 modem_fs1</code>
 
<code>ln -s /dev/disk/by-partlabel/modemst2 modem_fs2</code>
 
<code>ln -s /dev/disk/by-partlabel/fsg modem_fsg</code>
<code>export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.so</code>
 
<code>qcom_rmtfs -v</code>
<code>export LD_PRELOAD=/usr/lib/preload/libsmdpkt_wrapper.so</code>
 
<code>ofonod -d -n</code>
<code>sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Powered" variant:boolean:"true"</code>
 
<code>sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.GetProperties</code>
 
<code>sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Online" variant:boolean:"true"</code>
 
<code>sudo dbus-send --system --print-reply --dest=org.ofono /gobi_0 org.ofono.MessageManager.SendMessage string:"$PHONE_NUMBER" string:"Hello world! -postmarketOS"</code>
# receive Receive SMS like this (might be spammy if you have other DBus apps):
<code>sudo dbus-monitor</code>
8
edits

Navigation menu