Commit Graph

566491 Commits

Author SHA1 Message Date
Zoey Chen
aa3c222643 [ANAPIC Review] Change the type of List by ANAPIC review
- Use List<Byte> since using uint8_t in radio

Bug: 183738486
Test: make
Change-Id: I5a52bc20ebd9c5ce000abd8588f2969d84c6bcd0
Merged-In: I5a52bc20ebd9c5ce000abd8588f2969d84c6bcd0
2021-04-21 05:12:28 +00:00
Remi NGUYEN VAN
fe737812ce Merge "Revert "Add a test for ParseException"" 2021-04-20 09:25:07 +00:00
Treehugger Robot
e063867f7b Merge "Update TEST_MAPPING imports for connectivity" 2021-04-20 08:45:19 +00:00
Ken Chen
1b06ec2530 Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell" 2021-04-20 07:12:33 +00:00
Remi NGUYEN VAN
52c46df5d9 Update TEST_MAPPING imports for connectivity
Connectivity CTS tests were moved from cts/tests/net to
packages/modules/Connectivity.

Bug: 185751610
Change-Id: Id4efd99c419706a52ad5d708888097bd6312d4e6
Test: treehugger is needed to test
2021-04-20 07:10:41 +00:00
Remi NGUYEN VAN
c3915fc7e7 Revert "Add a test for ParseException"
This reverts commit 54e707a62e.

Reason for revert: Test broken on R: b/185751610

Change-Id: I9f5d25c0ba81011848ab3cf7ec44aa329fbb3b0f
2021-04-20 16:04:33 +09:00
Treehugger Robot
ce2a2c80dd Merge "Set a floor value for BLE Batch Scan report delay of 5000ms" 2021-04-20 02:27:23 +00:00
Rahul Sabnis
ea303904fd Set a floor value for BLE Batch Scan report delay of 5000ms
Tag: #feature
Bug: 167340030
Test: Manual
Change-Id: I4ef99a9562f1447a2ccee42a344384a38a487c19
2021-04-19 17:29:02 -07:00
Tianjie Xu
d746cc814f Merge "Revisit the lifetime of the RebootEscrowProvider" 2021-04-19 23:02:01 +00:00
Tianjie Xu
f58b4a1109 Merge "Addresses TODO in ResumeOnRebootService Javadoc" 2021-04-19 23:01:55 +00:00
Hans Boehm
6c61c65f19 Merge "Don't fork USAPs with open argument buffer" 2021-04-19 22:33:21 +00:00
Sarah Chin
958f9efba5 Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" 2021-04-19 20:29:09 +00:00
Jing Ji
598675abef Merge "Update Kotlin sample code for CountDownTimer and Parcelable" 2021-04-19 19:23:06 +00:00
Treehugger Robot
f7cde977db Merge "Hide RCS PUBLISH mapping due to complicated structure" 2021-04-19 19:09:22 +00:00
Treehugger Robot
ca53d40161 Merge "Clarify SipDelegateImsConfiguration getVersion Documentation" 2021-04-19 19:08:51 +00:00
Hans Boehm
fab68e1481 Don't fork USAPs with open argument buffer
Delay execution of any zygote command that may end up forking USAPs
until we've released our own ZygoteCommandBuffer. Otherwise we fork
the child with an open ZygoteCommandBuffer, preventing it from
opening its own.

