Skip to main content

Transfer SMS/MMS/RCS messages from Android to iPhone

Project description

green2blue

Move your texts from Android to iPhone. SMS, MMS, RCS, group chats, photos, videos — all of it.

green2blue takes an export from the free SMS Import/Export app and injects it into an iPhone backup. Restore the backup, and your messages show up in Messages like they were always there.

Quickstart

1. Export from Android

Install SMS Import/Export on your Android phone. Export all messages as NDJSON with attachments. You'll get a ZIP file.

2. Get the ZIP to your computer

Email it, AirDrop it, USB it, cloud it — whatever works.

3. Make an encrypted iPhone backup

Connect your iPhone. Open Finder (macOS) or iTunes (Windows). Turn on "Encrypt local backup", then click "Back Up Now".

Encrypted backups are required — iOS won't restore messages from unencrypted ones.

4. Install green2blue

Easiest — download a binary from the latest release. No Python needed.

Or install with pip:

pip install green2blue

5. Run it

green2blue

The wizard walks you through everything. Or go direct:

green2blue inject export.zip

6. Restore the backup

Back in Finder/iTunes, click "Restore Backup" and pick your backup. Done.


Features

Review before import — Let the Android owner browse and filter their export in-browser before you touch anything. Deselect conversations, search by contact or content, download a trimmed ZIP.

green2blue review export.zip

Privacy-safe corpus — Generate a representative sample ZIP with redacted text, anonymized contacts, and placeholder media. Safe to share for testing or bug reports.

green2blue corpus capture export.zip sample.zip

Canonical archive — Merge Android and iPhone message histories into a single SQLite archive. Deduplicates across sources, content-addresses attachments, and can re-export to either platform.

green2blue archive import-android export.zip archive.sqlite
green2blue archive import-ios ~/path/to/backup archive.sqlite
green2blue archive merge archive.sqlite

iCloud sync protection — iCloud Messages can wipe injected messages on sign-in. The --disable-icloud-sync flag prevents that.

Dry run — See exactly what would be injected without modifying anything:

green2blue inject export.zip --dry-run

Troubleshooting

"macOS can't verify this app" — Right-click the file, click Open, then Open again. Or: xattr -d com.apple.quarantine green2blue-macos-*

"Windows Defender SmartScreen" — Click "More info", then "Run anyway".

"No iPhone backups found" — Create a backup first. Finder on macOS, iTunes on Windows.

"Wrong password" — This is your local backup password from Finder/iTunes, not your Apple ID.

Messages disappear after restore — iCloud Messages is wiping them. Re-run with --disable-icloud-sync, or don't sign into iCloud Messages right after restore.

Non-US phone numbers — Use --country GB (or whatever). The wizard auto-detects this.

CLI Reference

green2blue                     Interactive wizard
green2blue inject <zip>        Inject messages into a backup
green2blue review <zip>        Browse/filter export in browser
green2blue corpus capture      Privacy-safe sample generation
green2blue archive <cmd>       Canonical archive operations
green2blue list-backups        Show available iPhone backups
green2blue inspect <zip>       Preview export contents
green2blue verify <path>       Check backup integrity
green2blue diagnose <path>     Show CloudKit sync state

Full CLI docs: docs/CLI.md

Development

git clone https://github.com/discordwell/green2blue.git
cd green2blue
pip install -e ".[dev]"
pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

green2blue-0.1.2.tar.gz (488.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

green2blue-0.1.2-py3-none-any.whl (447.8 kB view details)

Uploaded Python 3

File details

Details for the file green2blue-0.1.2.tar.gz.

File metadata

  • Download URL: green2blue-0.1.2.tar.gz
  • Upload date:
  • Size: 488.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for green2blue-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70cd979afabe89acdf1fb3f936970440a2318fc2b2cc50126532f71026fd1403
MD5 e824b9d64fb216477d48197a09d29e41
BLAKE2b-256 d5d5156d8e175fe501aec668b25c77f250c1435e67007922ad19a234a2ec2b7c

See more details on using hashes here.

File details

Details for the file green2blue-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: green2blue-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 447.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for green2blue-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd6af2687c9ac88f0769c95c48ab8f6ddd9516150c9653da6ec6ad15fd9b069
MD5 95b126dab43582b1868c642a655d1d5c
BLAKE2b-256 0aa7b31d710425836cb53788873ce6aa19881a8911a4d1409f2f5d27be53fa20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page