10-31-2020, 05:38 AM
(10-30-2020, 06:26 PM)amindfv Wrote: I've written a program to get -- though not send -- MMS. In addition, it's an easy way to clear out your modem to receive SMS (to fix https://gitlab.com/mobian1/issues/-/issues/89 and similar issues)
The code is inelegant in a lot of places, so its name reflects that: it's called Janky MMS. My hope is that soon we won't need Janky MMS because we'll have real MMS support on the Pinephone by default (fingers crossed!).
I've been using and developing it for 2 months now on a phone that's my daily driver, and although the implementation is slightly janky, it works great. And socially it's been a lifesaver to be able to get photos and group messages again! ?️
Please enjoy. Code, more details, and install instructions are here:
https://git.sr.ht/~amindfv/janky-mms
(Disclaimer: this is software I trust my own data and daily driver phone to, but I can take absolutely no responsibility for anything bad that might happen. No warranty or fitness for purpose implied, etc etc.)
Excellent 1st post - welcome!

I tried the install and things seemed to go OK. On first run I got some curious responses - not sure if they are normal or errors? I am also not sure if I have any MMS waiting - it is possible but not for certain. But very happy to try help and fully recognise that the warranty is, if something breaks I own both parts!
Code:
mobian@mobian:~/janky-mms$ ghc -O2 jmms.hs
[1 of 4] Compiling Settings ( Settings.hs, Settings.o )
[2 of 4] Compiling ViewPix ( ViewPix.hs, ViewPix.o )
[3 of 4] Compiling ReadMessages ( ReadMessages.hs, ReadMessages.o )
[4 of 4] Compiling Main ( jmms.hs, jmms.o )
Linking jmms ...
mobian@mobian:~/janky-mms$ nano ~/.bashrc
mobian@mobian:~/janky-mms$ source ~/.bashrc
mobian@mobian:~/janky-mms$ sudo nmcli radio wifi off && jmms --get && sudo nmcli radio wifi on
git init
Initialized empty Git repository in /home/mobian/msg-data/.git/
git annex init
init
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'mobian@mobian.(none)')
(scanning for unlocked files...)
ok
(recording state in git...)
"2"
["No sms messages were found"]
[]
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)
attempted to get: []
successes: []
mobian@mobian:~/janky-mms$ jmms --read
Up to date!
- PinePhone BraveHeart now v1.2b 3/32Gb daily driver, Tow-boot with pmOS/SXMO on eMMC
- PinePhone pmOS Community Edition 2/16Gb driving my picture frame, Tow-boot with pmOS/SXMO on eMMC
- PinePhone Pro Explorer Edition, Tow-boot on SPI, Arch/SXMO on eMMC
- ROCKPro64 v2.1 2GB, 16Gb eMMC retired in favour of a fruity upgrade