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

Commit b2084d8f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Cleanup: remove DSS RemoteException references" into rvc-dev am: c1ddf61c

Change-Id: Ib8656d3a035a31c0f9d216ccb3769d87ac2b3068
parents ae8cd271 c1ddf61c
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ public class DynamicSystemService extends IDynamicSystemService.Stub {
        mContext = context;
    }

    private IGsiService getGsiService() throws RemoteException {
    private IGsiService getGsiService() {
        checkPermission();
        if (mGsiService != null) {
            return mGsiService;
@@ -60,8 +60,7 @@ public class DynamicSystemService extends IDynamicSystemService.Stub {
    }

    private void checkPermission() {
        if (mContext.checkCallingOrSelfPermission(
                        android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
        if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.MANAGE_DYNAMIC_SYSTEM)
                != PackageManager.PERMISSION_GRANTED) {
            throw new SecurityException("Requires MANAGE_DYNAMIC_SYSTEM permission");
        }
@@ -147,12 +146,12 @@ public class DynamicSystemService extends IDynamicSystemService.Stub {
    }

    @Override
    public boolean isInUse() throws RemoteException {
    public boolean isInUse() {
        return SystemProperties.getBoolean("ro.gsid.image_running", false);
    }

    @Override
    public boolean isInstalled() throws RemoteException {
    public boolean isInstalled() {
        boolean installed = SystemProperties.getBoolean("gsid.image_installed", false);
        Slog.i(TAG, "isInstalled(): " + installed);
        return installed;