microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.65k stars 1.73k forks source link

"Back up & sync" in Google Photos doesn't work, PHOTO_AUTO_BACKUP service is not implemented #184

Open Iey4iej3 opened 8 years ago

Iey4iej3 commented 8 years ago

The "Back up & sync" keeps "Status updating" in Google Photos

logcat is attached. lc.txt

Version: 0.2.4-14-gdb93985

mar-v-in commented 8 years ago

Photo Back up + Sync seems to be a service inside Play Services, that is not present in microG yet (GmsDummySvc bound). Not sure if and when this is going to be implemented.

chenming1986 commented 7 years ago

Is this service implemented now?

erenoglu commented 7 years ago

I was really happy with MicroG and all was OK. But I recognized that my photos are indeed not backed up. So unless we can find an alternative, this would be a really pity. I think Google Photos is very popular due to its automated functions of making movies and collage, animations, look back, etc.

n76 commented 7 years ago

FWIW, view microG as a way to avoid Google so don't understand all the issues raised about Google this or Google that not working.

That said, backups and automatic photo transfer are useful things to have. On my spouse's phone (factory stock unrooted ROM with as much Google stuff disabled as possible) we use Dropbox for file sync and photo transfer.

On my Google free phone, I use SyncThing. I've got SyncThing setup to automatically sync my phone to my laptop and then use my laptop's photo handling applications to edit, make movies, etc. SyncThing is a bit fiddly to setup but once configured works pretty well for synchronizing pretty much any directories you want on the phone with whatever directories you want on other computers.

erenoglu commented 7 years ago

Hi @n76, i agree that it's somewhat contradictory to use MicroG but still want to benefit from some other services, but we can debate this in another platform :)

Dropbox and Synthing are just photo upload tools, Google Photos is much more than that. It's uploader, archiver, search, automatic albums, face recognition, automatic animations, videos, remember that day, etc. you name it. I think it's one of the best products of Google. For example I can search for what I did in 2003, search by people, search by locations, heck even landmarks!

And it's free with unlimited storage (if you let it compress your pictures). I've compared pics myself and read some more professional photo bloggers and the loss of quality is negligible for the benefit you get.

So, no, dropbox or synthing won't replace it.

AliveStenka commented 7 years ago

Do you understand why microg exists at all? If you are okay to backup all your photos and other personal data, you do not need microg, just install google play services and be happy with them.

2017-06-06 21:00 GMT+03:00 Emre Erenoglu notifications@github.com:

Hi @n76 https://github.com/n76, i agree that it's somewhat contradictory to use MicroG but still want to benefit from some other services, but we can debate this in another platform :)

Dropbox and Synthing are just photo upload tools, Google Photos is much more than that. It's uploader, archiver, search, automatic albums, face recognition, automatic animations, videos, remember that day, etc. you name it. I think it's one of the best products of Google. For example I can search for what I did in 2003, search by people, search by locations, heck even landmarks!

And it's free with unlimited storage (if you let it compress your pictures). I've compared pics myself and read some more professional photo bloggers and the loss of quality is negligible for the benefit you get.

So, no, dropbox or synthing won't replace it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/microg/android_packages_apps_GmsCore/issues/184#issuecomment-306568058, or mute the thread https://github.com/notifications/unsubscribe-auth/ADKmHhpva95cHKb3CeqVNJyrWGYBmRxwks5sBZPJgaJpZM4J7Cho .

ale5000-git commented 7 years ago

@n76 @AliveStenka

Some of you underestimate microG; although it is very good for privacy, it can perfectly be used also without caring for privacy.

There are a million of reasons to use it. It can be performance, settings, control, etc. In the future maybe also connect to Google behind Tor proxy ;)

Iey4iej3 commented 7 years ago

I would like to add that, Google Play Services work as a proprietary system-level backdoor while microg works as a user-level libre ("free" in French) app cooperating with FakeGapps. Even if it connects to a Google account, there is already a great difference.

robbins commented 6 years ago

Has this been implemented yet?

Tom4tot commented 6 years ago

It's working on my phone!

erenoglu commented 6 years ago

@Tom4tot , when you say "it's working", you mean you can see your pictures or is the backup function also working? Last time i tried MicroG it was not working for backup/uploads so I had to revert to gapps.

Tom4tot commented 6 years ago

The backup function is also working. I can see all my last pictures on photos.google.com :)

bam80 commented 6 years ago

Just wanted to mention that Nextcloud Android client also has this photo backup/sync function

erenoglu commented 6 years ago

Thanks @Tom4tot , you're giving a reason to try microG again. I'm surprised that they fixed a bug without notifying us here. @bam80 , it's not the same thing as long as it does not back up to Google Photos. We use Google Photos for its extra features, you can see the discussion above.

ale5000-git commented 6 years ago

Nothing was changed in microG regarding this, so if it works then it may be related to a phone specific thing.

Tom4tot commented 6 years ago

Well, let us know. I didn't set anything up, just flashed the microG unofficial uninstaller from ale5000 from this thread: https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360/

ale5000-git commented 6 years ago

Maybe Google Photos was updated to do the backup on its own without Google Play Services? If this is the case then it may work, in other cases I don't know.

Currently I don't have time to test but any feedback is appreciated.

ildar commented 6 years ago

@Tom4tot , would you please share your versions? Android, GmsCore, ..? I don't have it working, installed recently.

ildar commented 6 years ago

