Commit Graph

3117 Commits

Author SHA1 Message Date
Malcolm Chen
e6bb077804 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-13 14:55:56 -07:00
Mathew Inwood
b0a60d33aa Merge "Add @UnsupportedAppUsage annotations" 2018-08-02 12:04:18 +00:00
Nathan Harold
2a21769d4e Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb am: 8f4fdd4e78 am: 3193926e6a
am: 6493efa705

Change-Id: Iad2aeea8faf434ab41202bf82d30b3f88dc19690
2018-08-01 17:20:43 -07:00
Nathan Harold
3193926e6a Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb
am: 8f4fdd4e78

Change-Id: I1397d457efe3c1758795aace2f05ed330a92e596
2018-08-01 16:13:48 -07:00
Nathan Harold
8f4fdd4e78 Merge "Pass SdkVersion to getNeighboringCellInfo"
am: cec3f1fafb

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
2018-08-01 15:51:30 -07:00
Mathew Inwood
e189996cd3 Add @UnsupportedAppUsage annotations
For packages:
  com.android.ims.internal.uce.uceservice
  com.android.ims.internal.uce.presence
  com.android.ims.internal.uce.options
  com.android.ims.internal.uce.common
  com.android.ims.internal
  com.android.ims

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ib1819d4d15e730c0f224b45fb72f3225b0dddf91
2018-08-01 14:00:32 +01:00
Malcolm Chen
9afe59bf1c Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-31 18:43:01 -07:00
Nathan Harold
3892d05850 Pass SdkVersion to getNeighboringCellInfo
Bug: 62490173
Test: tested manually with SL4A (P and P+ SDK)
Change-Id: I65bae72ab8379f996486e7f4326eddf1b305658a
2018-07-30 17:19:59 -07:00
Malcolm Chen
05ab439039 Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-30 17:08:27 -07:00
Malcolm Chen
6cc64f7244 Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-28 01:41:06 +00:00
Brad Ebinger
98d767052a Merge "Quick style fixup of ISmsImplBase" am: 6a5c1492d2 am: a36d57b722 am: 8873784d07
am: bc595fcfb1

Change-Id: I77d9b5f458de39741d84e7ec0582397d0159c458
2018-07-23 13:31:53 -07:00
Brad Ebinger
8873784d07 Merge "Quick style fixup of ISmsImplBase" am: 6a5c1492d2
am: a36d57b722

Change-Id: I5af8df77455e01d90e3d358afc2d9f39269572ab
2018-07-23 12:04:14 -07:00
Brad Ebinger
a36d57b722 Merge "Quick style fixup of ISmsImplBase"
am: 6a5c1492d2

Change-Id: Idf5c1cbcc4d7ef22a99289bf8aebeedfb301e53a
2018-07-23 10:59:25 -07:00
Brad Ebinger
24edc2bc42 Quick style fixup of ISmsImplBase
Test: Compiles
Change-Id: Ic27db060e402d8a3239fe588a229c246c3228184
2018-07-19 16:17:31 -07:00
Nathan Harold
8fc7646c99 Merge "Re-Number RIL Message IDs to Match RIL.h" am: 8424001a04 am: f448662744
am: c8fde9f310

Change-Id: I509f8984ccb60cf9264922cee596b2883f566b1e
2018-07-13 18:20:41 -07:00
Nathan Harold
c8fde9f310 Merge "Re-Number RIL Message IDs to Match RIL.h" am: 8424001a04
am: f448662744

Change-Id: I98eb865f45fd608d4d8f73ce3bc8a9afa26bd2d2
2018-07-13 17:30:59 -07:00
Nathan Harold
f448662744 Merge "Re-Number RIL Message IDs to Match RIL.h"
am: 8424001a04

Change-Id: I5d284e48bbc2c9c461004f521bd719a490b9fed9
2018-07-13 15:45:31 -07:00
Nathan Harold
13e47d018d Re-Number RIL Message IDs to Match RIL.h
-Renumber RIL requests to match the message IDs
 for NATT Keepalive messages.
-Update comments to indicate RIL+HAL and HAL-only
 messages.
-Add new message offsets to explicitly support
 HAL-only messages in the list.

Bug: 110181475
Test: runtest frameworks-telephony
Change-Id: I58544f9291f426b5c195ece81113e15ed423d2df
2018-07-12 13:38:20 -07:00
Jordan Liu
d75e31fbce Merge "Type Allocation Code & Manufacturer Code" am: ff801e5fd7 am: 50f29d8ecf
am: bf4acfb71b

Change-Id: I8d4cb6a658f2e9d09b9904c722218ef594fb694a
2018-07-06 12:25:08 -07:00
Jordan Liu
bf4acfb71b Merge "Type Allocation Code & Manufacturer Code" am: ff801e5fd7
am: 50f29d8ecf

Change-Id: Ia5ee66c5f99ddd0700bc971ba895c73594e9a517
2018-07-06 12:15:49 -07:00
Jordan Liu
50f29d8ecf Merge "Type Allocation Code & Manufacturer Code"
am: ff801e5fd7

