Commit Graph

481522 Commits

Author SHA1 Message Date
TreeHugger Robot
2c2e9f1f4a [automerger skipped] Merge "Add missing isShellUser check" into qt-qpr1-dev am: 998144cf5e -s ours
am skip reason: Change-Id I23bb06e00f1623e4f27c02d7eb2c0d273b40771b with SHA-1 80a9cce44b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12171287

Change-Id: I658c8e6ee3ed8027bef54e7499b4cf84426273c3
2020-08-03 21:49:18 +00:00
TreeHugger Robot
998144cf5e Merge "Add missing isShellUser check" into qt-qpr1-dev 2020-08-03 21:22:31 +00:00
TreeHugger Robot
3786221350 [automerger skipped] Merge "Add missing isShellUser check" into qt-dev am: 8416431f37 am: ee7692c239 -s ours
am skip reason: Change-Id I23bb06e00f1623e4f27c02d7eb2c0d273b40771b with SHA-1 bfdb7121ef is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12171286

Change-Id: I0689df03f62b8ce269a436388ca1b0072800bdca
2020-08-03 21:12:11 +00:00
TreeHugger Robot
ee7692c239 Merge "Add missing isShellUser check" into qt-dev am: 8416431f37
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12171286

Change-Id: I45f0fa7f6d99d1bf7572aa53f084115a1cb920e5
2020-08-03 20:59:18 +00:00
TreeHugger Robot
8416431f37 Merge "Add missing isShellUser check" into qt-dev 2020-08-03 20:24:27 +00:00
TreeHugger Robot
f46c693865 [automerger skipped] Merge "DO NOT MERGE: Remove unused intent in NiNotification" into qt-qpr1-dev am: 74cc0e4f74 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180370

Change-Id: I530856e73af57f7ff5e1c10ddd2e7eb6c22c9089
2020-07-30 21:45:47 +00:00
TreeHugger Robot
bb590a3114 [automerger skipped] Merge "DO NOT MERGE: Remove unused intent in NiNotification" into qt-dev am: d1e5a489f7 am: 937fc47c7f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180369

Change-Id: I3a13ceca65fbc521b96cedb5a48296d9bb03e245
2020-07-30 21:44:53 +00:00
Yu-Han Yang
019b545156 [automerger skipped] DO NOT MERGE: Remove unused intent in NiNotification am: 2b313d61ae am: e75846a203 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180369

Change-Id: Ia313a3ee45c2bc20c40f25f0199202744cbd5629
2020-07-30 21:43:44 +00:00
TreeHugger Robot
74cc0e4f74 Merge "DO NOT MERGE: Remove unused intent in NiNotification" into qt-qpr1-dev 2020-07-30 21:35:54 +00:00
TreeHugger Robot
937fc47c7f Merge "DO NOT MERGE: Remove unused intent in NiNotification" into qt-dev am: d1e5a489f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180369

Change-Id: I495aa342376cef6c643f6a04cebc2008739143cb
2020-07-30 21:25:33 +00:00
Yu-Han Yang
e75846a203 DO NOT MERGE: Remove unused intent in NiNotification am: 2b313d61ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12180369

Change-Id: I7f2f10c7078aeaa51e9a8a20a1ed2ba15c6e21d1
2020-07-30 21:24:56 +00:00
TreeHugger Robot
d1e5a489f7 Merge "DO NOT MERGE: Remove unused intent in NiNotification" into qt-dev 2020-07-30 21:05:59 +00:00
TreeHugger Robot
455470d3b2 Merge "Add missing isShellUser check" into rvc-dev 2020-07-30 20:11:47 +00:00
TreeHugger Robot
5ce7da37ac [automerger skipped] Merge "Do not set referrerUri on SessionInfo for non-owners" into qt-dev am: b8a2504758 -s ours am: f3640afe28 -s ours
am skip reason: Change-Id I84679ea0636aa2097e25e23813c48134c9cc1d75 with SHA-1 b059bd3947 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/10920692

Change-Id: Ia32604223ea572bca4648e26fff6950a7d37adec
2020-07-29 23:08:07 +00:00
TreeHugger Robot
f3640afe28 [automerger skipped] Merge "Do not set referrerUri on SessionInfo for non-owners" into qt-dev am: b8a2504758 -s ours
am skip reason: Change-Id I84679ea0636aa2097e25e23813c48134c9cc1d75 with SHA-1 b059bd3947 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/10920692

Change-Id: Ib71d58d8154fda8d580af2a2b81bc44f36777358
2020-07-29 22:49:37 +00:00
TreeHugger Robot
b8a2504758 Merge "Do not set referrerUri on SessionInfo for non-owners" into qt-dev 2020-07-29 22:36:15 +00:00
Sterling Huber
f894ada560 [automerger skipped] Merge "Do not set referrerUri on SessionInfo for non-owners" into qt-qpr1-dev am: 190cf66184 -s ours
am skip reason: Change-Id I84679ea0636aa2097e25e23813c48134c9cc1d75 with SHA-1 6bc126b040 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11003608

Change-Id: I24ea514f58bf97e7eb7bd34f22893054e1aeb09d
2020-07-29 22:06:09 +00:00
TreeHugger Robot
931d7d2703 Merge "Decouple FUSE mount from main thread for demo user" into rvc-dev 2020-07-29 21:57:54 +00:00
Sterling Huber
190cf66184 Merge "Do not set referrerUri on SessionInfo for non-owners" into qt-qpr1-dev 2020-07-29 21:48:47 +00:00
Adam He
3532bdaa36 Merge "Updated docs with clarifications on specific limitations with the new Inline APIs." into rvc-dev 2020-07-29 21:45:59 +00:00
Zim
0af8530dd3 Decouple FUSE mount from main thread for demo user
Previously, when binding to the FUSE daemon from the system_server, we
depended on the main thread to deliver the service connected
message. The main thread can unfortunately be very delayed from other
services running long tasks. In some cases, we might even have
deadlocks of the following nature:

T1: vold -> storage_manager_service # mount waiting for main thread
task while holding vold lock
T2 (main thread): other_service -> vold # other task blocked on vold
lock while on the main thread.

Now we move the bind callback to a dedicated handler thread. This
allows the vold mount to complete independent of other tasks running
on the system_server main thread.

We also revert the temporary fix to unblock the retail demo use case
that uncovered this deadlock:
I8ff153f2649e3a1d05f2e3e6e382bbba8c79630c

All of this only affects the demo user and is a no-op for other users

Test: Manual
Bug: 161702661
Bug: 162209395
Change-Id: I9b6ccff5705bb78cb1ff7a31e3dd2f26d9b400c6
2020-07-29 18:09:55 +01:00
Lorenzo Colitti
a40ff70cad Set the NetworkInfo subtype to 0.
For non-telephony networks, this was always set to 0 before R.
In R, it is currently set to the same value as the network type.
This is incorrect because the two have different namespaces.
or example, currently, any network of type WIFI (==1) will have
a subtype of NETWORK_TYPE_GPRS (==1). Similarly, all ETHERNET
networks will have subtype NETWORK_TYPE_1XRTT, all VPN networks
will have a subtype of NETWORK_TYPE_TD_SCDMA, etd.

Bug: 161653721
Test: builds, boots
Change-Id: I07e111c1762e0021c931cefc27f193f78578748b
2020-07-28 09:20:19 +00:00
TreeHugger Robot
83578eaa95 Merge "Update mandatory concurrent stream docs to specify support for lower resolutions." into rvc-dev 2020-07-28 01:47:32 +00:00
Jayant Chowdhary
d537ce04fb Update mandatory concurrent stream docs to specify support for lower resolutions.
Bug: 162110784

Test: make doc-comment-check-docs

Change-Id: I8a2677df320f8f496b185fd80234f04dd9eed97f
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-07-27 17:18:12 -07:00
Adam He
edc354d399 Updated docs with clarifications on specific limitations with the new
Inline APIs.

* limitations with multiple locales.
* limit on max number of suggestions.
* guidance on managing the order of inline suggestions when inflating.

