Live data from Hacker News

Effectively Using Android Without Google Play Services with Gplayweb in Docker

fxaguessy.fr

51–60 of 78 posts

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#51
post #47

Earlier quoted context omitted.

> Can you elaborate, please? Are you asking how it is unavoidable or how it is sending only minimal identifying data?

I'm asking more about what "Push notifications via Google Cloud Messaging" are and why they are unavoidable. I think I will be able to infer what minimal identifying data is required from that.

You can probably find a more accurate description somewhere else, but here is a TL;DR version:

In order to receive notifications without a push notification service like Google Cloud Messaging (GCM), every app would have to

a) poll for updates, meaning that the app establishes a connection repeatedly and asks a server for update. In the worst case, there is a delivery delay as big as the period between two polls. That also means that the app has to be running and thus the phone "awake" every time an app tries to get updates

or

b) keep a connection to the server open. That also requires that the app is running and sending something like keep-alive commands to avoid timeouts

In both cases it means that it doesn't scale at all. The phone would be awake a lot just to fetch updates, it would drain the battery and cause unnecessary much network traffic. Unnecessary, since there is a better solution: register with a 3rd-party service that handles the updates instead, in the case of Android mostly GCM. It basically works as follows: GCM keeps one connection to the Google servers open the whole time. Apps on the phone can register with the GCM client. Instead of sending the updates directly to the app on the phone, the app backends send the data to google instead, which then sends it with very little delay and overhead to the GCM client on the phone, which then in turn wakes up the respective app and passes the payload data.

If all these services just use GCM instead of handling notifications on their own, using WhatsApp, FB Messenger, Telegram, Signal, Skype, WeChat, Line and Viber at the same time is suddenly not such a bad idea anymore.

GCM it often unavoidable, since very little apps support alternatives to it. E.g. in China several alternatives exist, since connections to Google are blocked. I think also Amazon runs its own push notifications service.

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#52
post #45

Earlier quoted context omitted.

it could also come from the hardware.

Possible, sure. You mean like the battery getting old? Capacitors getting arthritis? It's less than six months old. And it was a vaguely sudden change.

Even high end devices often have batteries issues. Battery tech is just not that great.

Usually they arrive at the one year date though.

Otherwise, you should be able to track the culprit with the battery historian (unless it is hiding behind play services ..)

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#53
post #32

Earlier quoted context omitted.

Uber has a web client. I used it a few times from a laptop when I was without a phone (coincidentally, left it on an uber). Does it not work from mobile devices?

The desktop version doesn't (iirc) but they have a mobile website version, but you have to raise a support ticket manually to get access (or else you get an indistinguishable "permission denied"-like error). It's an odd requirement.... And infitely frustrating :-p The mobile website works fairly well :-) I actually thought this might be an avenue for someone like Lyft to excel, but alas they didn't seem any better, i…

Uber is an odd one with "gated" features - I needed to log a ticket to get access to UberAssist vehicles.

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#54
post #9

Earlier quoted context omitted.

Not really. Strictly speaking Google Play Services is a rootkit. One that can be used remotely. And it contains heaps of invasive user tracking code. Is is pretty much malware.

Yet on geek kingdom, bad Microsoft pushing W10 telemetry on us, but Google is cool and doesn't do no evil.

> Google is cool and doesn't do no evil.

That expired in 2015.

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#55
post #47

Earlier quoted context omitted.

I'm asking more about what "Push notifications via Google Cloud Messaging" are and why they are unavoidable. I think I will be able to infer what minimal identifying data is required from that.

You can probably find a more accurate description somewhere else, but here is a TL;DR version: In order to receive notifications without a push notification service like Google Cloud Messaging (GCM), every app would have to a) poll for updates, meaning that the app establishes a connection repeatedly and asks a server for update. In the worst case, there is a delivery delay as big as the period between two polls. Tha…

I bet it's not TL;DR. :) Because if I asked something and got a reply, not reading it would be disrespectful to the author, no matter how long the reply is.

> In order to receive notifications

Your answer would be absolutely perfect if you added "from a remote server". I was slightly confused, wondering what kind of notifications an app is supposed to receive.

Thanks for answering. Your answer is great.

Also, now I'm curious how they do it while sending only minimal identifying data. I was wrong thinking that it would be immediately clear. I wonder if TheCoreh is correct about proxying.

Oh, and you don't need to answer if you don't want to. I can do my own research.

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#56
post #47

Earlier quoted context omitted.

I'm asking more about what "Push notifications via Google Cloud Messaging" are and why they are unavoidable. I think I will be able to infer what minimal identifying data is required from that.

You can probably find a more accurate description somewhere else, but here is a TL;DR version: In order to receive notifications without a push notification service like Google Cloud Messaging (GCM), every app would have to a) poll for updates, meaning that the app establishes a connection repeatedly and asks a server for update. In the worst case, there is a delivery delay as big as the period between two polls. Tha…

Didn't some early Android apps poll? I remember complaints about Android phones using up people's monthly data allowance in the first week or so...

I had to turn data off completely just to run the phone.

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#57
post #21
post #10

G play services sucks phone battery

I actually don't use my phone much, and not at all for entertainment. Consequently my battery usually lasts three or four days. (Motorola G4). Vaguely within the last week or two, no change in behavior, no new apps, that's been cut at least in half. One day it lasted less than a day. I've got things like location and bluetooth turned off. I haven't been able to track it down. I'm wondering if it's a recent google or…

Have you looked under Settings then Battery? Tells you which things are using the battery (%) and approx how much time you have left.

I usually get 3 days from a Nexus 6, and the biggest battery user is "Mobile standby" (5%).

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#58
post #45

Earlier quoted context omitted.

Possible, sure. You mean like the battery getting old? Capacitors getting arthritis? It's less than six months old. And it was a vaguely sudden change.

Even high end devices often have batteries issues. Battery tech is just not that great. Usually they arrive at the one year date though. Otherwise, you should be able to track the culprit with the battery historian (unless it is hiding behind play services ..)

They'd be a lot better if they just made the phone 1mm thicker ;-)

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#59
post #48
post #45

Earlier quoted context omitted.

Possible, sure. You mean like the battery getting old? Capacitors getting arthritis? It's less than six months old. And it was a vaguely sudden change.

Welcome to the world where smartphones from cheap Chinese company like Lenovo are planned to be obsolete by a year.

Lenovo also makes not-cheap ThinkPads and not-cheap Motorola smartphones for Google ;-)

Re: Effectively Using Android Without Google Play Services with Gplayweb in Docker

#60

Or you can just install Yalp Store from F-Droid ( https://f-droid.org/repository/browse/?fdid=com.github.yerio... ) and download the apps from the Google Play Store directly to your device. You can also easily update your apps with Yalp Store. Another possibility is to use the Java software Raccoon on your Desktop, available here: http://raccoon.onyxbits.de/

No idea what Yalp is doing with your email here: https://github.com/yeriomin/YalpStore/blob/23503d639034d68b8...

I find Android code really hard to read - there's so many levels of indirection here I can't find where it's actually calling whatever.google.com to grab the APK

Post reply on HN