Commit Graph

575 Commits

Author SHA1 Message Date
Jack Yu
ffb09e11c1 Merge "Moved getId API from system to public" 2021-03-31 21:56:53 +00:00
Kholoud Mohamed
71c5019038 Merge "Create new permission SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS" 2021-03-31 11:29:12 +00:00
Kholoud Mohamed
0969f50292 Merge "Remove no longer needed QUERY_USERS permission" 2021-03-31 11:28:40 +00:00
Kholoud Mohamed
ddf5a7dc62 Merge "Create new permission QUERY_AUDIO_STATE" 2021-03-31 10:28:01 +00:00
Kholoud Mohamed
531fcd63ca Merge "created FORCE_DEVICE_POLICY_MANAGER_LOG and CLEAR_FREEZE_PERIOD" 2021-03-31 10:27:23 +00:00
Hall Liu
4406bc8575 Add carrier config keys for GBA
Add keys for values that are expected by carriers when requesting keys

Bug: 182425585
Test: manual
Change-Id: I03487dca483cd91ddcafe9487f211eb3069caf5f
Merged-In: I03487dca483cd91ddcafe9487f211eb3069caf5f
2021-03-30 22:22:41 +08:00
Junyu Lai
3757df2e7d Merge "[SP31] Expose onSetWarningAndLimit System API" 2021-03-30 08:00:45 +00:00
George Chang
7b7b809587 Merge changes from topic "update_NFCC_Always_on"
* changes:
  Make NFC_UID TestApi
  Update SetAlwaysOn to SetControllerAlwaysOn
  Add new permission to set NFC always on states
2021-03-30 02:17:03 +00:00
James Lin
47dc400888 Merge "Updated the RcsCapabilityExchangeImplBase APIs" 2021-03-30 01:57:10 +00:00
Sudheer Shanka
d3ba15beeb Remove NetworkPolicyManager.isUidBlocked() API.
It isn't used by ConnectivityService any more and even if
it needs such utility method in the future, we could create
one which is part of connectivity module and doesn't need
to be exposed as part of NetworkPolicyManager API surface.

Bug: 183696103
Test: atest ./tests/net/java/com/android/server/ConnectivityServiceTest.java
Change-Id: Ie3c681f88e4b2b9bb92d2224c5ea96b074f155d5
2021-03-29 12:39:12 +00:00
George Chang
ba34121efc Make NFC_UID TestApi
Bug: 182979907
Test: atest android.permission.cts.NfcPermissionTest
Test: atest android.net.wifi.cts.WifiManagerTest
Change-Id: Id007984bcd03b5892bd774673c8c0ab836032fc9
2021-03-28 22:28:06 +08:00
George Chang
5052189dd8 Update SetAlwaysOn to SetControllerAlwaysOn
Bug: 182979907
Test: atest NfcNciInstrumentationTests
Change-Id: I6b794259ec597e5d7f86e94705017b8fe169a102
2021-03-28 22:20:52 +08:00
George Chang
abd045e95c Add new permission to set NFC always on states
Bug: 182979907
Test: atest NfcNciInstrumentationTests
Change-Id: I9a82c37f0b6716e68dc4c2d7e0f171d892f09112
2021-03-28 22:06:34 +08:00
David Zeuthen
b0a08c82bc Merge "PackageManager: Add FEATURE_HARDWARE_KEYSTORE, modify FEATURE_STRONGBOX_KEYSTORE." 2021-03-25 18:27:48 +00:00
Peter Wang
e00d2b03f3 Merge "[API Review] Change ACTION_MANAGE_ALL_SIM_PROFILE_SETTINGS API" 2021-03-25 17:47:07 +00:00
Treehugger Robot
44008b63fb Merge "Create a new permission to override Overridable change ids" 2021-03-25 17:35:45 +00:00
Benjamin Franz
229b809643 Create a new permission to override Overridable change ids
With this change we allow system packages with the new permission to
override ChangeIds specifically annotated as Overridable to set
overrides even on non-debuggable builds.

Bug: 174043039
Bug: 175874108
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: Ib8d5d83b5fd62acb5808d10f5c413616f29ee65c
Merged-In: Ib8d5d83b5fd62acb5808d10f5c413616f29ee65c
2021-03-25 16:07:32 +00:00
kholoud mohamed
cf21de27a8 Create new permission SET_AND_VERIFY_LOCKSCREEN_CREDENTIALS
Created a new permission to allow setting and verifying lock screen
credentials.

