Updating
Check for Updates
The Mac, Windows and Android apps can update themselves from this project's GitHub releases. You always start it: nothing contacts GitHub until you ask.
Where to find it
| Platform | Where | What the update does |
|---|---|---|
| Mac | Settings > Advanced, or Check for Updates... in the app menu | Update and Relaunch swaps the app and reopens it. The old copy goes to the Trash. |
| Windows | Settings > About | Update and Restart runs the installer and reopens the app. |
| Android | Settings > About your connection | Update hands the APK to Android's own installer. |
| iPhone and iPad | Eider's Updates tab, not the app itself | Update in Eider signs the new IPA and installs it over the old one. |
What's New opens the release page for the version on offer.
The rules, on Mac, Windows and Android
- Manual. There is no check at launch and no background job.
- Stable releases only. Only tags of the form
v0.6.5are offered. Drafts, pre-releases and previews are ignored, and a release is offered only if it is newer than the version you run. - Taken from this project's GitHub release. The download comes over HTTPS from GitHub's release files.
- Checked before it is used. The app compares the download's SHA-256 with the digest GitHub lists for that file. If they differ, the download is deleted and nothing is installed. If a release carries no file the app can check, it offers only the release page.
- Never during a backup. An update is refused while a backup runs, because replacing the app would pull the uploader out from under it. Finish or stop the backup first.
On the Mac
Update and Relaunch downloads the disk image for your Mac's architecture, checks it, and copies the new app out of it. It then checks that the new bundle is Photos Backup, at the expected version, built for your Mac and with a valid signature. Only then does it move the running copy to the Trash, put the new one in its place and reopen it. If any check fails, nothing is changed, and if the swap itself fails the old copy is put back.
The app must be somewhere you can write to, normally Applications. A freshly downloaded app that has never been moved runs from a temporary read-only copy; move it to Applications and open it from there first.
On Windows
Update and Restart downloads the installer for your architecture, checks it, runs it without its wizard pages and opens the app again when it finishes. Your settings, history and sign-in are kept. The installer is the same unsigned per-user installer you would download yourself, so SmartScreen may ask before it runs.
If you run a portable ZIP copy, the update installs the per-user copy under %LOCALAPPDATA%\Programs\Google Photos Backup, and that copy is what opens afterwards.
On Android
Android's version can trail the desktop version, so the app offers the newest stable release that carries an Android APK. Update downloads it into the app's private cache, checks it, and hands it to Android's installer. Nothing installs by itself:
- Android asks you to allow Install unknown apps for Photos Backup once, in Settings.
- Android then asks you to confirm every update.
- Android accepts only an APK signed with the same key as the installed app, and the app shows the reason if it refuses.
- A debug build has a different application id, so a release APK never replaces it. Rebuild a debug build instead.
On iPhone and iPad
iOS lets an app be replaced only by a build that is signed for your device, so the iOS app cannot update itself and has no update button. The update comes through the tool that installed it. This project publishes a source for that:
https://ayush5harma.github.io/google-photos-backup/apps.json
- With Eider, add the source once (tap here on the device, or paste the address in Sources). Eider's Updates tab then shows each new version, and Update downloads the IPA, checks it against the SHA-256 in the source, signs it with your certificate and installs it over the old one. Use the same certificate each time: iOS ties the saved Google sign-ins to the signing team, so a build signed by a different one cannot read them and you sign in again.
- This path has not yet been run on a device with this app: Eider reads the source and offers the version, but an install and an update of Photos Backup on a real iPhone are not verified.
- The source lists the IPA of each release with its size and SHA-256. It is recorded after the release is published, so a new version can appear in Eider a little later than on the releases page.
- The source is in the AltStore format, so other tools that read that format can follow it too.
Honest limits
The checksum is the one GitHub publishes with the release. It protects against a damaged or swapped download in transit, but it is the same trust as downloading the file from the release page yourself and comparing the checksum by hand. There is no separate signature behind it on Mac or Windows.
- Mac releases are not signed with an Apple developer certificate. After an update, macOS may ask again for Photos access and for access to the app's keychain item. Choose Always Allow for the keychain item.
- Windows releases are unsigned, so SmartScreen may warn.
- You can always download a new release by hand from the releases page and install it over the old one.