Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19aa0810 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

fix: Remove excessive privileges

parent a1eb1df3
Loading
Loading
Loading
Loading
+43 −31
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@
        <service
            android:name=".syncadapter.CalendarsSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -237,7 +237,7 @@
        <service
            android:name=".syncadapter.JtxSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -248,7 +248,7 @@
        <service
            android:name=".syncadapter.OpenTasksSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -259,7 +259,7 @@
        <service
            android:name=".syncadapter.TasksOrgSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -281,6 +281,7 @@
        <!-- account type "DAVx⁵ Address book" -->
        <service
            android:name=".syncadapter.AddressBookAuthenticatorService"
            android:permission="android.permission.AUTHENTICATE_ACCOUNTS"
            android:exported="true">   <!-- Since Android 11, this must be true so that Google Contacts shows the address book accounts -->
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator"/>
@@ -298,7 +299,7 @@
        <service
            android:name=".syncadapter.AddressBooksSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -310,7 +311,7 @@
        <service
            android:name=".syncadapter.ContactsSyncAdapterService"
            android:exported="true"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
@@ -340,7 +341,7 @@
            android:name=".syncadapter.MurenaCalendarsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
	    </intent-filter>
@@ -354,7 +355,7 @@
            android:name=".syncadapter.MurenaTasksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -368,7 +369,7 @@
            android:name=".syncadapter.MurenaNotesSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -382,7 +383,7 @@
            android:name=".syncadapter.MurenaEmailSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -396,7 +397,7 @@
            android:name=".syncadapter.MurenaMediaSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -410,7 +411,7 @@
            android:name=".syncadapter.MurenaAppDataSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -425,7 +426,7 @@
            android:name=".syncadapter.MurenaMeteredEdriveSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -452,7 +453,7 @@
            android:name=".syncadapter.MurenaAddressBooksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -466,7 +467,7 @@
            android:name=".syncadapter.MurenaContactsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -496,7 +497,7 @@
            android:name=".syncadapter.GoogleCalendarsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -510,7 +511,7 @@
            android:name=".syncadapter.GoogleTasksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -537,7 +538,7 @@
            android:name=".syncadapter.GoogleAddressBooksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -551,7 +552,7 @@
            android:name=".syncadapter.GoogleContactsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -568,7 +569,7 @@
            android:name=".syncadapter.GoogleEmailSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -595,7 +596,7 @@
            android:name=".syncadapter.YahooCalendarsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -609,7 +610,7 @@
            android:name=".syncadapter.YahooTasksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -623,7 +624,7 @@
            android:name=".syncadapter.YahooEmailSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -650,7 +651,7 @@
            android:name=".syncadapter.YahooAddressBooksSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -664,7 +665,7 @@
            android:name=".syncadapter.YahooContactsSyncAdapterService"
            android:exported="true"
            android:process=":sync"
            tools:ignore="ExportedService">
            android:permission="android.permission.BIND_SYNC_ADAPTER">
            <intent-filter>
                <action android:name="android.content.SyncAdapter" />
            </intent-filter>
@@ -681,7 +682,7 @@
            android:name="com.owncloud.android.services.AccountManagerService"
            android:enabled="true"
            android:exported="true"
            tools:ignore="ExportedService" />
            android:permission="android.permission.MANAGE_ACCOUNTS" />

        <!-- Callback from authentication screen -->
        <activity android:name="net.openid.appauth.RedirectUriReceiverActivity"
@@ -719,7 +720,8 @@

        <receiver
            android:name=".receiver.BootCompletedReceiver"
            android:exported="true">
            android:exported="true"
            android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
@@ -728,7 +730,8 @@
        <receiver
            android:name=".receiver.AccountRemovedReceiver"
            android:enabled="true"
            android:exported="true">
            android:exported="true"
            android:permission="android.permission.MANAGE_ACCOUNTS">
            <intent-filter>
                <action android:name="android.accounts.action.ACCOUNT_REMOVED"/>
            </intent-filter>
@@ -750,8 +753,14 @@
    <queries>
        <!-- system providers (listing them is technically not required, but some apps like the
        Huawei calendar take this as indication of whether these providers are accessed) -->
        <provider android:authorities="com.android.calendar"/>
        <provider android:authorities="com.android.contacts"/>
        <provider
            android:authorities="com.android.calendar"
            android:exported="true"
            />
        <provider
            android:authorities="com.android.contacts"
            android:exported="true"
            />

        <!-- task providers -->
        <package android:name="at.techbee.jtx" />
@@ -782,7 +791,10 @@
            <action android:name="android.support.customtabs.action.CustomTabsService" />
        </intent>

        <provider android:authorities="foundation.e.mail.provider.AppContentProvider" />
        <provider
            android:authorities="foundation.e.mail.provider.AppContentProvider"
            android:exported="true"
            />
    </queries>

</manifest>
 No newline at end of file