Skip to content

Instantly share code, notes, and snippets.

@feklee
Last active July 12, 2017 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feklee/a4ebec0a8c49766e37b14d7052c81e9d to your computer and use it in GitHub Desktop.
Save feklee/a4ebec0a8c49766e37b14d7052c81e9d to your computer and use it in GitHub Desktop.
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