I can't confirm that. Auto-upload still doesn't work even with the latest (great) release. The workaround for this would be the manual upload of photos to an album.

benyaminl commented 5 years ago

@Tom4tot , would you please share your versions? Android, GmsCore, ..? I don't have it working, installed recently.

Maybe it's the sync add on, the backup transport. (https://androidforums.com/threads/google-backup-transport-using-excessive-data.852818/ and this https://github.com/micro5k/google-sync-addon) I would prefer @erenoglu syncthing. It's seems more usable then using cloud it self. You maybe have all thing back up, but you won't know until when google photos willl operate and running, and someday it could just failing pieces and you can't get your data back.

I just realize today, and I think I will reclaim my freedom back.

*edit Backup Transport installed but nothing works. I wonder about this claim https://www.reddit.com/r/fossdroid/comments/86g6jl/my_experience_with_microg_and_what_newcomers_to/

-Photos: Working, but photo backups only occur when the app is open. Even Google Lens works if you restore from Titanium Backup.

incognico commented 5 years ago

It might appear as they work but they don't. Everything in GPhotos works but the autobackup.

Eerovil commented 5 years ago

I've been using pFolio to backup my photos to Google Photos for now. It has auto backups as well. Has anyone else tried it or found free alternatives?

Edit: Just noticed it doesn't support videos at all.

Edit: Now I'm using this https://github.com/nmrshll/gphotos-uploader-cli

Running on termux. Seems quite fast and easy.

ghost commented 5 years ago

For Google Backup & Sync to work correctly on microG currently, you MUST restore data in this order.

  1. Backup Photos in a Google Play Services environment,
  2. Install microG,
  3. Download Google Photos,
  4. Run Google Photos to establish the app on the microG environment,
  5. Restore data from Google Photos on the Google Play Services environment to Google Photos on the microG environment.

Completing these steps on my own 2 test devices has worked flawlessly every time.

Google Photos Connections To verify, Google Photos will connect to 5 domains/URL's following the backup & sync process as both PUT and POST events following the upload of a single photo:

I haven't tested Google Drive, however I imagine the same applies to that and any other Google service that is not operable (excluding sign-in pages). Using this process will also circumvent any authentication requirements from Google in other apps. If that app utilises the Firebase sync services, these will not currently work.

benyaminl commented 5 years ago

Sad for me that I can't even run play service on my device, Then there's some kind of code that buried inside the backup function, that cause it.

On Thu, 18 Jul 2019 05:20:34 -0700 jslawler notifications@github.com wrote:

For Google Backup & Sync to work correctly on microG currently, you MUST restore data in this order.

  1. Backup Photos in a Google Play Services environment,
  2. Install microG,
  3. Download Google Photos,
  4. Run Google Photos to establish the app on the microG environment,
  5. Restore data from Google Photos on the Google Play Services environment to Google Photos on the microG environment.

Completing these steps on my own 2 test devices has worked flawlessly every time.

Google Photos Connections To verify, Google Photos will connect to 5 domains/URL's following the backup & sync process as both PUT and POST events following the upload of a single photo:

I haven't tested Google Drive, however I imagine the same applies to that and any other Google service that is not operable (excluding sign-in pages). Using this process will also circumvent any authentication requirements from Google in other apps. If that app utilises the Firebase sync services, these will not currently work.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/microg/android_packages_apps_GmsCore/issues/184#issuecomment-512791922

-- Benyamin Limanto

sent from ThinkPad X240 with Claws Mail

ghost commented 5 years ago

Sad for me that I can't even run play service on my device, Then there's some kind of code that buried inside the backup function, that cause it. On Thu, 18 Jul 2019 05:20:34 -0700 jslawler @.*> wrote: For Google Backup & Sync to work correctly on microG currently, you MUST restore data in this order. 1. Backup Photos in a Google Play Services environment, 2. Install microG, 3. Download Google Photos, 4. Run Google Photos to establish the app on the microG environment, 5. Restore data from Google Photos on the Google Play Services environment to Google Photos on the microG environment. Completing these steps on my own 2 test devices has worked flawlessly every time. Google Photos Connections** To verify, Google Photos will connect to 5 domains/URL's following the backup & sync process as both PUT and POST events following the upload of a single photo: - https://photosdata-pa.googleapis.com - www.googleapis.com/datamixer/v1/mutate - https://photos.googleapis.com/data/upload/uploadmedia/background - https://photos.googleapis.com/data/upload/uploadmedia/background/(encrypted URL ID) - https://photosdata-pa.googleapis.com/(encrypted URL ID) I haven't tested Google Drive, however I imagine the same applies to that and any other Google service that is not operable (excluding sign-in pages). Using this process will also circumvent any authentication requirements from Google in other apps. If that app utilises the Firebase sync services, these will not currently work. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: #184 (comment) -- Benyamin Limanto sent from ThinkPad X240 with Claws Mail

Note that the only thing that stayed the same within this testing environment was the Google login used. I changed devices, ROM's and even backup apps used.

I do not see why this wouldn't work if you performed a backup from another rooted device that you were able to login to Google on.

koloved commented 4 years ago

same issue here =(

arkhan commented 4 years ago

Same here I have the same behavior in my Moto Z2 Force (nash)

koloved commented 4 years ago

I found workaround 1) you should make backup data of google photos in system when google play services complete work 2) restore this data to microg system You can use Titanium backup for backup-restore operations