Commit Graph

13465 Commits

Author SHA1 Message Date
Mattias Nilsson
8f90a92c18 Remove config_inflateSignalStrength
This resource has moved to CarrierConfig to support dual
sim devices and MVNOs.

Bug: 148483577
Test: Manual
Merged-In: I494cb93a2c72ff3df2ef45ad737c5606132e32d1
Change-Id: I494cb93a2c72ff3df2ef45ad737c5606132e32d1
2020-07-31 18:11:34 -07:00
Mattias Nilsson
b5299b5a20 Move config_inflateSignalStrength to CC
Sim based customizations should not be resources because
of two reasons:
1. The MCC/MNC value in AssetManager for Dual sim devices is undefined
2. There is no support for MVNOs.

For dual sim devices there is only one value for MCC/MNC in
AssetManager and that value is updated from multiple places without
deciding if it should be the default voice sim card, the default
data sim card or whatnot.
  This means that when frameworks is trying to decide what resource
to use there is no guarantee that the resource that arrives is for
the particular subscription we are asking for.

MVNOs cannot be separated through only MCC/MNC but need more
parameters like service provider, imsi, GID1 etc. MVNO support
is available in CarrierConfig.

When we now have support for ADCP updates of customizations and
start using carrier id this is better placed in CarrierConfig,
we then get support for MVNOs at the same time.

Bug: 148483577
Test: Customize for sim card x and not for sim card y, insert both
sim cards in a dual sim device and see the difference.

Merged-In: I067d55b9ae5e1346dd3b3cd50a0097b05b100055
Change-Id: I067d55b9ae5e1346dd3b3cd50a0097b05b100055
2020-07-31 13:57:01 -07:00
Treehugger Robot
9237857679 Merge "Update toString in ImsReasonInfo" am: e5e46c6dfd am: 7b7055970a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1379678

Change-Id: I3b49beefd7f5bf4fe5753174a89010a96da0e5c6
2020-07-31 05:10:58 +00:00
Treehugger Robot
e5e46c6dfd Merge "Update toString in ImsReasonInfo" 2020-07-31 04:38:03 +00:00
Tyler Gunn
c5ef3b9cae Merge "Update language to comply with Android's inclusive language guidance" am: a005cb30ed am: 3772a5b3fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1377136

Change-Id: I2f838a951cec8f6e7af82a0cd08d99d6045f3952
2020-07-30 21:25:38 +00:00
Tyler Gunn
a005cb30ed Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 20:42:55 +00:00
Amruth Ramachandran
22d5710f02 Update toString in ImsReasonInfo
Added map of int code to string for log readability

Bug: 162505455
Test: Verified with device test
Change-Id: I7aa3cf31737e2e44aa4d63eac643a5d283d8a06f
2020-07-30 16:44:02 +00:00
Treehugger Robot
4867cfabff Merge "Fix description of indices for messages in the ICC." am: 1a1dcba955 am: 803802e7c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1365796

Change-Id: Icf4bfe7e86bc94329ebaeb713831e858b6a48c68
2020-07-30 03:17:29 +00:00
Treehugger Robot
1a1dcba955 Merge "Fix description of indices for messages in the ICC." 2020-07-30 02:45:56 +00:00
Shuo Qian
9328760e16 Merge "Change the range checking for ssrsrq" am: abdc06b2d2 am: 3d04a71f12
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1378016

Change-Id: I6ccc9ea866d1a2ccb41d75bcea0671df64e4f735
2020-07-29 21:38:11 +00:00
Shuo Qian
4717b01367 Change the range checking for ssrsrq
Test: Telephony tests
Bug: 159761054
Change-Id: I383f3b5c7b4e89fa7e9cd3be6e77c3d99552b99c
Merged-In: I383f3b5c7b4e89fa7e9cd3be6e77c3d99552b99c
(cherry picked from commit 71818ce490)
2020-07-29 19:06:23 +00:00
Tyler Gunn
460360d6b8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: Presubmit
Bug: 161896447
Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-29 10:23:07 -07:00
Treehugger Robot
e2dedb294e Merge "Fix Docs for KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL" am: 2d78a290d4 am: a636ce731f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371275

