Dan Morrill ci invita a non cancellare i dati di Google Service Framework per forzare gli aggiornamenti

Nicola Ligas
Nicola Ligas Tech Master
Dan Morrill ci invita a non cancellare i dati di Google Service Framework per forzare gli aggiornamenti

In tempo di aggiornamenti esiste un ormai atavico metodo che molti di voi avranno probabilmente usato, ovvero cancellare i dati di Google Service Framework nel tentativo di forzare un'OTA del sistema. Si tratta di un metodo la cui efficacia non è sempre assoluta, e che molti si saranno ormai abituati a ripetere senza essere davvero coscienti dei possibili effetti collaterali, che Dan Morrill, uno degli ingegneri al lavoro su Android, spiega così:

Doing this changes the primary ID by which Google knows your device. As far as the servers are concerned, the device was basically factory reset. There are many downstream effects of this, but a big one is that this invalidates the tokens used by any app that uses GCM (which is nearly all the Google apps, and a ton of third-party apps.)

How apps react to GCM IDs changing varies by app. With Play Store you have to log out and log back in, I think Gmail usually handles it transparently eventually but won't get new mail notifications for a while, etc.

Some apps you may have to clear data on to recover. All apps will simply stop getting GCM push-messages, until they get a new GCM ID; some do this frequently, others rarely, and some apps use the GCM ID as an ID on their own servers (as it is opaque and basically random), so other things besides push messages may not work.

Nothing bursts into flames, but it makes a ton of nuisances on the device, including some that can look pretty mysterious. Your mileage will vary depending on what apps you use.

All of this can be avoided by just doing an 'adb sideload' if you are impatient.

Morrill non ci dice insomma che il telefono ci esploderà tra le mani, ma non è predicibile il comportamento di tutte le app, perché in pratica, dal punto di vista dei server, è come se il dispositivo fosse stato resettato, quando invece non lo è, invalidando tutti i token di GCM (Google Cloud Messenger), il servizio che si occupa dello scambio dati tra le app Android e i loro relativi server.

Morale della favola: usate "adb sideload" per aggiornare il vostro dispositivo, se proprio siete impazienti, ma non ricorrete a questo metodo, che non offre comunque garanzie assolute e potrebbe portare più problemi di quanto non sembri in apparenza.

LEGGI ANCHEIl Play Store dà errore ogni volta che cercate di scaricare qualcosa? Un reset dell’account risolve tutto!

Per quanto riguarda le OTA, Morrill aggiunge che è normale che nei primi giorni dopo l'inizio del roll-out si diffondano meno: è una cosa voluta a scopo praticamente cautelativo, e premere ossessivamente-compulsivamente sul pulsante di ricerca aggiornamento, non cambierà le cose, perché se il nostro dispositivo non è compreso in un dato batch di update, non lo sarà a prescindere dal numero di clic. I modelli fortunati sono selezionati casualmente, non in base alle richieste, quindi non è in alcun modo una sorta di gara.

Rollouts are conducted in phases. Typically they start at 1% of devices for around 24 - 48 hours; we watch the return rates and resulting device checkins and error reports (if any), and make sure nothing looks wrong before sending it to more. Then typically it goes to 25%, 50%, 100% over the course of a week or two.

What the percentages mean is that when your device checks in, it has a 1% chance (for example) of being offered the OTA. If it doesn't (randomly) get an offer, it will never get an offer until the next batch.

IOW, once your device checks in and gets turned down, that's it until the next batch. Mashing on the "check for updates" button just causes your device to check in again, and get automatically turned down again. Think about how that makes your device feel! WON'T SOMEONE PLEASE THINK OF THE PHONES?!

That said, once the new batch does start, hitting that button does give you a new roll of the dice -- but once.

Since devices usually only check in for system updates every 24 hours (I think? Certainly on a many-hours basis) this can get you your shot sooner than it would happen on its own.

So, mash away. :) Just be patient, and mashing on it more often than once or twice a day isn't going to gain you anything.

Edit: also, keep in mind that this isn't first-come/first-served. You're not racing other devices to get your slot in the current batch, or something.