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

Commit 5ef7f66e authored by Eric Biggers's avatar Eric Biggers
Browse files

BootReceiver: stop using IPackageManager::isOnlyCoreApps()

Due to the removal of support for Full Disk Encryption, this method
always returns false.  In preparation for removing it, stop calling it
from BootReceiver.

Bug: 208476087
Change-Id: I842365aa1c7878089ba63466ebe1a6264e62c601
parent 76d453ff
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -21,15 +21,12 @@ import static android.system.OsConstants.O_RDONLY;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.IPackageManager;
import android.os.Build;
import android.os.DropBoxManager;
import android.os.Environment;
import android.os.FileUtils;
import android.os.MessageQueue.OnFileDescriptorEventListener;
import android.os.RecoverySystem;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemProperties;
import android.provider.Downloads;
import android.system.ErrnoException;
@@ -140,15 +137,7 @@ public class BootReceiver extends BroadcastReceiver {
                    Slog.e(TAG, "Can't log boot events", e);
                }
                try {
                    boolean onlyCore = false;
                    try {
                        onlyCore = IPackageManager.Stub.asInterface(ServiceManager.getService(
                                "package")).isOnlyCoreApps();
                    } catch (RemoteException e) {
                    }
                    if (!onlyCore) {
                    removeOldUpdatePackages(context);
                    }
                } catch (Exception e) {
                    Slog.e(TAG, "Can't remove old update packages", e);
                }