Website Spec
← Well-Known URIs
Optional

/.well-known/assetlinks.json

Android's Digital Asset Links file proves that an Android app and a web domain are owned by the same entity. It powers App Links and Smart Lock for Passwords.

What it is

assetlinks.json is Google's equivalent of Apple's AASA file. It is a JSON document published at /.well-known/assetlinks.json that declares which Android applications are allowed to act on behalf of your web domain. Android verifies this file before honouring App Links and several credential-sharing features.

The format is defined by the Digital Asset Links protocol, which is also used for cross-app verification and SmartLock.

Why it matters

If you do not ship an Android app, you do not need this file.

How to implement

Publish a JSON array. Each entry declares one relation between your site and one app.

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.example.app",
      "sha256_cert_fingerprints": [
        "14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5"
      ]
    }
  }
]

Rules:

Common mistakes

Verification

curl -s https://example.com/.well-known/assetlinks.json | jq .

Use Google's Statement List Generator and Tester and Android Studio's "App Links Assistant". On a device, adb shell pm get-app-links com.example.app shows whether verification succeeded and why if it did not.

Sources