Fixes: 161486684
Test: atest android.autofillservice.cts.inline
Change-Id: Ia560d48f95730d79bc340ff9eb0cf4a5909bf0d3
2020-07-27 16:18:15 -07:00
Zimuzo Ezeozue
0df699ae72 Merge "Reduce demo user FUSE volume mount timeout" into rvc-dev 2020-07-25 15:31:00 +00:00
TreeHugger Robot
863c82fa76 Merge "Propagate AudioAttributes flags to VibrationAttributes" into rvc-dev 2020-07-24 23:55:38 +00:00
TreeHugger Robot
855eb749ed Merge "Allow network stack UID caller to retrieve cell identity" into rvc-dev 2020-07-24 21:42:45 +00:00
TreeHugger Robot
af2f54f4e3 Merge "Ignore GONE views in shade when processing sections" into rvc-dev 2020-07-24 21:41:57 +00:00
Patrick Baumann
69b18e57fc Merge "Fix unintended preferred activity reset" into rvc-dev 2020-07-24 20:50:27 +00:00
Jack Yu
56cfdd1e87 Allow network stack UID caller to retrieve cell identity
For backwards compatibility, we allow phone, system UID to
access cell identity through getServiceState. Cell broadcast
service, which is used to be part of telephony, now is running
under network stack UID. We should consider network stack UID as
trustable components like system/telephony.

Fix: 157618105
Test: Manual
Change-Id: I9b2dfc778752e130f5c7e44c4b2e45b63ac6f918
2020-07-24 19:54:25 +00:00
Steve Elliott
dfd9f17703 Ignore GONE views in shade when processing sections
Fixes: 161606040
Test: atest
Change-Id: I8ab108aea23ea6a139f758abdaf222f5f3641104
2020-07-24 18:56:31 +00:00
Patrick Baumann
312755820a Fix unintended preferred activity reset
When the preferred handler of an action is saved with "always", the set
of components displayed as options to the user are saved with it. On
subsequent queries, if that set of components change, the preference is
cleared to allow the user to consider the new set. With the introduction
of app visibility filtering in R (and to a lesser extent, Instant Apps
in O), the set of apps that an app can see may be less than the set that
the system can. As a result, if the caller calls resolveIntent and
cannot see all of the apps the system can, it may reset the user
preference unexpectedly.

This change ensures that before we clear the user preference that we're
comparing against the full set of apps. As such, if we encounter a call
to the method from an app that cannot see all apps, we avoid any
mutations and instead just return the set of apps that the user can see
or the preferred app if it's part of the set they can see. If the system
calls or if the call is part of an activity start, we'll allow reset of
the preference.

Test: Manual - Install 3 cameras, verify preference only reset on start
Fixes: 157548344
Change-Id: Icb50a66500edba26c4c6c3e80a6a9c544d4d63d6
2020-07-24 11:42:37 -07:00
Christopher Tate
fc76b97d1b Skip bg PSS collection for apps using a camera
Bug: 144138979
Test: grant camera appOp and observe logging
Test: use camera app and observe logging
Change-Id: I6422b432f0d6fcf411073c0528a4ee485d46f005
(cherry picked from commit 5a7e662751)
2020-07-24 17:11:01 +00:00
Zim
1d6554f0e1 Reduce demo user FUSE volume mount timeout
A long timeout seems to break demo users when calling
DevicePolicyManagerService#enableSystemApp.

We soft-revert Ia8f6f121448f6b5e484fd3e8cca845fdd89afc23 just for demo
users while investigating the root cause.

Test: Manual
Bug: 161702661
Change-Id: I8ff153f2649e3a1d05f2e3e6e382bbba8c79630c
2020-07-24 12:08:33 +01:00
Xin Li
e303dd658d Merge "Merge stage-aosp-rvc-ts-dev into rvc-dev" into rvc-dev 2020-07-24 08:11:42 +00:00
TreeHugger Robot
aca9854a66 Merge "Fix missing IME switcher icon (w/ a hardware keyboard)" into rvc-dev 2020-07-23 21:59:18 +00:00
Jing Ji
fcaa94e2dc Merge "Java docs update: Advise not to include PII in setProcessStateSummary" into rvc-dev 2020-07-23 21:53:31 +00:00
Xin Li
88d715438a Merge stage-aosp-rvc-ts-dev into rvc-dev
Bug: 148878042
Merged-In: I5f50166322b662b457e1b79b2ce62c622ddd1013
Change-Id: Ie1e7f69f6cf6f47bce173ef22eaaf0ed17dda4af
2020-07-23 14:39:39 -07:00
Yabin Huang
ebc11f1b20 Merge "Revert "Update FocusFinder"" into stage-aosp-rvc-ts-dev 2020-07-23 20:55:36 +00:00
Lais Andrade
c2777148df Propagate AudioAttributes flags to VibrationAttributes
Set supported flags from AudioAttributes into VibrationAttributes on the
builder constructor.

