Commit Graph

103216 Commits

Author SHA1 Message Date
TreeHugger Robot
e5d60ed552 Merge "Do not mount whitelisted package in storage data and obb dirs" into rvc-dev 2020-03-26 11:01:12 +00:00
Alex Kershaw
59da30ff38 Merge "Add hidden API to clear all cross-profile app-ops" into rvc-dev 2020-03-26 10:52:39 +00:00
Charles Chen
0cb6d3fd3d Merge "Rename createBaseActivityResources to createBaseTokenResources" into rvc-dev 2020-03-26 02:40:47 +00:00
Jing Ji
52f4d8d9f2 Merge "Update doc for ApplicationExitInfo.getDefiningUid" into rvc-dev 2020-03-26 00:43:33 +00:00
Menghan Li
fea8d184c2 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev 2020-03-26 00:21:50 +00:00
Hui Yu
56e3510bda Merge "Add isUidActiveOrForeground() for camera/audio to use." into rvc-dev 2020-03-25 23:47:51 +00:00
Ahaan Ugale
56cfc32424 Merge "Don't filter pinned inline suggestions." into rvc-dev 2020-03-25 22:20:21 +00:00
Kevin Chyn
127e3957d6 Merge changes I704914b2,I51560dfc,I866e84b2 into rvc-dev
* changes:
  Allow BIOMETRIC_CONVENIENCE to register with BiometricService
  Improve AuthService logging
  Only BIOMETRIC_STRONG HATs should be sent to KeyStore
2020-03-25 22:10:14 +00:00
TreeHugger Robot
d60a2bd945 Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev 2020-03-25 21:16:01 +00:00
TreeHugger Robot
368c03efeb Merge "Expand javadoc based on API Council comment." into rvc-dev 2020-03-25 20:54:57 +00:00
Rob Carr
f7de7b6811 Merge "SurfaceControlViewHost: Enable HARDWARE_ACCLERATION by default" into rvc-dev 2020-03-25 19:44:16 +00:00
Alex Kershaw
ec19b8d075 Add hidden API to clear all cross-profile app-ops
Reset the INTERACT_ACROSS_PROFILES app-op for all apps on the device
when creating a new work profile. This ensures that user grants for
previous work profiles (perhaps with a different admin) are not saved
and also not restored with backup-and-restore.

Also, clear the shared preference storing which oem-whitelisted apps the
user has granted. This ensures that the user sees them all again
during work profile provisioning.

Fixes: 151145623
Test: atest com.android.managedprovisioning.task.CreateManagedProfileTaskRoboTest
Change-Id: I5f5c5aea1c36bd17a74c02e1b6fa9b4047f15003
2020-03-25 18:21:19 +00:00
Tiger Huang
d10a12cf27 Merge "Make canBeImeTarget be compatible with legacy behavior" into rvc-dev 2020-03-25 17:36:56 +00:00
Dmitri Plotnikov
f903ef10e5 Merge "Propagate exception thrown by ContentProvider.getType" into rvc-dev 2020-03-25 17:24:31 +00:00
Hui Yu
9b52815e71 Add isUidActiveOrForeground() for camera/audio to use.
Currently CameraService calls isUidActive() before allowing the camera
access.

When start/resume activity, WindowManagerService start/resume the
activity, then post a runnable to DiaplayThread and
ActivityManagerService to update UidRecord's
proc state, because the thread switch, the latency before proc
state update is undetermined.

When CameraService calls ActivityManagerService.isUidActive(), the proc
state may not have been updated and camera access is denied.

isUidActiveOrForeground() check isUidActive() first, if false,
check isUidForeground() which is actually to check with WindowManagerService if
the uid is foreground, which is equivalent to ActivityManagerService's uid
active, just updated earlier.

Bug: 151185692, 151777097, 109950150
Test: manual test.
Change-Id: Iffed63293dbdb466e7955fe765ad2aa23a20b3ed
2020-03-25 10:06:14 -07:00
Eugene Susla
2f54a864d5 Merge "Switch auto-revoke manifest flag to a tri-state" into rvc-dev 2020-03-25 17:03:32 +00:00
Ricky Wai
2cd955e79d Do not mount whitelisted package in storage data and obb dirs
We now pass 2 booleans from AM to zygote about:
- If CE and DE data dirs need to be mounted
- If storage data and obb dirs need to be mounted

And also, separate whitelisted package from same uid packages, as same
uid packages do not need to be mounted in storage data and obb dir case,
it's needed to be mounted for CE and DE data dirs only. Otherwise
whtelisted packages will also be mounted in storage data and obb dirs,
which apps should not have access to it.

