Search Unity

Android Expansion file redirection

Discussion in 'Android' started by ZowPac, Jul 12, 2012.

  1. ZowPac

    ZowPac

    Joined:
    Sep 25, 2009
    Posts:
    58
    Has anyone seen this?

    I'm trying to use AndroidBuilder with Ferazel's code to download the full game apk as an android expansion file (the details there may not matter much as the download doesn't even really get going). I have the files uploaded to google play - saved but not activated, which according to their documentation should work.

    So google initially responds with an URL at http://android.clients.google.com/market/download/AppDownload?packageName=<bundle>...(some parameters that presumably confirm the device is allowed to do the download)

    That URL redirects to http://v23.lscache2.c.android.clients.google.com/market/GetBinary/<bundle>/...

    Which redirects to http://redirector.c.android.clients.google.com/market/GetBinary/<bundle>/...

    Which then goes to http://o-o.preferred.cbf01t06.v7.cache6.c.android.clients.google.com/market/GetBinary/<bundle>/...

    And back to http://redirector.c.android.clients.google.com/market/GetBinary/<bundle>/...

    Redirecting to http://o-o.preferred.iad23t06.v7.cache6.c.android.clients.google.com/market/GetBinary/<bundle>/...

    And again back to http://redirector.c.android.clients.google.com/market/GetBinary/<bundle>/...

    - so this pattern of bouncing between this redirector and other locations, and it never resolves other than with too many redirects or a 503 service unavailable.

    It looks like google's issue, but then again it feels like there's a lot of things that could go wrong
     
  2. Ferazel

    Ferazel

    Joined:
    Apr 18, 2010
    Posts:
    517
    I've never actually logged out the redirects that were happening but I have had this happen before where I was getting redirect limits hit and exceptions being thrown. This is usually resolved in a couple hours on Google's end.

    Glad you were able to get the tool up and running though! I have hope that someday Unity will actually provide us with a better ability for getting Apps larger than 30 MB ported while using the Resources folder.

    Edit: If you haven't yet, please help Unity realize how much we want/need this feature: http://feedback.unity3d.com/unity/all-categories/1/top/active/android-apk-file-split-for-apps-
     
    Last edited: Jul 12, 2012
  3. ZowPac

    ZowPac

    Joined:
    Sep 25, 2009
    Posts:
    58
    Ah, yes indeed it did start working after testing yesterday's upload today. It would be nice if Google gave some indication that the files had finished being copied around their download servers (I assume that's what takes so long).

    I'll definitely add my vote for an official solution - thanks for your work in getting us this far along!