All guides

Selling an Android App Outside Google Play in 2027: Developer Verification, Direct APK Sales and License Keys

Android developer verification reaches every install source in 2027, but a registered APK can still be shared. How to sell an Android app directly: checkout and VAT, license keys without Play Licensing, device IDs that survive updates, offline tokens, phone swaps and refunds.

Android illustration for Selling an Android App Outside Google Play in 2027: Developer Verification, Direct APK Sales and License Keys

On 19 November 2026 Google announced that Android developer verification goes global in January 2027. Over the following months, apps from every installation source on certified Android devices, including an APK downloaded from your own website, will need to be registered by a developer whose identity Google has verified. If you sell an Android app, a Unity or Godot game build or a companion app outside Google Play, this changes how your customers install it. It does not change how you get paid or how you stop one purchase from turning into fifty installs.

This guide is for indie developers and small studios who sell Android software directly: from their own site, itch.io, Galaxy Store or another store. It explains what verification requires and what it does not do, then walks through a direct-sale setup: checkout and VAT, delivering the download and the license key, activating the key on a phone without Google Play Licensing, offline use, phone swaps and refunds, and where the check goes in Kotlin, Unity and Godot. It ends with a checklist for January. The Google rules below were checked against Google's own pages on 29 November 2026; the links are listed at the end. Nothing here is legal or tax advice.

What changes in 2027: Android developer verification in plain words

Developer verification links every Android app to a real, identified person or organization. Google states that Android "requires all apps to be registered by verified developers for users to install them on certified Android devices". Certified devices are the ones that ship with Google Play services, and the FAQ says enforcement covers certified devices running Android 8 (API level 26) or higher.

Timeline

DateWhat happens
March 2026Verification opened to all developers.
August 2026Android Developer Console APIs, limited distribution accounts and the "advanced flow" for power users launched.
30 September 2026Protections went live for apps installed from participating stores in Brazil, Indonesia, Singapore and Thailand.
January 2027Global rollout starts with seven distributors: Google Play, Galaxy Store, Honor, Oppo, Xiaomi, Transsion and Vivo.
The following monthsProtections "gradually expand to all countries to cover all installation sources on certified Android devices". Google's post gives no exact day or country order.

So a direct APK download is not the first thing to be checked in January, but it is clearly included later. Register before the rollout reaches your customers, not after the first support ticket.

What you have to do

  • Create an account. If you distribute only outside Google Play, sign up for the Android Developer Console. If you already have a Play Console account, you use that, and Google says it registers most Play apps automatically (apps that use Play App Signing are claimed for you).
  • Verify your identity as an individual or an organization. Organizations need a D-U-N-S number, which Google notes can take up to 28 days to get. The FAQ lists a $25 fee for a full distribution account.
  • Register your package names by uploading an APK signed with your private signing key. This proves the package is yours. You can add more than one signing key to a package, and if you lose the key you cannot register the package.

Students and hobbyists can use a limited distribution account instead: no government ID and no fee, but installs are limited to a set of authorized devices. The November post raised that limit from 20 to 50 devices. That is for sharing a build with testers, not for selling copies.

The advanced flow and ADB

Unregistered apps can still be installed in two ways. Developers can always install with ADB from a computer; the FAQ says nothing changes there. Users can turn on the advanced flow: enable developer options, confirm nobody is coaching them, restart and re-authenticate, wait a one-time 24 hours, then confirm with a fingerprint, face or PIN. After that they can install apps from unverified developers for 7 days or indefinitely, with an "unverified developer" warning on each install. Updates to unregistered apps also fail unless the advanced flow is on or ADB is used.

For a paid app, that is not a realistic customer journey. Asking a buyer to enable developer options and wait a day before they can use what they just paid for will cost you sales and refunds. If you sell to the public, verify and register.

Verification is not licensing: why a registered APK can still be copied and shared

Verification answers one question for the phone: who made this app? It does not answer did this person pay for it? Google is explicit that verification "does not collect information about the app content or functionality". It is an identity check, not a store review and not a payment system.

That means a registered APK installs on any certified device, whether the user bought it from you or got it from a friend, a forum or a file-sharing site. The protection is tied to your signing key and package name, not to a customer. Verification probably makes one kind of abuse less convenient: a modified copy has to be re-signed with someone else's key, and that key cannot claim your registered package name outright, so on a certified device it will usually need the advanced flow, ADB or a different package name. It does nothing about your genuine APK being passed around. For that you still need a license that the app checks.

