I'm thinkg of buying Unity Pro with Android Pro. My question is: can Unity application initiates a license check through the License Verification Library and the Android Market client to prevent stealing of Android Market application?
You can use a database in PHP, for verification of passwords, making the user having to purchase the application, register, and verify the license online, or also, you can create variables with each one Serial different when you make a purchase, you give the serial for it, then the unity compared with a variable and allows access.
Can you edit the source file to add additional code?
public boolean allowAccess() {
long ts = System.currentTimeMillis();
if (mLastResponse == LicenseResponse.LICENSED) {
// Check if the LICENSED response occurred within the validity timeout. if (ts <= mValidityTimestamp) { // Cached LICENSED response is still valid. return true; } } else if (mLastResponse == LicenseResponse.RETRY && ts < mLastResponseTime + MILLIS_PER_MINUTE) { // Only allow access if we are within the retry period or we haven't used up our // max retries. return (ts <= mRetryUntil || mRetryCount <= mMaxRetries); } return false; }