Commit Graph

481535 Commits

Author SHA1 Message Date
Calin Juravle
eddf0c94d2 Merge "Notify IORap without including packages for secondary dex opt." into rvc-dev 2020-08-06 19:08:29 +00:00
Steve Elliott
3ff2a5cbd1 Mark implicit PendingIntents as immutable am: 599c3e4b75 am: fa64ffd0a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: Ic0d9e93413dc96be874ff7de5d818db1b20ec24e
2020-08-05 20:37:35 +00:00
Steve Elliott
fa64ffd0a2 Mark implicit PendingIntents as immutable am: 599c3e4b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: I97e44abd90dd662e53443e0d8eb6535fdaaea877
2020-08-05 20:25:51 +00:00
Steve Elliott
ae567e56d8 Mark implicit PendingIntents as immutable am: 7f0fd285c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296406

Change-Id: I29e112de4bcc44c0d2dc5245e66c0b5bff04a216
2020-08-05 20:25:43 +00:00
Steve Elliott
e35ad478dc Merge "Mark implicit PendingIntents as immutable" into rvc-dev 2020-08-05 20:08:37 +00:00
Steve Elliott
599c3e4b75 Mark implicit PendingIntents as immutable
Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3)
2020-08-04 20:22:46 +00:00
Steve Elliott
7f0fd285c6 Mark implicit PendingIntents as immutable
Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3)
2020-08-04 20:21:51 +00:00
Colin Cross
48666a1abb Merge "Use -target 8 for android_uiautomator" into rvc-dev 2020-08-04 16:30:51 +00:00
Colin Cross
51387a027d Use -target 8 for android_uiautomator
android_uiautomator is distributed as part of the SDK and should use
-target 8 for compatibility with old JDKs.

Bug: 150153790
Bug: 162522383
Test: javap -v -cp out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar com.android.uiautomator.core.Configurator | grep "major version"
Change-Id: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
2020-08-03 18:03:40 -07:00
Kevin Hufnagle
24ed56bd0c Merge "docs: Changes "their" to "the" in 2 places" into rvc-dev 2020-08-03 22:26:36 +00:00
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
Steve Elliott
02bdeeffb3 Mark implicit PendingIntents as immutable
Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3)
2020-08-03 21:24:45 +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
Kevin Hufnagle
e39427591a docs: Changes "their" to "the" in 2 places
When referring to a client (piece of software), it's better not to use
a personified pronoun, such as "his" or "their". Changed to "the".

Change-Id: I5d79e70a9135d6f1e8da493fcdd50921b9696e31
Test: none (docs-only change)
Bug: 160937339
2020-07-31 23:28:24 +00:00
yawanng
9b4958afb0 Notify IORap without including packages for secondary dex opt.
The current secondary dex opt doesn't distinct between
opt performed and skipped, which causes unnecessary traces
purge for IORap.

Bug:161633001
Test: manually trigger bg-dexopt via 'adb shell cmd jobscheduler run -f
android 800' and check the log.

(cherry picked from commit ff800a363b)
Merged-In: Iae4fc0b6fc73707ada8895b38c3ae3f772ac2cd0
Change-Id: Iae4fc0b6fc73707ada8895b38c3ae3f772ac2cd0
2020-07-31 06:50:16 +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