Change-Id: I10b4492decf398234c6feff0d46f07ab9d41d7c9
2020-07-28 18:47:08 +00:00
Treehugger Robot
2d78a290d4 Merge "Fix Docs for KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL" 2020-07-28 18:02:50 +00:00
Treehugger Robot
e8a4750ac5 Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: fb8f41f0c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819

Change-Id: Ia5e17f2dbbfbb539f2415348e1ddb960354d3662
2020-07-28 17:41:13 +00:00
Nathan Harold
abfeabcb33 Merge "Update Docstrings for #requestLocationUpdate()" am: abe015171f am: d3467070fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1372239

Change-Id: I9542a65e37015e89681e3da0a52b20efc365a0e8
2020-07-28 17:40:41 +00:00
Treehugger Robot
8ebbe3c038 Merge "Expose adhoc conference calling API as public." 2020-07-28 17:08:47 +00:00
Nathan Harold
abe015171f Merge "Update Docstrings for #requestLocationUpdate()" 2020-07-28 17:01:47 +00:00
Grace Jia
8587ee5cd5 Expose adhoc conference calling API as public.
Bug: 159944852
Test: make
Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-27 11:18:36 -07:00
Brad Ebinger
31313d6566 Fix Docs for KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL
Fixes: KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL
Test: Docs only change, m
Change-Id: Ifcbf147f3734a33250f46ddfc56c72cdbd4d3626
2020-07-27 10:19:01 -07:00
Nathan Harold
cbdebc8d55 Update Docstrings for #requestLocationUpdate()
Address API Council feedback for CellLocation#requestLocationUpdate

-Update the summary string to indicate the functionality
 for pre-SDK31 behavior.
-Clarify that this API is only useful in power-saving modes.
-Remove justification for deprecation leaving a simple link to
 a superior alternative.

Bug: 161207204
Test: make offline-sdk-docs && make (docstring only change)
Change-Id: Ib931906323fe1ec2c730271cefd0d46aee60d963
2020-07-27 10:08:53 -07:00
TreeHugger Robot
73a4ff6dd6 Merge "Allow network stack UID caller to retrieve cell identity" into rvc-dev am: 855eb749ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12226436

Change-Id: I5b80cc571555d272c33c0f7560709032efa6532c
2020-07-24 22:08:21 +00:00
Jack Yu
56cfdd1e87 Allow network stack UID caller to retrieve cell identity
For backwards compatibility, we allow phone, system UID to
access cell identity through getServiceState. Cell broadcast
service, which is used to be part of telephony, now is running
under network stack UID. We should consider network stack UID as
trustable components like system/telephony.

Fix: 157618105
Test: Manual
Change-Id: I9b2dfc778752e130f5c7e44c4b2e45b63ac6f918
2020-07-24 19:54:25 +00:00
Treehugger Robot
47df766f48 Merge "Disable DUN APN while roaming for certain carriers" am: 4becee9740 am: 5b22a598c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371059

Change-Id: I784712ead1cb4c47e5a436d8fe33655b51847879
2020-07-24 17:47:59 +00:00
Treehugger Robot
4becee9740 Merge "Disable DUN APN while roaming for certain carriers" 2020-07-24 17:12:50 +00:00
Sarah Chin
8683d3daa5 Merge changes from topic "phone_info_5g" am: 20c0cd6b4c am: 0cb19b5ea5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1371137

Change-Id: Ib6de67754f15b6fc1d54386a0552fadb7b8a778c
2020-07-23 20:31:51 +00:00
Sarah Chin
20c0cd6b4c Merge changes from topic "phone_info_5g"
* changes:
  Expose NR State string method for use in RadioInfo
  Fixed unreadble debug messages
