Trying to prevent dummy sync service to be run by system

This commit is contained in:
Sylvain Berfini 2022-03-29 10:35:57 +02:00
parent 616ca795cb
commit 62eea3fdb4
4 changed files with 5 additions and 4 deletions

View file

@ -20,6 +20,7 @@ Group changes to describe their impact on the project, as follows:
### Fixed
- Catching exceptions in new ContactsLoader reported on PlayStore
- Missing phone numbers in contacts when label contains a space character (5.1.24 SDK fix)
- Prevent app from starting by itself due to DummySyncService
- Hide chat rooms settings not working properly
## [4.6.5] - 2022-04-11

View file

@ -158,7 +158,7 @@
<service
android:name=".contact.DummySyncService"
android:exported="true">
android:exported="false">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
@ -172,7 +172,7 @@
</service>
<service android:name=".contact.DummyAuthenticationService"
android:exported="true">
android:exported="false">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>

View file

@ -47,7 +47,7 @@ class DummySyncService : Service() {
synchronized(syncAdapterLock) {
Log.i("[Dummy Sync Adapter] Sync Service created")
if (syncAdapter == null) {
syncAdapter = DummySyncAdapter(applicationContext, true)
syncAdapter = DummySyncAdapter(applicationContext, false)
Log.i("[Dummy Sync Adapter] Sync Adapter created")
}
}

View file

@ -4,6 +4,6 @@
android:accountType="@string/sync_account_type"
android:contentAuthority="com.android.contacts"
android:supportsUploading="false"
android:userVisible="true"
android:userVisible="false"
android:allowParallelSyncs="false"
android:isAlwaysSyncable="false" />