Change-Id: I95b5fd3d2fb977db3f37dcf23c2125c521c1ccd1
2018-07-06 12:06:39 -07:00
David Kelly
db6a391957 Type Allocation Code & Manufacturer Code
- Addition of getTypeAllocationCode & getManufacturerCode to
android.telephony.TelephonyManager.

- The Type Allocation Code is the first eight characters of the IMEI.
The Type Allocation Code identifies a particular GSM device model.

- The Manufacturer Code is the first eight characters of the MEID.
The Manufacturer Code identifies the manufacturer of a CDMA device.

- The reasoning behind adding getTypeAllocationCode is to be
able to obtain the Type Allocation Code without requiring the
READ_PHONE_STATE permission. Currently in order to obtain the
Type Allocation Code a substring operation must be performed on
getImei which is protected by the READ_PHONE_STATE permission.

- The reasoning behind adding getManufacturerCode is to be
able to obtain the Manufacturer Code without requiring the
READ_PHONE_STATE permission. Currently in order to obtain the
Manufacturer Code a substring operation must be performed on
getMeid which is protected by the READ_PHONE_STATE permission.

- The reasoning that these additional methods do not require the
READ_PHONE_STATE permission is that neither the Type Allocation
Code nor the Manufacturer Code can identify a unique device.
The Type Allocation Code and the Manufacturer Code are analogous
to other device information such as device model or device
screen dimensions.

Test: run cts -m CtsTelephonyTestCases
Bug: 74613795
Change-Id: I5a586b5a362b39aae13357329efb19eb93f0434c
Signed-off-by: David Kelly <dkelly@afilias.info>
2018-07-04 08:23:09 +00:00
Jack Yu
8f76322f75 Merge "Used APN type instead of APN id" am: 2e371c1b5a
am: a916542011

Change-Id: I58bb518a7720e65edd73d93b5775fa4cc40b41db
2018-06-29 18:40:06 -07:00
Jack Yu
a916542011 Merge "Used APN type instead of APN id"
am: 2e371c1b5a

Change-Id: Ib920746cb39937165aa97f79a9ac4e2fed850572
2018-06-29 18:06:39 -07:00
Jack Yu
bfa6635c30 Used APN type instead of APN id
APN id is similar to ApnSetting.ApnType. We can just use the apn
type. No need to use APN id anymore.

Test: Telephony sanity tests + unit tests
Bug: 77511388
Merged-In: If41845604ea14f36272262da110d682eea0d5451
Change-Id: If41845604ea14f36272262da110d682eea0d5451
(cherry picked from commit f42d06010a)
2018-06-29 14:52:52 -07:00
TreeHugger Robot
e90533787d Merge "Used APN type instead of APN id" 2018-06-29 20:30:51 +00:00
Jack Yu
f42d06010a Used APN type instead of APN id
APN id is similar to ApnSetting.ApnType. We can just use the apn
type. No need to use APN id anymore.

Test: Telephony sanity tests + unit tests
Bug: 77511388
Change-Id: If41845604ea14f36272262da110d682eea0d5451
2018-06-29 10:34:48 -07:00
Brad Ebinger
8f891beaa7 Merge "Telephony: Introduce a base class for ISMS.aidl." am: f03b8e2471 am: 0397b9b65d
am: 42bf3bef2b

Change-Id: I0de662b8429769129017ea5549d590a335842540
2018-06-27 13:10:48 -07:00
Brad Ebinger
42bf3bef2b Merge "Telephony: Introduce a base class for ISMS.aidl." am: f03b8e2471
am: 0397b9b65d

Change-Id: Ib946404b724ddfaceae06eb5d6026137052dcb7b
2018-06-27 12:55:04 -07:00
Brad Ebinger
0397b9b65d Merge "Telephony: Introduce a base class for ISMS.aidl."
am: f03b8e2471

Change-Id: I2c155c6bb46baa411f531e411f86efe0e56c20dc
2018-06-27 12:46:39 -07:00
Brad Ebinger
f03b8e2471 Merge "Telephony: Introduce a base class for ISMS.aidl." 2018-06-27 18:24:51 +00:00
Ajay Nambi
0bfe9438b1 Telephony: Introduce a base class for ISMS.aidl.
Add a dummy base class implementation for
AIDL APIs defined. Clients can override the
required APIs.

Bug: 73994017
Change-Id: Ifd14e04ae0467a7b963cd993cfd514660f14fa95
2018-06-26 22:54:03 +00:00
Andrew Sapperstein
d8a7b012a0 Merge "Hide system apps until installed (1/2)" into pi-dev
am: 70a9f39e6a

Change-Id: Ide5ea4b18ca95ee061bf84cb349369b2468504d1
2018-06-26 13:19:57 -07:00
Andrew Sapperstein
8e6710d768 Merge "Hide system apps until installed (1/2)" 2018-06-26 19:48:05 +00:00
Rhed Jao
c19da78203 Hide system apps until installed (1/2)
Applying this mechanism for system carrier apps to make visibility
reasonable from the user's perspective. In other words, before
hidden system apps have been installed, they wouldn't be listed
via APIs in PackageManager which are used at all apps list and
search in Settings and so on.