Fix: b/161761418
Test: manual
Change-Id: I4a8e1db278843b2f9f19aba43b0b8f264cb696bd
2020-07-23 18:05:09 +00:00
Yabin Huang
6c01bf5f87 Revert "Update FocusFinder"
Revert submission 11830696-b/158492287-stage-aosp-rvc-ts-dev

Reason for revert: It's too late to merge this CL to rvc-dev. Let's revert it and merge it to rvc-qpr-dev.
Reverted Changes:
Ib5c1854d1:Update FocusFinder

Change-Id: I5f50166322b662b457e1b79b2ce62c622ddd1013
2020-07-23 17:52:12 +00:00
Yohei Yukawa
5749b51f8c Fix missing IME switcher icon (w/ a hardware keyboard)
This is a follow up CL to our previous CL [1], which aimed to adjust
the timing to change navbar icons that depend on the IME window
visibility.

One thing we overlooked is that only InputMethodService#IME_VISIBLE
needed to be cleared to keep the back button icon to behave as if the
IME window was invisible.  For the IME switcher icon to work as
intended, the current protocol requires InputMethodService.IME_ACTIVE
to remain to be set even when an IME window is invisible as long as
there is an active session between the app and the IME.

 [1]: I4dc9d6513d0559156f7da39244f3fc5ebc952ed4
      c22eec9d35

Fix: 160283619
Test: Manually done as follows:
  1. Build aosp_coral-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  5. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  6. Open any app that has an EditText
  7. Focus in to the EditText. Make sure the IME shows up and the IME
     switcher icon is visible on the navbar.
  8. Attach a hardware keyboard. Make sure that the IME becomes hidden
     while the IME switcher icon remains to be visible on the navbar.
  9. Detach the hardware keyboard.  Make sure that the IME switcher
     icon remains to be visible on the navbar.
Change-Id: I4a9ddf514a32a221c2372be0ca166fbdac555932
Merged-In: I4a9ddf514a32a221c2372be0ca166fbdac555932
2020-07-23 17:01:31 +00:00
Patrick Baumann
32ff9bfad4 Merge "Grant visibility even when not granting URI perm" into rvc-dev 2020-07-23 05:20:12 +00:00
Patrick Baumann
9406f1dea8 Grant visibility even when not granting URI perm
This change modifies the flow of uri permission grants to ensure that
even when we're not granting URI permissions, we still take the
opportunity to grant app visibility.

This change also re-grants visibility based on any persisted URI grants
at boot time.

Bug: 161912313
Bug: 161721834
Change-Id: I077b263fc3dc01f3505c39fc0e36d3419bab3c5f
2020-07-22 14:13:04 -07:00
Calin Juravle
40b9f0967e Merge "EventSequenceValidator: Only record the debug log in debugging level." into rvc-dev 2020-07-22 19:09:02 +00:00
Jing Ji
3bda3bf8c6 Java docs update: Advise not to include PII in setProcessStateSummary
Bug: 161812603
Test: m -j offline-sdk-docs & manual verify the javadoc
Change-Id: I741bbf7b83badcd7f1610f31bbd41a49b8b975fb
2020-07-22 11:03:30 -07:00
TreeHugger Robot
dd4a89ba14 Merge "Fix NavigationBarColorTest" into rvc-dev 2020-07-22 09:13:13 +00:00
Taran Singh
588fa46cf4 Fix NavigationBarColorTest
Manually partially revert I4910c2a06cc67b0470477b245fc1de54b75f10f9 so
that we don't use a window that's animating away as control target.

Fix: 161659326
Bug: 153145997
Test: atest NavigationBarColorTest#testSetNavigationBarColor

Change-Id: I68db516c91da69e0f4dcbdfab6d6a757c4cdc75b
2020-07-21 17:49:17 -07:00
Kevin Hufnagle
5c4491e04b Merge "docs: Use more inclusive pronouns" into rvc-dev 2020-07-22 00:07:00 +00:00