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

Commit 145f01a1 authored by Meng Wang's avatar Meng Wang
Browse files

Remove hidden API usage: isFileEncryptedNativeOrEmulated

New devices since Q are required to support FBE.

Bug: 141247460
Test: make
Change-Id: I519c2d1065d4c117213ca93d355b941027d700b6
parent f1f6618a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.UserHandle;
import android.os.UserManager;
import android.os.storage.StorageManager;
import android.provider.Telephony;
import android.provider.Telephony.Sms.Intents;
import android.service.carrier.CarrierMessagingService;
@@ -1045,9 +1044,9 @@ public abstract class InboundSmsHandler extends StateMachine {
    @UnsupportedAppUsage
    private void showNewMessageNotification() {
        // Do not show the notification on non-FBE devices.
        if (!StorageManager.isFileEncryptedNativeOrEmulated()) {
            return;
        }
        // if (!StorageManager.isFileEncryptedNativeOrEmulated()) {
        //     return;
        // }
        log("Show new message notification.");
        PendingIntent intent = PendingIntent.getBroadcast(
            mContext,