Commit Graph

687516 Commits

Author SHA1 Message Date
Bernardo Rufino
30e41a64b2 Merge "Add safer Intent extra APIs and deprecate old ones" 2022-03-16 23:16:37 +00:00
Sooraj Sasindran
fd8ac5ce94 Merge "Use int array for included and excluded uids" 2022-03-16 17:56:08 +00:00
Patrick Rohr
c02e97dcdd Merge "Split out the ethernet API surface and use framework-connectivity-t" 2022-03-16 16:03:30 +00:00
Evan Laird
ad9993d551 Merge "SystemUI: Fix signal bar icon overlay issue" 2022-03-16 14:55:07 +00:00
Frank Li
c48d90e91b Merge "[DU04-2]Appropriate changes to the NetworkPolicyManager API" 2022-03-16 12:28:24 +00:00
Sooraj Sasindran
39558844fa Use int array for included and excluded uids
Bug: 217365439
Test: presubmit
Change-Id: Ida507186aab1514e45c9531eec79ac78b19e247e
2022-03-16 07:18:40 +00:00
Frank
7c43d8fcac [DU04-2]Appropriate changes to the NetworkPolicyManager API
Divide the NetworkPolicyManager API
notifyStatsProviderWarningOrLimitReached into the following two APIs:
1. notifyStatsProviderWarningReached()
2. notifyStatsProviderLimitReached()

Bug: 216474563
Test: atest NetworkStatsServiceTest NetworkPolicyManagerTest
            NetworkPolicyManagerServiceTest OffloadControllerTest
Change-Id: Ic413eb532b5e24d4a7e2afabdcf643ab6607b1ed
2022-03-16 14:23:50 +08:00
Sewook Seo
634b3fec76 Merge "API review: Additional comment for QosApi." 2022-03-16 03:20:55 +00:00
Allen Hair
a7006818d3 Merge "Add tool for injecting tracing code into a method." 2022-03-16 01:14:36 +00:00
Sewook Seo
04c1004ef4 Merge "API review: Additional documentation & annotation" 2022-03-16 01:01:34 +00:00
sewookseo
81db932f12 API review: Additional comment for QosApi.
Adding comment to EpsBearerQosSessionAttribute javadoc.

Bug: 216368595
Test: build
Change-Id: Ie7b8722abb082743bb67f77797de900913cf2871
2022-03-16 00:09:42 +00:00
Lorenzo Colitti
b5a5e6ce75 Merge "Rename setUidForeground to noteUidForeground" 2022-03-15 23:33:26 +00:00
sewookseo
10f49a1072 API review: Additional documentation & annotation
Add annotation @RadioAccessNetwork for setupDataCall parameter.
Add comment to API documentation for start/cancelHandover.

Bug: 215240597
Test: build
Change-Id: Ibb4abfeea68d710815f59bce4c6edb2e832cc8bd
2022-03-15 22:32:12 +00:00
Eric Biggers
6a8f891205 Merge changes from topic "remove-auth-token"
* changes:
  Remove HardwareAuthToken parameter from unlockUserKey
  Remove HardwareAuthToken parameter from clearUserKeyAuth
  Remove HardwareAuthToken parameter from addUserKeyAuth
  Don't pass HardwareAuthToken to unlockUser() in non-SP verifyCredential
  Remove non-SP based setLockCredentialInternal()
  Remove HardwareAuthToken support from FakeStorageManager
2022-03-15 21:33:26 +00:00
Eric Biggers
841350e6ac Merge changes from topic "remove-fde"
* changes:
  Remove unused FDE methods from StorageManager
  Stop checking FDE password cache
  Remove checks for FDE in 'adb backup'
2022-03-15 17:23:08 +00:00
Steven Moreland
180aa227f6 Merge "ParcelableHolder: assert stability on read" 2022-03-15 17:00:57 +00:00
Jack Yu
71649aa3f4 Merge "Used single TCP configuration for devices" 2022-03-15 16:58:08 +00:00
Mady Mellor
0bd7c7b932 Merge "Allow submodule owners to approve resources in shell" 2022-03-15 15:48:10 +00:00
Aaron Huang
5e42ca0036 Merge "Create @StringDef for the PREFIX_* values" 2022-03-15 04:29:15 +00:00
Aaron Huang
47196d44fa Merge "Let docs tool to list the newly-visible IntDef values" 2022-03-15 03:55:41 +00:00
Sooraj Sasindran
78bc18e26b Merge "Allow a list of configs to be sent for enterprise slice" 2022-03-15 03:49:56 +00:00
Colin Cross
ee415b6dd4 Merge "Tweak linux_glibc properties for musl builds in frameworks/base" 2022-03-15 03:43:11 +00:00
Eric Biggers
95792478f1 Remove HardwareAuthToken parameter from unlockUserKey
Due to the migration to synthetic passwords, the 'token' parameter to
unlockUserKey() is no longer needed.  Remove it.

Note: I didn't change unlockUser() in IActivityManager because it is
marked with UnsupportedAppUsage, so it might not be safe to change the
method signature.  It now just ignores the 'token' parameter rather than
passing it down the stack.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: I35ce09412f47f2f2a17a371d518a0a518b70bfb6
(cherry picked from commit b1bcec9c7d)
Merged-In: I35ce09412f47f2f2a17a371d518a0a518b70bfb6
2022-03-15 01:26:01 +00:00
Eric Biggers
d04de5ce97 Remove HardwareAuthToken parameter from clearUserKeyAuth
Due to the migration to synthetic passwords, the 'token' parameter to
clearUserKeyAuth() is no longer needed.  Remove it.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: I739b519b0e91293acbf018020891d68b3090c175
(cherry picked from commit 2a8ab47782)
Merged-In: I739b519b0e91293acbf018020891d68b3090c175
2022-03-15 01:25:57 +00:00
Eric Biggers
5eb0659999 Remove HardwareAuthToken parameter from addUserKeyAuth
Due to the migration to synthetic passwords, the 'token' parameter to
addUserKeyAuth() is no longer needed.  Remove it.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: I06e7c36787cc7f384acb7742737c3b1cfa50f0ae
(cherry picked from commit 6b220a95e9)
Merged-In: I06e7c36787cc7f384acb7742737c3b1cfa50f0ae
2022-03-15 01:25:51 +00:00
Eric Biggers
665b5f9228 Don't pass HardwareAuthToken to unlockUser() in non-SP verifyCredential
While at first glance it looks like this is still needed, actually the
support for HardwareAuthTokens was already removed from vold in Android
12, so this cannot actually be doing anything.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: I3c176ba282f4c7901dd09fe3d66cfd380794fb48
(cherry picked from commit 3654b097b1)
Merged-In: I3c176ba282f4c7901dd09fe3d66cfd380794fb48
2022-03-15 01:25:41 +00:00
Eric Biggers
0566abd58c Remove non-SP based setLockCredentialInternal()
This code is no longer used, since the migration to synthetic passwords
is always enabled.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: Ieefffb2641f5c12dfcd7556f529830328e8ba292
(cherry picked from commit 2dd97def29)
Merged-In: Ieefffb2641f5c12dfcd7556f529830328e8ba292
2022-03-15 01:25:36 +00:00
Eric Biggers
401e447e10 Remove HardwareAuthToken support from FakeStorageManager
There is no longer any need for FakeStorageManager to keep track of
hardware auth tokens, since they aren't used for real anymore.

Test: atest com.android.server.locksettings
Bug: 184723544
Change-Id: Ida3a989ecea974fe79568e381cf0e6ff3fe1f1eb
(cherry picked from commit 2e10d6394a)
Merged-In: Ida3a989ecea974fe79568e381cf0e6ff3fe1f1eb
2022-03-15 01:25:25 +00:00
Eric Biggers
0bc49e6fc3 Remove unused FDE methods from StorageManager
Now that FDE is no longer supported, remove the FDE-related methods from
StorageManager that are no longer called.

Bug: 208476087
Change-Id: Ic24a5b029bdf51dec622d1b70cef9ef26c3d54c5
(cherry picked from commit 41fa601601)
Merged-In: Ic24a5b029bdf51dec622d1b70cef9ef26c3d54c5
2022-03-14 23:04:00 +00:00
Eric Biggers
f33dbe0540 Stop checking FDE password cache
Now that FDE is no longer supported, checking the FDE password cache
will never accomplish anything.  Remove this check from Keyguard, and
remove the supporting code from LockSettingsService.

Bug: 208476087
Change-Id: If1bb80dfcc015aeea19916a88c89a4067e6ada32
(cherry picked from commit e9b69111b2)
Merged-In: If1bb80dfcc015aeea19916a88c89a4067e6ada32
2022-03-14 23:03:52 +00:00
Eric Biggers
bd03d7606d Remove checks for FDE in 'adb backup'
The deviceIsEncrypted() methods in BackupRestoreConfirmation.java and
UserBackupManagerService.java only return true if the device is using
FDE (Full Disk Encryption), for which support has been removed in favor
of FBE (File Based Encryption).  Therefore, the logic to require a
backup password no longer applies to any device.

Remove this logic to simplify the code.

It is possible that this was actually a bug, and this logic should have
applied to FBE devices too.  But given that the code has worked this way
for years, and there isn't necessarily a logical connection between
whether the device is encrypted and whether a backup *must* be
encrypted, I decided not to change the current behavior.

Bug: 208476087
Test: 'adb backup' and 'adb restore' still work.
Change-Id: Idc72d2a4c3e8bfa10a32cdc57884159b37635e81
(cherry picked from commit d5b040ed64)
Merged-In: Idc72d2a4c3e8bfa10a32cdc57884159b37635e81
2022-03-14 23:03:44 +00:00
Etan Cohen
dc2f8bfaee Merge "Add MANAGE_WIFI_INTERFACES to the shell permission" 2022-03-14 23:03:25 +00:00
Elliott Hughes
b9fc2910ca Merge "Revert "Disable pointer authentication in app processes."" 2022-03-14 21:09:31 +00:00
Pirama Arumuga Nainar
e6c05a8fd7 Merge "Disable "-readability-duplicate-include" tidy warning in generated file" 2022-03-14 19:52:03 +00:00
Treehugger Robot
adf939b3d3 Merge "Properly fix revokePermissionsNoLongerImplicitLocked() for shared UIDs." 2022-03-14 19:28:20 +00:00
Mady Mellor
de74beeb89 Allow submodule owners to approve resources in shell
Bug: None
Test: None / treehugger
Change-Id: I40125e005aba85e0b3a97e75692cb3f878f327b0
2022-03-14 18:58:23 +00:00
Xiao Ma
f4d72b212c Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17
Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-14 13:47:01 +00:00
Jiakai Zhang
b276239bbc Merge "Update the OWNERS of dexopt related files." 2022-03-14 10:00:28 +00:00
Bernardo Rufino
a89fede08c Add safer Intent extra APIs and deprecate old ones
Complementing new safer Bundle APIs introduced in aosp/1988908.

Test: Working on CTS
CTS-Coverage-Bug: 224457848
Bug: 224457848
Change-Id: I1d2b15d1214f2bd2eccade45693365098200ae01
2022-03-14 09:53:25 +00:00
Bernardo Rufino
05f2831e1c Merge "Document when types are checked in Bundle" 2022-03-14 08:53:45 +00:00
Aaron Huang
2438554348 Create @StringDef for the PREFIX_* values
Bug: 222291489
Test: build, FrameworksNetTests
Change-Id: If54bed41e96a1b1ef169d89a0caa9e4300578374
2022-03-14 11:12:23 +08:00
Frank Li
216b67dace Merge "[DU09-2]Modify the NetworkStatsCollection Builder API" 2022-03-14 02:36:08 +00:00
Jack Yu
1c764996ea Used single TCP configuration for devices
Starting from Android 13, the TCP buffer size is fixed after boot up,
and should never be changed based on carriers or the network types.
The value should be configured appropriately based on the device's
memory and performance. It is recommended to use lower values if the
device has low memory or doesn't support high-speed network such like
LTE, NR, or Wifi.

Bug: 213596972
Test: Manual

Merged-In: I1f19e1217f7e7da37b3dd3b511d4859d77ec7bad
Change-Id: I1f19e1217f7e7da37b3dd3b511d4859d77ec7bad
2022-03-12 16:45:08 -08:00
Sooraj Sasindran
e9c9dda003 Allow a list of configs to be sent for enterprise slice
Allow a list of configs to be sent for enterprise slice
Allow device owner to set enterprise slice config
Allow enterprise apn to be configured by profile owner

Bug: 217365439
Bug: 222723840
Test: ran CTS tests
Merged-In: I82c159843d0806cbfc5eea602fbd0304e7ff04ac
Change-Id: I82c159843d0806cbfc5eea602fbd0304e7ff04ac
2022-03-11 05:38:59 +00:00
Jack Yu
391556b01c Merge "Support preferred data profile correctly" 2022-03-11 00:56:03 +00:00
Oscar Shu
2349f6f641 Merge "Rename MANAGE_WIFI_AUTO_JOIN to MANAGE_WIFI_NETWORK_SELECTION" 2022-03-11 00:27:46 +00:00
Steven Moreland
f1010eb8ad ParcelableHolder: assert stability on read
The interface a ParcelableHolder is in determines its stability,
and it shouldn't change based on what is sent.

Bug: 215458170
Test: aidl_integration_test
Change-Id: I40239e14e59b3998ac19d140453eb29a298cdb76
2022-03-10 23:54:23 +00:00
Jack Yu
1893b078bd Support preferred data profile correctly
Correctly support read/write preferred data profile.

Fix: 212906152
Test: manual & atest DataNetworkControllerTest DataProfileManagerTest
Merged-In: I3cb18680ec6c77a4905901a2aa3cf3c86ce801f1
Change-Id: I3cb18680ec6c77a4905901a2aa3cf3c86ce801f1
2022-03-10 14:59:55 -08:00
Etan Cohen
bee32e37f6 Add MANAGE_WIFI_INTERFACES to the shell permission
Enable CTS validatio of the protected APIs.

Bug: 223512835
Test: builds
Change-Id: Ie34564e2bc09937636629b395cc303b1f2c0a537
2022-03-10 22:23:32 +00:00
Jack Yu
7a818840eb Merge "Added the Carrier Config for DataStallRecoveryManager" 2022-03-10 21:34:36 +00:00