Commit Graph

3866 Commits

Author SHA1 Message Date
Jordan Liu
7aea30267c [DO NOT MERGE] Add CellBroadcastService and related permissions
CellBroadcastService is bound to by the platform to handle cell
broadcasts.

Bug: 135956699
Test: manual
Change-Id: I865c09d6d246779b706c06371df685d415618699
2019-10-18 14:20:50 -07:00
Treehugger Robot
ae48da3c55 Merge "Add ITelephony setCepEnabled command line command." 2019-10-16 06:13:47 +00:00
Hunter Knepshield
4f5bb32fca Check Carrier Privilege on Hidden Subs
When calling CheckCarrierPrivilegeForAnySubId the
hidden subscriptions were not being taken into account
due to getAllActiveSubscriptionIds being a public method
that intentionally ignores hidden subscriptions.

NOTE: This is identical to ag/8193293, except that the
SubscriptionManager modifications don't make
getActiveSubscriptionIdList() static (it was causing test failures). A
further bug can be pursued to make everything static all at once.

Bug: 135684437
Test: manual
Change-Id: Iad6a3c2635e5eac2d33a16aa460b98394fd817f4
Merged-In: Iad6a3c2635e5eac2d33a16aa460b98394fd817f4
2019-10-14 14:15:09 -07:00
Xiangyu/Malcolm Chen
8dbe1f3b9b Merge changes Icc6e7da7,I9007978b,I060511af
* changes:
  Add APIs to return max possible active phones.
  Combine getPhoneCount, getSimCount and isMultiSimEnabled.
  Remove permission check for LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE
2019-10-14 21:06:13 +00:00
Malcolm Chen
793928c338 Add APIs to return max possible active phones.
This is first step towards reboot free single SIM to DSDS switch. As
getPhoneCount returns active phone count based on current configuration,
getMaxPhoneCount (subject to renaming) will return max possible active
phones(logical modems).

Bug: 141023026
Test: manual

Change-Id: Icc6e7da7c065eb3f72ec85a99ccc148639c574da
Merged-In: Icc6e7da7c065eb3f72ec85a99ccc148639c574da
2019-10-14 11:57:12 -07:00
Jordan Liu
656502be63 [DO NOT MERGE] Revert "Add CellBroadcastService and related permissions"
This reverts commit b59c74f302.

Reason for revert: depends on ag/9477322 being CP'd, or else causes breakages downstream (b/142399383)

Change-Id: I25b1695757d5fec8c00f05d033c33501f4fc5389
2019-10-09 13:34:26 -07:00
Treehugger Robot
038d1b5b27 Merge "Rename DEFAULT_CARD_INDEX" 2019-10-09 18:25:34 +00:00
Jordan Liu
b59c74f302 Add CellBroadcastService and related permissions
CellBroadcastService is bound to by the platform to handle cell
broadcasts.

Bug: 135956699
Test: manual
Change-Id: Ib1b20da03d271fc0b2736774b2ca6c6514944093
Merged-In: Ib1b20da03d271fc0b2736774b2ca6c6514944093
2019-10-08 11:20:46 -07:00
Tyler Gunn
13c825139f Add ITelephony setCepEnabled command line command.
This new command line command is used to disable conference event package
handling so that we can test behavior where CEP is not present on a
network, even though a network actually supports it.

Test: Disabled CEP using command line tool, verified bug disposition.
Bug: 139299700
Change-Id: I9f2258ddfbe982159de0f37d4a865e2511079c72
2019-10-04 15:52:12 -07:00
Jordan Liu
e3dfe362dc Merge "Expose CdmaSmsCbProgramData as SystemApi" 2019-10-01 20:33:29 +00:00
Jordan Liu
4ae91c0308 Expose CdmaSmsCbProgramData as SystemApi
Only getOperation and getCategory are currently used, so we only expose
those parts of the functionality. Eventually if we move BearerData to
the CBR app we will also have to expose the constructor, at which point
we may also want to expose the other constants that the constructor
uses, but for now this is okay.

Bug: 135956699
Test: manual
Change-Id: I1d3ba564372845f9b8a470adf82e84df745c02a7
Merged-In: I1d3ba564372845f9b8a470adf82e84df745c02a7
2019-10-01 10:42:56 -07:00
Shuo Qian
b61230c51d Integrate the active emergency session listener in TelephonyRegistry
Add Telecom shell command: "adb shell telecom set-system-dialer"

