Commit Graph

22533 Commits

Author SHA1 Message Date
Antoan Angelov
034f3b9f43 Merge "Add system API to PersistentDataBlockManager to return config_persistentDataPackageName" 2022-01-21 16:42:07 +00:00
Antoan Angelov
f21152bba3 Merge "Add intent action to establish network connectivity prior to provisioning." 2022-01-21 16:41:42 +00:00
Thomas Vannet
d5aa1c4270 Merge "Rename selfRevokePermissions to revokeOwnPermissionsOnKill" 2022-01-21 15:03:35 +00:00
Vadim Caen
e0b59d46ce Merge changes Ifc2ed99b,Ibd7fc78e
* changes:
  Integration of back gesture animation on Sysui (BackNav 2/n)
  Server infrastructure for back nav animation (BackNav 1/n)
2022-01-21 13:36:58 +00:00
Kholoud Mohamed
4e5275f350 Merge changes from topic "updateStrings"
* changes:
  Add getString override that accepts format args
  Add APIs to allow updating enterprise related strings
2022-01-21 11:50:11 +00:00
Chilun Huang
57b945cd23 Merge "Add error handling for onConfigurationChanged" into sc-v2-dev am: bca4bd6bab am: f6ed082d5a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16682144

Change-Id: Iac1ce0cf84cec7e7c90b04fff20e97bd54171773
2022-01-21 07:11:46 +00:00
Chilun Huang
f6ed082d5a Merge "Add error handling for onConfigurationChanged" into sc-v2-dev am: bca4bd6bab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16682144

Change-Id: I7acd8a1e3a0543faa1eab52fe030a988a76f5ac6
2022-01-21 07:00:09 +00:00
Thomas Vannet
395f8deeff Rename selfRevokePermissions to revokeOwnPermissionsOnKill
Test: atest android.permission.cts.RevokeOwnPermissionTest
Bug: 215555831
Bug: 210575642
Bug: 210387494
Change-Id: I94e29f66d13ac76669fab2ccc08879c30c26b7ea
2022-01-21 05:50:22 +00:00
Dave McCloskey
5e0e3a3da8 Merge "Add call to TrustManager for SystemUI to propagate unlock requests to a trust agent." 2022-01-21 00:56:37 +00:00
Makoto Onuki
1eb3b126c7 Merge "*ServiceStartNotAllowedException shouldn't have a "cause"" 2022-01-21 00:23:45 +00:00
Dave McCloskey
58f20e160d Merge "Add OWNERS file for TrustManager et al." am: 20b5b3c157 am: c55ff91842 am: e1ba468150 am: 527df1e011
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955199

Change-Id: I2b0d7aed178a082008ad7723559da52727d6fbc7
2022-01-20 18:35:26 +00:00
Dave McCloskey
527df1e011 Merge "Add OWNERS file for TrustManager et al." am: 20b5b3c157 am: c55ff91842 am: e1ba468150
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955199

Change-Id: I439349ce0a39f69f4124008c745263d478dd470e
2022-01-20 18:24:50 +00:00
Dave McCloskey
e1ba468150 Merge "Add OWNERS file for TrustManager et al." am: 20b5b3c157 am: c55ff91842
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955199

Change-Id: Idbc53525235c7bee9a323c1ee6e3c167cc50d7ce
2022-01-20 18:20:24 +00:00
Makoto Onuki
fc3ec92a97 *ServiceStartNotAllowedException shouldn't have a "cause"
Bug: 210890426
Test: build
Change-Id: I94ba39c775cf95074907db6814104289a577d496
2022-01-20 08:58:08 -08:00
kholoud mohamed
ddf2c6dad2 Add getString override that accepts format args
Also added the required contants for enterprise strings in SysUI

Bug: 188414133
Bug: 211422509
Bug: 188410712
Test: manual
Change-Id: I574f5ef1ec1f7ad6dc92a3509c30c9bcac4b6d37
2022-01-20 16:24:29 +00:00
kholoud mohamed
968b1b2095 Add APIs to allow updating enterprise related strings
Add APIs to update and retrieve enterprise-related system strings,
the APIs are guarded by a new permission that will be granted to the new
device management role holder.

Bug: 188410712
Bug: 211422509
Test: manual
Change-Id: I336b5f1856f621e2ed9886780fc838f3e18fdf9f
2022-01-20 16:18:58 +00:00
Chilun
cca803cba8 Add error handling for onConfigurationChanged
The new config may comes before mApplication is assigned. Add the error
handling to prevent the crash.

