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
# 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