Test: PhoneStateListener cts
Bug: 135204580
Merged-In: I5eaada6a671606642a849f0ff6fe964332d80d5f
Change-Id: I5eaada6a671606642a849f0ff6fe964332d80d5f
2019-09-30 20:43:42 +00:00
Chen Xu
420bf71217 Merge "use @SystemAPI for creating UserHandle" 2019-09-26 03:43:44 +00:00
Chen Xu
83fe845c8c Merge "use @SystemAPI in AppOpsManager" 2019-09-26 03:43:44 +00:00
Chen Xu
e958bbd8ae Merge "use packageManager @SystemAPI" 2019-09-26 03:43:44 +00:00
Chen Xu
e5ea21aa3b use @SystemAPI for creating UserHandle
Bug: 137202333
Test: Build & Unit test
Merged-In: Id2a696bed6a80c92291c8f968f3aaa8db6bb83df
Change-Id: Id2a696bed6a80c92291c8f968f3aaa8db6bb83df
(cherry picked from commit 59d76e97bb)
2019-09-25 18:03:40 -07:00
Chen Xu
4927f6d7da use @SystemAPI in AppOpsManager
Bug: 137202333
Test: Build & unit test
Merged-In: Ief8d20b62df5fcd99980182d9bb896bd82ac70e9
Change-Id: Ief8d20b62df5fcd99980182d9bb896bd82ac70e9
(cherry picked from commit 324606e459)
2019-09-25 17:59:17 -07:00
Chen Xu
6a2926cd44 use packageManager @SystemAPI
Bug: 137202333
Test: Build
Merged-In: I1c0cb7840cb7d68fd720723eec96aa51aefc1df8
Change-Id: I1c0cb7840cb7d68fd720723eec96aa51aefc1df8
(cherry picked from commit 4b5f423c5c)
2019-09-25 17:54:07 -07:00
Treehugger Robot
3dc68a9585 Merge "Add isApplicationOnUicc API" 2019-09-18 02:00:54 +00:00
Shuo Qian
e6f0e85516 Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
Merged-In: I6e6bce6d4b97d492ca20302002911f9daa20767e
(cherry picked from commit 7a1eb6d56b)
2019-09-13 03:16:17 +00:00
Pengquan Meng
156f347db4 Merge "Support maximum wait time for Cell broadcast" 2019-09-06 17:15:28 +00:00
Pengquan Meng
9f677a0790 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
(cherry picked from commit 02d6ac0f20)
2019-09-05 15:27:31 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
6491711995 Rename DEFAULT_CARD_INDEX
Bug: 120621713
Test: manual
Change-Id: Idb0a464efd6316e0c31faebb80457092a411b23c
2019-09-03 13:44:04 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Brad Ebinger
18f96879c2 Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP"
am: 597234f119

Change-Id: I63b3906b26643d50d0208e4231306b9cf830e977
2019-08-28 17:12:27 -07:00
Brad Ebinger
597234f119 Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP" 2019-08-28 22:02:44 +00:00
Amit Mahajan
c302ce55ab Merge "Fix invalid padding bits for 7-bit ASCII encoding"
am: 2c8d3c56f2

Change-Id: I62692e468732d1de5eba26ddc2a926bb7044e7f2
2019-08-28 13:41:21 -07:00
Amit Mahajan
2c8d3c56f2 Merge "Fix invalid padding bits for 7-bit ASCII encoding" 2019-08-28 19:45:52 +00:00
Treehugger Robot
1953ea490f Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-08-28 17:51:50 +00:00
Taesu Lee
3676ee2e12 Merge "Add new default_reserved_data_coding_scheme config"
am: 7a71de717b

Change-Id: Ide11a58cae754e720862e1049ccb718670e46c31
2019-08-28 01:21:59 -07:00
Treehugger Robot
7a71de717b Merge "Add new default_reserved_data_coding_scheme config" 2019-08-28 07:57:29 +00:00
Taesu Lee
bc7abc3e5a Preprocessing Teleservice Id 0xFDEA SMS WAP
The SMS WAP specified Teleservice Id 0xFDEA requires an additional
header parsing to extract new Message Identifier and new User Data from
WDP SMS User Data.

Test: MT MMS in China Telecom N/W and atest CdmaSmsTest

Change-Id: I8c0edd53c0da7c5b54fe6aa5a05f5577676383d8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-28 14:13:46 +09:00
Pengquan Meng
6cf420a80e Merge "Support WAC decoding in UMTS format"
am: 9bc9b80912

Change-Id: I7efc88e5878e68b571d55fd386ad022b9a662bc3
2019-08-27 13:50:18 -07:00
Taesu Lee
dc77d5a9ac Fix invalid padding bits for 7-bit ASCII encoding
Calculate correct padding bits for 7-bit ASCII encoding so that
unnecessary byte 0x00 is not appended in the User Data subparameter.
See the below issue case.

After encodeUserDataPayload(UserData;5 ASCII chars) in encodeUserData(),
UserData.numFields = 5 and UserData.payload = 5 septets and 5 bits
padding. Nevertheless if UserData.paddingBits = 0 still, paddingBits in
encodeUserData() will be 3. As a result, unnecessary one byte(5 + 3 bits)
padding is appended.

Test: Manual