Bug: 151218156
Test: atest AdoptableHostTest
Change-Id: If7c20a7ed3b845d8657c937469161cb7ed3da07f
2020-03-25 16:40:46 +00:00
TreeHugger Robot
aa9b7407da Merge "Don't include the data dir in zygote library paths." into rvc-dev 2020-03-25 16:27:52 +00:00
Winson Chung
7da77f4141 Merge "Ensure previous background color is reapplied when showing a SurfaceView" into rvc-dev 2020-03-25 16:20:58 +00:00
shafik
76735f666a Make OP_LEGACY_STORAGE stickiness configurable
OP_LEGACY_STORAGE is sticky for apps targeting <= Q.
This change makes this behaviour configurable via DeviceConfig, by
introducing a new property "legacy_storage_op_sticky" to existing
namespace "storage_native_boot". If the property is set to true, then
we get the default behaviour (app-op sticky for SDK<=Q). If it's set to
true, then the app-op is not sticky for SDK<=Q.

Apps targeting > Q remain unaffected: always not sticky.

Test: manual:
    * adb shell dumpsys appops --package com.android.vending
    * Observe LEGACY_STORAGE mode=allowed
    * adb shell device_config put storage_native_boot legacy_storage_op_sticky false
    * adb reboot
    * adb shell dumpsys appops --package com.android.vending
    * Observe LEGACY_STORAGE mode=ignored
Bug: 151735608
Change-Id: I06d115a0c85c44b5a6d1054f74a00d8fa674dfa7
2020-03-25 15:49:10 +00:00
Torne (Richard Coles)
465c5fb2a3 Don't include the data dir in zygote library paths.
When creating a LoadedApk in a zygote context (app zygote or WebView
zygote), don't add the app's data dir to the list of paths the dynamic
linker is allowed to load libraries from, because the linker's attempt
to canonicalize the path causes SELinux access denials. The process
can't access the data directory at all, so cannot load libraries from
there in any case.

Fixes: 149481620
Test: check for avc denials from webview_zygote
Change-Id: I9aceecaf6067e748cc2251782b0f41661cbb35d8
(cherry picked from commit e1579d4d14)
2020-03-25 14:24:24 +00:00
TreeHugger Robot
fc099117fc Merge "BluetoothHearingAid System APIs now throw an exception if a null BluetoothDevice is passed in" into rvc-dev 2020-03-25 13:35:10 +00:00
Chalard Jean
09b1ee6077 Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" into rvc-dev 2020-03-25 13:15:46 +00:00
Martijn Coenen
1152370510 Merge "Add (hidden) fixupAppDir() API." into rvc-dev 2020-03-25 12:56:47 +00:00
TreeHugger Robot
b04ab6ceb1 Merge "Fix false positive of activity leak in NexusLauncherTests" into rvc-dev 2020-03-25 11:36:11 +00:00
Chalard Jean
09c48e4a2d Allow MANAGE_TEST_NETWORKS to register limited agents
This puts in force some restrictions against test networks,
and in exchange relaxes the restrictions around registering
a network agent that provides a test network.
Test networks can only ever have transport TEST, and have
only a few capabilities available to them.

This is useful in particular to test CTS. See aosp/1253423
for first, basic usage of this capability.

Test: IpSecManagerTunnelTest
Test: new CTS aosp/1253423
Bug: 139268426

Change-Id: Ibd162792a7ab02fcbb06130f21a825a386678c05
(cherry picked from commit 2c129e97cc)
2020-03-25 10:43:26 +00:00
Galia Peycheva
389580c7da Merge "Create ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-25 10:23:47 +00:00
Shu Chen
27daeb0307 Merge "Calculates the slop values per upper/lower line height." into rvc-dev 2020-03-25 09:54:48 +00:00
Bernardo Rufino
7afc8b101b Merge "Gate toast block and remove warning" into rvc-dev 2020-03-25 09:32:40 +00:00
Aaron Huang
9c9366b2df Merge "API review: make exception class and Builder final" into rvc-dev 2020-03-25 09:29:33 +00:00
Charles Chen
b3230a3594 Fix false positive of activity leak in NexusLauncherTests
by postponing StrictMode.decrementExpectedActivityCount
and clear Activity reference of ActivityClientRecord

fixes: 150715257
Test: atest NexusLauncherTests
Change-Id: I0f20194fe59b45eb9954efef62a9afbcd2048ad1
2020-03-25 17:02:28 +08:00
TreeHugger Robot
9bbdb759d8 Merge "PackageManager: Restrict some camera intents to MATCH_SYSTEM_ONLY" into rvc-dev 2020-03-25 08:34:12 +00:00
Shu Chen
afbcf851d3 Calculates the slop values per upper/lower line height.
Also applies the max/min damping range for slop.
The max/min damping range includes lineHeight + slop.
Note: slop must >= zero.

Bug: 150531840
Test: manual & automated tests
  atest FrameworksCoreTests:EditorCursorDragTest
  atest FrameworksCoreTests:TextViewActivityTest

