Commit Graph

424299 Commits

Author SHA1 Message Date
Automerger Merge Worker
e561e0fdbb [automerger skipped] Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am: 70ffc41cad am: 063d83ca63 am: 402a7b2c33 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie33411c2b6b95dba41997171acf0fced3ba4a740
2019-12-11 19:53:03 +00:00
Automerger Merge Worker
9238b76a83 [automerger skipped] DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am: b52efcb9d5 am: 9b1ddfe488 am: 4f5d0e446e -s ours
am skip reason: subject contains skip directive

Change-Id: I770bd1ba8cc66b4179e88f194d45bb715be1977c
2019-12-11 19:52:49 +00:00
Automerger Merge Worker
402a7b2c33 Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am: 70ffc41cad am: 063d83ca63
Change-Id: I0622df10fdde4fb961c920fc0c9529e4c3b3ecfc
2019-12-11 19:30:18 +00:00
Automerger Merge Worker
4f5d0e446e DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am: b52efcb9d5 am: 9b1ddfe488
Change-Id: Idcdef9d986a8d0e2f6f0209fd550900a6275796d
2019-12-11 19:30:08 +00:00
Automerger Merge Worker
063d83ca63 Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev am: 70ffc41cad
Change-Id: I8439eee725f85cc1e939772663a4217e5dde2e38
2019-12-11 19:10:38 +00:00
Automerger Merge Worker
9b1ddfe488 DO NOT MERGE: Disable SpellChecker in secondary user's direct reply am: b52efcb9d5
Change-Id: I438383977e4b7454e732dba8d2906a8c333f2bad
2019-12-11 19:10:27 +00:00
Taran Singh
70ffc41cad Merge "DO NOT MERGE: Disable SpellChecker in secondary user's direct reply" into oc-dev 2019-12-11 18:52:54 +00:00
Kweku Adams
51802b364a Avoid lock inversion.
The PowerManager lock (which is used in the Battery Saver code) sits
low in the lock hierarchy. NotificationManagerService is higher, so
nothing should call into NotificationManagerService with the
PowerManager lock held. This change calls into NMS on a background
thread so that the call occurs without the PM lock held.

Also fixing the cancel notification bug. We create the notifications
using notifyAsUser(... UserHandle.ALL). The cancel() call wasn't
properly dismissing the notification. Switching to
cancelAsUser(UserHandle.ALL) fixes the issue.

Bug: 145886051
Test: atest BatterySaverStateMachineTest
Test: Manually ensure notification disappears when BS turns on
Change-Id: I3315357e810d92938e4a34929235d233b07deebb
(cherry picked from commit 79a0faf869)
2019-12-11 18:43:11 +00:00
kwaky
c3a8cf4671 DO NOT MERGE Defer Hvac initialization until after BOOT_COMPLETED event.
Test: Manual
Bug: 144185429
Change-Id: Ide705146544b5b8904da54d6a5db42242752494c
2019-12-11 10:15:15 -08:00
TreeHugger Robot
cb0b5e206d Merge "Revert "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings"" into qt-qpr1-dev 2019-12-11 16:57:54 +00:00
Ugo Yu
91182f3507 DO NOT MERGE - Do not show Bluetooth icon when headset is not active
Do not show Bluetooth icon when A2DP, HFP and Hearing
aid profiles are connected but not active.
Other Bluetooth profile will retain the same behavior.

Bug: 144061558
Test: atest com.android.systemui.statusbar
Change-Id: Id0fab356f041e90a7654c8e18185c6aa15e2d4df
2019-12-11 13:06:09 +00:00
Lorenzo Colitti
029d9ea119 Support strict mode private DNS on VPNs that provide Internet.
Currently, strict mode private DNS does not work on VPNs because
NetworkMonitor does not validate VPNs. When a VPN connects, it
immediately transitions to ValidatedState, skipping private DNS
hostname resolution.

This change makes NetworkMonitor perform private DNS hostname
resolution and evaluation even on VPNs.

In order to ensure that the system always immediately switches to
the VPN as soon as it connects, remove the unvalidated penalty
for VPN networks. This ensures that the VPN score is always 101
and the VPN always outscores other networks as soon as it
connects. Previously, it would only outscore other networks
when no-op validation completed.

Backport of 414b8c8b1c.

Bug: 122652057
Test: atest FrameworksNetTests
Test: manually ran a VPN with private DNS in strict mode
Test: atest android.net.cts.ConnectivityManagerTest com.android.cts.net.HostsideVpnTests
Change-Id: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
Merged-In: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
2019-12-11 20:19:40 +09:00
Lorenzo Colitti
60cd85533d Add test coverage for strict mode private DNS.
Support faking out the DNS lookups used by NetworkMonitor to
resolve strict mode DNS, and add more test coverage.