2020-07-23 19:08:50 +00:00
Sarah Chin
f39b4cbec1 Expose NR State string method for use in RadioInfo
Test: build
Bug: 160825855
Change-Id: Ie709cad1c94ad204c46a559d316f45da16c3541c
Merged-In: Ie709cad1c94ad204c46a559d316f45da16c3541c
2020-07-23 09:45:26 -07:00
Jack Yu
c42d38c3ea Fixed unreadble debug messages
Fix: 158875554
Test: Manual
Change-Id: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
Merged-In: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
2020-07-23 09:45:05 -07:00
Hall Liu
f470edeff3 Skip carrier priv check for trusted UIDs
Checking carrier privileges for UIDs with lots of shared apps can incur
a significant performance hit. For UIDs that are fixed and trusted
(system and phone), skip the permission check and always allow.

Bug: 160971853
Test: manual verification -- observed lower rate of cache misses for
getPackageInfo from com.android.phone.

Change-Id: I1399cab579308479d7cf191b8795441cbcd3ff65
Merged-In: I1399cab579308479d7cf191b8795441cbcd3ff65
2020-07-22 18:06:47 -07:00
Jack Yu
cc8d4f6860 Disable DUN APN while roaming for certain carriers
Some carriers would like to use default APN for
tethering while the device is roaming. Added a new
carrier config to disable DUN APN while the device
is roaming.

Fix: 158546796
Test: DcTrackerTest
Merged-in: I2e633fd764f86b196a6ee0c29af2b97733e82c66
Change-Id: I2e633fd764f86b196a6ee0c29af2b97733e82c66
(cherry picked from commit db897af77d)
2020-07-22 15:13:22 -07:00
Treehugger Robot
8f6335b3fa Merge "Add carrier config for NR timer reset" am: 71b90ae022 am: 8a84baa296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1367056

Change-Id: I1e1a8a324c441f6992414eeafc99b2cec908982d
2020-07-22 10:40:06 +00:00
SongFerngWang
a88f75d097 Add carrier config for NR timer reset
KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL:
Whetherdevice reset all of NR timers when device camped on a
network that haven't 5G capability and RRC currently in IDLE state.

Bug: 160365713
Test: build pass.
Change-Id: I9802b8712798054a85307e549fb665bc85166311
Merged-In: I9802b8712798054a85307e549fb665bc85166311
2020-07-20 12:59:30 +08:00
Taesu Lee
24115e8823 Fix description of indices for messages in the ICC.
Bug: 161478651
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I66adaf4e4cd392c837c3719bd1f36a426938933e
2020-07-17 14:46:44 +09:00
Nathan Harold
e2505847e4 Merge "Migrate LTE_CA flag to NRI from DSRI" am: 83cbf59a70 am: 0f6ee9e766
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1357995

Change-Id: I99467fc9f568f626997e0571e688b9f04cc14491
2020-07-16 17:27:20 +00:00
Nathan Harold
83cbf59a70 Merge "Migrate LTE_CA flag to NRI from DSRI" 2020-07-16 16:59:34 +00:00
Peter Wang
4c7b55f086 Merge "Add a null check for EuiccProfileInfo access rules at creation" am: 65f6068c8a am: 098fb8606a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1364082

Change-Id: Icca17231fe6b7386e18b9c44a22eebdca2336f24
2020-07-16 09:34:33 +00:00
Peter Wang
548f34b47d Add a null check for EuiccProfileInfo access rules at creation
Bug: 158780604
Fix: 158780604
Test: Build
Change-Id: I6432499309115c7ca29f4704e0f5cfc871eb4d00
Merged-In: I6432499309115c7ca29f4704e0f5cfc871eb4d00
2020-07-15 17:34:27 -07:00
Shuo Qian
8c5f2cca52 Merge "Change the range of SS-RSRQ per 3GPP TS 38.133 section 10" am: ce458af9d0 am: c067772d53
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360866

