Instantly share code, notes, and snippets.

@feklee /README.md
Last active Jul 12, 2017

Embed
What would you like to do?
How to make long messages be sent as concatenated SMS on the Fx0

With the original Japanese firmware on the Fx0, messages with more than 160 characters are sent as MMS. See instructions below concerning how to make long messages be sent as concatenated SMS.

  1. Stop SMS app on device.

  2. Create backup of app:

    $ adb root
    restarting adbd as root
    $ adb shell
    root@madai:/ # mount -o remount,rw /system
    root@madai:/ # cd /system/b2g/webapps/sms.gaiamobile.org
    root@madai:/ # cp application.zip application.zip.orig
    root@madai:/ # exit
    
  3. Download app:

    $ mkdir sms.gaiamobile.org
    $ cd sms.gaiamobile.org
    $ adb pull /system/b2g/webapps/sms.gaiamobile.org/application.zip
    $ unzip application.zip
    
  4. Change maxConcatenatedMessages from 1 to 10 in:

    gaia_build_defer_index.js
    js/settings.js
    
  5. Upload updated app:

    $ zip -f application.zip gaia_build_defer_index.js js/settings.js
    $ adb push application.zip /system/b2g/webapps/sms.gaiamobile.org
    

    Find the updated application.zip in this repository.

  6. Start app on device and send a sufficiently long message as a test.

Credits go to cutol for discovering that “JP also has maxConcatenated msgs set at 1, where in stock its 10.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment