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

Commit 3e69a350 authored by Chen Xu's avatar Chen Xu
Browse files

remove hidden APIs in sqlitewrapper

Bug: 137202333
Test: Build & Unit test
Merged-In: I25f9075eeb5f5f59f77f5a8b55dfea96d64137e5
Change-Id: I25f9075eeb5f5f59f77f5a8b55dfea96d64137e5
(cherry picked from commit 4bd72305)
parent f9f3936c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.database.ContentObserver;
import android.database.sqlite.SqliteWrapper;
import android.net.Uri;
import android.os.AsyncResult;
import android.os.Binder;
@@ -1591,8 +1590,7 @@ public abstract class SMSDispatcher extends Handler {
                // If we wrote this message in writeSentMessage, update it now
                ContentValues values = new ContentValues(1);
                values.put(Sms.STATUS, status);
                SqliteWrapper.update(context, context.getContentResolver(),
                        mMessageUri, values, null, null);
                context.getContentResolver().update(mMessageUri, values, null, null);
            }
        }

@@ -1612,7 +1610,7 @@ public abstract class SMSDispatcher extends Handler {
            values.put(Sms.ERROR_CODE, errorCode);
            final long identity = Binder.clearCallingIdentity();
            try {
                if (SqliteWrapper.update(context, context.getContentResolver(), mMessageUri, values,
                if (context.getContentResolver().update(mMessageUri, values,
                        null/*where*/, null/*selectionArgs*/) != 1) {
                    Rlog.e(TAG, "Failed to move message to " + messageType);
                }
+19 −26
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ import android.content.ServiceConnection;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SqliteWrapper;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
@@ -492,9 +491,7 @@ public class WapPushOverSms implements ServiceConnection {
                    // Update thread ID for ReadOrigInd & DeliveryInd.
                    final ContentValues values = new ContentValues(1);
                    values.put(Telephony.Mms.THREAD_ID, threadId);
                    if (SqliteWrapper.update(
                            mContext,
                            mContext.getContentResolver(),
                    if (mContext.getContentResolver().update(
                            uri,
                            values,
                            null/*where*/,
@@ -566,9 +563,7 @@ public class WapPushOverSms implements ServiceConnection {
        }
        Cursor cursor = null;
        try {
            cursor = SqliteWrapper.query(
                    context,
                    context.getContentResolver(),
            cursor = context.getContentResolver().query(
                Telephony.Mms.CONTENT_URI,
                new String[]{ Telephony.Mms.THREAD_ID },
                THREAD_ID_SELECTION,
@@ -601,9 +596,7 @@ public class WapPushOverSms implements ServiceConnection {
            String[] selectionArgs = new String[] { location };
            Cursor cursor = null;
            try {
                cursor = SqliteWrapper.query(
                        context,
                        context.getContentResolver(),
                cursor = context.getContentResolver().query(
                    Telephony.Mms.CONTENT_URI,
                    new String[]{ Telephony.Mms._ID },
                    LOCATION_SELECTION,