This is a post for people who want Proton Bridge running on their android device AND for people who want notifications without having google play services installed (GRAPHENEOS for example).
It's beyond disgraceful that the android app doesn't get notifications without google play services like Tuta and Signal can..... But whatever aha
This is a relatively simple and quick process...
What you'll need...
- Termux
- Termux:Boot
- Email client (Thunderbird, K9 etc)
What I've discovered is that you can run Proton Bridge on android by using Termux.... And the Termux:Boot app is used to automatically start Proton Bridge when your device boots so it ends up a "set and forget" system AS IT SHOULD BE, PEOPLE AT PROTON -.-
Steps...
In the phone settings, go to apps and find Termux... Give it unrestricted battery usage
Start Termux, then run this command to install Proton Bridge...
pkg install pass proton-bridge -y
Then after it's installed, run this command to open the Bridge...
proton-bridge --cli
Once it has finished doing its thing, type "login" and hit enter... Then enter your details to login to the Bridge
And that's how you get Proton Bridge running on your phone
If you type the command "help", you get a short list of things that you can do in the app.
So, to be able to use a 3red party client like Thunderbird/K9 etc, you need some details...
In Termux, type "info" and you will get your IMAP, SMTP login and server details that you need for your 3rd party email client.
Go to your email client and enter the details in the relevant settings option.
And that's it, you now have Proton Bridge running on your android device AND the ability to use any 3rd party email client to FINALLY GET NOTIFICATIONS!!!!!! -.-
I know that it doesn't fix the Proton Mail app, but the Proton Bridge keeps your E2EE functioning AND notifications on a device without google play services.
So what happens when you reboot your phone? Or get a flat battery?
Once your phone turns back on, the Proton Bridge is closed...
So what to do? You may ask...
We use the Termux:Boot app to automatically start Proton Bridge when your device boots up
Steps...
- Install Termux:Boot
- Set the app to unrestricted battery usage in your devices settings just like you did with Termux
- Open app once to initialise it (you do nothing except literally just open the app, then close it)
Now go back to Termux.
We need to create a folder that contains scripts to run when the device is booted...
The actual commands work as follows...
1 - go to the Termux folder
2 - make a boot folder
3 - open the boot folder
4 - install a text editing programming called VIM
5 - use VIM to create and open a text file that we will call "proton.bridge"
These are the ACTUAL commands...
cd ~/.termux
mkdir boot
cd boot
pkg install vim -y
vi proton.bridge
Press the letter 'i'... This enters editing mode
Paste these 3 lines...
!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
proton-bridge --cli
Now press the escape button "ESC"
On your keyboard, type :wq then hit enter
You won't see anything actually typed on the screen.... Its a command ':wq' that means (W)rite, then (Q)uit
It essentially is a script that finds the Termux app at boot, wakes it up, then starts the Proton Bridge server
And that's everything done.
Proton Bridge will now ALWAYS automatically start on boot and there is nothing for you to do.
There are only 2 cases that will rarely need your help...
1 - its perfectly fine to swipe Termux out of your recent apps, BUT, if you go to the app info and hit the 'force close' button, you'll need to restart Proton Bridge
2 - if for some strange reason that Termux crashes from a random bug or something, you'll need to manually restart Proton Bridge
So to fix these 2 rare hiccups, simply go to Termux and enter the same command that you used at the start...
proton-bridge --cli
And if you're wondering, "how will I know if Termux has crashed or Proton Bridge has stopped?"
Your 3rd party email client will tell you...
I use Thunderbird and the quickest that it can check for new emails is once every 15 minutes..... So when the 15 minutes are up, it will try to check for new emails, but if Proton Bridge has stopped, it will fail and give you a notification along the lines of "can't connect to server"
So to sum up...
1 - Proton Bridge running on your android device
2 - Use of 3rd party email clients
3 - The ability to use 3rd party email clients finally brings you notifications for people that don't have google play services like GrapheneOS
If I've made any spelling mistakes or you feel that I can clear something up, pop it in the comments and I'll edit the post as needed, cheers