6

I'm using applinks follow: https://developer.android.com/training/app-links/verify-site-associations

When use cmd : adb shell pm verify-app-links

show: Unknown command: verify-app-links

my adb version is:

$ adb --version
Android Debug Bridge version 1.0.41
Version 31.0.3-7562133

almost the latest, why Unknown command: verify-app-links?

Lino
  • 5,084
  • 3
  • 21
  • 39
Matrix
  • 503
  • 3
  • 17

1 Answers1

8

The prefix adb shell indicates that the command is executed on Android side, thus unless the adb shell command itself fails the platform-tools have no impact on the command.

A little bit up on the linked page you can read "Starting in Android 12". Most likely adb shell pm verify-app-links is also limited to devices with Android 12 or higher.

Robert
  • 39,162
  • 17
  • 99
  • 152
  • running android 12 emulator, as long the device is online/available, and don't forget to runs your apps as well with the proper package, to verify the app link, I'm able to execute this command line program now. thanks! – mochadwi Aug 22 '23 at 03:58