These tests were partly adapted from tests we have in Q but
also contain new coverage. This is because in Q the interface
between ConnectivityService and NetworkMonitor changed
substantially, and it is impractical to backport
NetworkMonitorTest.

Bug: 122652057
Test: atest FrameworksNetTests
Change-Id: I6497b7efa539267576d38d3036eef0af0df4e9cb
Merged-In: Iaa78a7edcf23755c89d7b354edbc28d37d74d891
2019-12-11 20:19:29 +09:00
Austin Wang
b2f5ae43de Remove keyguard_indication_area_overlay
The overlay was introduced for SysUIGoogle to customize two icons on
docking UI besides charging text, and is no longer needed.

Fixes: 145250100
Test: atest SystemUITests:KeyguardBottomAreaTest
Test: atest SystemUIGoogleTests:DockIndicationControllerTest
Change-Id: If836fe97c3e394cc98f1a05270bd0023e5b57bed
Merged-In: If836fe97c3e394cc98f1a05270bd0023e5b57bed
2019-12-11 10:26:43 +00:00
Jimmy Chen
215d43217d p2p: check the length of the network name bytes
Fixes: 144472136
Bug: 144472136
Test: atest FrameworksWifiApiTests
Change-Id: I80b8e0330499e6c655efb1712811891a8e8229cb
(cherry picked from commit a0900344f4)
2019-12-11 06:43:54 +00:00
Nate Myren
5895c90fe2 Merge "Add logging upon failure to edit SystemSettings" into qt-qpr1-dev 2019-12-11 00:37:07 +00:00
Jian Jin
db70de3656 Revert "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings"
This reverts commit ba4b561c3e.

Reason for revert: Move to CarSettings

Change-Id: I91fd1fa7dee2400095a014c189a40706b853c471
2019-12-11 00:35:05 +00:00
xshu
122eaaa254 mac randomization notification fix typo
Makes the "c" in "connecting" lowercase.

Bug: 144172117
Test: compiles
Change-Id: Ib4514d36fc2244f0f04f97f3f67c455089e975b2
Merged-In: Ide9708c87c2a9b3c943744decff639ad1dfde985
2019-12-10 15:27:03 -08:00
Oscar Shu
aabbd3c873 Merge "Strings for no randomized MAC support notification" into qt-qpr1-dev 2019-12-10 22:28:29 +00:00
TreeHugger Robot
f345ab53bc Merge "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings" into qt-qpr1-dev 2019-12-10 22:27:32 +00:00
Automerger Merge Worker
074e96df99 Merge "Revoke granted permission when the permission defining app is removed." into qt-dev am: a2e31e4794 am: c4b58c3a53
Change-Id: I0c552b0a3d38df1c1252147f669b36791713d2aa
2019-12-10 21:35:51 +00:00
TreeHugger Robot
ac0112ca90 Merge "Make AccountManagerService more resilient to database corruption." into qt-qpr1-dev 2019-12-10 21:05:16 +00:00
Automerger Merge Worker
c4b58c3a53 Merge "Revoke granted permission when the permission defining app is removed." into qt-dev am: a2e31e4794
Change-Id: I567fef9ae46e4ad9dd520c534eb6c987ce346fbf
2019-12-10 21:05:11 +00:00
Heemin Seog
7598ae8f6f Merge "DO NOT MERGE Make nav bar button click listeners overrideable" into qt-qpr1-dev 2019-12-10 20:45:40 +00:00
TreeHugger Robot
a2e31e4794 Merge "Revoke granted permission when the permission defining app is removed." into qt-dev 2019-12-10 20:39:08 +00:00
TreeHugger Robot
d439f54b19 Merge "Don't set mLockscreenWallpaper when wallpaper is not supported." into qt-qpr1-dev 2019-12-10 19:00:31 +00:00
xshu
945035cac7 Strings for no randomized MAC support notification
Bug: 144172117
Test: atest FrameworksWifiTests
Test: Manual sanity test
Change-Id: Ic4603bde26c7036819b163000a971886ed3b017c
Merged-In: Ide9708c87c2a9b3c943744decff639ad1dfde985
(cherry picked from 3f656193a2c6d6ae6b6ba81d1450c813ad1cbbb0)
2019-12-10 18:48:19 +00:00
TreeHugger Robot
e18c350eec Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-10 18:38:42 +00:00
TreeHugger Robot
1eb5828022 Merge "track and report packages with undecorated remoteviews" into qt-qpr1-dev 2019-12-10 18:36:43 +00:00
Felipe Leme
5f94c857be Don't set mLockscreenWallpaper when wallpaper is not supported.
Bug: 138939803
Bug: 144862300

