Commit Graph

6463 Commits

Author SHA1 Message Date
Jack Yu
6d94f19b54 Merge "Fix to read Tethering APN data terminated by empty parameters correctly" 2018-08-27 21:04:56 +00:00
Malcolm Chen
5ee5c14ecb Add PhoneCapabilityChanged in phone state listener
Add a new hidden event PhoneCapabilityChanged that can be
listned to know phone capability has changed.

Bug: 92796390
Test: build
Change-Id: I12ccde1a1c4257ac50c2cfa73d2d5b58dd7e1518
Merged-In: I12ccde1a1c4257ac50c2cfa73d2d5b58dd7e1518
2018-08-24 15:39:01 -07:00
Nathan Harold
713eef404e Merge "Add Conversion from CellIdentity to CellLocation" 2018-08-23 23:01:23 +00:00
Mathew Inwood
a838206e94 Add @UnsupportedAppUsage annotations
For packages:
  android.telephony
  android.telephony.cdma
  android.telephony.data
  android.telephony.euicc
  android.telephony.gsm
  android.telephony.ims
  android.telephony.ims.aidl
  android.telephony.ims.compat
  android.telephony.ims.compat.feature
  android.telephony.ims.compat.stub
  android.telephony.ims.feature
  android.telephony.ims.stub
  android.telephony.mbms
  android.telephony.mbms.vendor

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: I02d900d6d0ec9a6b2172a71911fec61d04e4d235
Merged-In: I22547ac0ed384d74d61cfd51d20c140e392a597f
2018-08-23 09:37:53 +01:00
Jack Yu
5831d309fa Merge "Fixed java doc error" 2018-08-23 00:23:54 +00:00
Jack Yu
a219efb6da Fixed java doc error
Test: Build
Bug: 111774203
Change-Id: Icced6451465d0a4e5c2a9eaf8203d3456a83ab08
2018-08-22 17:19:44 -07:00
Jack Yu
2947e54c3d Merge "Added a new carrier config for data connection failed radio restart" 2018-08-22 23:42:36 +00:00
Jack Yu
3399f3644d Added a new carrier config for data connection failed radio restart
Added a new carrier config that can trigger modem restart when
receiving specific setup data fail cause code.

Test: Telephony sanity tests
Bug: 111774203
Change-Id: I39d648117f778a4548a3d50e624dbd841956c6cc
2018-08-22 14:16:47 -07:00
Jack Yu
63de9eabec Merge "Added qualified networks services" 2018-08-22 20:18:11 +00:00
Jack Yu
a3ab5750a4 Added qualified networks services
Added the qualified networks service, which is a base
class for vendor's qualified network service to extend.
The service is to update frameworks the available
networks for data setup for each APN type.

Test: Manual
Bug: 73659459
Change-Id: I7238aeac8e48be2a17245de77239b242703bcb7e
2018-08-21 17:57:57 -07:00
Hall Liu
b29e727b32 Merge "Pass correct parameters to API sendMultipartTextMessage" 2018-08-21 22:27:27 +00:00
Nathan Harold
7590feeb3a Add Conversion from CellIdentity to CellLocation
Add OO conversion from CellIdentity to CellLocation
in the respective CellIdentity classes.

Bug: 67711865
Test: manual
Change-Id: I4e2dab7de5e5c5fa3bb42a22b14934874560c9fc
2018-08-21 20:44:25 +00:00
Saki Oomori
bf7d22f3cd Fix to read Tethering APN data terminated by empty parameters correctly
If Tethering APN data is terminated by empty parameters(",,,"), the
tethering APN data is not read correctly from configuration file.

Because second argument of split() is not set in ApnSetting.java, these
empty parameters are ignored and an error occurs during parameter length
check later.

To fix this, second argument of split() should be set as "-1".

Bug: 112876857
Test: manual - Checked that Tethering APN data could be read correctly.
Change-Id: I18be0131287dc927334d51522f1c816da83d4add
2018-08-21 08:50:33 +00:00
Mathew Inwood
d0741c56fb Code reformatting for upcoming automated code changes.
Adding annotations to individual members cannot be easily done when there
are several enum values defined on a single line. Put each on a line of its
own.

See go/UnsupportedAppUsage for more context.

