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

Commit b741caae authored by zhaoyouyi's avatar zhaoyouyi Committed by Bruno Martins
Browse files

Telephony: Direct return false for unsupport sms platform.



Test: boot a wifi only device and check com.android.phone do not crash
Bug: 141396302
Change-Id: I5c87d8c93772d36d7781ff2b43908dd15f10c721
Signed-off-by: default avatarzhaoyouyi <zhaoyouyi@allwinnertech.com>
parent f3c12f7b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1916,6 +1916,14 @@ public final class SmsManager {
     */
    public boolean isImsSmsSupported() {
        boolean boSupported = false;
        final Context mContext = ActivityThread.currentApplication().getApplicationContext();
        boolean mSmsCapable = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_sms_capable);
        if (!mSmsCapable) {
            Log.d(TAG, "isImsSmsSupported: false");
            return false;
        }

        try {
            ISms iSms = getISmsService();
            if (iSms != null) {