Test: N/A
Bug: 182260585
Merged-In: I3cf624f063ba582bc8d3b6aeeb11a46a2ab37636
Change-Id: I3cf624f063ba582bc8d3b6aeeb11a46a2ab37636
2021-03-25 15:15:58 +00:00
David Zeuthen
d9cbeba041 PackageManager: Add FEATURE_HARDWARE_KEYSTORE, modify FEATURE_STRONGBOX_KEYSTORE.
These feature flags will hold the KeyMint version for the default and
StrongBox HALs. They can be used by apps to convey that they'll only
work on devices which have a recent enough version of KeyMint.

For example, if an application requires ECDH to be implemented in
Secure Hardware it can convey this requirement by indicated that it
needs FEATURE_HARDWARE_KEYSTORE >= 100. Or if it needs this in the
StrongBox it can use FEATURE_STRONGBOX_KEYSTORE >= 100. As with other
feature flags, this can be used to only show the app on devices which
satisfy such requirements.

Test: Compiles
Bug: 160616951
Change-Id: I582e50fba92de0d598d7e86fcc3b1b2b4a91b103
2021-03-25 09:38:42 -04:00
kholoud mohamed
b78cc199cd Remove no longer needed QUERY_USERS permission
Bug: 178695365
Test: atest PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Merged-In: I4e050d6ea7df08ba789021fd06e8c4cf8936dfe9
Change-Id: I4e050d6ea7df08ba789021fd06e8c4cf8936dfe9
2021-03-25 10:09:35 +00:00
Jayachandran C
eb1bdda971 Fix QOS API review comments
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest
Change-Id: I234318d6f32179ef3b79b3a480faf52b620fe58e
2021-03-25 04:42:35 +00:00
Treehugger Robot
201c39ba90 Merge "media: make ParameterDescriptor static" 2021-03-25 03:16:34 +00:00
Treehugger Robot
cdf9e7ef43 Merge "Remove BluetoothHeadset#setPriority which was deprecated in Android 11" 2021-03-25 02:43:05 +00:00
Harpreet "Eli" Sangha
bef37a3dc8 Merge "UWB: Annotate AngleMeasurement Parameters" 2021-03-25 02:06:52 +00:00
junyulai
59b0a621e7 [SP31] Expose onSetWarningAndLimit System API
Test: atest NetworkPolicyManagerServiceTest NetworkStatsServiceTest
Bug: 149467454
CTS-Coverage-Bug: 183598414
Merged-In: I6f5e22e3a7b80a38cae9f3c5d7296a1dff34facf
Change-Id: I6f5e22e3a7b80a38cae9f3c5d7296a1dff34facf
  (cherry-picked from ag/13981689)
2021-03-25 09:32:43 +08:00
Wonsik Kim
f65fcbdbbd media: make ParameterDescriptor static
Bug: 183242434
Test: builds
Change-Id: Ifed0209d36f6d40b0a9fb95008b74eff5c96c742
2021-03-24 16:04:41 -07:00
Hui Wang
11149deba4 Merge "Integrate RCS provisioning updates into SipTransport" 2021-03-24 21:05:46 +00:00
Rahul Sabnis
2b735a548f Remove BluetoothHeadset#setPriority which was deprecated in Android 11
Tag: #feature
Bug: 183551808
Test: Manual
Change-Id: I88745589ec66d3060d24b530fe49fea8926726c6
2021-03-24 14:01:52 -07:00
kholoud mohamed
b071084a3f Create new permission QUERY_AUDIO_STATE
Created a new permission to allow access to device audio
state and granted it to shell.

Test: N/A
Bug: 182260585
Merged-In: If1bfcb1341402717fec74cc704caa7e1eb18fa2e
Change-Id: If1bfcb1341402717fec74cc704caa7e1eb18fa2e
2021-03-24 21:01:50 +00:00
Peter Wang
e0dcbf7c3f [API Review] Change ACTION_MANAGE_ALL_SIM_PROFILE_SETTINGS API
Bug: 182165190
Bug: 170507492
Test: Local
Change-Id: I21bd95bfc746f2d11dc569b9ea990bb7a3726ba5
Merged-In: I21bd95bfc746f2d11dc569b9ea990bb7a3726ba5
2021-03-24 11:18:37 -07:00
kholoud mohamed
fc40a4a777 created FORCE_DEVICE_POLICY_MANAGER_LOG and CLEAR_FREEZE_PERIOD
Created the following new permissions and granted it to shell:
* FORCE_DEVICE_POLICY_MANAGER_LOG: will be used to expose
DPM#forceNetworkLogs and DPM#forceSecurityLogs as TestAPIs.
* CLEAR_FREEZE_PERIOD: will be used to expose
DPM#clearSystemUpdatePolicyFreezePeriodRecord as a TestAPI.

Bug: 180500227
Test: atest PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Merged-In: I8a2a49aa45704d8991e9cf3689b5259442fb1db3
Change-Id: I8a2a49aa45704d8991e9cf3689b5259442fb1db3
2021-03-24 18:12:31 +00:00
Jayachandran Chinnakkannu
bd3a33ed9f Merge "Add 5G/NR QOS support" 2021-03-24 17:44:48 +00:00
Treehugger Robot
59035dd21c Merge "DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters" 2021-03-24 17:36:33 +00:00
Sudheer Shanka
d533fa78b1 Move BLOCKED_REASON_* constants from NPMS into ConnectivityManager.
These constants will now be including all the reasons for why an
uid's network access can be blocked, instead of only the
restrictions that could be imposed by NPMS.

Bug: 183473548
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Merged-In: I4c544415e12adf442fd2415c371b1b70a39c3aa4
Change-Id: I6dcea43fbefa9eac8b5a971b822a5be5422a54b4
2021-03-25 01:33:26 +09:00
James.cf Lin
69297723f4 Updated the RcsCapabilityExchangeImplBase APIs
1. Remove the executor from the constructor of the class RcsCapabilityExchangeImplBase
2. Rename the API name from removeCapabilityExchangeImpl to destroyCapabilityExchangeImpl

Bug: 180616706
Test: atest RcsUceAdapterTest ImsServiceTest
Change-Id: I9c11e384992345886d9c4a744dd4d734884a303f
2021-03-24 16:16:45 +00:00
Harpreet Eli Sangha
1bf9cb029b UWB: Annotate AngleMeasurement Parameters
Bug: 180395817
Test: Build
Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: Ic4ea2049086ba7593021dbbc2ef7b8f6283d8540
2021-03-24 18:37:01 +09:00
Wonsik Kim
197e1a7f5e DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters
Bug: 183242434
Test: atest android.media.cts.MediaCodecTest
Change-Id: Iaef8f8aef564dc8cda84a83f6cc628d87649b43d
2021-03-24 02:51:59 +00:00
Jayachandran C
af09816c25 Add 5G/NR QOS support
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest

Change-Id: Idf6d8a7c3b80bc50a2c1244ceaefea9381d40c2f
2021-03-23 19:14:21 -07:00
Rambo Wang
c289c9b0a2 Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode"
* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
2021-03-24 01:22:51 +00:00
Hui Wang
3f7fe40e49 Integrate RCS provisioning updates into SipTransport
Bug: 173828167
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Merged-In: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
Change-Id: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
2021-03-24 00:21:28 +00:00
James Lin
fe4b99ee22 Merge "UCE OPTIONS APIs updated" 2021-03-23 18:47:44 +00:00
Zongheng Wang
ab2c1e5777 Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" 2021-03-23 18:47:36 +00:00
Cody Kesting
46c10cbc4d Merge changes from topic "vcn-status-changed"
* changes:
  Rename VcnStatusCallback#onVcnStatusChanged.
  Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23 17:10:51 +00:00
Rambo Wang
cff9760e07 Export ServiceState#DataRegState into telephony provider
Keep ServiceState#getDataRegState hide. Apps can get the same
info from telephony provider without loation permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I1ba72a5b767761d2f7bd1b52459a0c9d101061a2
2021-03-23 09:33:21 -07:00
Rambo Wang
4481b5181e Public ServiceState#duplexMode in telephony provider
ServiceState#getDuplexMode is a public API. Expose the same
info through telephony provider to let applications retreive
it without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I19128c938993f351533aca9a8e1a1356e21eb30e
2021-03-23 09:27:42 -07:00
Rambo Wang
9446a5239f Merge "Expose ServiceState#getDataNetworkType in telephony provider" 2021-03-23 14:26:52 +00:00
Zongheng Wang
7b8f79b641 Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu
Test: atest bluetooth_test_common
Test: atest CtsTelephonyTestCases
Bug: 183051612
Change-Id: If15d31eb699e2c5d3e371628dba8adbaa9bbebfa
2021-03-22 21:31:58 -07:00
Rambo Wang
6a7df3f4e8 Expose ServiceState#getDataNetworkType in telephony provider
Data network type is key information to make the switching
decision. Exporting to telephony provider can let application
get the information without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I9753eee2619baf6b1627835624444c0e4f0cd410
2021-03-22 12:24:19 -07:00
James.cf Lin
7eb2671ae1 UCE OPTIONS APIs updated
1. Expose OPTIONS APIs in the RcsContactUceCapability.
2. Update the feature tags type from List to Set.

Bug: 181175307
Test: atest RcsUceAdapterTest ImsServiceTest RcsContactUceCapabilityTest
Merged-In: Id4499d7f9f6eb2b572902d76129f9ad388354d9f
Change-Id: Id4499d7f9f6eb2b572902d76129f9ad388354d9f
2021-03-23 03:13:45 +08:00
SongFerng Wang
b24ba9d52f Merge "KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY change type as IntArray" 2021-03-22 19:06:48 +00:00