Script to get MMS(!)
#3
(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! Smile

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!
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC


Messages In This Thread
Script to get MMS(!) - by amindfv - 10-30-2020, 06:26 PM
RE: Script to get MMS(!) - by sundog - 10-30-2020, 09:08 PM
RE: Script to get MMS(!) - by dukla2000 - 10-31-2020, 05:38 AM
RE: Script to get MMS(!) - by amindfv - 10-31-2020, 10:57 AM
RE: Script to get MMS(!) - by puffchumpy - 10-31-2020, 01:29 PM
RE: Script to get MMS(!) - by amindfv - 10-31-2020, 02:22 PM
RE: Script to get MMS(!) - by amindfv - 10-31-2020, 10:09 PM
RE: Script to get MMS(!) - by saba - 11-02-2020, 02:57 AM
RE: Script to get MMS(!) - by Subsentient - 11-11-2020, 05:36 AM
RE: Script to get MMS(!) - by kop316 - 04-08-2021, 05:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flat-file database script for pinephone terminal cabbie001 0 1,463 11-21-2021, 06:17 PM
Last Post: cabbie001
  phosh proximity sensor toggle script D4rkh0rs3 2 3,193 06-10-2021, 06:42 AM
Last Post: Trbl
  Silly Kali Linux script for Mobian SD card sergio.pantalone 0 3,642 03-08-2021, 10:08 PM
Last Post: sergio.pantalone

Forum Jump:


Users browsing this thread: 1 Guest(s)