Change-Id: I96234f53b9aefecdf1008103892597d7f960109c
2020-07-15 01:43:33 +00:00
Shuo Qian
431b6f353e Change the range of SS-RSRQ per 3GPP TS 38.133 section 10
Test: Doc changes; unit tests
Bug: 159761054
Change-Id: I46ff439d43f64ff21ba5072a8533c60d2557bbb2
Merged-In: I46ff439d43f64ff21ba5072a8533c60d2557bbb2
(cherry picked from commit 26e679e8e4)
2020-07-15 00:27:57 +00:00
Nathan Harold
7d9429f990 Merge "Remove Kernel Command Line Support for CDMA Config" am: 65530b7549 am: c39e027103
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360903

Change-Id: I2cccd35fc31fac5e343c9a0e02f21f4c34e53310
2020-07-14 16:56:18 +00:00
Nathan Harold
65530b7549 Merge "Remove Kernel Command Line Support for CDMA Config" 2020-07-14 16:24:19 +00:00
Treehugger Robot
9006230a7e Merge "Fix some style issues" am: 1b87c970c8 am: 9a155b957a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1313803

Change-Id: I0269a40f6984fa61522b0fb48aa1a66f1906683b
2020-07-14 11:16:21 +00:00
Treehugger Robot
a7a04f6c5c Merge "Suppress showing "Invalid Validity Period-1" for sending messages" am: 8daa4a1389 am: ee59d3306a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1313804

Change-Id: Ic7c6ffe1943ccbe7d79633fc6d2f29ef6f4e75a1
2020-07-14 10:50:04 +00:00
Treehugger Robot
1b87c970c8 Merge "Fix some style issues" 2020-07-14 10:45:39 +00:00
Taesu Lee
1ec60185f8 Suppress showing "Invalid Validity Period-1" for sending messages
Show the error log when only wrong value is set actually for sending
instead.
And it includes some cleanup.

Bug: 161156510
Test: MO SMS and check log

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I2b58b431c59c52dd05cfa54ac34551550cd614d2
2020-07-14 16:05:44 +09:00
Taesu Lee
2238af8e30 Fix some style issues
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I119d6351057d91a11c9bb58ea6b469807f469c38
2020-07-14 12:13:24 +09:00
Hall Liu
5169953baf Merge "Skip carrier priv check for trusted UIDs" into rvc-dev am: f1a6972937
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12141306

Change-Id: Iac6c6a95dc0df15e45e2ef4f25a3b92e162800b0
2020-07-13 23:46:14 +00:00
Hall Liu
12a3f5cfdc Skip carrier priv check for trusted UIDs
Checking carrier privileges for UIDs with lots of shared apps can incur
a significant performance hit. For UIDs that are fixed and trusted
(system and phone), skip the permission check and always allow.

Also, double the cache size for getPackageInfo in order to reduce the
rate of cache misses.

Bug: 160971853
Test: manual verification -- observed lower rate of cache misses for
getPackageInfo from com.android.phone.

Change-Id: I1399cab579308479d7cf191b8795441cbcd3ff65
2020-07-13 12:45:00 -07:00
Nathan Harold
c7ecbd8f1e Remove Kernel Command Line Support for CDMA Config
Remove support for the kernel-command-line-based CDMA
modem config flag. Devices must now use the system property,
which is also set at OS compile time and is available before
telephony. Since there's no drawback, and kernel command line
flags are not the right place for this, good riddance.

These APIs were marked @UnsupportedAppUsage; however, the
API to read the command line had zero usage, and the API to
retrieve the CDMA capability had a single app usage with a
very small installed base, so presumably it's legacy hardware.

Bug: 138225216
Test: compilation (no functional change)
Change-Id: Iac7a23056553465e1d05299df7323daf89fbfd66
2020-07-13 10:08:25 -07:00