Bug: 211031909
Test: Launch app without crash
Change-Id: Iba5d1be0e6cb182b5f503f5aa827eb2967834d52
2022-01-20 23:39:13 +08:00
arangelov
b7542a3b9d Add system API to PersistentDataBlockManager to return config_persistentDataPackageName
Fixes: 215369101
Test: none
Change-Id: Ic10dc8ce41c872d77c8a454f63a783984aab71d8
2022-01-20 12:48:37 +00:00
arangelov
50f0c47adb Add intent action to establish network connectivity prior to provisioning.
Bug: 215159250
Test: none
Change-Id: I8263c1170cf33ac9f9f0acbf11ab72f09c800e11
2022-01-20 12:42:54 +00:00
arangelov
d3a5461b7f Add EXTRA_PROVISIONING_ALLOW_OFFLINE
Bug: 214038662
Test: compiled
Change-Id: I9056ea20c25c9f5c1116c54503cfcae97e58c6ae
2022-01-20 12:17:24 +00:00
TreeHugger Robot
ce65b04d56 Merge "Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""" 2022-01-20 11:33:39 +00:00
Vania Desmonda
2ad9fe6296 Merge "Add wallpaper dimming SystemAPI and implementation for handling dimming set by multiple applications." 2022-01-20 08:55:45 +00:00
Shan Huang
5b44dd8b79 Merge changes from topic "shanh-back-api"
* changes:
  Provide OnBackInvokedDispatcher from Activity, View and Dialog
  Introduce IOnBackInvokedCallback and OnBackInvokedDispatcher
2022-01-20 07:20:51 +00:00
Shan Huang
c0999600ee Provide OnBackInvokedDispatcher from Activity, View and Dialog
Test: mp core sysuig services
Bug: 195946584

Change-Id: Ia882ec621154ea1daa780c8976b900e4c8f44a7d
2022-01-20 01:33:56 +00:00
Dave McCloskey
b90933a1cc Add OWNERS file for TrustManager et al.
Test: m

Change-Id: I8045e9518a05d3d29811153b22c94e920e1e6335
2022-01-19 15:17:04 -08:00
Wu Ahan
dcf263a2bc Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: 4c5f09cab3 am: 96c0c34fb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630307

Change-Id: Ic8ec587e86ec11f8d0fe8b1b4bce756c7f813d66
2022-01-19 22:34:15 +00:00
TreeHugger Robot
d289bf2513 Merge "Revert "Decode the input of both setStream and setResource calls first"" into sc-v2-dev am: 613dfbf465 am: edb3c9e738
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630306

Change-Id: I227235eb4c5606906d4fd8c1b4ae4d2d2eae47b5
2022-01-19 22:33:27 +00:00
Sudheer Shanka
e21748a999 Merge "Add a knob to change the impact of the notification-seen event." 2022-01-19 22:21:01 +00:00
Wu Ahan
96c0c34fb9 Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: 4c5f09cab3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630307

Change-Id: If81af003f6b9c82e42076a38196787e7ba9dea6a
2022-01-19 22:15:57 +00:00
TreeHugger Robot
edb3c9e738 Merge "Revert "Decode the input of both setStream and setResource calls first"" into sc-v2-dev am: 613dfbf465
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630306

Change-Id: I8776eeb1756d32d748596c6d1da914c21c559ece
2022-01-19 22:14:13 +00:00
TreeHugger Robot
613dfbf465 Merge "Revert "Decode the input of both setStream and setResource calls first"" into sc-v2-dev 2022-01-19 21:26:40 +00:00
Steven Ng
ab4c4606f6 Merge "[Night] Add a new night theme trigger: bedtime" 2022-01-19 20:36:26 +00:00
Steven Ng
4263ab6637 [Night] Add a new night theme trigger: bedtime
This CL expands the existing UiModeManager APIs to allow users activate
dark mode at their configured bedtime schedule on supported devices,
i.e. devices with Digital Wellbeing preinstalled.

The CL added granular types for NIGHT_MODE_CUSTOM. There are two types
1. MODE_NIGHT_CUSTOM_TYPE_SCHEDULE
   This is the type for a schedule set up by users via the Settings
   app.
2. MODE_NIGHT_CUSTOM_TYPE_BEDTIME
   This is the type for a bedtime schedule set up by users via the
   Digital Wellbeing bedtime settings. Unlike
   MODE_NIGHT_CUSTOM_TYPE_SCHEDULE, Android framework doesn't have
   any information of the bedtime schedule. The activation of dark
   theme lives inside Digital Wellbeing

Test: unit tests: atest FrameworksUiServicesTests:UiModeManagerServiceTest
      CTS: atest CtsAppTestCases:UiModeManagerTest
      Manual testing via a system app integration
