anestisb / android-prepare-vendor

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

Nexus ToS accept request failed - Images download failed #172

Closed MichaB189 closed 4 years ago

MichaB189 commented 4 years ago

Running this command: sudo vendor/android-prepare-vendor/execute-all.sh -d blueline -b pie -o /some/dir

Results in this: [*] Setting output base to '/some/dir/blueline/pie'

--{ Google Terms and Conditions Downloading of the system image and use of the device software is subject to the Google Terms of Service [1]. By continuing, you agree to the Google Terms of Service [1] and Privacy Policy [2]. Your downloading of the system image and use of the device software may also be subject to certain third-party terms of service, which can be found in Settings > About phone > Legal information, or as otherwise provided.

[1] https://www.google.com/intl/en/policies/terms/ [2] https://www.google.com/intl/en/policies/privacy/

[-] Nexus ToS accept request failed [-] Images download failed

agolden commented 4 years ago

After futzing around with it, it seems like Google has gotten rid of the required csrf token. All I had to do to get this to work was comment out the check for 200 in download-nexus-image.sh

if [[ "$response" != "200" ]]; then
  echo "[-] Nexus ToS accept request failed"
  abort 1
fi

Edit: NVM. I see there's already a pull request with the fix.

anestisb commented 4 years ago

Fixed from https://github.com/anestisb/android-prepare-vendor/pull/171. Thanks for reporting.