Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:54:23+00:00 2026-06-13T19:54:23+00:00

I am using the LicenseChecker and ServerManagedPolicy in the com.google.android.vending.licensing library. I am quite

  • 0

I am using the LicenseChecker and ServerManagedPolicy in the com.google.android.vending.licensing library. I am quite confused though as I review some of the code there. There are comments in ServerManagedPolicy that state the following:

“You must manually call PreferenceObfuscator.commit() to commit these changes to disk.”

Am I supposed to be doing this? I don’t see any call to the commit() method in the Google code. I thought that by using the ServerManagedPolicy, I would not need to manually edit code in the library.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:54:25+00:00Added an answer on June 13, 2026 at 7:54 pm

    There is one call to the commit() method – at the very end of the processServerResponse() method.

    And if you look closely you’ll notice that this call is made AFTER calling setValidityTimestamp(), setRetryUntil() and setMaxRetries() with data fetched from the Validity Server.

    And that’s why these values are commited 🙂

    Conclusion:
    If the default behavior of ServerManagedPolicy is satistying for you, you DON’T have to change anything in this file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been following the developer.android.com page http://developer.android.com/guide/publishing/licensing.html#lc-lcc for directions on using the ServerManagedPolicy type
Using the Exiv2 library to write some exif tags to an image i'm running
Using Android TelephonyManager an application can obtain the state of data activity over the
Using EF Code First I have an model object that has multiple properties that
Using android 2.3.3, I have a background Service which has a socket connection. There's
I just implemented the android server check in my app. I am using the
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using Point Cloud Library on Ubuntu, I am trying to take multiple point clouds

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.