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

Commit 27f556ae authored by Romain Hunault's avatar Romain Hunault
Browse files

Applying the restricted signature spoofing patch to frameworks/base for microG

parent cb9ed7b8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2357,6 +2357,13 @@
        android:description="@string/permdesc_getPackageSize"
        android:protectionLevel="normal" />

    <!-- @hide Allows an application to change the package signature as
	 seen by applications -->
    <permission android:name="android.permission.FAKE_PACKAGE_SIGNATURE"
        android:protectionLevel="signature|privileged"
        android:label="@string/permlab_fakePackageSignature"
        android:description="@string/permdesc_fakePackageSignature" />

    <!-- @deprecated No longer useful, see
         {@link android.content.pm.PackageManager#addPackageToPreferred}
         for details. -->
+4412 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -1717,6 +1717,8 @@
    <string-array name="config_locationProviderPackageNames" translatable="false">
        <!-- The standard AOSP fused location provider -->
        <item>com.android.location.fused</item>
        <!-- The (faked) microg fused location provider (a free reimplementation) -->
        <item>com.google.android.gms</item>
    </string-array>

    <!-- This string array can be overriden to enable test location providers initially. -->
+3574 −0

File added.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -785,6 +785,11 @@

    <!--  Permissions -->

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_fakePackageSignature">Spoof package signature</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_fakePackageSignature">Allows the app to pretend to be a different app. Malicious applications might be able to use this to access private application data. Legitimate uses include an emulator pretending to be what it emulates. Grant this permission with caution only!</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_statusBar">disable or modify status bar</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
Loading