Commit Graph

8823 Commits

Author SHA1 Message Date
Amit Mahajan
a45fad224b Merge "Move EXTRA_SERVICE_STATE from Intent to ServiceState." 2020-01-25 00:19:42 +00:00
TreeHugger Robot
f61162a002 Merge "Combine package parsing thread pools" 2020-01-24 23:18:57 +00:00
Yuliya Kamatkova
56f7c7f37c Merge "Add Activity#setLocusContext API. Plumb LocusID to the System Server. Add locus update event to the Usage Stats. Test: Build and run on a test device with a test app. Bug: 147594233, 147100454" 2020-01-24 21:10:54 +00:00
Suprabh Shukla
30295f5421 Merge "Add an unsuspend button option to SuspendDialogInfo" 2020-01-24 21:08:21 +00:00
Ying Xu
4b0dec268d Merge "[Telephony Mainline] Remove hidden API usages in CarrierAppUtils" 2020-01-24 20:55:31 +00:00
Ömer Nebil Yaveroğlu
8d22767445 Merge "Various API changes including:" 2020-01-24 19:48:30 +00:00
Winson Chiu
6fe95622e9 Merge "Only throw SecurityException for OverlayManager callers targeting R" 2020-01-24 19:40:05 +00:00
Yuliya Kamatkova
48c38076ef Add Activity#setLocusContext API. Plumb LocusID to the System Server.
Add locus update event to the Usage Stats.
Test: Build and run on a test device with a test app.
Bug: 147594233, 147100454

Change-Id: I1e058ac87244d47719606d8dcfaea2df4bff43d2
Signed-off-by: Yuliya Kamatkova <yuliyak@google.com>
2020-01-24 11:19:10 -08:00
Omer Nebil Yaveroglu
15395f59a7 Various API changes including:
1. Move isSatisifed into RuleEvaluator to minimise the API surface.
2. Add a new global settings for skipping integrity component for rule
providers.
3. Incorporate changes suggested by API review in http://b/147835536.

Note that this change is forked from ag/9974531.

Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity/
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/integrity
Bug: 145290357, 147835536
Change-Id: Ic358a83b6bdcd4cb783e6904869f7dc2d136a55e
2020-01-24 10:44:44 +00:00
Automerger Merge Worker
b5505f58b2 Merge "Expose ACTION_USER_SWITCHED as system API" am: e69e147657 am: 7aadbe0e75 am: 436a865387
Change-Id: I84dd658b72c2f5d1d5e3e7333ce0b961b00df9f3
2020-01-24 08:09:01 +00:00
Automerger Merge Worker
b2649eaf0a Merge "Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API" am: 7db161b9ef am: 156a854c72 am: b5b4467941
Change-Id: If5ac1c1528ea6323a83d4fee6f01acb1215b5371
2020-01-24 08:07:39 +00:00
Automerger Merge Worker
54b1d34fc0 Merge changes from topic "add-ikev2-vpn-types" am: adb79e3b39 am: 1ebbd0bb6b am: bb3d6e2e9c
Change-Id: I4ff406efcaada5a9306afc79290cb37bdeef71f2
2020-01-24 07:59:53 +00:00
Amit Mahajan
bb61b17cd9 Move EXTRA_SERVICE_STATE from Intent to ServiceState.
This extra is not exposed and is not used by anyone as such.
Leaving it there for internal use/unsupported app usage.

Test: basic sanity
Bug: 140908357
Change-Id: I9fe6e904291affb1cd7b705212d47525b61a5679
2020-01-24 06:28:05 +00:00
Automerger Merge Worker
7aadbe0e75 Merge "Expose ACTION_USER_SWITCHED as system API" am: e69e147657
Change-Id: Idfb18d0ec6ee68a501b027a266350a0f794011ca
2020-01-24 03:31:41 +00:00
TreeHugger Robot
75b5b13c65 Merge "Add reserved permission flag values for the permission controller" 2020-01-24 01:44:30 +00:00
Meng Wang
ffe0cbe5ca Expose ACTION_USER_SWITCHED as system API
Bug: 148180958
Test: make
Change-Id: I8eb6689c0542869ef7050ce68f1c47e072f1dc01
2020-01-23 17:24:47 -08:00
Peter Wang
09014f1048 [Telephony Mainline] Remove hidden API usages in CarrierAppUtils
Bug: 146904426
Test: Build
Change-Id: Ib307e565b85e7d9a142efc7e3348b823dc46643d
2020-01-24 09:22:25 +08:00
Meng Wang
156a854c72 Merge "Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API"
am: 7db161b9ef