Bug: 110868826
Test: m
Change-Id: I807a416e234fa92001920b484bbf3eedbf305c41
2018-08-20 13:09:52 +01:00
Treehugger Robot
ce7e53a943 Merge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers." 2018-08-16 15:22:23 +00:00
Tyler Gunn
b8bd19ed45 Update docs and ensure PHONE_STATE is more predictable for unknown numbers.
In P the PHONE_STATE broadcast behavior changed due to new permission
requirements.  Updating the API docs for this broadcast to make it more
clear to developers how the broadcast will work given different permission
scenarios.

Also, made a minor change to how the "EXTRA_INCOMING_NUMBER" is populated
on the phone state broadcast.  Originally we opted to remove
EXTRA_INCOMING_NUMBER when the number is empty.  Developer feedback reveals
it is difficult to know for an unknown caller (where numer is empty)
whether the broadcast they're receiving is the one associated with the
broadcast for receivers with READ_CALL_LOG, or the one for receivers
without it.  This minor change eliminates the need to count broadcasts and
instead allows the developer to just focus on whether the extra is present
or not.

Test: make docs and verify the javadoc appears as expected.
Test: Used test app to confirm functionality.
Bug: 110190165
Merged-In: I55e3519fcbad4dcb7da041d0194bf4e1c7d38949
Change-Id: I35967d53274b99d66b63f4ff5acb60a689745f9d
2018-08-16 07:33:38 -07:00
Malcolm Chen
0ac24ef349 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
Merged-In: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-15 17:01:44 -07:00
Malcolm Chen
bd4ae76753 Abstract set APIs in SubscriptionManager
Put common codes of set APIs in Subscription into an unified method.
So that later it's easier to add APIs.

Bug: 112167869
Test: unittest
Change-Id: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
Merged-In: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
2018-08-15 17:00:48 -07:00
Mathew Inwood
b558baa4cc Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 13:32:04 +00:00
Xiangyu/Malcolm Chen
03fcb263ab Merge "Remove old SubscriptionInfo constructors." 2018-08-14 18:58:25 +00:00
Malcolm Chen
fdcf6469f1 Remove old SubscriptionInfo constructors.
Bug: 92796390
Test: build
Change-Id: Id5ce174b43934e690f6c1682e502b3b7e344a865
Merged-In: Id5ce174b43934e690f6c1682e502b3b7e344a865
2018-08-13 16:33:18 -07:00
Nathan Harold
d3395b08c2 Merge "Merge CellInfo TYPE Enums" 2018-08-10 23:56:54 +00:00
Youming Ye
2052fba20a Merge "Fix permission check for TelephonyManager#isTtyModeSupported." 2018-08-10 18:21:25 +00:00
Mathew Inwood
ba503117f4 Add @UnsupportedAppUsage annotations
For packages:
  android.providers.settings
  android.provider

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: I993adf36dc31a5e224e88217c9e8dc140b6ba880
Merged-In: I3865ac184fcb6f52c6bfab9729611b065b27722e
2018-08-10 09:37:35 +01:00
Youming Ye
9b3eb9c9b5 Fix permission check for TelephonyManager#isTtyModeSupported.
TelephonyManager now calls TelecomManager#isTtySupported directly, instead of calling from its implementation PhoneInterfaceManager.

Bug: 79502396
Test: Manual
Change-Id: I686b93d31850103f1cfb7003fe0506d08a424f27
2018-08-09 17:32:11 -07:00
Hall Liu
01f0135ba4 Merge "Don't insert certain numbers into the call log" 2018-08-09 23:43:22 +00:00
Nathan Harold
65c4b15d42 Merge CellInfo TYPE Enums
CellIdentity and CellInfo had redundant enums to
designate the structure type. This CL merges the
better-formatted enums from CellIdentity to
CellInfo, removing the set from CellIdentity.
For cases where the structure type must be determined
at runtime based on a CellInfo record, (where
polymorphic behavior isn't/shouldn't be supported),
this provides a consistent mechanism for determining
the type without using RTTI.
In addition, this CL fixes two other minor issues:
1) The constructor for CellInfoWcdma() provided the
   wrong parcel type to the parent class.
2) The TYPE_TDSCDMA had a typo in CellInfo and was
   written as TYPE_TDCDMA.

Bug: 112003199
Bug: 67711865
Test: runtest frameworks-telephony
Change-Id: I5ca3c2de1433dfcef264e1273a658d1a0fe864b6
2018-08-09 23:26:01 +00:00
Hall Liu
51c7daaa75 Don't insert certain numbers into the call log
For regulatory requirements, prevent certain sensitive numbers from
being logged in the call log. The numbers can either be specified in the
carrier config or in the mcc config for the device.

