anestisb / android-prepare-vendor

Set of scripts to automate AOSP compatible vendor blobs generation from factory images
348 stars 155 forks source link

Download automation from Nexus developer website is broken #36

Closed anestisb closed 8 years ago

anestisb commented 8 years ago

Google appears to have upgraded the JS part of the page performing an explicit post request to acknowledge ToS is accepted by user. As such the links index page content is not revealed until user triggers that request.

The request is against the "profile/acknowledgeNotification" URI and seems to bind with a XSRF token generated by the developers subdomain and NID generated from master google TLD. The second part is kind of weird since if user has never visited any google.com TLD before browser cache doesn't have a valid NID to use and thus cannot access the developers page (you can reproduce if clear all cookies & cache and jump directly to nexus devs website).

Investigate if the above mechanism can be performed from command line, otherwise the auto download feature needs to be stripped out and users have to manually perform image downloads prior to generating the vendor blobs.

anestisb commented 8 years ago

Additional minor fix at https://github.com/anestisb/android-prepare-vendor/commit/50be38ceab4bebc893cad9710322eb6bbab0636e

Issue resolved (until next time).