Test: a CtsAppTestCases:android.app.cts.WallpaperManagerTest

Merged-In: Ibb5dd6097939a5b50244ee3cec5ee09a1f5417cb
Change-Id: Ibb5dd6097939a5b50244ee3cec5ee09a1f5417cb
(cherry picked from commit e8d7b883b4e30572cd1d6d9655394ef05be93621)
2019-12-10 10:20:16 -08:00
Yu-Han Yang
cee2ecc916 Make emergency notification dismissable
Bug: 145608692
Fixes: 145608692

Test: on device
Change-Id: I7bf7d1786b6eed5fc32fdf438a223ec0020a4888
(cherry picked from commit 1f503e45f7)
2019-12-10 17:27:31 +00:00
Bill Yi
c98b605823 Import translations. DO NOT MERGE
Change-Id: I41f224919842bda5577b61e9254df1958ac8b3dd
Auto-generated-cl: translation import
2019-12-10 07:16:21 -08:00
Alex Huang
c6e3070274 Merge "DO NOT MERGE Allow app switches for accessibility services" into qt-qpr1-dev 2019-12-10 05:33:45 +00:00
Evan Laird
b0d526ac12 DO NOT MERGE: unrevert "Force FGS notifications to show for a minimum time"
See CL with change id (I0680034ed9315aa2c05282524d48faaed066ebd0) for
the meaningful changes/description. This change was reverted in qt-qpr1-dev
in order to fix a bug but never got unreverted due to the qt-dev CL
having the same change-id as the reverted one.

Bug: 119041698
Test: atest NotificationManagerServiceTest
Test: atest ForegroundServiceNotificationListenerTest
Change-Id: I50f16072b0e56ab69aabf8010ffffd172ca7c05a
2019-12-09 17:15:00 -05:00
Jian Jin
ba4b561c3e DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings
Bug: 144846684
Test: SettingsProviderTest
Change-Id: Iebc53c70ea401c6ba244ed43db7a1d73f3a894df
2019-12-09 14:07:26 -08:00
Nate Myren
7d0926567c Add logging upon failure to edit SystemSettings
Add more logs about file state and file permission state upon failing to
read or write a Settings file. In the case of failing to create a parent
directory for the settings file, SettingsState will attempt to create
the folder with Files.createDirectories, which throws more informative
errors.

Bug: 119723324
Test: None
Change-Id: Iec8ed903e109558efc3a98906c68d1579b985232
2019-12-09 12:52:27 -08:00
Chris Wren
bc487b5759 track and report packages with undecorated remoteviews
print query results with:
  adb shell dumpsys notification --remote-view-stats

test the pulled atom with:
  make statsd_testdrive
  ./out/host/linux-x86/bin/statsd_testdrive 10066

Bug: 144855217
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification
Change-Id: I6dcc9871f78298a8b213a051223c7316f8feefc5
Merged-In: I773378fc7cfb47a9f9c7495404ddafa63f39cfaf
2019-12-09 15:48:14 -05:00
Sterling Huber
54e6a3c4fb RESTRICT AUTOMERGE
Make toasts non-clickable

Since enforcement was only on client-side, in Toast class, an app could
use reflection (or other means) to make the Toast clickable. This is a
security vulnerability since it allows tapjacking, that is, intercept touch
events and do stuff like steal PINs and passwords.

This CL brings the enforcement to the system by applying flag
FLAG_NOT_TOUCHABLE.

Test: Construct app that uses reflection to remove flag FLAG_NOT_TOUCHABLE and
      log click events. Then:
      1) Observe click events are logged without this CL.
      2) Observer click events are not logged with this CL.
Bug: 128674520

Change-Id: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0
2019-12-09 18:17:53 +00:00
Sterling Huber
fe4bf7926e RESTRICT AUTOMERGE
Make toasts non-clickable

Since enforcement was only on client-side, in Toast class, an app could
use reflection (or other means) to make the Toast clickable. This is a
security vulnerability since it allows tapjacking, that is, intercept touch
events and do stuff like steal PINs and passwords.

This CL brings the enforcement to the system by applying flag
FLAG_NOT_TOUCHABLE.

Test: Construct app that uses reflection to remove flag FLAG_NOT_TOUCHABLE and
      log click events. Then:
      1) Observe click events are logged without this CL.
      2) Observer click events are not logged with this CL.
Bug: 128674520

