Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 39a77217 authored by Songchun Fan's avatar Songchun Fan
Browse files

[PreVerfiedDomains] use pre-verified domains in DomainVerification

BUG: 307327678
Test: manual with the following steps:

// First disable the domain verification agent on device so pre-verified states don't get overwritten immediately
0) adb shell pm disable com.google.android.gms
1) adb shell pm install-create
Success: created install session [1460136727]
2) adb push ~/Downloads/WhatsApp.apk /data/local/tmp/
3) adb shell pm install-write 1460136727 base /data/local/tmp/WhatsApp.apk
Success: streamed 82042126 bytes
4) adb shell pm install-set-pre-verified-domains 1460136727 call.whatsapp.com,www.whatsapp.com
5) adb shell pm install-commit 1460136727
Success
6) adb shell pm get-app-links com.whatsapp
  com.whatsapp:
    ID: 5630e717-a175-43da-ae8b-edc8a3be7971
    Signatures: [39:87:D0:43:D1:0A:EF:AF:5A:87:10:B3:67:14:18:FE:57:E0:E1:9B:65:3C:9D:F8:25:58:FE:B5:FF:CE:5D:44]
    Domain verification state:
      api.whatsapp.com: none
      www.whatsapp.com: pre_verified
      call.whatsapp.com: pre_verified
      wa.me: none
      v.whatsapp.com: none
      whatsapp.com: none
      chat.whatsapp.com: none

Test: atest android.packageinstaller.install.cts.InstallPreVerifiedDomainsTest
Test: atest
com.android.server.pm.test.verify.domain.DomainVerificationPackageTest
Test: integration test to be added

Change-Id: I7cfeacd93fdb23785d77109a2d54ff7470c4e263
parent 817cd868
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment