Using Android as Backup Phone
Rooting Android Phone
-
Install adb and fastboot on Mac using homebrew.
brew install --cask android-platform-tools -
Connect your Android device to your Mac and run the following commands.
adb devicesadb reboot bootloader
read more
- (Guide) Unlock Bootloader, Root with Magisk, Stock and Patched boot images: Model A065 EEA
- AIO : Unlocking, Rooting & Relocking Guide for Nothing Phone (2)
Forwarding Text Messages From iPhone To Android with ntfy
I set up forwarding text messages from my iPhone to my Android device using ntfy.
Get Started
-
Install ntfy app on Android device.
-
Subscribe to a topic, e.g.,
my-topic
. -
Save this shortcut to your iPhone.
-
In the above shortcut, fill in the topic that you are subscribing to. Note that by default everyone can read/send messages for this topic.
-
Set up an automation on your iPhone to run the shortcut when you receive a new text message. Remember to select
Run Immediately
for automation.
Self Hosting
I opted for self hosting with docker compose on my Ubuntu remote server. I used nginx proxy manager for proxy and access tokens via Bearer auth for authentication.
-
Set up the following docker-compose file and run
docker compose up -d
.docker-compose.yml version: '3'services:ntfy:image: binwiederhier/ntfyrestart: unless-stoppedenvironment:TZ: Asia/ShanghaiNTFY_BASE_URL: <your-domain>NTFY_CACHE_FILE: /var/lib/ntfy/cache.dbNTFY_AUTH_FILE: /var/lib/ntfy/auth.dbNTFY_AUTH_DEFAULT_ACCESS: deny-allNTFY_BEHIND_PROXY: trueNTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachmentsNTFY_ENABLE_LOGIN: truevolumes:- ./:/var/lib/ntfyports:- <your-port>:80command: serve -
Creat a user and a token with the following commands.
ntfy user add --role=admin jack # Add admin user jackntfy token add jack # Create token for user jack which never expiresFor more commands check out ntfy doc.
-
On your Android ntfy app, go to Settings -> Users, add the user that you created earlier. Subscribe to the topic but this time with the self-host base url.
-
On your iPhone shortcut, adjust the base url accordingly. Add a new header for the bearer token with
Authorization: Bearer <your-token>