• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

OTA 2.1 Has started..

Upvote 0
I'm about 1/3rd of the way through this, hope they don't tarpit or block my http requests :)

I hope 8426 is correct, if not, there's not way I'm running 8 digits
Ah, I just spent 15 or so minutes writing a java program to do this... working on 4 digits, skipped 0-999, running 100 at a time, pause for 5 seconds, from 1000-10000... should be done in less than 10 minutes....
 
Upvote 0
Ah, I just spent 15 or so minutes writing a java program to do this... working on 4 digits, skipped 0-999, running 100 at a time, pause for 5 seconds, from 1000-10000... should be done in less than 10 minutes....

I'd be careful with bursting 100 at the same time. It could take longer than 5 seconds for the response to come back.

I just spent a few mins on it, and I realized that I should have validated for 404 or 200 response codes; else log the value to a file. (these could be timeouts, etc.)
 
Upvote 0
I'd be careful with bursting 100 at the same time. It could take longer than 5 seconds for the response to come back.

I just spent a few mins on it, and I realized that I should have validated for 404 or 200 response codes; else log the value to a file. (these could be timeouts, etc.)
My program runs thru 100 at a time, in a row and just checks for a 200 response...

Code:
public class urlTester {
    private static final int SLEEP_TIME = 5000;
    private static final int SLEEP_COUNT = 100;

    private static class CustomizedHostnameVerifier implements HostnameVerifier {
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    }

    public static void main(String[] args) {
        String baseURL = "https://android.clients.google.com/updates/voles/signed-voles-ESE81-from-ESD56.8426";

        for (int i = 999; i < 10000; i++) {
            try {
                String url = baseURL + i + ".zip";
                HttpsURLConnection.setFollowRedirects(false);
                HttpsURLConnection uc = (HttpsURLConnection) new URL(url).openConnection();
                uc.setRequestMethod("HEAD");
                uc.setHostnameVerifier(new CustomizedHostnameVerifier());
                if (uc.getResponseCode() == HttpsURLConnection.HTTP_OK) {
                    System.out.println("Got It!\n" + url);
                    break;
                }
            } catch (IOException e) {
                e.printStackTrace();
            }

            if (i % SLEEP_COUNT == 0) {
                System.out.println("Finished running thru " + i + "...");
                try {
                    Thread.sleep(SLEEP_TIME);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }

        System.out.println("Done");
        System.exit(0);
    }
}
 
Upvote 0
Upvote 0
I just spent a few mins on it, and I realized that I should have validated for 404 or 200 response codes; else log the value to a file. (these could be timeouts, etc.)
I just modified my code a bit:
Code:
                int response = uc.getResponseCode();
                if (response == HttpsURLConnection.HTTP_OK) {
                    System.out.println("Got It!\n" + url);
                    break;
                } else if (response != HttpsURLConnection.HTTP_NOT_FOUND) {
                    System.out.println(response + " - " + url);
                }
 
Upvote 0
Well....Photorec completed. Recovered an amazing amount of data...even pics I took and deleted from the first day I got the phone.

Unfortunately, whatever push they do, they make sure that file is DEAD.

Cause it restored EVERYTHING that has ever been on my SD card...except for the 2.1 update files. :(

Sorry guys and gals, I tried. I'm sure it'll be up here before morning.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones