Commit Graph

424299 Commits

Author SHA1 Message Date
TreeHugger Robot
cbd20f5fd0 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-23 00:28:29 +00:00
TreeHugger Robot
09f5bc7d5a Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-23 00:28:25 +00:00
TreeHugger Robot
9b7ef73172 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-23 00:26:28 +00:00
Bill Yi
24872f7961 Import translations. DO NOT MERGE
Change-Id: I32f17d8f813231a017f27b1dfa7bb7d2e9a36180
Auto-generated-cl: translation import
2019-12-21 23:49:40 -08:00
Bill Yi
ed231e940b Import translations. DO NOT MERGE
Change-Id: I405792e178d6413ca6d626aec23e53ef6a08c00b
Auto-generated-cl: translation import
2019-12-21 19:12:35 -08:00
Bill Yi
27b8f820fc Import translations. DO NOT MERGE
Change-Id: Ifd1a3cdeed186ac23685dd4f2e7c0cf2e96b7730
Auto-generated-cl: translation import
2019-12-21 18:57:04 -08:00
Bill Yi
31076a2229 Import translations. DO NOT MERGE
Change-Id: I4164b5e70c81b29635ced882adbb77dcf2a67219
Auto-generated-cl: translation import
2019-12-21 18:41:01 -08:00
TreeHugger Robot
af229217da Merge "Fix system service crash on radio session death. DO NOT MERGE" into qt-qpr1-dev 2019-12-21 00:38:00 +00:00
Lucas Dupin
21cc2e5f7d Support @left marker
By default cutouts are centered and support a @right marker to allow
them to be right aligned. Let's also support left alignment by
introducing a @left marker.

Test: atest DisplayCutoutTest
Test: manual
Bug: 143222961
Bug: 145707162
Change-Id: Ic5a645bd9f0513f3665f31c8b0f1861585bf30e6
Merged-In: Ic5a645bd9f0513f3665f31c8b0f1861585bf30e6
(cherry picked from commit 6e9636c5e0)
2019-12-20 20:21:25 +00:00
TreeHugger Robot
23e867d5de Merge "Re-register SMD after motion detected." into qt-qpr1-dev 2019-12-20 18:37:49 +00:00
Remi NGUYEN VAN
6b6a9b1972 Merge "Fix parceling of LinkProperties Inet6Addr" into qt-qpr1-dev 2019-12-20 08:27:55 +00:00
Gavin Corkery
cb6ad6dc8e Merge changes from topic "cp-log-watchdog" into qt-qpr1-dev
* changes:
  Log native crashing process
  Log watchdog-initiated rollback reason
  Add package failure flags to Package Watchdog
2019-12-20 08:02:11 +00:00
TreeHugger Robot
cd0dc3caaf Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-20 05:23:43 +00:00
Bill Yi
c496e7624d Import translations. DO NOT MERGE
Change-Id: I0414a5c64fbb577fb060ee7e93cb1f3e861a0f5a
Auto-generated-cl: translation import
2019-12-19 19:55:47 -08:00
Kweku Adams
265b8356e8 Re-register SMD after motion detected.
One shot sensors need to be re-registered after they've been triggered.
Since DeviceIdleController wasn't doing that, we weren't properly
tracking motion to inform stationary listeners. This change makes sure
to re-register the motion sensor after some time to make sure motion is
properly tracked.

Bug: 140162457
Test: atest com.android.server.DeviceIdleControllerTest
Change-Id: Ic712e46bdc9d107d56cea3bce72c2e7b2187530a
Merged-In: I8600a8382b7c773be9e200afba96a7f1a74f6e10
2019-12-19 18:59:42 -08:00
Jiashen Wang
ea59cdd9af Merge "[DO NOT MERGE] Exclude euicc_unsupported_countries from backup test" into qt-qpr1-dev 2019-12-20 00:15:16 +00:00
Heemin Seog
2ca1a05276 Merge "DO NOT MERGE Only refresh car notif on language change" into qt-qpr1-dev 2019-12-20 00:09:53 +00:00
Heemin Seog
096c7b8ad3 DO NOT MERGE Only refresh car notif on language change
Refreshing all of status bar causes issues with some listeners being
triggered before it is ready to be called.

Bug: 145946470
Bug: 146163621
Bug: 146521766
Test: manual (flash + change language + watch logcat for sysui crash)
Change-Id: If9b2d0fd81698aba21ed3d5708ac68d09bdba0a7
2019-12-19 15:17:58 -08:00
TreeHugger Robot
2ddfce682e Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-12-19 23:12:33 +00:00
SzuWei Lin
10097500e6 [DO NOT MERGE] Exclude euicc_unsupported_countries from backup test
Bug: 146550929
Test: atest SettingsBackupTest
Change-Id: I48c255a4e8999be903e5642ca6d7b312b214d05f
2019-12-19 22:06:44 +00:00
Bill Yi
4a9d4d1d16 Import translations. DO NOT MERGE
Change-Id: Ic59785b6426a503b06cd1ab16ac7060791dda8ef
Auto-generated-cl: translation import
2019-12-19 13:52:22 -08:00
Tomasz Wasilczyk
1b16c57b57 Fix system service crash on radio session death. DO NOT MERGE
This is a partial cherry-pick from ag/7063548

Bug: 140203726
Test: adb shell am start -S -W -n com.android.car.radio/.RadioActivity
      (multiple times)

Change-Id: I6f16ff6eb82fca63c697d284fb3f45c2bb2be38c
2019-12-19 13:03:38 -08:00
Beverly
172e20fa16 Update Ranking's equal method [DO NOT MERGE]
[Cherry picked from master]

Include check for whether mVisuallyInterruptive has changed

Test: atest BubbleDataTest
Change-Id: I5c4706667e6ca4cde44ef3671daa24afaf2b14f3
(cherry picked from commit e1541e7ec9)
2019-12-19 12:29:09 -08:00
Automerger Merge Worker
92b2156138 Fix parceling of LinkProperties Inet6Addr
IPv6 addresses parceled for DNS servers, private DNS servers, PCSCF
servers were parceled without the scope. This causes issues with
link-local DNS servers.

Test: atest FrameworksNetTests
Bug: 145181158
(cherry picked from commit 091f1d790c)
Merged-In: Ie5b7782d788717dd1cc440e502d6cdf2d1c18eaa

Change-Id: I51313f50de8220988c2c1d26981c27d07dfb55f9
2019-12-19 17:55:00 +09:00
TreeHugger Robot
556bdce162 Merge "Fix drag surface would be stuck (1/2)" into qt-qpr1-dev 2019-12-19 07:49:32 +00:00
TreeHugger Robot
72daf56b90 Merge "Revert "Fix drag and drop (3/3)"" into qt-qpr1-dev 2019-12-19 07:49:32 +00:00
TreeHugger Robot
ee79dee7e6 Merge "Revert "Fix drag and drop (2/3)"" into qt-qpr1-dev 2019-12-19 07:49:32 +00:00
TreeHugger Robot
e0f4421f23 Merge "Revert "Fix drag and drop (1/3)"" into qt-qpr1-dev 2019-12-19 07:49:32 +00:00
Paul Hu
9352cb24b1 Fix PermissionMonitor issues
PermissionMonitor#hasPermission only checks permssions that app
requested but it doesn't check whether the permission can be
granted to this app. If requested permission doens't be granted
to app, this method still returns that app has this permission.
Then PermissionMonitor will pass this info to netd that means
this app still can use network even restricted network without
granted privileged permission like CONNECTIVITY_INTERNAL or
CONNECTIVITY_USE_RESTRICTED_NETWORKS.

PermissionMonitor#hasUseBackgroundNetworksPermission only uses
the first package name of the uid for checking permission.
This is incorrect since each package declared different
permissions. So using the mApps which already checked both
network and using restricted network permissions. If uid is in
the mApps list that means uid has one of permission at least.

Bug: 144679405
Test: Build, flash, manual test
      atest FrameworksNetTests

Change-Id: I2da730feda4d7ebed1f158b073167bb3964b3e7d
Merged-In: I8b03c9e23ffc9ff46264d6307fb841a7eda76a76
Merged-In: Ib08a940a6e5d3365c392ab7174d8484c197e0947
(cherry picked from commit 2e1da35b3b)
2019-12-19 13:43:40 +08:00
Dan Sandler
c5dffc9a4a DO NOT MERGE: Allow nearby sharing to substitute name & icon in chip
meta-data bundle keys (values are resids):

    CHIP_LABEL_METADATA_KEY = "android.service.chooser.chip_label"
    CHIP_ICON_METADATA_KEY = "android.service.chooser.chip_icon"