Bug: 182084594
Test: Build and boot AOSP, with USAPs enabled and disabled.
Change-Id: I2366367d2155a120092fbdcae13cbb3d7f4e1d16
2021-04-19 11:42:15 -07:00
Steven Moreland
12d2d7fd9c Merge "reflect libbinder->libpermission: appops" 2021-04-19 17:20:21 +00:00
Yan Yan
3022c5437c Merge "Use #setNetwork and #getNetwork for IkeSessionParams" 2021-04-19 17:04:25 +00:00
Aurimas Liutikas
6dd6c5a603 Merge "Cleanup nativeHeapZeroInit and memtagMode implementation." 2021-04-19 16:52:58 +00:00
Sally Yuen
afbb23d1d3 Merge "Add UiAutomation shell permission tests to Shell presubmit tests" 2021-04-19 16:14:01 +00:00
Treehugger Robot
6e7f16ac1e Merge "CEC: Drop TODOs marked as fixed/obsolete" 2021-04-19 09:46:37 +00:00
Treehugger Robot
5e7d4961e6 Merge "Add missing synchronized(mLock) into Autofill onServiceDied" 2021-04-19 08:58:17 +00:00
v-qianliguo
60db8208a8 Add missing synchronized(mLock) into Autofill onServiceDied
Test: N/A
Signed-off-by: v-qianliguo <v-qianliguo@xiaomi.com>
Merged-In: Ic16ed5e4ac507f02e56f9e9cd94d4b4cfb028d69
Change-Id: I5c9640ab0695386effdbaaad7b72e143668af876
2021-04-19 08:04:14 +00:00
Chiachang Wang
32032cbfe3 Merge "Update the permission check for dump" 2021-04-19 05:37:09 +00:00
Remi NGUYEN VAN
68090c1373 Merge "Add a test for ParseException" 2021-04-19 04:57:31 +00:00
Chiachang Wang
d0365eb2d7 Update the permission check for dump
ServicePermissionsTest#testDumpProtected expects to see nothing
from dump() if the caller does not have the required permission.

After the refactor the ConnectivityService#dump(). It does not
leak real information for those callers without permission but
show the title of dumpsys, i.e. it shows "DUMP OF SERVICE HIGH
connectivity". This breaks the test since the test expects to
see nothing.

Move the permission check to the front of dump call stack since
there is no way to call other private dump related methods.

Bug: 185425662
Test: atest android.security.cts.ServicePermissionsTest
Test: adb shell dumpsys connectivity
Change-Id: I173c968a4f1c4d6f618ed87725a6ccda8d309988
2021-04-19 11:09:15 +08:00
Treehugger Robot
29d0c73416 Merge "Move CtsHostsideNetworkTests to group presubmit-large" 2021-04-19 03:05:59 +00:00
Tianjie
bd0bc157d3 Revisit the lifetime of the RebootEscrowProvider
Currently the RebootEscrowProvider is created as part of the boot
process, when device tries to restore the escrow data. This will
fail the first RoR boot attempt after we switch from HAL based
-> server based. So revisit the logic to reduce the time for
RebootEscrowManager to hold the provider in RAM.

Now we attempt to create a new provider object when
1. new RoR preparation request
2. load / restore escrow data (after reboot)
3. clear rebootescrow, as we want to clear provider's internal data
4. lskf capture

We reuse the old provider in memory when
1. arm reboot escrow, right before reboot (we don't switch the provider
   after lskf is captured)

we clear the provider in memory when
1. after clear rebootescrow, so new RoR request can create a new one
2. after we finish restoring escrow data

Bug: 184676743
Test: unittest, cts test
Change-Id: I2109cbe69f0ebba766aabf30feb141053496354f
2021-04-17 19:35:24 -07:00
Brad Ebinger
844b7dee2a Hide RCS PUBLISH mapping due to complicated structure
Hide until we can encode complicated structures like this
in something like a parcelable.

Bug: 182370110
Test: manual
Change-Id: I1797da52bfd447f198b48bd163b1bd0944aadb58
2021-04-17 21:07:45 +00:00
Brad Ebinger
e09fc1cd18 Clarify SipDelegateImsConfiguration getVersion Documentation
Bug: 181764870
Test: docs only change
Change-Id: I5ced81d33d80ecc90f704d910c08d0625396d163
2021-04-17 20:40:43 +00:00
Janis Danisevskis
b3671c4ab5 Merge "Fix operation auth bound keys." 2021-04-17 05:51:38 +00:00
Janis Danisevskis
8c97d4fe79 Fix operation auth bound keys.
CryptoObject still called the legacy AndroidKeystoreProvider which did
not return the correct operation handle for per operation auth bound
keys.

Bug: 184804041
Bug: 185181377
Test: CtsVerifier->Security->Biometric Tests->2a Strong Biometrics +
      Crypto
