Commit Graph

10411 Commits

Author SHA1 Message Date
TreeHugger Robot
e82cb2aa4c Merge "Document isManagedProfile usage should probably be isProfile" into tm-dev am: 8819133efc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17072218

Change-Id: I71b73a51273d3c1448183b0631c55451a2c45e63
2022-03-03 22:47:07 +00:00
TreeHugger Robot
8819133efc Merge "Document isManagedProfile usage should probably be isProfile" into tm-dev 2022-03-03 22:38:37 +00:00
Gavin Corkery
4d68713b8e Merge "Add some Process APIs to test_current" into tm-dev am: 0214bd512e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16943884

Change-Id: Idb142bd2b902bee7424f7d7367c9828611cf1058
2022-03-03 21:04:37 +00:00
Adam Bookatz
0b5d0c7f87 Document isManagedProfile usage should probably be isProfile
Much usage of isManagedProfile should probably really be isProfile instead, so have the javadoc explicitly point to it.

Bug: 170249807
Change-Id: Ia6c3cc6d052f2b9f6581fd160410b9ef601c3bcf
Test: N/A (just doc)
2022-03-03 17:53:23 +00:00
Gavin Corkery
b9c52eb96c Add some Process APIs to test_current
In order to test MODULE_LIBRARIES System APIs, the
@TestApi annotation needs to be explicitly added. Also adds
some whitespace changes which were autogenerated when
updating the APIs. Also renames Process.toAppUid().

Test: atest ProcessTest
Bug: 218723058
Change-Id: I49bee200c267550b9616ad0b43022126d2d7cc4b
2022-03-03 14:59:31 +00:00
Yasin Kilicdere
b7f163f13b Merge "Fix Guest string was not translated in UMS.userWithName()" 2022-03-03 03:24:18 +00:00
Sandro Montanari
211b1a9c58 Merge "Add /metadata info on dumpsys diskstats and StatsPullAtomService" am: 31f779f949 am: 079b5b2e27 am: b5b91ee453 am: b815f74d5f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993550

Change-Id: Iba463e1ff7640013cb10626995c8893a3056f202
2022-03-02 19:35:50 +00:00
Sandro Montanari
b815f74d5f Merge "Add /metadata info on dumpsys diskstats and StatsPullAtomService" am: 31f779f949 am: 079b5b2e27 am: b5b91ee453
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993550

Change-Id: I0fe8899299577c8b2b8381e4ea385fd982c74eb7
2022-03-02 19:31:13 +00:00
Bernardo Rufino
13591cdaeb Merge "Adjust Class<T> parameter bounds in new Bundle APIs" am: 15b7548d05 am: 7f6ac3e820 am: ffdd4aa037 am: fe435670d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2004350

Change-Id: Iaa4ad9303370fecc70b25f701853efc667c2e953
2022-03-02 18:49:03 +00:00
Sandro Montanari
079b5b2e27 Merge "Add /metadata info on dumpsys diskstats and StatsPullAtomService" am: 31f779f949
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993550

Change-Id: Iebb35e4099506f05f73c59dd689e84e75ae8756d
2022-03-02 18:47:03 +00:00
Bernardo Rufino
fe435670d3 Merge "Adjust Class<T> parameter bounds in new Bundle APIs" am: 15b7548d05 am: 7f6ac3e820 am: ffdd4aa037
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2004350

Change-Id: I09586ba0388f89f0da4ee95a0445424e6a68fa8e
2022-03-02 18:26:18 +00:00
Sandro Montanari
31f779f949 Merge "Add /metadata info on dumpsys diskstats and StatsPullAtomService" 2022-03-02 18:22:28 +00:00
Bernardo Rufino
7f6ac3e820 Merge "Adjust Class<T> parameter bounds in new Bundle APIs" am: 15b7548d05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2004350

Change-Id: I7beed95d36ba4a83c4e6460dc34d92bdd0873fc8
2022-03-02 17:32:29 +00:00
Bernardo Rufino
15b7548d05 Merge "Adjust Class<T> parameter bounds in new Bundle APIs" 2022-03-02 17:00:31 +00:00
sandrom
f76f5842a4 Add /metadata info on dumpsys diskstats and StatsPullAtomService
Bug: 208676063
Test: manual tests
Change-Id: Ice3b706222aa1f77beadb1b9f4ae93f0d796a0b0
2022-03-02 08:08:23 +00:00
TreeHugger Robot
c9d7b97ea8 Merge "Fix memory flags in external services and secondary zygotes." into tm-dev am: 951aa29f72
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16989014

Change-Id: Ibfba1b5e3db063e4c34965b87d3e8df260bcd979
2022-03-02 01:19:29 +00:00
Colin Cross
811efa2b62 Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644 am: e3086a9896 am: ffa0f38936 am: 4c7fba2811
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053

Change-Id: Ie6d2d2c0df60f381ae078b47dad64b93418bb2a8
2022-03-02 01:18:56 +00:00
TreeHugger Robot
951aa29f72 Merge "Fix memory flags in external services and secondary zygotes." into tm-dev 2022-03-02 00:57:51 +00:00
Colin Cross
4c7fba2811 Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644 am: e3086a9896 am: ffa0f38936
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053