Test: atest CarrierAppUtilsTest
Test: atest PackageManagerTest
Test: cts DeviceOwnerTest
Test: gts ManagedProfileProvisioningHostsideTest
Bug: 74068582
Change-Id: I1f23aba589b98351a1871a44a3058b67c416f351
2018-06-26 02:21:10 +00:00
Jack Yu
329e131b9f Merge "Removed dead code in DcTracker" am: a0b9309ba2 am: 5ae46260e4
am: 9fa40bd92d

Change-Id: I936ed9f443e6abb3184561e5bf7914b2a7c6a2e2
2018-06-21 20:49:21 -07:00
Jack Yu
9fa40bd92d Merge "Removed dead code in DcTracker" am: a0b9309ba2
am: 5ae46260e4

Change-Id: Ib664690a19a00c6739fd0bff87e343742832478e
2018-06-21 20:39:13 -07:00
Jack Yu
5ae46260e4 Merge "Removed dead code in DcTracker"
am: a0b9309ba2

Change-Id: I807835bcc1194f695e5fb30098cc82f50fef5d59
2018-06-21 20:28:45 -07:00
Treehugger Robot
a0b9309ba2 Merge "Removed dead code in DcTracker" 2018-06-22 00:21:43 +00:00
Jack Yu
2de4c6ca12 Removed dead code in DcTracker
This work is part of IWLAN refactoring

Test: Build
Bug: 73659459
Change-Id: I041bdda1e168dde0bf5bff08c8c235986d2d8d7d
2018-06-21 14:56:48 -07:00
Rhed Jao
cd47c26d74 Hide system apps until installed (1/2)
Applying this mechanism for system carrier apps to make visibility
reasonable from the user's perspective. In other words, before
hidden system apps have been installed, they wouldn't be listed
via APIs in PackageManager which are used at all apps list and
search in Settings and so on.

Test: atest CarrierAppUtilsTest
Test: atest PackageManagerTest
Test: cts DeviceOwnerTest
Test: gts ManagedProfileProvisioningHostsideTest
Bug: 74068582
Change-Id: I1f23aba589b98351a1871a44a3058b67c416f351
2018-06-21 20:39:23 +08:00
Brad Ebinger
a54d5e31e3 Merge "Clean up old Context references in ImsConfig" 2018-06-20 16:43:58 +00:00
Brad Ebinger
0418143f6d Merge "Revert isResolvingImsBinding ITelephony interface" into pi-dev
am: 4cc443ae2e

Change-Id: I9c8cc1c4401590865f33fa13402152287063cecf
2018-06-19 16:13:53 -07:00
Brad Ebinger
5f05f1e405 Revert isResolvingImsBinding ITelephony interface
Reverting the only user of this interface.

Bug: 109762920
Test: GTS/Unit tests for ImsService
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
Merged-In: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
2018-06-19 19:54:43 +00:00
nharold
df00ad1a4b Merge "Use Uppercase instead of Lowercase for PLMN Decode"
am: e61215cab1

Change-Id: I8c75abbd7574072e9b6c501b5fabf61bf2148592
2018-06-19 11:39:07 -07:00
Brad Ebinger
69e0e0e677 Revert isResolvingImsBinding ITelephony interface
Reverting the only user of this interface.

Bug: 109762920
Test: GTS/Unit tests for ImsService
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
2018-06-19 09:49:31 -07:00
Nathan Harold
7a061af317 Use Uppercase instead of Lowercase for PLMN Decode
A change to IccUtils converted from using lowercase
to uppercase and broke the PLMN trimming logic.

This resolves bugs where the platform may report
5-digit PLMNs with an invalid trailing 'F' character.

This fixes an issue introduced by aosp/575243, which
impacts the Manual Network Selection menu and
the public API.

Bug: 79561854
Test: compilation
Merged-In: I5ea7867cd9c11fe4454188fd1f30bf58b2911712
Change-Id: I5ea7867cd9c11fe4454188fd1f30bf58b2911712
(cherry picked from commit b70fbc85f7)
2018-06-18 11:50:43 -07:00
Xiangyu/Malcolm Chen
e448504530 Merge "Have proper permission check in getConfigForSubId" 2018-06-14 22:44:55 +00:00
Robert Greenwalt
f0cf0ce74c Merge "Use Uppercase instead of Lowercase for PLMN Decode" into pi-dev am: 2125e5c59e
am: 3b9e26fb5a

Change-Id: Ib3b47fe3164405683a5cc76768ebda621105ebb1
2018-06-12 17:18:15 -07:00
Robert Greenwalt
3b9e26fb5a Merge "Use Uppercase instead of Lowercase for PLMN Decode" into pi-dev
am: 2125e5c59e

Change-Id: I850e3f98c9ce4b9221665552b50055bc31f72a04
2018-06-12 16:07:28 -07:00