Licensing always denies: Caching issue?


Last Updated:

  1. Fmstrat

    Fmstrat Member This Topic's Starter

    Joined:
    Aug 5, 2010
    Messages:
    13
    Likes Received:
    1
    Hey everyone,

    I'm having a really odd issue with licensing. So, if I set my license up as a Strict policy with no caching, IE:

    with logs:

    Then everything works fine using the developer account and setting the option in the profile field of LICENSED or NOT_LICENSED. However, if I use a Server Managed policy, IE:

    with logs:

    I get an invalid license no matter how I set the option in the profile for the developer account. Anyone know why this would be the case? Could it be cache related? And if so, how do I clear it? Uninstalling the app seems to make no difference. Notice the difference in the log entry, too (bold). It's like I get a timeout using ServerManagedPolicy.

    Thanks.
     

    Advertisement
  2. Fmstrat

    Fmstrat Member This Topic's Starter

    Joined:
    Aug 5, 2010
    Messages:
    13
    Likes Received:
    1
    Interesting. Hopefully this will help anyone else running into this issue. This was happening due to bad service areas. It was pure chance that it went through as a strict policy. In an EDGE area with 2 bars, it's constantly acting this way. To ensure other users don't have the problem, I've increased the timeout in LicenseChecker.java.

    So, in com.android.vending.licensing.LicenseChecker.java, line 64, it was:

    and I've changed it to:

    Works like a charm now.

    Thanks.
     

Share This Page

Loading...