Why Google Play Licensing (LVL) and Play Integrity do not help when you sell outside Play

Android already has two Google-run ways to ask "is this copy paid for?", and both assume Google Play sold it.

  • Google Play Licensing (the License Verification Library, LVL) asks the Google Play licensing server whether the current user is licensed for the app. It needs the Play client on the device, and the server only knows about Play purchases. A customer who paid you on your website is "not licensed" as far as Google is concerned.
  • The Play Integrity API returns an appLicensingVerdict. LICENSED means "the user installed or updated your app from Google Play". A direct download is, by definition, never LICENSED. Play Integrity's device and app checks can still be useful, but not as proof of purchase, and they do not work on devices without Google Play services, which some direct-sale customers choose on purpose.

When you sell yourself, the license has to come from your own system: a key issued when your checkout confirms payment, checked by a server you control, with a signed result the app can trust while offline.

Outside a store, you do the store's job. The minimum is a checkout that charges the right tax, an email with something to download, and a license that is issued only after payment is confirmed.

Checkout and tax

Selling digital products to consumers usually means charging VAT or sales tax based on where the buyer is. In the EU that is the buyer's country, from the first sale. There are two common ways to handle it:

  • A merchant of record, such as Paddle, sells to the customer on your behalf. It is the seller on the invoice and handles tax collection and remittance in the places it covers, and pays you out.
  • Your own payment account, such as Stripe, where you are the seller and tax is your responsibility. Stripe Tax can calculate it, and for eligible accounts and digital products Stripe's Managed Payments can act as merchant of record.

The trade-offs are in merchant of record vs Stripe. If the same app is also on Google Play, Play's own payments policy decides whether that listing may link to your website checkout. Check it for each region instead of assuming.

Delivery

The buyer needs two things: the APK and a license key. Send them together, so the first support email is not "where is my key?". In the PermitCore Store, you connect your own Stripe or Paddle account (PermitCore takes no sales commission; provider fees apply). When the signed payment webhook arrives, PermitCore issues the license with the activation limit, node locking, expiry and feature flags you set on the product, and queues one order email. That email links to the buyer's account, where the key is shown, and includes the download link you set as the product's Download URL. The step-by-step setup is in the Store guide, and the same approach for PC games is in selling a game outside Steam.

Host the APK somewhere that gives a direct HTTPS download. Publish the SHA-256 checksum of each release, so careful buyers can confirm the file is yours. Once the package is registered, Google says the install experience stays the same as today.

Activating a license key on an Android device: device IDs that survive updates (and why not IMEI or MAC)

Activation binds a key to a device and counts it against the license's activation limit. In PermitCore, the app first fetches a single-use nonce from GET /api/v1/nonce, then calls POST /api/v1/activate with the key, the nonce and a deviceId. If the limit is reached, the response is isValid: false with errorCode: "SeatsExhausted". Activating again with the same device ID on a node-locked license reuses the existing seat. See POST /activate.

That last point is why the device ID matters so much on a phone. It has to stay the same across app updates and reinstalls, or every reinstall burns a seat. The options on Android:

IdentifierUse it?Why
Settings.Secure.ANDROID_IDYes, hashedOn Android 8+ it is unique per app-signing key, user and device. It survives app updates and reinstalls signed with the same key, and changes after a factory reset or if your signing key changes.
A random UUID saved in app storageOnly as a fallbackDeleted on uninstall or "clear data", so a reinstall looks like a new phone.
IMEI or serial numberNoSince Android 10, normal apps cannot read them. They need a privileged permission that only system apps get.
Wi-Fi MAC addressNoSince Android 10, devices use a randomized MAC per network by default.

The sources are Android's ANDROID_ID reference and the Android 10 privacy changes. Hash ANDROID_ID together with your package name before sending it, so the server never stores the raw value, and mention device binding in your privacy policy. The same reasoning for desktops is in device activation and hardware IDs and why MAC addresses are bad hardware IDs.

One catch: because ANDROID_ID depends on the signing key, a Google Play build signed by Play App Signing and your direct APK signed with your own key produce different IDs on the same phone. A customer who moves from one build to the other will use a new activation.

Offline use: signed license tokens, grace periods and clock checks on a phone

Phones lose signal on trains, planes and in basements. If your app refuses to start without a network, customers will notice before pirates do.

