687807 Commits

Author SHA1 Message Date
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 b1bcec9c7d3aa97e39f71cc3ac821656d8b0b981)
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 2a8ab4778297852738f94ea5dd3f1e6ff9ab9416)
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 6b220a95e9bcb25e103bc0cb3dc4f4bc18c3e137)
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 3654b097b179289fe41a7647dadf8404e72bbb87)
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 2dd97def291b392e85080ba9ab84734dd2bed8af)
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 2e10d6394a32c5ebaa114569932ab8a255636673)
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 41fa601601ecb094fd813ac4c01356045c34cf88)
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 e9b69111b203bec8266f096a0fec942b570da97a)
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 d5b040ed643948dd892f4ad8e2d0f3cfa8d4613d)
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
John Wu
23571e176a Revert "Update AndroidKeyStoreMaintenance framework API"
This reverts commit bb5c49e5108262f42dceb61620c6c530dd529579.

Reason for revert: functionality removed

Change-Id: Ib04a1690b8892af53ca6449e3a38e10490baf9da
2022-03-14 15:20:38 -07: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
Eric Jeong
160ca03c1b [Re-land] Remove scripts related to iorap
This reverts commit 59a56500c0c8171427852a0ff95de9622807745c.

- Iorap is being removed and relevant scripts need to be remove, too.

Bug: 214108410
Test: build okay
Change-Id: I560a66eec4050d60b74ad325328128cd3e299662
Merged-In: I560a66eec4050d60b74ad325328128cd3e299662
(cherry picked from commit 25adac3ba6bf88d8966e592e0cd68c6923c913c4)
2022-03-14 11:25:47 -07:00
Eric Jeong
a46adf380d [Re-land] Remove iorap framework codes
This reverts commit 2f393cdbce9878ede68b7d4c32ddc404727c3532.

- It's decided to remove iorap from Android.
- This CL removes iorap framework codes.
- Removing iorap daemon and git repo will follow.

Bug: 211461392
Test: build okay
Change-Id: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266
Merged-In: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266
(cherry picked from commit 7ee89676b975e17e44de19bfc63173bdb9614d3b)
2022-03-14 11:21:22 -07: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
Hans Boehm
c7e5064bcb Merge "Properly handle wrap system property in zygote" 2022-03-10 21:13:34 +00:00
Nicolas Geoffray
e420bd2635 Merge "Move GraphicsStatsService native method registration to zygote." 2022-03-10 18:34:29 +00:00
Willy Hu
4bfb7074a9 Added the Carrier Config for DataStallRecoveryManager
- KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY
- KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY

Bug: 178670629
Test: Build pass.
      atest com.android.internal.telephony.data --iterations 100
Merged-In: I575850cca4edc8400ae020c4ffdb5088c5b11500
Change-Id: I575850cca4edc8400ae020c4ffdb5088c5b11500
2022-03-10 10:01:34 -08:00
Elliott Hughes
90d4d6040c Revert "Disable pointer authentication in app processes."
Revert "Disable pointer authentication in app processes."

Revert submission 1954983-master-I3030c47be9d02a27505bd4775c1982a20755758c

Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
Reverted Changes:
I3030c47be:Disable pointer authentication in app processes.
I3030c47be:Disable pointer authentication in app processes.

Change-Id: I75c4d2d3cf59aecf99d9c9d37c6750f999e74de8
2022-03-10 18:01:04 +00:00
Aaron Huang
08a2cc7c82 Let docs tool to list the newly-visible IntDef values
Some *_ALL constants are exposed in T and they should be mentioned
in documentation. Because there are already defined InDef values
for this kind of constants. Thus, remove the list in the javadoc
and leave these up to the doc tool to list the InDef values.

Bug: 222291452
Test: m doc-comment-check-docs
Change-Id: Ibbaee5389a85bb3d696a518deea0897845553bfa
2022-03-11 01:28:59 +08:00
Anton Hansson
ebddedfd9b Merge "Move android.jar defaults back to f/b" 2022-03-10 17:15:48 +00:00
Etienne Ruffieux
facf209f74 [API Review] Replace usage of getUuids by new SystemApi
Bug: 223253153
Test: build
Tag: #feature
Change-Id: I8b75a774cb05863b340de0fff83130e7ab9d3891
2022-03-10 16:13:57 +00:00
Martijn Coenen
7647d8cd8f Merge "Add a new UID range for SDK sandbox processes." 2022-03-10 15:01:30 +00:00
Jiakai Zhang
0c3452c532 Update the OWNERS of dexopt related files.
- Add more files as dexopt related files.
- Add mast@ as an owner.