Change-Id: I26cdf69fd2cf7d4514dd2a902ed34c480c9e8781
2020-03-25 15:56:06 +08:00
TreeHugger Robot
555ae029b2 Merge "Fix the validation for showing inline suggestion in webview" into rvc-dev 2020-03-25 06:46:17 +00:00
Winson Chung
d4a9abd2de Ensure previous background color is reapplied when showing a SurfaceView
- This prevents a flash of black if we show the surfaceview again
  after it is hidden

Bug: 152134983
Test: Ensure no flash if previous background color was set and it is
      made visible again
Change-Id: I04d0222521c902da6d29e99ccdbd0aa8ad49917e
2020-03-25 06:42:05 +00:00
Aaron Huang
fbb485a4b3 API review: make exception class and Builder final
- InvalidPacketException exception class should be final
- NetworkCapabilities.Builder should be final

Bug: 152203926
Test: atest FrameworksNetTests
Change-Id: If9b799151aff6d41c9bcd8bb86c65a58e46bad73
2020-03-25 13:36:38 +08:00
Tiger Huang
227c665910 Make canBeImeTarget be compatible with legacy behavior
And let IME always extend into the status bar area so that the position
of IME can never affected by status bar. This can prevent flicker during
IME animation.

This CL also makes PerDisplay can restart the animation while the insets
source control is changed during animation.

Fix: 151759336
Test: atest WindowStateTests
Change-Id: Ic2a308e6b7ec39b4b8645751e31addd26ddf3735
2020-03-25 12:59:29 +08:00
Feng Cao
a873cd12c8 Fix the validation for showing inline suggestion in webview
Test: m -j & manual varification
Test: CtsInputMethodTestCases
Test: CtsAutoFillServiceTestCases
Bug: 151846600

Change-Id: I350b199455e77f769915e7d457dbcab31c20134d
2020-03-24 21:56:30 -07:00
Ahaan Ugale
8893d30bd5 Don't filter pinned inline suggestions.
Test: manual
Test: atest android.autofillservice.cts.inline
Bug: 152350380
Change-Id: I98b2e18bef4f9b291fe93e8b8d9aa1331630a7d8
2020-03-24 19:27:26 -07:00
TreeHugger Robot
c6f4f74723 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev 2020-03-25 01:36:01 +00:00
Rahul Sabnis
4a55841ae5 BluetoothHearingAid System APIs now throw an exception if a null
BluetoothDevice is passed in

Bug: 149238489
Test: Manual
Change-Id: I594f558bfe1e286bf74dd8dc3db4c8497fd0a025
2020-03-24 17:57:30 -07:00
Nicholas Ambur
bf2c076c0c Merge changes from topic "soundtrigger-hal-error" into rvc-dev
* changes:
  disable SoundTriggerService in safe mode
  Crash service on SoundTriger HAL fatal error
2020-03-25 00:31:20 +00:00
Philip P. Moltmann
7556065b55 Merge "Pipe through attributeId to notification app-op" into rvc-dev 2020-03-24 23:53:51 +00:00
menghanli
390f8f9be9 Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)
- Target to fix migration issue to support a user revoked the accessibility shortcut before upgrading to R, but wants to to apply new hardware shortcut design in R.
- The switchbar of accessibility_shortcut_enabled was removed in (1/n), so we should also remove related checker in controller.

Bug: 142529032
Test: atest AccessibilityShortcutControllerTest
Change-Id: I48f8d88c4192e894b9e210221e5dc7e701344623
2020-03-25 07:46:41 +08:00
Jing Ji
37e0b0c2ce Update doc for ApplicationExitInfo.getDefiningUid
Bug: 152328176
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: Ic5d6b55a58b2eddb7b62c186adcbae748d9fde0a
2020-03-24 16:15:08 -07:00
Dmitri Plotnikov
be61c4468c Propagate exception thrown by ContentProvider.getType
Test: atest FrameworksCoreTests:android.content.ContentResolverTest
Fixes: 149184281
Change-Id: If3c33e58b1d0f3b88148eb3d2085c9d23cf12fc2
2020-03-24 15:49:15 -07:00
TreeHugger Robot
d3a0b89571 Merge "Defer updating InsetsSource.mFrame while animating" into rvc-dev 2020-03-24 22:16:09 +00:00
TreeHugger Robot
c01b818bae Merge "Update documentation" into rvc-dev 2020-03-24 22:06:18 +00:00
Alex Buynytskyy
6b7efbc4b9 V4 uses V2 digest if V3 is not available.
Test: atest PackageManagerShellCommandIncrementalTest
Bug: b/151240006
Change-Id: I242b599e434880ce218537574e879e9436e5d3da
2020-03-24 14:34:52 -07:00
TreeHugger Robot
da8101d270 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev 2020-03-24 20:56:25 +00:00