In PermitCore you set offline grace days on the license. When the app validates online with its device ID, the response includes an offlineCacheToken: a pc_grace_v1 token signed with your tenant's ECDSA P-256 key. It carries the product, a SHA-256 hash of the license key, the device ID and a signed validUntil time. The app stores the token and, while offline, verifies the signature with your public key from GET /api/v1/{tenantSlug}/public-key. Ship that public key inside the app; never read it from the cache or a network response. Never store a plain "licensed = true" flag, because anyone can edit it. For customers who are never online, an admin can also issue a manual pc_offline_v1 token bound to one device for 1 to 365 days. Both are described in offline licensing and offline grace mode.

Plan for how offline licensing behaves on any platform, and say so in your support docs:

  • An offline device cannot learn about a revocation, a refund or a removed device until it reconnects. An already-issued token stays valid until its signed deadline. Shorter grace means faster revocation; phones are usually online, so a few days is often enough.
  • A token's expiry is compared with the phone's clock, so add a simple local check: save the latest time you have seen (from a successful server response or the device), and treat the cached token as unusable if the clock goes clearly backwards.
  • Online rejections win. If the server answers that the key is revoked, do not fall back to the cache. Use the cached token only when the network or server is unavailable.

Phone swaps, factory resets and refunds: self-service transfers and automatic revocation

A new phone or a factory reset produces a new device ID, so the old activation still holds a seat. Customers should be able to fix that without emailing you. Every PermitCore tenant has a customer portal at /portal/{your-slug}, where a customer enters the key, sees their activated devices and removes the old one, which frees the seat. You can require an email code before a device is removed (Professional plan and above). Link the portal from your app's settings screen and from the order email. The desktop version of this flow is in transferring a license to a new computer.

Refunds should change the license, not only the bank balance. A fully refunded or lost-dispute Store order revokes its license automatically, and a subscription license is deactivated when the subscription ends. The next online check fails; an offline phone stops working when its grace token runs out. If you also run your own systems, the license.revoked webhook tells them.

Leaked keys and shared APKs are handled the same way. Activation limits make a shared key run out of seats, the license page shows where it was activated, and you can revoke one key without touching honest customers. Minimum and maximum version rules on a license can also block very old builds after you fix something important. None of this makes copying impossible. A patched APK that removes the check will run, and the realistic response is in what to do if your software is cracked.

Unity, Godot and Kotlin: where to put the check

Put the check at start-up and before paid features, not in one place that a patch can skip. Activate once after the user enters the key, then validate on later launches.

Kotlin or Java (plain REST)

In a native Android app, call the REST API directly from your app or your backend: POST /activate once, then POST /validate on later launches. Run network calls off the main thread.

import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.provider.Settings
import org.json.JSONObject
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
import java.security.MessageDigest

const val API = "https://api.permitcore.dev/api/v1"

fun sha256Hex(value: String): String =
    MessageDigest.getInstance("SHA-256").digest(value.toByteArray(Charsets.UTF_8))
        .joinToString("") { "%02x".format(it) }

// Stable across updates and reinstalls signed with the same key (Android 8+).
@SuppressLint("HardwareIds")
fun deviceId(context: Context): String {
    val raw = Settings.Secure.getString(context.contentResolver, Settings.Secure.ANDROID_ID) ?: ""
    return sha256Hex(context.packageName + "|" + raw)
}

fun postJson(url: String, body: JSONObject): JSONObject {
    val conn = URL(url).openConnection() as HttpURLConnection
    conn.requestMethod = "POST"
    conn.connectTimeout = 10_000
    conn.readTimeout = 10_000
    conn.doOutput = true
    conn.setRequestProperty("Content-Type", "application/json")
    conn.outputStream.use { it.write(body.toString().toByteArray(Charsets.UTF_8)) }
    val code = conn.responseCode
    val stream = (if (code < 400) conn.inputStream else conn.errorStream)
        ?: throw IOException("HTTP $code")
    return JSONObject(stream.bufferedReader().use { it.readText() })
}

// Call once, after the user enters the key. Never on the main thread.
fun activate(context: Context, licenseKey: String, productId: String): JSONObject {
    val nonce = JSONObject(URL("$API/nonce").readText()).getString("nonce")
    return postJson("$API/activate", JSONObject()
        .put("licenseKey", licenseKey)
        .put("nonce", nonce)
        .put("deviceId", deviceId(context))
        .put("deviceName", Build.MODEL)
        .put("version", BuildConfig.VERSION_NAME)
        .put("expectedProductId", productId))
    // Check result.optBoolean("isValid") and result.optString("errorCode"),
    // e.g. "SeatsExhausted": point the user to the customer portal.
}

// On later launches: validate (no seat used) and keep the signed grace token.
fun validate(context: Context, licenseKey: String, productId: String): JSONObject =
    postJson("$API/validate", JSONObject()
        .put("licenseKey", licenseKey)
        .put("deviceId", deviceId(context))
        .put("version", BuildConfig.VERSION_NAME)
        .put("expectedProductId", productId))
    // Store result.optString("offlineCacheToken") when it is present.

To use the grace token offline, verify it before trusting it. PermitCore signs the base64url payload string with ECDSA P-256 and SHA-256 and sends a raw 64-byte signature. Android's SHA256withECDSA verifier expects DER, so convert it first. This example needs minSdk 26 (or library desugaring) for java.time:

import android.util.Base64
import org.json.JSONObject
import java.math.BigInteger
import java.security.KeyFactory
import java.security.Signature
import java.security.spec.X509EncodedKeySpec
import java.time.OffsetDateTime

// Raw r||s (64 bytes) to an ASN.1 DER ECDSA signature.
fun rawToDer(raw: ByteArray): ByteArray {
    val r = BigInteger(1, raw.copyOfRange(0, 32)).toByteArray()
    val s = BigInteger(1, raw.copyOfRange(32, 64)).toByteArray()
    return byteArrayOf(0x30, (4 + r.size + s.size).toByte(), 0x02, r.size.toByte()) + r +
        byteArrayOf(0x02, s.size.toByte()) + s
}

// Returns the verified claims, or null. TRUSTED_PUBLIC_KEY is the SPKI base64
// public key from /api/v1/{tenantSlug}/public-key, compiled into the app.
fun verifyGraceToken(token: String, licenseKey: String, deviceId: String, productId: String): JSONObject? = try {
    val parts = token.split(".")
    require(parts.size == 3 && parts[0] == "pc_grace_v1")
    val url = Base64.URL_SAFE or Base64.NO_WRAP
    val key = KeyFactory.getInstance("EC")
        .generatePublic(X509EncodedKeySpec(Base64.decode(TRUSTED_PUBLIC_KEY, Base64.NO_WRAP)))
    val raw = Base64.decode(parts[2], url)
    val verifier = Signature.getInstance("SHA256withECDSA").apply {
        initVerify(key)
        update(parts[1].toByteArray(Charsets.UTF_8))   // the base64url payload string itself
    }
    require(raw.size == 64 && verifier.verify(rawToDer(raw)))

    val claims = JSONObject(String(Base64.decode(parts[1], url), Charsets.UTF_8))
    val bound = if (claims.isNull("deviceId")) "" else claims.getString("deviceId")
    val nodeLocked = claims.isNull("nodeLocked") || claims.getBoolean("nodeLocked")
    require(claims.optBoolean("isValid"))
    require(OffsetDateTime.parse(claims.getString("validUntil")).isAfter(OffsetDateTime.now()))
    require(claims.optString("licenseKeySha256") == sha256Hex(licenseKey))
    require(claims.optString("productId").equals(productId, ignoreCase = true))
    require(bound.isEmpty() || bound.equals(deviceId, ignoreCase = true))
    require(!nodeLocked || (bound.isNotEmpty() && claims.optBoolean("deviceActivated")))
    claims
} catch (e: Exception) {
    null   // malformed, tampered, expired or for another key/device: not licensed
}

Unity