Change-Id: I21f5874867e74ca12334711adf1fbc6938c1a3ff
2022-03-02 00:55:39 +00:00
Colin Cross
e3086a9896 Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" am: a789b92644
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003053

Change-Id: Iab0ad2e55f21ba464ae1b7d4c3ac3252638f711b
2022-03-02 00:13:00 +00:00
Yasin Kilicdere
c556777ca4 Fix Guest string was not translated in UMS.userWithName()
Guest users name was stuck with the language when it was created,
and it wasn't changing with the active language setting.
To solve that, removed name parameter from UM.createGuest() and
created the guest user with a null name, then made changes
in UMS.userWithName() to fill the name of guest user with the active
language's translation when it has a null name.
Creating a guest with a specific name is still supported
through UM.createUser API.

Bug: 185309160
Test: atest com.android.server.pm.UserManagerTest
Change-Id: I2745aed0ea722765a11c6da40fb4159146da54c7
2022-03-02 00:09:38 +00:00
Colin Cross
a789b92644 Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" 2022-03-02 00:01:05 +00:00
Neil Fuller
465771968c Merge "Add explicit OWNERS for SystemClock and related classes" am: c740b09828 am: 1cd597ccd1 am: f0454c198f am: ca67d53303
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003870

Change-Id: I0195faa22a155a68854bc40eb66fd91a09ecd8ae
2022-03-01 18:54:34 +00:00
Neil Fuller
ca67d53303 Merge "Add explicit OWNERS for SystemClock and related classes" am: c740b09828 am: 1cd597ccd1 am: f0454c198f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003870

Change-Id: I1c5e525b23ae2622c79c32f05113f78b9180d084
2022-03-01 18:42:28 +00:00
Evgenii Stepanov
fe85ed2ef5 Fix memory flags in external services and secondary zygotes.
This change fixes a number of interconnected issues in memory safety
(MTE, GWP-ASan, nativeHeapZeroInit) runtime flags.

* Exported services use the hosting app UID to locate the process
  definition, and fail 100% of the time. Use the defining app UID and
  package name instead.
* Isolated services process name does not match the name in the defining
  app manifest, because it includes a class name and an instance number.
  Pass the defining process name in HostingRecord to address this.
* Exported service ApplicationInfo.packageName refers to the hosting
  app, again. As a result, wrong compat feature overrides are applied.
  This has been fixed before for AppZygote services; extend the fix to all
  external services.
* Pass correct memory runtimeFlags to WebViewZygote. This is important
  because both MTE and GWP-ASan have a one-way disable switch; they are
  enabled in the Zygote and disabled in the apps that do not opt-in.
  Passing 0 runtimeFlags to WebViewZygote (and AppZygote) makes it
  impossible to enable these features later in their child processes.

This change moves runtimeFlags logic from ProcessList to os.Zygote to
make it available to WebViewZygote.

Bug: 208910418
Test: CtsTaggingHostTestCases
Test: atest in frameworks/base
Test: CtsWebkitTestCases
Test: manual install WebView with android:memtagMode tag

Change-Id: I232d35344f4cd34226ff11324421904b35251525
2022-03-01 18:23:28 +00:00
Neil Fuller
1cd597ccd1 Merge "Add explicit OWNERS for SystemClock and related classes" am: c740b09828
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003870

Change-Id: Id14bf9d6a5eb3bc9f740e4c4a86fcc71d6ba4741
2022-03-01 17:59:02 +00:00
Nikita Ioffe
5b7b56bb88 Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev am: 8056335fcd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16951825

Change-Id: Ia6b33bbf08a0cc93697fe5a98f3f3fa2793ad7d9
2022-03-01 17:28:21 +00:00
Nikita Ioffe
8056335fcd Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev 2022-03-01 17:07:16 +00:00
TreeHugger Robot
c3916ea295 Merge "Fix vibration effect segment validation regression on allocation count" into tm-dev am: 9870b8a5f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17033150

Change-Id: I48e5f9c0e18ddf1bec6334c58f5a12a69816d1c0
2022-03-01 15:47:54 +00:00
TreeHugger Robot
9870b8a5f4 Merge "Fix vibration effect segment validation regression on allocation count" into tm-dev 2022-03-01 15:30:57 +00:00
Bernardo Rufino
a9cb2102da Adjust Class<T> parameter bounds in new Bundle APIs
So they are consistent with Parcel and allow for patterns where the
client specifies a more narrow type to perform the check while returning
or populating a list of a broader type.

Test: atest -d android.os.cts.BundleTest
Bug: b/220872166#comment3
Change-Id: Ie0d430bb0ecd7fe4ee4bbbd245e38ff2813cc4eb
2022-03-01 15:10:47 +00:00
Neil Fuller
014549b0a0 Add explicit OWNERS for SystemClock and related classes
Bug: 213393821
Bug: 189810551
Change-Id: Ie0736e54f56bb749eff669ea42c25ce70ef4deb4
2022-03-01 11:12:08 +00:00
Lais Andrade
9721eda984 Fix vibration effect segment validation regression on allocation count
Change validation of user input parameters to create a VibrationEffect
to avoid build the error message string unless the validation fails, do
fix regression on allocation count perf metric.

