Skip to content

Commit 74d47f5

Browse files
committed
export the account authenticator, so the contacts app can see this package
1 parent cc1e8e0 commit 74d47f5

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎app/src/main/AndroidManifest.xml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,20 @@
6969
<!-- Registers the Peergos account type, which is what makes the calendar toggle
7070
appear under Settings > Accounts. It issues no tokens: the sync adapter takes
7171
its session from the app's stored MountConfig. -->
72+
<!--
73+
Exported because of package visibility. The contacts app has no query for this
74+
package, so from Android 11 it can only see us through a component it can
75+
resolve, and the account authenticator is that component. Unexported, the
76+
authenticator is filtered out of the list the app builds its account types
77+
from, it never looks for our contacts.xml at all, and the account is left out
78+
of the accounts a new contact can be saved to. Other CardDAV clients export
79+
theirs for the same reason. Binding it still gets an authenticator that issues
80+
no tokens.
81+
-->
7282
<service
7383
android:name=".sync.PeergosAuthenticatorService"
74-
android:exported="false">
84+
android:exported="true"
85+
tools:ignore="ExportedService">
7586
<intent-filter>
7687
<action android:name="android.accounts.AccountAuthenticator" />
7788
</intent-filter>

0 commit comments

Comments
 (0)