Files
Jordan Hayes 2aae8e5b13 Integrate CP2 Android B Default Account APIs
Sdk 36 introduced new APIs for managing the default account for new
contacts that change the behavior of CP2 when certain default accounts
are set,
https://developer.android.com/identity/providers/contacts-provider/contacts-storage-locations?hl=en.

The app now delegates to the default account picker in CP2 whenever the
user would have been prompted to set a default account, e.g. when
inserting without a default or through app settings.

Since CP2 does not allow new contacts in local accounts when the
default account is set to a cloud, the app hides these accounts
during insert flows.

Bug: 402284112
Test: manual and ran test suite
Flag: NONE unflaggable OS requirements
Change-Id: I39d7a879b5972f78dc690006535a3a3fa13f5bac
2025-05-02 16:58:24 -07:00
..
2025-05-02 09:10:07 -07:00
2020-01-16 15:25:37 -08:00
2020-01-17 16:37:22 -08:00

# Running tests

Build and install Contacts.apk

Grant Contacts permissions to Contacts.apk

Run
```shell
$ atest ContactsTests
```

More information can be found at
https://source.android.com/compatibility/tests/development/atest