The Unity SDK supports mobile builds and uses UnityWebRequest. On Android, pass two things explicitly: UnityHardwareId.Get() as the device ID (Unity's SystemInfo.deviceUniqueIdentifier, which on Android is the MD5 of ANDROID_ID), and Application.persistentDataPath as the cache folder. More in integrating PermitCore with Unity.

using PermitCore;
using UnityEngine;

// ANDROID_ID-based on Android; survives updates signed with the same key.
var client = new PermitCoreClient("https://api.permitcore.dev",
    cacheDirectory: Application.persistentDataPath,
    trustedPublicKeys: new[] { TrustedTenantPublicKey },
    deviceId: UnityHardwareId.Get());

// Once, after the player enters the key:
var activation = await client.ActivateAsync(licenseKey,
    deviceName: SystemInfo.deviceModel,
    version: Application.version,
    expectedProductId: ProductId);

// Every later launch (falls back to the verified grace token when offline):
var result = await client.ValidateAsync(licenseKey, expectedProductId: ProductId);
if (!result.IsValid) ShowActivationScreen(result.Message);

Godot

The Godot SDK is a GDScript add-on with the same activate, validate and signed offline cache. As with any engine build, test your Android export on real phones before you sell it, and pass a stable device_id so a reinstall keeps the same device identity. See Godot license keys in GDScript.

Signing keys and package names: keep your APK signing key and your license signing key separate and backed up

After January you will have two different keys that matter, and mixing them up is expensive.

APK signing keyLicense signing key
What it signsYour APK (and proves package ownership for verification)License responses and offline tokens
Where it livesYour keystore, or Google's servers with Play App SigningYour PermitCore tenant (ECDSA P-256)
What ships in the appThe signature, not the keyOnly the public key
If you lose itYou cannot register the package, users cannot update to a build signed with a new key, and every ANDROID_ID-based device ID changesRotate: issue a new key and keep the previous public key in the app's trusted list until old tokens expire

Back up the keystore and its passwords in two places that are not your laptop, and write down which key signs which channel (Play, Galaxy Store, your website). If you rotate the APK key later, register the new key for the package before you ship with it. Never put the license private key in the app. The rotation steps are in license signing key rotation.

Your address on the listing: business address options for EEA/UK "trader" developers

A related change landed in the same weeks. Google Play's trader status declaration requires every active Play developer account to declare by 1 February 2027 whether it is a trader under EEA and UK law, ahead of Play's move to an online marketplace model in those regions on 1 March 2027. Selling paid apps, in-app purchases or ad-supported apps on a regular basis usually makes you a trader. For a personal account that declares as a trader, Google says a contact phone number is shown on Play and the address is also public. Reports from Android Authority and others say the details are shown worldwide and that PO boxes are not accepted.

This only affects your Play listing, but direct sellers have a similar duty: EU consumer law generally expects an online seller to show who they are and a geographic address. If you do not want your home address public:

  • Sell through a legal entity, such as a company, with its own business address. Google's organization accounts need a D-U-N-S number, so start early.
  • Use a staffed office, coworking or registered office service address where it is legally allowed to be your business address. Check what Google and your local rules accept before relying on it.
  • If you use a merchant of record, it is the seller on the invoice, but your own website and any store listing still need correct contact details.

Do not declare yourself a non-trader just to hide an address if you sell commercially. Google warns that a false declaration can lead to removal, and if you are unsure, ask a lawyer.

Checklist before January 2027

  1. Create your Android Developer Console account, or check your Play Console account, and finish identity verification. Request a D-U-N-S number now if you register as an organization.
  2. Register every package name you distribute outside Play, with every signing key you use. Check the status in the console or in Android Studio when you build a signed APK.
  3. Back up each APK signing key in two safe places and record which key signs which channel.
  4. Remove any dependency on Google Play Licensing or Play Integrity licensing verdicts from your direct-sale build.
  5. Choose your checkout: a merchant of record or your own Stripe account with tax handled.
  6. Send the APK link and the license key together in the order email, and publish a checksum for each release.
  7. Use a hashed ANDROID_ID as the device ID. Never use IMEI, serial number or MAC.
  8. Set offline grace days, verify signed tokens in the app, ship the public key in the app and add a simple clock-rollback check.
  9. Link the customer portal from your settings screen, and test a phone swap and a factory reset end to end.
  10. Run a test purchase and a full refund in test mode, and confirm the key is revoked.
  11. If you are also on Google Play, make your trader declaration before 1 February 2027 with an address you are willing to publish.

Developer verification makes Android installs more accountable, and a registered direct-sale app will install as smoothly as one from a store. Getting paid, delivering the key and keeping one purchase on a reasonable number of phones is still your job. If you want those parts ready-made, start with the Store guide or compare plans on the pricing page. For the iPhone side, see selling iOS app unlocks through your own web checkout.

Sources

Checked on 29 November 2026:

Put the guide into practice

Build your first licensed product without building a license server.

Create a free PermitCore account, issue a test license, and validate it from your application.