Change-Id: I5361e4d4c9bc9b17d815b09f597a92d350772924
2022-03-10 14:41:39 +00:00
Aaron Huang
5a10845f4a Rename setUidForeground to noteUidForeground
This patch addresses API review about the naming of
NetworkStatsManager#setUidForeground and it would be
more appropriate to rename it to noteUidForeground.

Bug: 222291301
Test: atest FrameworksNetTests
Change-Id: I952762872850889609c9808aa6e3cdfc04317806
2022-03-10 18:31:21 +08:00
Martijn Coenen
5a8d1b20b4 Add a new UID range for SDK sandbox processes.
These are processes that are spawned alongside regular app processes.
They have their own UID range, such that they can be properly isolated
from applications.

Add some APIs in Process that allows the system and mainline
modules to verify that a particular UID belongs to a sandbox
process, and to map between the sandbox process and the
corresponding app process.

Bug: 215012578
Test: N/A
Change-Id: I02aaaa1c2bcf9d141ddc97747eb6d7edd52d7b92
Merged-In: I02aaaa1c2bcf9d141ddc97747eb6d7edd52d7b92
2022-03-10 10:35:16 +01:00
SongFerng Wang
ececa85c9e Merge "[LE] Connect and disconnect both LE headsets" 2022-03-10 07:08:29 +00:00
Pirama Arumuga Nainar
8186f296d0 Disable "-readability-duplicate-include" tidy warning in generated file
/buildbot/src/android/master-plus-llvm/out/soong/.intermediates/frameworks/base/cmds/idmap2/libidmap2_protos/android_arm64_armv8-2a_cortex-a55_static/gen/proto/frameworks/base/cmds/idmap2/libidmap2/proto/fabricated_v1.pb.h:34:1: error: duplicate include [readability-duplicate-include,-warnings-as-errors]

Change-Id: I5da44b2714ce8455a4b8af7556decfc1c24c0d11
Test: presubmit
2022-03-10 05:25:35 +00:00
Xiao Ma
0979ff10d8 Merge "Remove restriction that limits updateConfiguration API to Auto" 2022-03-10 03:40:54 +00:00
Hans Boehm
bb1686a6ac Merge "Correct off-by-one error in SetThreadName" 2022-03-10 01:03:05 +00:00
Eric Biggers
b56960bc76 Merge changes Ib5bcfb6a,I46c2a472,If0c75774,Iab7ba8d3
* changes:
  Stub out some FDE methods in StorageManager
  Stop trying to update FDE password from LockSettingsService
  Remove clearEncryptionPassword() from LockPatternUtils
  Stop trying to get/set fields in FDE footer
2022-03-10 00:48:53 +00:00
Colin Cross
e8f6f0becc Tweak linux_glibc properties for musl builds in frameworks/base
For convenience, builds against musl libc currently use the
linux_glibc properties because they are almost always linux-specific
and not glibc-specific.  In preparation for removing this hack,
tweak the linux_glibc properties by either moving them to host_linux,
which will apply to linux_glibc, linux_musl and linux_bionic, or
by setting appropriate musl or linux_musl properties.  Properties
that must not be repeated while musl uses linux_musl and also still
uses the linux_glibc properties are moved to glibc properties, which
don't apply to musl.  Whether these stay as glibc properties or get
moved back to linux_glibc later once the musl hack is removed is TBD.

Bug: 223257095
Test: m checkbuild
Test: m USE_HOST_MUSL=true host-native
Change-Id: I7058c8f1dadd7bbfd7e169bdf0a0441eb6d10ec5
2022-03-09 16:31:28 -08:00
William McVicker
e55bd1600f Merge "Fix the same active time tasks disappeared on RunngintTasks" 2022-03-10 00:24:25 +00:00