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

Commit 6590d7c7 authored by Adam Lesinski's avatar Adam Lesinski
Browse files

Make UsageStats API default on only for the system

This changes the PACKAGE_USAGE_STATS permission to be
a signature only permission, meaning that only apps
signed with the system signature have access to the
UsageStats API enabled by default.

Bug:17428130
Change-Id: I79ba54d7102c770ea2490f014a1f6736f0f46b3a
parent eddeb49a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2502,7 +2502,7 @@
    <permission android:name="android.permission.PACKAGE_USAGE_STATS"
        android:label="@string/permlab_pkgUsageStats"
        android:description="@string/permdesc_pkgUsageStats"
        android:protectionLevel="signature|system|development|appop" />
        android:protectionLevel="signature|development|appop" />
    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />

    <!-- @SystemApi Allows an application to collect battery statistics -->