Fix: 215985428
Test: fixed regression on metric
Change-Id: Ibbcfd450f0b25b88e071f3781952f24a72473575
2022-03-01 10:39:52 +00:00
Colin Cross
ef48689e32 Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY
Build.Version.RELEASE_OR_PREVIEW_DISPLAY propagates a string that
contains a user-friendly version name for preview releases, or the
Build.Version.RELEASE version for final releases.

Test: manual
Bug: 221950960
Change-Id: I31f8f67996e3e5e7edc00704b16b8df0db17d3a3
2022-02-28 18:02:59 -08:00
Hao Ke
81694e85e3 Merge "Changing readParcelableList's API." am: 0b340743a6 am: 91117c2cfd am: 35ce6344cf am: 7cff84a534
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998972

Change-Id: I1926f4ca5fd0c422edbbdcad78469830322120f8
2022-02-28 21:13:41 +00:00
Hao Ke
5c4f0361e0 Merge "Update JavaDoc to replace deprecated Parcel read APIs." am: 06ee57cda1 am: d1fdbdff31 am: d38ca191d5 am: dbb831447c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977155

Change-Id: I45750b3f2b7c0774cc58bd02c2b16af78d371e34
2022-02-28 21:12:52 +00:00
Hao Ke
7cff84a534 Merge "Changing readParcelableList's API." am: 0b340743a6 am: 91117c2cfd am: 35ce6344cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998972

Change-Id: I3f49c826a50a8b28f20d4d8f9913b35f4fa0b4ae
2022-02-28 21:04:28 +00:00
Hao Ke
dbb831447c Merge "Update JavaDoc to replace deprecated Parcel read APIs." am: 06ee57cda1 am: d1fdbdff31 am: d38ca191d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977155

Change-Id: I7572a1f8842f45ec3b748b8dda3bba0d19626077
2022-02-28 21:03:49 +00:00
Nikita Ioffe
df5971335b Rename SupplementalProcess to SdkSandbox
Bug: 218314884
Bug: 220320098
Test: presubmit
Test: atest PackageManagerShellCommandTest
Test: atest SdkSandboxPermissionTest
Change-Id: I9fb98e0caee75bdaaa35d11d174004505f236799
2022-02-28 17:29:55 +00:00
Treehugger Robot
2459101b70 Merge "Clear BCB if space allocation failed" am: b667621f8b am: b83bb72fb7 am: 0bbc41378b am: 57ef6a2de3 am: 362ba57d1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997490

Change-Id: I767b8421f00aea88d649d781c6e1c20de6347eca
2022-02-25 19:10:10 +00:00
Hao Ke
91117c2cfd Merge "Changing readParcelableList's API." am: 0b340743a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998972

Change-Id: I83c21117a7f4c64471cf23bed566973b9bb1f4db
2022-02-25 18:26:42 +00:00
Hao Ke
d1fdbdff31 Merge "Update JavaDoc to replace deprecated Parcel read APIs." am: 06ee57cda1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977155

Change-Id: I0159f60033909eb953744479d5eefbf4457197ab
2022-02-25 18:26:13 +00:00
Hao Ke
0b340743a6 Merge "Changing readParcelableList's API." 2022-02-25 18:14:41 +00:00
Hao Ke
06ee57cda1 Merge "Update JavaDoc to replace deprecated Parcel read APIs." 2022-02-25 18:04:42 +00:00
Hao Ke
0641e854a6 Changing readParcelableList's API.
Signature of readParcelableList() new API is inconsistent with rest,
Changing it to allow using Child class as the required type.

Bug: 221069460
Test: Build and boot.
Change-Id: Ic01c9c8011977d75e3be73f55597dd1bfcd524da
2022-02-24 22:31:11 +00:00
Treehugger Robot
57ef6a2de3 Merge "Clear BCB if space allocation failed" am: b667621f8b am: b83bb72fb7 am: 0bbc41378b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997490

Change-Id: Ia8aa6e797c1d59385b2762a788770478737e158f
2022-02-24 20:27:54 +00:00
Treehugger Robot
b83bb72fb7 Merge "Clear BCB if space allocation failed" am: b667621f8b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997490

Change-Id: Id9e3f312578a322784d8e80025ee72ac1419bf57
2022-02-24 19:31:36 +00:00
Treehugger Robot
b667621f8b Merge "Clear BCB if space allocation failed" 2022-02-24 18:58:21 +00:00
Hao Ke
66cd477d77 Update JavaDoc to replace deprecated Parcel read APIs.
Bug: 195622897
Change-Id: I5f6444dcc87ad76bf6f6312eea68891aa07604cb
Test: None
2022-02-24 13:13:48 +00:00
Eric Biggers
41fa601601 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
2022-02-23 23:01:14 +00:00