Commit Graph

566462 Commits

Author SHA1 Message Date
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
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
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
George Chang
2195e2b514 Merge changes from topic "nfcc_aon_listener"
* changes:
  Add NfcManagerTests
  Update ControllerAlwaysOnStateCallback to ControllerAlwaysOnListener
2021-04-15 15:09:00 +00:00
Siim Sammul
0ad62a2471 Add dplotnikov and gaillard as owners for binder proto file too.
Change-Id: I83774866d1713ec17e5bc547c22e3da6b7b0a2b2
Test: n/a
Bug: 180584913
2021-04-15 13:22:52 +00:00
Chiachang Wang
fe09ad78cd Merge "Remove hidden method link in public addRoute API" 2021-04-15 11:26:41 +00:00
Zoey Chen
30ad4bf90a [Telephoy] Add phone Id to support DSDS
Bug: 185451283
Test: atest TelephonyRegistryTest
Change-Id: Ia09d0979bda94470f0c41cff9349c74d06ecc003
Merged-In: I6bf2285e37366ca517a3ea16194a203371e44964
2021-04-15 11:11:11 +00:00
Pedro Loureiro
c91722d3b1 Merge "Add lint baseline to address NewApi errors" 2021-04-15 11:03:47 +00:00
Lorenzo Colitti
103e78ed48 Don't expose raw IBinder APIs.
APIs should not expose raw IBinder objects.

Fix: 184735751
Test: builds, boots
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest
Test: atest CtsNetTestCases:android.net.cts.DnsResolverTest
Change-Id: Ia0c4170def31123f0b79318fec2cfe02e4fcd3bf
2021-04-15 18:47:21 +09:00
Paul Duffin
738f919418 Move hiddenapi sort preupload tools to tools/platform-compat
Bug: 179354495
Test: try and upload changes to hiddenapi flag files
Change-Id: Iedc21893bbc62adaaca4de353d022e77fc70ace2
2021-04-15 10:45:39 +01:00
Treehugger Robot
3fbec7cf77 Merge "Add test for [set|is]BypassableVpn" 2021-04-15 09:21:57 +00:00
Chiachang Wang
2f8522313b Remove hidden method link in public addRoute API
The build will complain after moving connectivity framework code
outside framework because the hidden methods/members accesses are
not allowed anymore. Link to a hidden class will not work since
it's not visible in public.

Bug: 182859030
Test: make docs
Change-Id: I5726f80be7cf92b648ce851d9601d5f58bc2b647
2021-04-15 16:21:00 +08:00
lucaslin
12d6eb2871 Add test for [set|is]BypassableVpn
Bug: 182963397
Test: 1. atest CtsNetTestCases:NetworkAgentConfigTest
      2. atest CtsNetTestCasesLatestSdk:NetworkAgentConfigTest
Change-Id: I0250a0313d3a7561ab8efa851fbc06f5bce11185
2021-04-15 15:44:01 +08:00
Aravind Angadi
9eee708a97 CEC: Drop TODOs marked as fixed/obsolete
Bug: 159901363
Test: None
Change-Id: Ied8bf487857c3fb3f27d92d7dbdd8beeb981442c
2021-04-15 12:52:53 +05:30
Treehugger Robot
435ba73a94 Merge "[Telephony] Physical Channel Config should support DSDS" 2021-04-15 06:13:57 +00:00
Treehugger Robot
590949fd61 Merge "Make TYPE_VPN_LEGACY no longer deprecated." 2021-04-15 03:57:20 +00:00
Treehugger Robot
51e5e80876 Merge "Grant shell missing permissions" 2021-04-15 00:52:03 +00:00
Paul Crowley
7e20e9f22b Merge "Include OWNERS file that exists" 2021-04-15 00:48:21 +00:00
Treehugger Robot
ef0304a087 Merge "Bluetooth OOB: Fix getLeAppearance" 2021-04-15 00:34:44 +00:00
Donald Chai
979191a80b Fix typo
Change-Id: I2fccfa4d88e157eccaa822105484ae56297bc1c9
2021-04-14 23:26:30 +00:00
Treehugger Robot
762a92d755 Merge "Shell: Allow usage of UwbManager APIs" 2021-04-14 22:38:12 +00:00
Roshan Pius
43158d470e Shell: Allow usage of UwbManager APIs
This permission is needed for uwb CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to range to uwb devices.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test any of the
UwbManager API's.

Bug: 183747097
Test: Compiles
Change-Id: Ie4264cdcd3f84c965da70f8f8fefe538378c47f6
Merged-In: Ie4264cdcd3f84c965da70f8f8fefe538378c47f6
2021-04-14 21:01:58 +00:00
Paul Crowley
7234ea3537 Include OWNERS file that exists
The current OWNERS file includes a file that does not exist. Change
it to a similarly named file that does exist.

Test: n/a
Bug: 163866361
Change-Id: I5681b2fd05a4a010b81f55a00d2384ff9e5ad541
2021-04-14 12:51:02 -07:00
George Chang
60c693aa8d Add NfcManagerTests
Bug: 184837312
Test: atest NfcManagerTests
Change-Id: I1838a8232a34d9b2f35941408c499f59c68aa5e7
2021-04-15 02:24:16 +08:00
George Chang
78fad0d6d3 Update ControllerAlwaysOnStateCallback to ControllerAlwaysOnListener
Bug: 182979907
Test: atest NfcNciInstrumentationTests
Test: atest android.permission.cts.NfcPermissionTest
Change-Id: Iba0e3881b1bdb7ce080c15ae52f454912dc66ec9
2021-04-15 02:23:34 +08:00
Anton Hansson
86925687e6 Add visibility rules to StubLibraries.bp
Stubs libraries are public, other stuff is not.

Bug: 185128417
Test: m nothing
Change-Id: I2c378e39995a88bb34a8f88819c05e75223734fd
2021-04-14 18:58:23 +01:00