Change-Id: I7b33c06e8f581ade2a904b26188e13982aeed5bd
2020-01-23 13:23:02 -08:00
Alex Buynytskyy
37009349f0 Merge "Add system API annotation to expose Incremental classes as system APIs." 2020-01-23 20:11:19 +00:00
Treehugger Robot
7db161b9ef Merge "Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API" 2020-01-23 19:28:28 +00:00
Alex Buynytskyy
6f527bfff5 Merge "Streaming Installation API update." 2020-01-23 19:03:34 +00:00
Sudheer Shanka
04ca345ef2 Merge "Update references of "DONT_DELETE_DATA" to "DELETE_KEEP_DATA"." 2020-01-23 18:46:48 +00:00
shengcow
0696c44824 Add system API annotation to expose Incremental classes as system APIs.
Test: None
Change-Id: Iddf69534cd88670af34267287ae8ee63ed24d7c7
Bug: 148217803
2020-01-23 18:09:08 +00:00
Alex Buynytskyy
e069787195 Streaming Installation API update.
- location and streaming signature,
- obtain data loader params.

Test: atest PackageManagerShellCommandTest SplitTests
Bug: b/136132412 b/133435829

Change-Id: I08a06e827aaf8f0eab40fe1d59f5c9826ce6e78b
2020-01-23 08:53:23 -08:00
Ivailo Karamanolev
1a6fad470a Merge changes from topics "add-lights-manager", "lights-aidl-hal"
* changes:
  Add LightsManager implementation to LightsService
  Add Lights AIDL HAL support to LightsService
  Rename Light to LogicalLight to avoid namespace conflicts when adding AIDL HAL lights support.
2020-01-23 16:05:07 +00:00
TreeHugger Robot
b43c634bb4 Merge "Export timestamp of the creation of install session. The timestamp is an useful signal for downstream to determine post-creation operation." 2020-01-23 15:21:55 +00:00
Adrian Roos
d7d9c3e354 Merge "Introduce WindowContext API" 2020-01-23 13:19:08 +00:00
Benedict Wong
1ebbd0bb6b Merge changes from topic "add-ikev2-vpn-types"
am: adb79e3b39

Change-Id: I205121bbd8ef8adbe5e7a5ea1c57bbcac0efae0e
2020-01-22 22:09:41 -08:00
Sudheer Shanka
31961ce780 Update references of "DONT_DELETE_DATA" to "DELETE_KEEP_DATA".
The flag PackageManager.DONT_DELETE_DATA was renamed to DELETE_KEEP_DATA
long ago in commit 7767eac.

Bug: 28343859
Test: n/a
Change-Id: I9e4079ec394f92a3e293df7b80b627e2b6130827
2020-01-22 20:56:31 -08:00
Automerger Merge Worker
b864dc150e Merge changes from topic "connectivity-diagnostics-system-server" am: 9cd249c11a am: 45e0caf5dc am: 1544e76f76
Change-Id: If70281f2989778896eb34ac65bcfe0215393ef60
2020-01-23 03:41:09 +00:00
Benedict Wong
50b444359e Add VpnManger API surface
This change adds the VpnManager, which will be used by apps to install
profiles for all platform VPN types (currently only IKEv2).

Bug: 143325939
Test: Compiles, FrameworksNetTests passing.
Change-Id: I57f854d0a5b18358f3541c24ca0cd8aed03fd7a1
2020-01-22 19:24:24 -08:00
Cody Kesting
45e0caf5dc Merge changes from topic "connectivity-diagnostics-system-server"
am: 9cd249c11a

Change-Id: I48a9f1f734b5e2dd4f7ed91c052cec5c8c62c076
2020-01-22 19:10:05 -08:00
Andrii Kulian
4a31697319 Introduce WindowContext API
Test: atest WmTests CtsWindowManagerDeviceTestCases
Bug: 128338354
Change-Id: I9c9dfc5e7f4edd4c968e60d2ffcbb19b5c72a853
2020-01-22 18:30:29 -08:00
Evan Severson
e80ecd55da Add reserved permission flag values for the permission controller
The permission controller may need flags that are of no interest to
other apps. The definition of these flags should therefore be in the
permission controller.

Bug: 148095482
Test: Compile
Change-Id: I3c20a510bc26315f7d8d04b0c74f8fa68e8d70e2
2020-01-22 17:22:40 -08:00
Dianne Hackborn
6a79f29ce0 Merge "Initial impl issue #143085640: Per-process network access control" 2020-01-23 00:44:14 +00:00
Sam Lin
cc6db40d86 Merge "Add Vulkan dEQP level feature flag" 2020-01-23 00:18:54 +00:00
Meng Wang
c9795600db Expose MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS as system API
Bug: 148171847
Test: make
Change-Id: I199e54f8577edc5dc2114c357bee325b9237ee59
2020-01-22 15:15:46 -08:00
Ivailo Karamanolev
090d02ca84 Add LightsManager implementation to LightsService
Includes backend code to support LightsManager binder calls and route
them to the HALs.

