Merge "Expose hidden resources used in telephony/common"
This commit is contained in:
@@ -228,6 +228,9 @@ package android {
|
|||||||
|
|
||||||
public static final class R.array {
|
public static final class R.array {
|
||||||
field public static final int config_keySystemUuidMapping = 17235973; // 0x1070005
|
field public static final int config_keySystemUuidMapping = 17235973; // 0x1070005
|
||||||
|
field public static final int config_restrictedPreinstalledCarrierApps = 17235975; // 0x1070007
|
||||||
|
field public static final int config_sms_enabled_locking_shift_tables = 17235977; // 0x1070009
|
||||||
|
field public static final int config_sms_enabled_single_shift_tables = 17235976; // 0x1070008
|
||||||
field public static final int simColors = 17235974; // 0x1070006
|
field public static final int simColors = 17235974; // 0x1070006
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,6 +278,7 @@ package android {
|
|||||||
field public static final int config_helpIntentNameKey = 17039390; // 0x104001e
|
field public static final int config_helpIntentNameKey = 17039390; // 0x104001e
|
||||||
field public static final int config_helpPackageNameKey = 17039387; // 0x104001b
|
field public static final int config_helpPackageNameKey = 17039387; // 0x104001b
|
||||||
field public static final int config_helpPackageNameValue = 17039388; // 0x104001c
|
field public static final int config_helpPackageNameValue = 17039388; // 0x104001c
|
||||||
|
field public static final int low_memory = 17039397; // 0x1040025
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class R.style {
|
public static final class R.style {
|
||||||
|
|||||||
@@ -165,6 +165,12 @@ PublicTypedef: android.content.integrity.Formula.Tag: Don't expose @IntDef: @Tag
|
|||||||
PublicTypedef: android.content.integrity.Rule.Effect: Don't expose @IntDef: @Effect must be hidden.
|
PublicTypedef: android.content.integrity.Rule.Effect: Don't expose @IntDef: @Effect must be hidden.
|
||||||
|
|
||||||
|
|
||||||
|
ResourceValueFieldName: android.R.array#config_sms_enabled_locking_shift_tables:
|
||||||
|
Expected resource name in `android.R.array` to be in the `fooBarBaz` style, was `config_sms_enabled_locking_shift_tables`
|
||||||
|
ResourceValueFieldName: android.R.array#config_sms_enabled_single_shift_tables:
|
||||||
|
Expected resource name in `android.R.array` to be in the `fooBarBaz` style, was `config_sms_enabled_single_shift_tables`
|
||||||
|
|
||||||
|
|
||||||
SamShouldBeLast: android.accounts.AccountManager#addAccount(String, String, String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
|
SamShouldBeLast: android.accounts.AccountManager#addAccount(String, String, String[], android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
|
||||||
|
|
||||||
SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener, android.os.Handler, boolean):
|
SamShouldBeLast: android.accounts.AccountManager#addOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener, android.os.Handler, boolean):
|
||||||
|
|||||||
@@ -3010,6 +3010,8 @@
|
|||||||
</public-group>
|
</public-group>
|
||||||
|
|
||||||
<public-group type="string" first-id="0x01040025">
|
<public-group type="string" first-id="0x01040025">
|
||||||
|
<!-- @hide @SystemApi -->
|
||||||
|
<public name="low_memory" />
|
||||||
</public-group>
|
</public-group>
|
||||||
|
|
||||||
<public-group type="bool" first-id="0x01110005">
|
<public-group type="bool" first-id="0x01110005">
|
||||||
@@ -3024,7 +3026,14 @@
|
|||||||
<public-group type="array" first-id="0x01070006">
|
<public-group type="array" first-id="0x01070006">
|
||||||
<!-- @hide @SystemApi -->
|
<!-- @hide @SystemApi -->
|
||||||
<public name="simColors" />
|
<public name="simColors" />
|
||||||
|
<!-- @hide @SystemApi -->
|
||||||
|
<public name="config_restrictedPreinstalledCarrierApps" />
|
||||||
|
<!-- @hide @SystemApi -->
|
||||||
|
<public name="config_sms_enabled_single_shift_tables" />
|
||||||
|
<!-- @hide @SystemApi -->
|
||||||
|
<public name="config_sms_enabled_locking_shift_tables" />
|
||||||
</public-group>
|
</public-group>
|
||||||
|
|
||||||
<!-- ===============================================================
|
<!-- ===============================================================
|
||||||
DO NOT ADD UN-GROUPED ITEMS HERE
|
DO NOT ADD UN-GROUPED ITEMS HERE
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ import android.util.ArrayMap;
|
|||||||
import android.util.ArraySet;
|
import android.util.ArraySet;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.internal.R;
|
|
||||||
import com.android.internal.annotations.VisibleForTesting;
|
import com.android.internal.annotations.VisibleForTesting;
|
||||||
import com.android.internal.telephony.util.ArrayUtils;
|
import com.android.internal.telephony.util.ArrayUtils;
|
||||||
import com.android.server.SystemConfig;
|
import com.android.server.SystemConfig;
|
||||||
@@ -157,7 +156,7 @@ public final class CarrierAppUtils {
|
|||||||
for (ApplicationInfo ai : candidates) {
|
for (ApplicationInfo ai : candidates) {
|
||||||
String packageName = ai.packageName;
|
String packageName = ai.packageName;
|
||||||
String[] restrictedCarrierApps = Resources.getSystem().getStringArray(
|
String[] restrictedCarrierApps = Resources.getSystem().getStringArray(
|
||||||
R.array.config_restrictedPreinstalledCarrierApps);
|
android.R.array.config_restrictedPreinstalledCarrierApps);
|
||||||
boolean hasPrivileges = telephonyManager != null
|
boolean hasPrivileges = telephonyManager != null
|
||||||
&& telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName)
|
&& telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName)
|
||||||
== TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS
|
== TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS
|
||||||
|
|||||||
@@ -19,12 +19,10 @@ package com.android.internal.telephony;
|
|||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.util.Log;
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import android.util.Log;
|
||||||
import android.util.SparseIntArray;
|
import android.util.SparseIntArray;
|
||||||
|
|
||||||
import com.android.internal.R;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -1087,8 +1085,10 @@ public class GsmAlphabet {
|
|||||||
private static void enableCountrySpecificEncodings() {
|
private static void enableCountrySpecificEncodings() {
|
||||||
Resources r = Resources.getSystem();
|
Resources r = Resources.getSystem();
|
||||||
// See comments in frameworks/base/core/res/res/values/config.xml for allowed values
|
// See comments in frameworks/base/core/res/res/values/config.xml for allowed values
|
||||||
sEnabledSingleShiftTables = r.getIntArray(R.array.config_sms_enabled_single_shift_tables);
|
sEnabledSingleShiftTables = r.getIntArray(
|
||||||
sEnabledLockingShiftTables = r.getIntArray(R.array.config_sms_enabled_locking_shift_tables);
|
android.R.array.config_sms_enabled_single_shift_tables);
|
||||||
|
sEnabledLockingShiftTables = r.getIntArray(
|
||||||
|
android.R.array.config_sms_enabled_locking_shift_tables);
|
||||||
|
|
||||||
if (sEnabledSingleShiftTables.length > 0) {
|
if (sEnabledSingleShiftTables.length > 0) {
|
||||||
sHighestEnabledSingleShiftCode =
|
sHighestEnabledSingleShiftCode =
|
||||||
|
|||||||
@@ -60,8 +60,7 @@ public final class SqliteWrapper {
|
|||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
public static void checkSQLiteException(Context context, SQLiteException e) {
|
public static void checkSQLiteException(Context context, SQLiteException e) {
|
||||||
if (isLowMemory(e)) {
|
if (isLowMemory(e)) {
|
||||||
Toast.makeText(context, com.android.internal.R.string.low_memory,
|
Toast.makeText(context, android.R.string.low_memory, Toast.LENGTH_SHORT).show();
|
||||||
Toast.LENGTH_SHORT).show();
|
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user