Test: manual, confirm that correct name & icon are used
      and that custom icon is tinted in light/dark theme
      (and that the copy chip is tinted right, too!)
Bug: 144290152
Change-Id: I57157e07630fa8bec3057e6d18336c59944fcb4f
2019-12-19 01:43:51 +00:00
Dan Sandler
4d271f3d9a DO NOT MERGE: Fix alignment of share chips.
Bug: 144290152
Test: visual inspection in landscape & portrait
Change-Id: Ib60b7b56bdf23a45c61416b8309a921451010e8e
2019-12-19 01:43:32 +00:00
TreeHugger Robot
8a00254d27 Merge "Security Fix: Race Condition + NPE" into qt-qpr1-dev 2019-12-19 00:25:15 +00:00
TreeHugger Robot
a2bfc8ce91 Merge "AudioService: setMasterMute protected by MODIFY_AUDIO_ROUTING" into qt-qpr1-dev 2019-12-19 00:23:29 +00:00
Walter Jang
1308ffccf7 Merge "Remove contacts affinity from contact permission descriptions" into qt-qpr1-dev 2019-12-18 23:28:13 +00:00
Jim Kaye
c594d70268 [DO NOT MERGE] Add a configuration to allow disabling auto-suspend
If a platform needs to control suspension explicitly, it can
set 'config_enableAutoSuspend' to false to disable auto-suspend.

Auto-suspend is enabled by default.

This is only for Q. Autosuspend is done differently in R.

Bug: 143203434
Test: Verified on desktop Automotive hardware
Change-Id: Iac17a7d753b8cd5c0259059713fae29d6e5e6fb0
2019-12-18 21:36:50 +00:00
Jean-Michel Trivi
5e851cf9d8 AudioService: setMasterMute protected by MODIFY_AUDIO_ROUTING
Require MODIFY_AUDIO_ROUTING system permission to exercise
hidden (non-SDK, non-SystemApi) method setMasterMute

Bug: 141622311
Test: see bug for POC app
Change-Id: I4ee93276daa1285c55c4c838e2b43833135d76f6
2019-12-18 13:24:16 -08:00
Tej Singh
0c4a21e4ea Security Fix: Race Condition + NPE
ShellSubscriber is lazily initialized, and multiple threads can attempt
to write the same pointer since it is not initialized in threadsafe
code. Additionally, there is an NPE that crashes statsd when a null
ResultReceiver is passed in, which allows an attacker to repeatedly
crash statsd until the race condition occurs. More details, including a
proof of concept attack, are in the bug.

Bug: 141243101
Test: repro steps in bug no longer crash statsd
Test: with only the lock on iniitiallizing mShellSubscriber, statsd
still crashed but after ~7 minutes, no race condition occurred.

Change-Id: Ib56f888620497fb41d1627c07867693eb251738e
2019-12-18 12:58:02 -08:00
Patrick Baumann
de626c28d7 DO NOT MERGE: Adds artificial package handler latency
This change introduces a means of introducing an artificial long task to
the package handler to help reproduce timing issues related to it.

Bug: 141413692
Test: atest PackageManagerTest
Change-Id: I61ddee1fe8b94f5803d981a77babb4bb19e31662
2019-12-18 20:15:26 +00:00
Lucas Dupin
ad00dc0482 Merge "Remove keyguard_indication_area_overlay" into qt-qpr1-dev 2019-12-18 18:29:07 +00:00
Gavin Corkery
cc07b65678 Merge changes from topic "cp-fingerprint" into qt-qpr1-dev
* changes:
  Don't mark terminal staged sessions as failed
  Add build fingerprint checks to APK sessions
2019-12-18 17:56:24 +00:00
Alison Cichowlas
0416784c2e Merge "Do not restart activity when pinned set changes - just re-sort." into qt-qpr1-dev 2019-12-18 15:41:33 +00:00
Gavin Corkery
231b3d8f60 Log native crashing process
Use the new sys.init.updatable_crashing_process_name in
Watchdog-triggered rollback logs in order to track the
process that causes updatable_crashing to be set.

Test: Run atest StagedRollbackTest#testNativeWatchdogTriggersRollback,
      manually test correct process "zygote" is sent to logs.
Bug: 146415463

