Android App Links not working on Android 12+? The verification changes explained
Android 12 changed what happens to an unverified https link: it opens the browser, with no chooser. What changed in Android 12, what Android 15 added (background re-verification and dynamic rules in assetlinks.json), the adb commands that only exist from Android 12, and how to ask a user to turn your links on.
Since Android 12, an https link opens your app only if the app is approved for that link's domain. Approval comes from a passed Digital Asset Links check or from the user turning the domain on in settings. Without it, the link goes straight to the default browser, where older versions showed an "Open with" chooser. So a setup that seemed to work on Android 11 can open Chrome on Android 12 and later without anything in your app having changed.
This post covers what is different from Android 12 onwards. For the checks that apply to every version (fingerprints, the intent filter, the file's headers), see Android App Links not verified? Fix assetlinks.json.
What Android 12 changed
Android's list of behaviour changes for all apps on Android 12 states it in one paragraph:
Starting in Android 12 (API level 31), a generic web intent resolves to an activity in your app only if your app is approved for the specific domain contained in that web intent. If your app isn't approved for the domain, the web intent resolves to the user's default browser app instead.
Three things follow from it:
- It applies to every app, whatever its
targetSdkVersion. You can't opt out by targeting an older API level. - The chooser is gone for web links. Before Android 12, an unverified
httpsintent filter still got your app into the "Open with" dialog, and a user could pick the app and choose "Always". From Android 12 there is no dialog, so an app that relied on it no longer opens. - Approval is per domain. Each host in your manifest is approved or not on its own.
Custom scheme links (myapp://) aren't web intents and aren't affected.
By Android version
| Android 6 to 11 | Android 12 to 14 | Android 15 and later | |
|---|---|---|---|
Unverified https link |
Chooser dialog | Opens the browser | Opens the browser |
| What must verify | Every host in the manifest, or the app isn't the default handler for any | Each domain has its own state | Each domain has its own state |
pm get-app-links and pm verify-app-links |
Not available | Available | Available |
| User can add a domain by hand in settings | No | Yes | Yes |
| Background re-verification | No | No | Yes, periodically |
Rules in assetlinks.json (Dynamic App Links) |
No | Ignored | Yes, with Google services |
The first two rows explain most "it worked before" reports. On Android 11 and lower, Android's documentation says the app becomes the default handler only if a matching file is found for all hosts in the manifest, so one broken host broke every host. From Android 12 a broken host fails alone, and pm get-app-links shows you which one.
How an app gets approved
Android's documentation lists two ways.
1. Verify the domain. Add android:autoVerify="true" to the intent filter and host assetlinks.json on the domain. For apps that target Android 12 or higher, the same page says the system changed how it verifies automatically and tells you to check that the intent filter includes the BROWSABLE category and supports the https scheme:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="links.example.com" />
</intent-filter>
2. The user associates the app with the domain in system settings. This is the fallback when verification can't pass, and you can send the user to that screen (see below).
Commands that exist from Android 12
Read the state of each domain:
adb shell pm get-app-links com.example.app
The output lists every host with a state. The ones you'll meet:
| State | Meaning |
|---|---|
verified |
The check passed. Links open the app. |
approved |
Approved by force, usually with a shell command |
denied |
Denied by force, usually with a shell command |
none |
Nothing recorded yet. Verification may still be running. |
legacy_failure |
Rejected by the older verifier; the reason isn't recorded |
migrated or restored |
Carried over from an older verification or from a backup |
system_configured |
Approved by the device's own configuration |
1024 or higher |
An error code from the device's verifier |
Run the check again after you fix the file:
# Reset the saved state, then ask for verification
adb shell pm set-app-links --package com.example.app 0 all
adb shell pm verify-app-links --re-verify com.example.app
# Wait, then read the result
adb shell pm get-app-links com.example.app
Android's documentation says to allow a few minutes after the re-verify command, and at least 20 seconds after a fresh install before you test a link.
If your app doesn't target Android 12 yet, you can turn the new verification on for it to see what will happen when you do:
adb shell am compat enable 175408749 com.example.app
To see what the user chose, as opposed to what was verified:
adb shell pm get-app-links --user cur com.example.app
Check the state from inside the app
From API level 31 the app can read its own state and react, for example by showing a hint when links are off:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
val manager = getSystemService(DomainVerificationManager::class.java)
val userState = manager.getDomainVerificationUserState(packageName)
val states = userState?.hostToStateMap.orEmpty()
val verified = states.filterValues { it == DomainVerificationUserState.DOMAIN_STATE_VERIFIED }
val selected = states.filterValues { it == DomainVerificationUserState.DOMAIN_STATE_SELECTED }
val off = states.filterValues { it == DomainVerificationUserState.DOMAIN_STATE_NONE }
}
DOMAIN_STATE_VERIFIED means the file check passed. DOMAIN_STATE_SELECTED means the user added the domain by hand. DOMAIN_STATE_NONE means links to that host open the browser.
Ask the user to turn links on
When a domain is in DOMAIN_STATE_NONE and you can't fix verification on that device, open the app's link settings:
val intent = Intent(
Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS,
Uri.parse("package:$packageName")
)
startActivity(intent)
The user lands on the Open by default screen, where they turn on Open supported links and tick your domain under Links to open in this app (or use Add link). Explain why before you send them there, and ask once, at a moment when a link has just failed to open the app. This screen is also where a user can turn your verified links off, which is one reason a single tester sees the browser while everyone else gets the app.
What Android 15 added
Background re-verification. Android's documentation describes two behaviours when you change assetlinks.json:
- Android 15 (API level 35) and higher: the system re-verifies domains periodically in the background, and changes can take up to seven days to reach a device.
- Android 14 and lower: there is no periodic re-verification. A changed file is normally picked up only when the app is installed or updated.
So a fingerprint you add today fixes Android 15 devices over the following week, and older devices at their next app update. The same page notes that server-side caches can delay the result for a few hours even after a reinstall.
Dynamic App Links. On Android 15 and later, with Google services, assetlinks.json can carry link rules that the system merges with the manifest:
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.app",
"sha256_cert_fingerprints": ["AA:BB:…"]
},
"relation_extensions": {
"delegate_permission/common.handle_all_urls": {
"dynamic_app_link_components": [
{"/": "/account/delete", "exclude": true},
{"/": "/products/*"},
{"/": "*", "exclude": true}
]
}
}
}
]
Rules are read in order and the first match wins. If nothing matches, the URL doesn't open the app, so a list that only excludes paths must end with {"/": "*"}. The rules can narrow what the manifest declares but can't widen it, so keep the manifest broad (scheme and host only) and refine on the server. Devices on Android 14 and lower ignore the extension and use the manifest alone. If any field is malformed, Android drops the dynamic rules and uses the manifest.
Android's documentation also records that a Google Play services fix in September 2026 resolved an issue where some Android 15 devices intermittently didn't apply dynamic rules and used the manifest's intent filters alone. If excluded URLs opened your app on some devices earlier this year, that may be why.
A short checklist for Android 12 and later
adb shell pm get-app-links <package>: is each hostverified?- If not, check the file with the validator: HTTP 200,
application/json, no redirect, the right package name and every signing fingerprint you install with (debug builds and Play App Signing). - Check the intent filter:
autoVerify,VIEW,DEFAULT,BROWSABLE,httpsand a bare host. - Re-verify with the commands above and wait.
- If the host is
verifiedand the browser still opens, look at Open by default on that phone, then at where the link was tapped. In-app browsers and typed URLs don't trigger App Links; see the link opens the Play Store or browser instead of the app. - For users you can't fix remotely, read the state in the app and offer the settings screen.
The generator writes a correct assetlinks.json from your package name and fingerprints.
FAQ
Why do my links open Chrome on Android 12 but the app on Android 11?
On Android 11 an unverified link showed a chooser, and the user could pick your app. Android 12 removed that for web links: without an approved domain, the link opens the default browser. Fix verification, or ask the user to add the domain under Open by default.
Does this affect apps that don't target Android 12?
Yes. Android lists it among the behaviour changes for all apps running on Android 12, regardless of target SDK version.
How do I re-verify App Links on Android 12?
Run adb shell pm verify-app-links --re-verify <package>, wait a few minutes, then read the result with adb shell pm get-app-links <package>.
How long does a change to assetlinks.json take to reach users?
On Android 15 and later, up to seven days, because the system re-verifies in the background. On Android 14 and lower, usually not until the app is installed or updated.
Can users still choose my app for a domain that isn't verified?
Yes, by hand. Under the app's Open by default screen they can add the domain with Add link. Your app can open that screen with Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS.
Verified from the first install
CodeOnAir AppLinks hosts assetlinks.json for your link domain from the package name and SHA-256 fingerprints you enter, so every link on that domain is a verified App Link, and a link opened without the app goes to Google Play and returns the user to the right screen after install. The manifest entries and the DeepLink.handleIntent(intent) call are in the Android SDK docs. You can create a free account: the Free plan includes 100 app links.
Checked on 16 November 2026 against Android's behaviour changes for Android 12, and the App Links documentation on verification, Digital Asset Links configuration and Dynamic App Links.