Bug: 144979010
Bug: 144978691
Bug: 142715294
Fix: 142230898
Test: atest LightsManagerTest
Test: atest LightsServiceTest
Change-Id: I2db7f2caa432cd1e2389ea5ca6544200ada18675
Exempt-From-Owner-Approval: Reviewed in OOO OWNERS's stead.
2020-01-22 23:49:02 +01:00
Alastair Donaldson
8af0b970cb Add Vulkan dEQP level feature flag
This change adds a feature flag that specifies the date associated
with the Vulkan dEQP tests that a device claims to pass.

Bug: 136573508

Change-Id: I0cec29fe5f69f228faaa2298b7f5b65bcf988dba
2020-01-22 22:19:55 +00:00
Suprabh Shukla
0cb5713fd7 Add an unsuspend button option to SuspendDialogInfo
The suspending app can specify if they want to unsuspend the app on
neutral button tap. This needs to be done by the system so as to
maintain continuity of the users activity tasks.
The system then also needs to communicate to the suspending app when
such an unsuspend has taken place so it can keep any of its internal
data consistent with the current state.

Test:  atest FrameworksServicesTests:PackageManagerSettingsTests
atest FrameworksServicesTests:SuspendDialogInfoTest
atest GtsSuspendAppsTestCases:SuspendPackagesTest

Bug: 134962563
Change-Id: I587b2643eb41519b82b8e2b371a466a9fb650d4b
2020-01-22 12:26:32 -08:00
Alex Kershaw
ba014acec8 Add TestApi to get UserHandle from URI.
I've added this to ContentProvider since it's where all of the existing
hidden logic where userinfo = userid lives.

Bug: 136249261
Test: atest CtsProviderTestCases:android.provider.cts.DocumentsContractTest
Change-Id: I3a815f2c8dd738140aec6937ce0d3b763bf49fba
2020-01-22 18:07:18 +00:00
TreeHugger Robot
177318a092 Merge "Change method to PackageManager#getBackgroundPermissionOptionLabel" 2020-01-22 18:06:29 +00:00
Oli Lan
14f52544cd Merge "Allow ModuleInfo to be retrieved using apex name." 2020-01-22 16:04:36 +00:00
TreeHugger Robot
892e8d8767 Merge "Reset unset app-ops when the admin sets cross-profile packages." 2020-01-22 15:23:02 +00:00
Oli Lan
425dd66c95 Merge "Add ApexContext API including methods to get paths for data directories." 2020-01-22 14:13:41 +00:00
Alex Kershaw
4b0197d8ba Reset unset app-ops when the admin sets cross-profile packages.
When the admin unsets cross-profile packages, reset the
INTERACT_ACROSS_PROFILES app-op back to the default if it is no longer
configurable by the user.

Other minor changes:
- Remove the explicit app-op permission check from
setInteractAcrossProfilesAppOp, since AppOpManager performs that check
when required.
- Fix the broadcasting logic in CrossProfileAppsServiceImpl to correctly
set the component and flags.

Bug: 136249261
Bug: 148010178
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfileCrossProfileTest
Change-Id: Ib8b5f331fb92fc475bc95ad039adf93fac04da37
2020-01-22 13:20:24 +00:00
Alex Kershaw
709517e805 Merge "Add CrossProfileApps#startActivity which takes an Intent." 2020-01-22 07:37:03 +00:00
TreeHugger Robot
eba268395e Merge "Adds a feature flag for Context Hub" 2020-01-22 03:02:58 +00:00
TreeHugger Robot
46b3b3c0c1 Merge "Adding API to check if an icon returned by PackageManager is a fallback icon" 2020-01-22 03:02:07 +00:00
Winson
2997442ac5 Combine package parsing thread pools
A thread pool was being spawned for every partition,
creating potentially 20 different threads. This can be
constrained to MAX_THREADS (4) by passing the ExecutorService
through the scan calls and only destroying it at the end.

It's unclear how much of a benefit this has, but cleaning up
these threads can't be a bad thing.

Test: manual device scans/boots properly
Test: atest ParallelPackageParserTest

Bug: 146081131

Change-Id: If1f0cd4b2809000b5bb19a6f64a329619f4d45f4
2020-01-21 17:20:39 -08:00