Change-Id: I1cd19d5c491d8eed3b41bf5cb101fc77cb6090ab
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-27 17:28:41 +09:00
Pengquan Meng
c3427c01b3 Support WAC decoding in UMTS format
This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)
(cherry picked from commit 1f64582bdf)
2019-08-26 16:24:14 +00:00
Xin Li
a770df1d2e DO NOT MERGE - Merge build QP1A.190711.019 into stage-aosp-master
Bug: 139893257
Change-Id: I94fce9c5c0b35cbb88ee27fa4cd037927964d2cd
2019-08-24 05:22:23 +00:00
Pengquan Meng
52cd1fe0f1 Merge "Add geo targeting implementation"
am: df2293f68b

Change-Id: Iaa8d3d72bff57cbbd36b9f5ed63807fef2a0b119
2019-08-23 02:32:14 -07:00
Pengquan Meng
e7bc13f806 Add geo targeting implementation
This CL adds support for geo targeting, including determining whether a
point is inside a simple polygon and circle.

For the judgment of the point in the polygon, the algorithm implemented
here simply considers the spherical polygon as a 2d plane polygon, which
may be not precisely. However, according to the test of real geographical
coordinates data i.e state/city/stree boundary data, this error is less than
10 meters that within 160 meters requires by the spec.

Bug: 123096618
Test: atest GeoUtils
Change-Id: I51e1fad3b48c1a58fa0510f97d9f5f9335779c30
(cherry picked from commit 7fbc74b66b58dd57deedb7336c5c1e2f0f9e2064)
2019-08-21 20:47:13 +00:00
Taesu Lee
839729c850 Add new default_reserved_data_coding_scheme config
New default_reserved_data_coding_scheme config is added to support
carrier specific encoding type for reserved TP-DCS value.

For KT(mcc=450, mnc=08), TP-DCS 0x0C means ENCODING_KSC5601.

Test: Manual

Change-Id: I4412a2557b2d668660797383d7a72d09c9311b5a
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-20 07:38:57 +00:00
TreeHugger Robot
c64852517a Merge "DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master" into stage-aosp-master 2019-08-15 23:02:12 +00:00
satayev
4a607da02b Merge "Move telephony/cdma/ classes into appropriate package."
am: 46c04b7bb8

Change-Id: I1fb05b0e09c492fa95af92e6b146364492177f61
2019-08-15 13:18:41 -07:00
Hyungjun Park
4984d3c477 Add isApplicationOnUicc API
Returns true if the specified type of application is present
on the UICC card.

Bug:127549503

Signed-off-by: Hyungjun Park <hjun78.park@samsung.com>
Change-Id: I1513951515d7225e82b5a5997cd2a8f3520c2ca7
2019-08-15 13:05:14 -07:00
Xin Li
80860803a4 DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master
Bug: 134405016
Change-Id: I303c0268e8e454b0f0f460eb286812a50c9add88
2019-08-14 12:04:06 -07:00
Artur Satayev
f772c13f9d Move telephony/cdma/ classes into appropriate package.
Not changing the java packages, but rather moving the source location. This allows running metalava on them.

Test: m
Change-Id: I3b46644361239d85818dd885f461dfc94de49dca
2019-08-14 10:48:10 +01:00
Andrew Sapperstein
e9142ca840 Add a blacklist for preinstalled carrier apps.
Allows an OEM to specify that a preinstalled carrier app, even if
TelephonyManager says it should have carrier privileges, does not
get granted the default permissions and does not get enabled when
a compatible SIM is inserted.

Bug: 138150105
Test: verified locally
Change-Id: I0afec28f1f18227947c1fe9e6bb5fd0dad3b5dac
Merged-In: I0afec28f1f18227947c1fe9e6bb5fd0dad3b5dac
(cherry picked from commit e016781807)
2019-08-08 21:25:36 +00:00
chen xu
29e8b772d4 SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: If03e376ad0e91ad69f8444567700ed3fe76d66f6
Merged-in: If03e376ad0e91ad69f8444567700ed3fe76d66f6
2019-08-05 14:56:55 -07:00
Jordan Liu
6ef6ff9ca1 Merge "Use TM SubId in getDataState and getDataActivity"
am: 3968a18c27

Change-Id: I69e39b4867b78182217357d14ef96c966e3b7dd3
2019-07-11 18:30:26 -07:00
Nathan Harold
af984d0d4e Use TM SubId in getDataState and getDataActivity
-Update getDataState() API to use the SubId specified
 by the TelephonyManager instance.

-Update the getDataActivity() API to use the SubId
 specified by the TelephonyManager instance.

(This CL is an un-revert of aosp/984377)

Bug: 135205433
Test: manual (automated test is infeasible)
Change-Id: I035f2c44a7955e88608b1c336acb72fb68c3e450
2019-07-11 11:52:55 -07:00
Eugene Susla
e5c5ec7316 Merge "Fix sms app changed broadcast" into qt-dev
am: 0a98e4b693

Change-Id: I6223c8373f8e00446f5c7c51496bbacff6483be5
2019-07-03 16:32:02 -07:00