Change-Id: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0
Merged In: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0
2019-12-09 18:17:39 +00:00
Heemin Seog
9203e45a01 DO NOT MERGE Make nav bar button click listeners overrideable
Bug: 145547127
Test: build, manual
Change-Id: Ib7a96012f663ff740054588b135a2eec6d5164d0
2019-12-09 16:51:36 +00:00
TreeHugger Robot
2c5bd63efd Merge "[DO NOT MERGE] Resolver/Chooser - Window inset fixes" into qt-qpr1-dev 2019-12-09 13:40:38 +00:00
Matt Pietal
95ede7fb53 [DO NOT MERGE] Resolver/Chooser - Window inset fixes
Resolver supports numerous layouts, with optional ViewGroups. Need to
make sure the window inset is applied to the correct view. If there is
a List present, add a footer so that the list scrolls underneath the
navbar.

Test: atest ResolverActivityTest
Bug: 145670872
Change-Id: I94652c5e0068436878a307701b5785f02060b8d6
2019-12-09 07:43:10 -05:00
Arc Wang
6e810df9b8 [Wi-Fi] Fix transition mode problems
1. In AccessPoint#updateBestRssiInfo, if bestResult is available, cache if it’s transition mode at  new variables.
2. Remove SECURITY_PSK_SAE_TRANSITION & SECURITY_OWE_TRANSITION since we will cache if an Wi-Fi AP is transition mode.
3. Enhance getSecurity(ScanResult result).
   For a PSK/SAE transition mode ScanResult, return SAE.
   For a open/OWE transition mode ScanResult, return OWE.
4. Enhance all AccessPoint#matches methods
5. Use enhanced AccessPoint#matches to replace AccessPoint#isKeyEqual
6. In WifiTracker#updateAccessPoints, it associates an AccessPoint with a configured WifiConfiguration
   I. If an AccessPoint is PSK/SAE transition mode, update it with a configured network
      of the same SSID and PSK/SAE security if it’s available. (SAE has higher priority).
   II. If an AccessPoint is Open/OWE transition mode, update it with a configured network
       of the same SSID and open/OWE security if it’s available. (OWE has higher priority).

Bug: 144320676
Bug: 144320649
Bug: 144325162
Bug: 144321574
Test: atest SettingsLibTests
      manual: In Wi-Fi picker
              1. Save a PSK network, click a PSK/SAE transition mode AP of the same SSID,
	         it should connects.
              2. Save a SAE network, click a PSK/SAE transition mode AP of the same SSID,
	         it should connects.
              3. For 1. and 2., the transition mode AP should show 'Saved'.
	      4. For 1. and 2., looking at saved network page, each saved network should
	         shows correct connection status of the transition mode AP.

Change-Id: Ida858af791bc60f0ccb11025901de2a79eacba3c
Merged-In: I9688f51f4a4b8e3d5c080fb0d0103abb4e3fd79b
2019-12-09 19:17:23 +08:00
Arthur Hung
a9f15f0b0a Revert "Fix drag and drop (3/3)"
This reverts commit 6262f22411.

Bug: 137819199
Test: manual
Change-Id: I10800ff8f76fa68b9a93c935d14c5ade68504917
Merged-In: I10800ff8f76fa68b9a93c935d14c5ade68504917
(cherry picked from commit fd9d94d8e3)
2019-12-09 09:33:19 +00:00
Arthur Hung
d2b106c4aa Revert "Fix drag and drop (2/3)"
This reverts commit b5e316c3e4.

Bug: 137819199
Test: manual
Change-Id: I31e60725035d5af06884521499aed9fc07e505c9
Merged-In: I31e60725035d5af06884521499aed9fc07e505c9
(cherry picked from commit 438fb283e6)
2019-12-09 09:33:03 +00:00
Arthur Hung
bc71da4f47 Revert "Fix drag and drop (1/3)"
This reverts commit 59f532efad.

Bug: 137819199
Test: manual
Change-Id: If5e8856aad74b6f232fff9d5fd746f56d63288eb
Merged-In: If5e8856aad74b6f232fff9d5fd746f56d63288eb
(cherry picked from commit c499ad3775)
2019-12-09 09:31:45 +00:00
TYM Tsai
66121902a5 Fix crash after destroyed
Remove the touch listener while destroyed to avoid causing the
IllegalStateException.

Fixes: 144703050
Test: atest CtsAutoFillServiceTestCases
Change-Id: I04b30fa3cef5bea00a4dbd9957cae8246f09a802
(cherry picked from commit 93e1622365)
2019-12-09 06:18:57 +00:00
TreeHugger Robot
948ed682ff Merge "Fixed UserSwitchingDialog theme." into qt-qpr1-dev 2019-12-07 06:32:52 +00:00
TreeHugger Robot
839c5ec5e4 Merge "Issue a warning when the user switching dialog times out." into qt-qpr1-dev 2019-12-07 06:32:13 +00:00
TreeHugger Robot
88e0f9d554 Merge "Added owners for CarUserSwitchingDialog.java" into qt-qpr1-dev 2019-12-07 06:27:48 +00:00