Bug: 210975231
Change-Id: I3b16e649a048f8a485b9e9d6464d4f251839320d
2022-01-19 19:25:50 +00:00
Antoan Angelov
9c74d73471 Merge "Add provisioning extra to keep screen on" 2022-01-19 12:22:22 +00:00
Bernardo Rufino
1a5cb387d6 Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""
This reverts commit 331be9a643.

Reintroducing ag/16366278 since it seems unrelated to b/214053959 (more details on b/214053959#comment55).

Original commit message:

Migrate unsafe parcel APIs in framework-minus-apex

Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Change-Id: I272432e6e082a973f7a50492ec35d79c2b577c93
Test: TH passes
2022-01-19 11:13:18 +00:00
Pratyush More
ccbd71c78f Merge "Modify LocaleManager#setApplicationLocales Javadoc to explicitly mention persistence, and B&R." 2022-01-19 10:13:12 +00:00
Vania Desmonda
dde365777a Add wallpaper dimming SystemAPI and implementation for handling dimming
set by multiple applications.

Handle lock screen dimming regardless if it shares the same wallpaper
with the system to apply composite keyguard + additional dimming.

Test: manual testing and unit tests
Bug: 202841384
Change-Id: Iabd665e9a8e377185b123494eac2198a4436b0c6
CTS-Coverage-Bug: 213426781
2022-01-19 10:08:21 +00:00
Ankita Vyas
ad13719e71 Merge "Allow the installer of an app to get the app's locales." 2022-01-19 05:22:38 +00:00
Winson Chiu
156cb611e6 Merge "Move package parsing to services.jar" 2022-01-18 23:58:53 +00:00
Lee Shombert
dfc3a6ba76 Merge "Clean up PropertyInvalidatedCache for SystemApi" 2022-01-18 22:40:46 +00:00
Xinyi Zhou
b8389b280b Merge "Register NearbyManager in SystemServiceRegistry" 2022-01-18 22:30:05 +00:00
Lucas Silva
92cae130d0 Merge "Clean up CommunalManagerService" 2022-01-18 21:15:15 +00:00
Winson
efbb319630 Move package parsing to services.jar
This facilitates exposing the Parsed_ classes as
@SystemApi(client = SYSTEM_SERVER) while keeping everything inside
services.jar rather than having it split across both jars.

This reverts getPackageArchiveInfo to use legacy PackageParser, since
framework.jar can no longer access the moved classes.

Bug: 214038417

Test: presubmit, no logic changes

Change-Id: I152d70fb4f643d32efb012cfb20b0fbc5f88f2d8
2022-01-18 12:47:45 -08:00
Adam Bookatz
b738e3353f Merge "Allow bindServiceAsUser without _FULL if same app" 2022-01-18 19:04:56 +00:00
Joe Bolinger
648c0f9d73 Merge "Do not lock when biometric lock status is cleared." 2022-01-18 19:03:00 +00:00
Lucas Silva
b292ef1910 Clean up CommunalManagerService
This system service is no longer needed, as there is no longer a shared
lockscreen.

Test: locally on device
Bug: 206054365
Ignore-AOSP-First: cleanup
Change-Id: Ib2db06c377cf632da77dc41c629debfe658bfc48
2022-01-18 17:04:02 +00:00
Kholoud Mohamed
3c71e8fea8 Merge changes from topic "overrideDrawables"
* changes:
  Send broadcast when a device policy resource is updated
  Add APIs to allow updating enterprise related drawables
2022-01-18 15:51:59 +00:00
“Ankita
f9921942c4 Allow the installer of an app to get the app's locales.
Change the api from system to public api so that 3p installers can also use it.

Bug: 210981031
Bug: 193787310
Test: atest FrameworksServicesTests:LocaleManagerServiceTest
Test: atest CtsLocaleManagerTestCases
Change-Id: I98137941749725fbf2fe57d4a33d6abd8f99fffa
2022-01-18 14:18:33 +00:00
Pratyush More
919aa5d688 Modify LocaleManager#setApplicationLocales Javadoc to explicitly mention
persistence, and B&R.

Bug: 214016307
Test: Javadoc change only
Change-Id: I0caa14bca01e052ecfb93a4f3205f2c284f6d58a
2022-01-18 13:32:32 +00:00
kholoud mohamed
85316ade7d Send broadcast when a device policy resource is updated
Bug: 188410712
Bug: 203548565
Test: manual
Change-Id: Icad44019c3fd2691969eaaf6b518d2ddfb91d133
2022-01-18 11:01:25 +00:00