After searching for a few hours using google, I found only one example
https://gist.github.com/Ricket/1163927 "Modified ServerManagedPolicy that only requires a license check every 7 days or 10 attempts. (From the Android licensing library)"
This is the starting point for further implementation and so far the best example that exists.
If someone has additional information, share it - it will be very useful.
source share