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

Commit 0deb0104 authored by Koushik Dutta's avatar Koushik Dutta
Browse files

SECURITY FIX: Fix package uids being reused between uninstall and reinstall of different packages.

Policies for older packages were being granted to the newly installed package that got the recyled uid.

Change-Id: I6c74cf6762e8da10e09d5cf5d94e9f826e47f24d
parent 54a5d859
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -136,6 +136,21 @@
            android:name=".cyanogenmod.superuser.SuReceiver"
            android:permission="android.permission.REPORT_SUPERUSER" />

        <receiver
            android:name=".cyanogenmod.superuser.PackageChangeReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <data android:scheme="package" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <data android:scheme="package" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_REMOVED" />
                <data android:scheme="package" />
            </intent-filter>
        </receiver>

        <!-- Settings -->

+4 −0
Original line number Diff line number Diff line
package com.android.settings.cyanogenmod.superuser;

public class PackageChangeReceiver extends com.koushikdutta.superuser.PackageChangeReceiver {
}
 No newline at end of file