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

Commit aa9bab9d authored by Sumod Mukkumkal Chandran's avatar Sumod Mukkumkal Chandran Committed by Steve Kondik
Browse files

Phone App crash: process com.android.phone has stopped.

Fix for the issue Phone App crash Unfortunately, the process
com.android.phone has stopped.

Change-Id: I70c941cb061c1066c79bfd293ebe1a3c63908fd9
parent 6e91f68e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -908,18 +908,22 @@ public class SubscriptionController extends ISub.Stub {

        // Now that all security checks passes, perform the operation as ourselves.
        final long identity = Binder.clearCallingIdentity();
        int result = -1;
        try {
            ContentValues value = new ContentValues(1);
            value.put(SubscriptionManager.CARRIER_NAME, text);

            int result = mContext.getContentResolver().update(SubscriptionManager.CONTENT_URI,
            result = mContext.getContentResolver().update(SubscriptionManager.CONTENT_URI,
                    value, SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" +
                    Long.toString(subId), null);
            notifySubscriptionInfoChanged();

            return result;
        } catch (android.database.sqlite.SQLiteDiskIOException e) {
            e.printStackTrace();
        } finally {
            Binder.restoreCallingIdentity(identity);
            return result;
        }
    }

+6 −2
Original line number Diff line number Diff line
@@ -1575,8 +1575,12 @@ public class PduPersister {
     * Remove all objects in the temporary path.
     */
    public void release() {
        try {
            Uri uri = Uri.parse(TEMPORARY_DRM_OBJECT_URI);
            SqliteWrapper.delete(mContext, mContentResolver, uri, null, null);
        } catch (android.database.sqlite.SQLiteDiskIOException e) {
            e.printStackTrace();
        }
    }

    /**