Commit Graph

424299 Commits

Author SHA1 Message Date
Lucas Dupin
62622226f0 Do not show status bar on first bypass attempt
The keyguard status bar has different paddings. Showing it for 0.5
seconds feels janky.
From now on, if we're bypassing, we'll only show it after face auth fails

Test: reach, press power, look at status bar: gone
Test: reboot, reach, press power, look at status bar: visible
Test: reach, press power, wait for auth filure, look at status bar: visible
Test: reach, pull down, wait for auth filure, look at status bar: visible
Fixes: 140259100
Change-Id: I52b3eee95a3ee67c3ec215d8b582967f900da4c8
Merged-In: I52b3eee95a3ee67c3ec215d8b582967f900da4c8
2019-09-09 16:27:33 +00:00
lumark
280cb21137 Make sure to clear previous display's last focus window when reparenting task
This CL is to fix IME can't show up on reparented task in auto device with per-display
focus enabled.

When reparenting task from display A to display B, if the current display focus from
display of the task changed to another display (i.e. received a pointer outside touch),

It made in DisplayContent#reParentWindowToken logic won't clear prevDc#mLastFocus
(the reparent task's window in previous display), since mCurrentFocus
(the target display's window) is not the same as prevDc#mLastFocus during reparent,
caused the client side will end up receive window focus lost change (this issue won't
happen w/o per-display focus, since prevDc#mLastFocus will always null due to only
single focus window), so IME can't show up when tapping the EditText of the reparented
task.

The fix is to consolide clear prevDc#mLastFocus check, if last focused window of
previous display is contained in a reparented window token, which means
the reparent task will end up to gain window focus on the target display & won't need to
receive focus lost event from previous display & the state should be cleared.

Bug: 136503036
Test: atest MultiDisplaySystemDecorationTests#testImeWindowCanShownWhenActivityMovedToDisplay
Change-Id: Ifd5b7bbf381440c302194c9efff595bf51b5b42b
2019-09-09 23:56:29 +08:00
James O'Leary
8a91775d3f Merge "Add completion handler for ScreenshotHelper" into qt-qpr1-dev 2019-09-07 03:42:36 +00:00
Mehdi Alizadeh
ae4ab469bf Merge "Check for component availability before all AppPrediction logic" into qt-qpr1-dev 2019-09-07 00:53:30 +00:00
Pengquan Meng
c12bf8a9e0 Merge "Support maximum wait time for Cell broadcast" into qt-qpr1-dev 2019-09-06 23:07:37 +00:00
Jeff Sharkey
382d5c0c19 RESTRICT AUTOMERGE
Enable stricter SQLiteQueryBuilder options.

Malicious callers can leak side-channel information by using
subqueries in any untrusted inputs where SQLite allows "expr" values.

This change starts using setStrictColumns() and setStrictGrammar()
on SQLiteQueryBuilder to block this class of attacks.  This means we
now need to define the projection mapping of valid columns, which
consists of both the columns defined in the public API and columns
read internally by DownloadInfo.Reader.

We're okay growing sAppReadableColumnsSet like this, since we're
relying on our trusted WHERE clause to filter away any rows that
don't belong to the calling UID.

Remove the legacy Lexer code, since we're now internally relying on
the robust and well-tested SQLiteTokenizer logic.

Bug: 135270103
Bug: 135269143
Test: atest DownloadProviderTests
Test: atest CtsAppTestCases:android.app.cts.DownloadManagerTest
Change-Id: Iec1e8ce18dc4a9564318e0473d9d3863c8c2988a
2019-09-06 15:31:01 -07:00
Felipe Leme
4cb0ab9db9 Don't send duplicated user-start broadcast when booting on headless-system mode.
Bug: 132111956
Test: manual verification

Merged-In: Ib9bb38d357e0d87a9b7da3456c97029a8b0342a3
Change-Id: Ib622bc0cd0fc1ac76a0467dbc242f9edbd54eaae
2019-09-06 15:01:22 -07:00
Felipe Leme
7eb654b828 Don't start first human user twice on headless-system mode.
It speeds up boot on automotive in about 25ms.

Bug: 128904478
Bug: 132111956

Test: manual verification
Test: atest CtsVoiceInteractionTestCases CtsAssistTestCases # on walleye and automotive

Merged-In: I37cdca09b5280193a07ed9951f2e386ed3cd2299
Change-Id: I37cdca09b5280193a07ed9951f2e386ed3cd2299
(cherry picked from commit 206c09b55331440ded234349dbbe9716b91a095a)
2019-09-06 15:01:13 -07:00
TreeHugger Robot
46e4dd099c Merge "Reduce the delay of showing unlock dialog to 0" into qt-qpr1-dev 2019-09-06 19:58:47 +00:00
Mehdi Alizadeh
5cc5f713f9 Check for component availability before all AppPrediction logic
Bug: 138595943
Test: Manual test by removing the AiAi package from device
Change-Id: I9d1e5be52e8ca5fadce2d3107279fa77d488f697
2019-09-06 12:23:44 -07:00
TreeHugger Robot
299cd3ccae Merge "[DO NOT MERGE] Copy appop modes on write to avoid locked IO" into qt-qpr1-dev 2019-09-06 19:21:56 +00:00
TreeHugger Robot
9c81f1754c Merge "Fix zen alarms only mode check" into qt-qpr1-dev 2019-09-06 19:21:32 +00:00
Erin Yan
bc4b741979 Reduce the delay of showing unlock dialog to 0
Bug: 136049501
Test: Manually on IHU
Change-Id: I0016290a5181b9acba73503f938772b90f583f66
Merged-in: I0016290a5181b9acba73503f938772b90f583f66
(cherry picked from commit 13ae817be2)
2019-09-06 18:12:57 +00:00
James O'Leary
fa5bb7af25 Add completion handler for ScreenshotHelper
The Next-Generation Assistant can call SysUI to request a screenshot.
Adding an indicator that a screenshot has completed successfully enables
the Next-Generation Assistant to show the assistant UI again once the
screenshot has completed.

Bug: 137201206
Bug: 131082115
Test: Wired up SysUIG's NGA integration's touch outside handler to call
take screenshot, confirmed it behaved as expected when a touch outside
occurred.
Change-Id: Ie83af6c9dd8e93b3e18a820d79c02125a19bd62a
2019-09-06 18:11:38 +00:00
TreeHugger Robot
7ca7382a6e Merge "Make unlock dialog exit if the person taps outside of the dialog" into qt-qpr1-dev 2019-09-06 18:11:10 +00:00
Beverly
dcc5cfc561 Fix zen alarms only mode check
Also fixes setting the consolidated zen policy logging.

Fixes: 140329813
Test: android.app.cts.NotificationManagerTest#testTotalSilenceOnlyMuteStreams
Test: android.app.cts.NotificationManagerTest#testAlarmsOnlyMuteStreams
Change-Id: I43d503ac23d7b0b141930d77cb76f1f589b22525
2019-09-06 17:25:47 +00:00
Lucas Dupin
8de3b785c4 Merge "Fix default wallpaper transition issue" into qt-qpr1-dev 2019-09-06 17:16:23 +00:00
Blake Kragten
cf1268a5f5 Merge "Connection change and high tx power Q port Changed missed Q merge back in April" into qt-qpr1-dev 2019-09-06 17:03:30 +00:00
TreeHugger Robot
eff156093c Merge "Fix bootloop issue with UsageStatsService." into qt-qpr1-dev 2019-09-06 16:00:48 +00:00
Jonathan Scott
15912cdea2 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev am: b01fe73ed3 am: 68f73efcb9
am: 00386d79f5

Change-Id: I0f4eda48be983b7bcf4da6021ffb45cb03d256d3
2019-09-06 05:09:07 -07:00
Jonathan Scott
00386d79f5 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev am: b01fe73ed3
am: 68f73efcb9

Change-Id: Ied2f83b88c7e2f596fb03597fce7bebbd4fa615c
2019-09-06 04:57:05 -07:00
Jonathan Scott
68f73efcb9 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev
am: b01fe73ed3

Change-Id: Idd7424cf00a3c5d8d41e3e051d78d0ac4d6c4a19
2019-09-06 04:44:06 -07:00
Jonathan Scott
b01fe73ed3 Merge "Add MANAGED_PROVISIONING_DPC_DOWNLOADED." into qt-dev 2019-09-06 11:20:56 +00:00
Ahan Wu
c6e84a1340 Fix default wallpaper transition issue
The dimension of default wallpaper is only 1243x1024, this causes the
transition looks not smooth.

Bug: 139297053
Test: Manually kill current wallpaper serveral times.
Test: After fallback wallpaper appears, look the transition.
Change-Id: Ie3eb1a61753cf30210414139c9af492b60c7334b
2019-09-06 19:19:05 +08:00
Erin Yan
5eb60a2c0d Make unlock dialog exit if the person taps outside of the dialog
Bug: 136049501
Test: Manually on IHU
Change-Id: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
Merged-in: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
(cherry picked from commit fe3efb667f)
2019-09-06 01:52:12 +00:00
Erin Yan
667927a3c1 Remove PASSWORD_QUALITY_MANAGED from CarTrustAgentUnlockDialogHelper
am: b1af47bec8

Change-Id: I09fe1952ec19ac73f63b8aa0fee7be332a4350cb
2019-09-05 18:31:14 -07:00
Heemin Seog
a3b81cfb12 Merge "Handle USB eject and unmount via Car Settings" into qt-qpr1-dev
am: 59db7b8d01

Change-Id: Ie87694ed60c8ba863579629c9408fb5f23926d7c
2019-09-05 17:28:25 -07:00
Erin Yan
898d4e9029 Merge "Create dialog to show detecting Batmobile device & unlocking" into qt-qpr1-dev
am: cf885ef399

Change-Id: I3e6e03dedbdc6801483285d631586431937e92ca
2019-09-05 17:23:24 -07:00
Erin Yan
b1af47bec8 Remove PASSWORD_QUALITY_MANAGED from CarTrustAgentUnlockDialogHelper
Bug: 140231719
Test: Manually on IHU
Change-Id: I5e848ca3183f624158dc192159f57aaa9d27a89c
Merged-in: I5e848ca3183f624158dc192159f57aaa9d27a89c
(cherry picked from commit 7bed781be5)
2019-09-06 00:13:12 +00:00
Heemin Seog
59db7b8d01 Merge "Handle USB eject and unmount via Car Settings" into qt-qpr1-dev 2019-09-06 00:07:32 +00:00
TreeHugger Robot
cf885ef399 Merge "Create dialog to show detecting Batmobile device & unlocking" into qt-qpr1-dev 2019-09-06 00:07:30 +00:00
Erin Yan
8182bfd415 Create dialog to show detecting Batmobile device & unlocking
Bug: 136049501
Test: Manually on IHU
Change-Id: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
Merged-in: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
(cherry picked from commit 16258e3e98)
2019-09-05 23:24:53 +00:00
Pengquan Meng
1e1099a123 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: I5b5c79257706e8606ca6952c5396e4abf2aaf28d
2019-09-05 14:06:14 -07:00
Torne (Richard Coles)
e8e2127ada WebView: pay attention to PACKAGE_CHANGED.
PackageManager sends PACKAGE_CHANGED for a package if one of its static
shared library dependencies has been reinstalled as of cbafe0b025.
When this occurs, we need to update our cached copy of the PackageInfo,
and restart the webview_zygote and RELRO preparation process, because
the path to the library in the PackageInfo will now be different.

This fixes the issue where if TrichromeLibrary is reinstalled at the
same version, WebView can no longer spawn renderer processes because the
webview_zygote is still being given the old classpath.

Both cases where we early out are removed, as the last update time is
also not changed in this case. This may result in the update logic
triggering in cases where it previously would not, but since we don't
explicitly kill clients in this case, it shouldn't affect use of
WebView.

Bug: 140129991
Test: adb install -r <same version of TrichromeLibrary.apk>
Change-Id: I6119939045a842561811dc018853e3d641275e47
(cherry picked from commit b719f6332b)
2019-09-05 20:56:58 +00:00
Patrick Baumann
e9e087dddd Send package changed for consumers of an updated shared lib
In the case that a static shared library is updated (same version code),
we should notify that the packages depending on the shared library have
changed to reflect the new paths of the shared lib.

Test: manual; update a static shared lib in place and observe broadcasts
Bug: 140129991
Change-Id: Ic8fea872c828833585a680d49c8e423b911a753a
(cherry picked from commit cbafe0b025)
2019-09-05 20:56:50 +00:00
Pinyao Ting
08b8e002ba [automerger skipped] fixes a security vulnerability in slice provider am: 46368e4f5c -s ours am: d16ceb6e8e -s ours am: 122636b4f5 -s ours
am: a86312e067 -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 a6364d92ed is in history

Change-Id: I231f679e70bca99bd05aa5e8a7156695b1aaf157
2019-09-05 13:25:23 -07:00
Philip Cuadra
f359f97e8c Merge "Bind voice interactor as top-app when it is being used" into qt-qpr1-dev
am: 6183d81af6

Change-Id: If90da894125bf92fe802f9621bb0ff177c240ba5
2019-09-05 13:19:10 -07:00
Pinyao Ting
a86312e067 [automerger skipped] fixes a security vulnerability in slice provider am: 46368e4f5c -s ours am: d16ceb6e8e -s ours
am: 122636b4f5 -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 2b415a4c44 is in history

Change-Id: I5036fa074195c2294c8b040136bd0a7263ef60d0
2019-09-05 12:47:55 -07:00
Nicholas Sauer
9be774b902 Merge "Require that the caller has INTERACT_ACROSS_USERS in order to retrieve home tasks of other users." into qt-qpr1-dev
am: b255146be2

Change-Id: I7368f21571a1eaaf2b666de3d52c595f14a8990d
2019-09-05 12:45:33 -07:00
TreeHugger Robot
6183d81af6 Merge "Bind voice interactor as top-app when it is being used" into qt-qpr1-dev 2019-09-05 19:41:09 +00:00
Pinyao Ting
122636b4f5 [automerger skipped] fixes a security vulnerability in slice provider am: 46368e4f5c -s ours
am: d16ceb6e8e -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 a6364d92ed is in history

Change-Id: Ice282a3bab56a6defb124967d84e47b83893cca1
2019-09-05 12:29:24 -07:00
Nicholas Sauer
b255146be2 Merge "Require that the caller has INTERACT_ACROSS_USERS in order to retrieve home tasks of other users." into qt-qpr1-dev 2019-09-05 19:26:09 +00:00
Pinyao Ting
d16ceb6e8e [automerger skipped] fixes a security vulnerability in slice provider
am: 46368e4f5c -s ours
am skip reason: change_id Ib1b4fba54ebd3599fe11021d21dc9b09d34e8965 with SHA1 a6364d92ed is in history

Change-Id: I62e3dde45298fd57b903cd4dfa1210041789c214
2019-09-05 12:05:29 -07:00
Nicholas Sauer
f307365579 Require that the caller has INTERACT_ACROSS_USERS in order to retrieve
home tasks of other users.

This prevents users from observing home tasks of other users on the device.

bug: 140274903
Test: cts-tradefed run cts-dev -m CtsPermissionTestCases -t android.permission.cts.NoActivityRelatedPermissionTest#testGetTask
cts-tradefed run cts-dev -m CtsWindowManagerDeviceTestCases
cts-tradefed run cts-dev -m CtsAppTestCases
Change-Id: Ia5fdb1ba1ab7d9ec27d1afbb3a359b454c7075c0
Merged-In: Ia5fdb1ba1ab7d9ec27d1afbb3a359b454c7075c0
2019-09-05 17:37:33 +00:00
Fabian Kozynski
e6edfd9342 Merge "Add BIND_WAIVE_PRIORITY for TileService" into qt-qpr1-dev
am: 739e027684

Change-Id: I4e8b0a8122f2fe4209f3186b6f5a3393a7823288
2019-09-05 09:59:35 -07:00
Fabian Kozynski
739e027684 Merge "Add BIND_WAIVE_PRIORITY for TileService" into qt-qpr1-dev 2019-09-05 16:50:59 +00:00
Jonathan Scott
a5e4422d14 Add MANAGED_PROVISIONING_DPC_DOWNLOADED.
Test: Just adding a constant
Bug: 132261064
Change-Id: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
Merged-In: I2bce277ff8f2de4614e19d5385fe6712b076f9c9
2019-09-05 17:31:12 +01:00
Heemin Seog
82fe78be59 Merge "Listen for changes to IME and show/hide nav bar" into qt-qpr1-dev
am: e1292f71ae

Change-Id: I90a76cbc564780fe90f709cfc28b9499bff30d68
2019-09-05 08:03:24 -07:00
Heemin Seog
e1292f71ae Merge "Listen for changes to IME and show/hide nav bar" into qt-qpr1-dev 2019-09-05 14:42:47 +00:00
Julia Reynolds
f460e873e9 Merge "DO NOT MERGE Temporarily increase notificationchannel limit" into qt-qpr1-dev
am: 1b1771108b

Change-Id: Ie783e4fc1542c901f37757a2dceb650ec200ee32
2019-09-05 07:01:42 -07:00