Merged-In: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
Change-Id: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
2021-04-16 12:55:33 -07:00
Junyu Lai
28aca09bbf Merge "[VCN20] Change requestBackgroundNetwork argument order" 2021-04-16 16:04:31 +00:00
Paul Duffin
b82853357b Merge "Move hiddenapi sort preupload tools to tools/platform-compat" 2021-04-16 15:07:52 +00:00
Rubin Xu
3ccd60f47e Merge "Fix LockSettingsServiceTest" 2021-04-16 12:53:39 +00:00
Rubin Xu
074a8b7012 Fix LockSettingsServiceTest
* Mock out registerReceiverAsUser() to avoid SecurityException
* Mock out setKeystorePassword() to not call into the real keystore

Bug: 170661840
Test: atest com.android.server.locksettings
Change-Id: I97c33f3b21ac16d2bb92e1658c222e4d0fd1970e
2021-04-16 11:00:27 +01:00
Anton Hansson
6c57d63fcd Merge "Add visibility rules to StubLibraries.bp" 2021-04-16 08:52:46 +00:00
Paul Hu
e87f10b9a6 Merge "Add NWM#getWatchlistConfigHash to test api for testing" 2021-04-16 08:10:33 +00:00
Lorenzo Colitti
4b4cc572c0 Merge "Don't expose raw IBinder APIs." 2021-04-16 07:22:13 +00:00
Aaron Huang
452dc83724 Merge "Handle null pointer cases in ConnectivityService" 2021-04-16 07:06:37 +00:00
Ken Chen
81b55fbe8c Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell
The shell *already had* the privileges granted by this permission due to
specific code in netd, and it lost those privileges when it gained the
CHANGE_NETWORK_STATE permission. Explicitly add
CONNECTIVITY_USE_RESTRICTED_NETWORKS so that it can obtain sufficient
permission in netd no matter CHANGE_NETWORK_STATE is set or not.

Remove a duplicate row by the way.

Bug: 185071689
Test: atest NetdClientTest#protectFromVpnTcp6
Change-Id: I64bc321de2c83378ce7bc8d9eb3044ae7772faca
2021-04-16 05:48:47 +00:00
Treehugger Robot
40fa3f58b2 Merge "[Telephoy] Add phone Id to support DSDS" 2021-04-16 02:28:45 +00:00
Chiachang Wang
82628265f6 Merge "Remove hidden connectivity method usage" 2021-04-16 01:44:39 +00:00
Sally
8724e0eb75 Add UiAutomation shell permission tests to Shell presubmit tests
Bug: 185174828
Test: (on internal branch) run atest in packages/Shell, tests run
Change-Id: I3e53116239ec39e4c6cb3325dbfb8aa1a501377f
2021-04-16 00:57:49 +00:00
Siim Sammul
0c67225999 Merge "Add dplotnikov and gaillard as owners for binder proto file too." 2021-04-15 21:51:23 +00:00
Treehugger Robot
3a4f319145 Merge "OOB generateLocalOobData" 2021-04-15 20:00:44 +00:00
Martin Brabham
76a512f958 OOB generateLocalOobData
unhide @SystemApi callback methods

Bug: 178007935
Tag: #feature
Test: compiles
Change-Id: I2d4167a6c92ee0cc24da12df206838161c8f3318
Merged-In: I2d4167a6c92ee0cc24da12df206838161c8f3318
2021-04-15 18:36:06 +00:00
Donald Chai
6b5e6bba9b Merge "Fix typo" 2021-04-15 16:50:02 +00:00
junyulai
c219d421eb [VCN20] Change requestBackgroundNetwork argument order
Test: atest FrameworksNetTests FrameworksVcnTests
Fix: 185215095
Merged-In: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb
Change-Id: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb
  (cherry-picked from ag/14198667)
2021-04-16 00:16:21 +08:00
Aaron Huang
abbee6e7c6 Handle null pointer cases in ConnectivityService
If a method is called by adb command "service call"
with no parameters. It will cause to crash because
of a null object reference.

Add a null check for them to avoid system server crash.

Bug: 172885426
Test: FrameworksNetTest
      adb shell service call connectivity #
Change-Id: I8748fc5c6a7a6e82db3581e3026a3f75909a357e
2021-04-16 00:15:25 +08:00