Change-Id: I81b55dbf9dc74c9b8d505988b99f7e97ef659fe9
Merged-In: I81b55dbf9dc74c9b8d505988b99f7e97ef659fe9
(cherry picked from commit cf6a399e00)
2019-12-18 14:39:16 +00:00
Gavin Corkery
254b0d5a7f Log watchdog-initiated rollback reason
To help with monitoring Mainline releases, log the reason
for a watchdog-initiated rollback. This may be due to
native crashes, app crashes, ANRs or explicit health check
failures.

Add a mapping from PackageWatchdog failure reason to the
new metrics.

Bug: 146415463
Test: atest PackageWatchdogTest
Test: atest StatsdHostTestCases
Change-Id: Ia3e73d955508297004591eac762555665c557b8a
Merged-In: Ia3e73d955508297004591eac762555665c557b8a
(cherry picked from commit dd1dabaef7)
2019-12-18 14:39:16 +00:00
Gavin Corkery
cdc5524f79 Add package failure flags to Package Watchdog
This is a prerequisite for adding additional logging of
the Watchdog-triggered rollback reason. Add flags which
indicate the failure observed (native, crash, ANR, explicit
health check). These will be used in the future by
RollbackPackageHealthObserver to map the failure type to the
(new) set of available logging metrics.

Test: atest PackageWatchdogTest
Bug: 146415463
Change-Id: I7e7c5e5399011e2761dada2b989a95c2013307e9
Merged-In: I7e7c5e5399011e2761dada2b989a95c2013307e9
(cherry picked from commit f305f4def0)
2019-12-18 14:39:12 +00:00
paulhu
d0205a3469 Fix security problem on PermissionMonitor#hasPermission
PermissionMonitor#hasPermission only checks permssions that app
requested but it doesn't check whether the permission can be
granted to this app. If requested permission doens't be granted
to app, this method still returns that app has this permission.
Then PermissionMonitor will pass this info to netd that means
this app still can use network even restricted network without
granted privileged permission like CONNECTIVITY_INTERNAL or
CONNECTIVITY_USE_RESTRICTED_NETWORKS.

Bug: 144679405
Test: Build, flash, manual test
Change-Id: Iae9c273af822b18c2e6fce04848a86f8dea6410a
Merged-In: I8a1575dedd6e3b7a8b60ee2ffd475d790aec55c4
Merged-In: I2da730feda4d7ebed1f158b073167bb3964b3e7d
2019-12-18 07:17:28 +00:00
TreeHugger Robot
5eb70e0717 Merge "Make preview text focusable." into qt-qpr1-dev 2019-12-18 04:10:00 +00:00
paulhu
305946b910 Fix security problem on PermissionMonitor#hasPermission
PermissionMonitor#hasPermission only checks permssions that app
requested but it doesn't check whether the permission can be
granted to this app. If requested permission doens't be granted
to app, this method still returns that app has this permission.
Then PermissionMonitor will pass this info to netd that means
this app still can use network even restricted network without
granted privileged permission like CONNECTIVITY_INTERNAL or
CONNECTIVITY_USE_RESTRICTED_NETWORKS.

Bug: 144679405
Test: Build, flash, manual test
Change-Id: I5eba4909e4c2e1d9f275f66be90ac36466b93e90
Merged-In: I8a1575dedd6e3b7a8b60ee2ffd475d790aec55c4
Merged-In: Iae9c273af822b18c2e6fce04848a86f8dea6410a
2019-12-18 03:47:28 +00:00
Alison Cichowlas
d9691e20b5 Make preview text focusable.
Otherwise, the parent item gets focus, and Talkback will read
the preview text but perform an Action Row action on click.

Bug: 145720818
Test: Manual per bug repro steps
Change-Id: I8938606882e121b4a86e9e1723e6fba3c6d75eeb
2019-12-17 21:55:33 -05:00
Alison Cichowlas
2d3442466e Do not restart activity when pinned set changes - just re-sort.
Bug: 145703939
Test: Share dialog via screenshot, long press for pin, observe behavior.
Change-Id: I6e9e03b77e1486093097ea1488fa589e3c7bd482
Merged-In: I6e9e03b77e1486093097ea1488fa589e3c7bd482
2019-12-18 02:40:02 +00:00
TreeHugger Robot
2d5732ca4a Merge "[Wi-Fi] Fix transition mode problems" into qt-qpr1-dev 2019-12-18 02:27:28 +00:00