diff options
author | Hongguang <hgchen@google.com> | 2022-04-06 11:36:39 -0700 |
---|---|---|
committer | Hongguang <hgchen@google.com> | 2022-04-06 11:36:39 -0700 |
commit | 894b331b27509849a96b73e074850e1914405ecb (patch) | |
tree | 196818bb015999a1a60710558497d35049650a4c | |
parent | 4a81888cc988324c5262d650155ee39c53b63723 (diff) | |
download | atv-894b331b27509849a96b73e074850e1914405ecb.tar.gz |
Add ACTION_SET_DEFAULT_ACCOUNT intent handler
Add missing ACTION_SET_DEFAULT_ACCOUNT handler as a stub, which will
show a "Not supported" message. Not implemented on TV because TV doesn't
support Contacts app
Fix: 226675651
Test: atest android.provider.cts.contacts.ContactsContractIntentsTest
Change-Id: I0caa421cf3012812c9f2b4e23e89c8e4fa8d89ed
-rw-r--r-- | FrameworkPackageStubs/AndroidManifest.xml | 6 | ||||
-rw-r--r-- | overlay/TvFrameworkOverlay/res/values/config.xml | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/FrameworkPackageStubs/AndroidManifest.xml b/FrameworkPackageStubs/AndroidManifest.xml index 507bd20..2803156 100644 --- a/FrameworkPackageStubs/AndroidManifest.xml +++ b/FrameworkPackageStubs/AndroidManifest.xml @@ -10,6 +10,7 @@ /> <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> + <uses-permission android:name="android.permission.SET_DEFAULT_ACCOUNT_FOR_CONTACTS"/> <application android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" @@ -364,6 +365,11 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> + <intent-filter android:priority="-1"> + <action android:name="android.provider.action.SET_DEFAULT_ACCOUNT"/> + <category android:name="android.intent.category.DEFAULT"/> + </intent-filter> + </activity> <!-- Email package stubs. diff --git a/overlay/TvFrameworkOverlay/res/values/config.xml b/overlay/TvFrameworkOverlay/res/values/config.xml index 325fc03..c0c95f1 100644 --- a/overlay/TvFrameworkOverlay/res/values/config.xml +++ b/overlay/TvFrameworkOverlay/res/values/config.xml @@ -144,4 +144,7 @@ <!-- Determines whether SafetyCenter feature is enabled. SafetyCenter is not yet supported on TV. --> <bool name="config_enableSafetyCenter">false</bool> + + <!-- The name of the package that will hold the system contacts role. --> + <string name="config_systemContacts" translatable="false">com.android.tv.frameworkpackagestubs</string> </resources> |