Bug: 111470439
Test: unit, manual
Change-Id: Icc4db12def802c2ce5485422a0ec199e3e7452fa
Merged-In: Icc4db12def802c2ce5485422a0ec199e3e7452fa
2018-08-09 21:57:57 +00:00
Nathan Harold
9257722c5c Merge "Construct NeighboringCellInfo from CellInfo" 2018-08-09 21:31:55 +00:00
Hall Liu
1a622a4215 Merge "IMS: Adding support for TIR/TIP permanent provisioning" 2018-08-09 20:24:18 +00:00
Ashit Sood
51832a756a IMS: Adding support for TIR/TIP permanent provisioning
- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0
2018-08-08 21:27:38 -07:00
Nathan Harold
45fb10525e Construct NeighboringCellInfo from CellInfo
As part of removing neighboring cell info this
CL adds support for constructing a NeighboringCellInfo
object from a CellInfo object.

Bug: 62490173
Test: tested manually using SL4A with both O-MR1 and current
    target SDKs
Change-Id: I278487e506b07ab97589da85f69f1188c73b6eb9
2018-08-08 11:02:28 -07:00
Mathew Inwood
7a10fd6a47 Merge "Add @UnsupportedAppUsage annotations"
am: f892a8ce9f

Change-Id: I34b238c2105ea4f46c1cbdbc4b2e4375562398f1
2018-08-03 04:12:24 -07:00
Nathan Harold
bb67bab55f Merge "Throw on revoked location permission - framework" 2018-08-02 22:16:07 +00:00
Svet Ganov
56c4148e41 Throw on revoked location permission - framework
When we fixed proper handling of location permisison gating
sensitive telephony calls we stopped throwing a security
exception when the permission is not held by the caller.
While this is not a security issue there is no reason to
change this behavior which is checked by CTS. This CL starts
throwing a security exception if the permission is not held.

Test: atest android.permission.cts.NoLocationPermissionTest

bug: 74074103

Merged-In: Ic891d62b408c692f84a345f24503f7f25d583e35
Change-Id: Ic891d62b408c692f84a345f24503f7f25d583e35
(cherry picked from commit 33b1509375)
2018-08-02 11:35:00 -07:00
Treehugger Robot
f892a8ce9f Merge "Add @UnsupportedAppUsage annotations" 2018-08-02 15:11:40 +00:00
Nathan Harold
8f4fdd4e78 Merge "Pass SdkVersion to getNeighboringCellInfo"
am: cec3f1fafb

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
2018-08-01 15:51:30 -07:00
Mathew Inwood
45321deeef 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: I9e39973bf43a80f17038f7e239a94ef2209e6e2a
Merged-In: Ib1819d4d15e730c0f224b45fb72f3225b0dddf91
2018-08-01 14:07:13 +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
Mengjun Leng
353bed1155 Pass correct parameters to API sendMultipartTextMessage
1. Pass parameter priority, expectMore and validityPeriod
to API sendMultipartTextMessage.

2. Modify validity check algrithm for parameter priority and
validityPeriod, so that avoids the exception for invalid inputs.

Bug: 112013111

Change-Id: I7a90db6e427b3daf6589e6a2b6dad2c4b3458832
2018-07-31 15:38:07 +08: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
Treehugger Robot
c14a4be799 Merge "Have proper permission check in getConfigForSubId" 2018-07-30 19:49:20 +00: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
Hall Liu
9e76e3acb9 Merge "Add carrier config for auto redialing 911"
am: b91316f203

Change-Id: Ie77021a09bb896faaa5fc5686563b0ddbf645d48
2018-07-26 17:52:16 -07:00
Hall Liu
b91316f203 Merge "Add carrier config for auto redialing 911" 2018-07-26 20:22:03 +00:00
Hall Liu
f31f38562f Add carrier config for auto redialing 911
Bug: 111235453
Test: manual (modify IMS stack locally to always return the 380 error
when dialing in airplane mode)

Change-Id: I029d2227ce62bb11fa91e9d5338a667d6e3dd59b
2018-07-25 18:48:55 -07:00
Nathan Harold
232487ff44 Merge "Access Identity and SignalStrength from CellInfo"
am: c99ced9db8

Change-Id: Ibec751dc256381a504d0366725f6d43b624f27ab
2018-07-23 15:53:55 -07:00
Nathan Harold
c99ced9db8 Merge "Access Identity and SignalStrength from CellInfo" 2018-07-23 21:35:00 +00: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