AOSP/Messaging - Changed midSdkVersion to 14 and reverted to using Telephony.Carriers.CONTENT_URI instead of Telephony.Carriers.SIM_APN_URI.
Fixes error: "NoSuchFieldError exception: Telephony.Carriers.SIM_APN_URI requires API level 29" Bug: 159055957 Test: manual - Tested the messaging UI. Without this change the app is crashing when we click on it. $ make -j 40 Change-Id: Ic34ccac673531a61386c1eaa3bbfff950d19517b
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
||||
package="com.android.messaging"
|
||||
android:installLocation="internalOnly">
|
||||
|
||||
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="24" />
|
||||
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="24" />
|
||||
|
||||
<!-- Application holds CPU wakelock while working in background -->
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
|
||||
@@ -1499,7 +1499,7 @@ public class MmsUtils {
|
||||
cursor = SqliteWrapper.query(
|
||||
context,
|
||||
resolver,
|
||||
Telephony.Carriers.SIM_APN_URI,
|
||||
Telephony.Carriers.CONTENT_URI,
|
||||
TEST_CARRIERS_PROJECTION,
|
||||
null/*selection*/,
|
||||
null/*selectionArgs*/,
|
||||
|
||||
Reference in New Issue
Block a user