Commit Graph

468813 Commits

Author SHA1 Message Date
Neil Fuller
142a3f86e3 Merge "Tweak logged info for time / time zone detection" 2020-02-10 11:32:30 +00:00
hughchen
12129525bf Fix ConcurrentModificationException on LocalBluetoothProfileManager
This CL use CopyOnWriteArrayList to avoid
ConcurrentModificationException.

Bug: 148176840
Test: manually
Change-Id: If6107892bbdebf2bb10f8add63e96ccbae3b4cd5
2020-02-10 19:30:56 +08:00
Rubin Xu
b770235a86 Mitigate race conditions in PacService
There are some design limitations in PacService (one-way aidl calls
from ConnectivityService) that causes it to be racy when PAC proxy are
set and cleared in quick succession. Attempt to mitigate them with the
following changes:

1. Make PacNative a singleton instead of one instance per binder. The
underlying v8 engine is singleton so it makes little sense to have
multiple instances of the PacNative wrapper.
2. Remove the startPacSystem and stopPacSystem API and bind the
PacNative lifecycle to the PacService. Otherwise the one-way
stopPacSystem() binder call could have raced with a next
startPacSystem() call when PAC proxy is cleared and then set.

For this change, startPacSystem() and stopPacSystem() and made no-op
only. They will be fully removed in the next change.

Test: atest --iterations 200 com.android.cts.devicepolicy.DeviceOwnerTest#testProxyPacProxyTest
Bug: 147359729
Change-Id: Ie3ce098167694421f8bd2a6dec85d7c437cfb0be
EDIT
2020-02-10 11:05:12 +00:00
Song Pan
ff5dec9933 Do not fail early when one of the verification fails so that we don't
delete the apk file while the other verification is still accessing it.

Test: locally verified that the exception does not occur anymore.
Bug:145674131
Change-Id: I16c37a9acb9e02b4c454c1ad036167a42aed2c66
2020-02-10 10:54:36 +00:00
Bram Bonné
d377354696 Update storage permission policy to use AppCompat APIs.
This CL introduces ENABLE_SCOPED_STORAGE and REQUIRE_SCOPED_STORAGE as
AppCompat changes that are enabled for apps with targetSDK > P and apps
with targetSDK > Q respectively.

This change removes the getMinimumTargetSDK method, as it
is no longer needed.

Change-Id: I6b05252d42d3b2f1030928ffd03c02523c5a01d2
Fix: 147034231
Bug: 144914977
Bug: 131432978
Test: atest RestrictedPermissionsTest
Test: atest RestrictedStoragePermissionSharedUidTest
2020-02-10 11:17:25 +01:00
Tiger Huang
3b3537e0a1 Make sure the control target has a control
The CL only allows a target to be the control target if the insets
source provider has a control. This prevents the arrays in
InsetsStateController.mControlTargetTypeMap contains a type which
doesn't have a control. If an insets source provider haven't had
a window yet while we are updating control for target, we let the
target be the pending control target, and then use it to update again
while the provider get the window.

Bug: 149121559
Test: Manual test
Change-Id: I3c63e892f870f4daca667106d935e05423dfece8
2020-02-10 18:12:04 +08:00
Automerger Merge Worker
d9e45183cb Merge "Move offload config hidl usage from native to java" am: 7cacdf7446 am: b5930afb19 am: 5fac37b596
Change-Id: I92cfc902c44e9e263828d142fd6ff360b39e97e6
2020-02-10 09:46:28 +00:00
Automerger Merge Worker
5fac37b596 Merge "Move offload config hidl usage from native to java" am: 7cacdf7446 am: b5930afb19
Change-Id: I2b09804822126c47dbce3133ca6d852b49762fec
2020-02-10 09:32:32 +00:00
Louis Chang
dac184cb14 Merge "Report task profile locked for leaf tasks only" 2020-02-10 09:24:06 +00:00
Automerger Merge Worker
b5930afb19 Merge "Move offload config hidl usage from native to java" am: 7cacdf7446
Change-Id: If2e450335230851b229b691af92214f399c0295d
2020-02-10 09:16:04 +00:00
JW Wang
82228f22d4 Move testNetworkFailedRollback (2/n)
Bug: 147785893
Test: atest NetworkStagedRollbackTest
Change-Id: I801499b760e38a1eec4bab69daaa533124ad9531
2020-02-10 17:10:04 +08:00
Mark Chien
7cacdf7446 Merge "Move offload config hidl usage from native to java" 2020-02-10 09:01:12 +00:00
Stanley Wang
8998d03992 Fix strings. "shutdown" should be "shut down".
Fixes: 148754031
Test: manual & robotest
Change-Id: I71fa8061e44eefe502719564d9f8631f89e49e9f
2020-02-10 16:53:35 +08:00
Chalard Jean
b323b6ba2a Fix review comments on aosp/1213524
This is necessary to avoid subsequent conflicts.

Test: none needed
Change-Id: I6e2cd9188e0e4bd7c71c6c56635f192dce73f325
Merged-In: I621cfbe165996c67b201ca2dd2f95a5ab9af10ee
2020-02-10 08:28:04 +00:00
TreeHugger Robot
6a1e0b72e3 Merge "MediaRouter: clear session info when disconnected" 2020-02-10 08:10:42 +00:00
TreeHugger Robot
0f6accf9a6 Merge "Fix DisplayPolicyLayoutTests" 2020-02-10 07:56:41 +00:00
markchien
0d5a36beab Move offload config hidl usage from native to java
TetheringUtil JNI is too big that it statically linking hidl and its
dependency library. To remove these static libraries, calling hidl in java
directly instead of using JNI.

Bug: 148984662
Test: -build, flash, boot
      -manually ON/OFF tethering

Change-Id: Id5a9759eb453fddaf0c3b7a31da17224e35e963e
2020-02-10 15:25:19 +08:00
Muhammad Qureshi
6dca000c17 Merge "ServiceManager --> StatsFrameworkInitializer" 2020-02-10 07:20:14 +00:00
Muhammad Qureshi
8d0846fae1 Merge "FrameworkStatsLog --> StatsdStatsLog" 2020-02-10 07:17:17 +00:00
timhypeng
a109d3a3a7 Move MediaRoute2Info API from InfoMediaDevice to MediaDevice
-All types of MediaDevice use the same MediaRoute2Info API
-Update test cases

Bug: 148756190
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I4a01aaa03c657b24e2c747f1202d968deb4d9932
2020-02-10 07:16:40 +00:00
Muhammad Qureshi
cfd5b7bee6 Merge "Remove more Slog usages in statsd apex" 2020-02-10 07:16:39 +00:00
TreeHugger Robot
87bdd6503a Merge "MediaSessionService: Fix crash with implicit media button receiver" 2020-02-10 07:10:36 +00:00
TreeHugger Robot
d0db68c890 Merge "To add new marker to support long edge cutout" 2020-02-10 06:53:49 +00:00
TreeHugger Robot
e7f3f69461 Merge "Fix bug where JPEG file with XMP is incorrectly saved" 2020-02-10 06:21:41 +00:00
Joshua Duong
5e931c7e2e [adbwifi] Add Settings metrics for adb wireless.
Bug: 111434128, 119492574

Test: make
Change-Id: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
2020-02-09 21:59:10 -08:00
TreeHugger Robot
32d078ac0a Merge "Use framework-statsd-stubs in frameworks/base/Android.bp" 2020-02-10 05:08:28 +00:00
Jin Seok Park
f2af1112fa Fix bug where JPEG file with XMP is incorrectly saved
Currently, even if a JPEG file has an XMP data stored separately
from the EXIF data, it saves it as an EXIF tag, and when
ExifInterface#saveAttributes is called, the XMP data is stored
inside the EXIF data. This can cause a problem since the maximum
bytes that an EXIF data can hold inside a JPEG file is 65536 bytes,
and having the XMP data inside the EXIF data can make the EXIF data
exceed this limit.

This CL solves this issue by separately saving the EXIF data if it
existed separately in the original file.

Bug: 147778520, Bug: 149010485
Test: manually with file attached in bug
Change-Id: I320942858beb14cc3b2e80330857089a0ad26533
2020-02-10 13:57:21 +09:00
TreeHugger Robot
c3756bac1c Merge "Import translations. DO NOT MERGE" 2020-02-10 04:49:54 +00:00
zoey chen
5b7d3f85e7 [Settings] Expose @hide APIs as @SystemApi
Add new SystemApi methods for Cdma preference controller

Bug: 145788881
Test: make
Change-Id: I04803885d2367f0b79471aaab66b7a0e8e6a912d
Merged-In: I04803885d2367f0b79471aaab66b7a0e8e6a912d
2020-02-10 12:10:26 +08:00
Muhammad Qureshi
977ab22b12 Merge "Clean up service-statsd" 2020-02-10 04:06:58 +00:00
wilsonshih
452882a0a8 Check to start the PiP animation early.
Before Android Q, we will start PiP animation when activity requests to
enter pinned stack. Since we will move the pinned stack control to SystemUI,
the original transition sequence would break and cause flicker.
An easy way to prevent flicker is to check if the animation needs to
start early.

Fix: 146432422
Test: Manual enter PiP with gesture/3-button navigation several times.
Test: atest PinnedStackTests
Change-Id: I646efe7fbf0c58224d55112ab1bc8749c3dc41da
2020-02-10 12:06:51 +08:00
Charles Chen
ce7c8074a4 Fix race when show error dialogs
Test: atest AnrTests AmStartOptionsTests#testDashD
fixes: 148344287

Change-Id: Ie7a2d6fdf8ba8452cd4102fa1fbed760a1bad85c
2020-02-10 10:55:09 +08:00
TreeHugger Robot
bd9ffc9c76 Merge "Reduce unnecessary object creation in relayout test" 2020-02-10 02:39:07 +00:00
Charles Chen
40eb219600 Merge "Fix AccessibilityInputFilterTest" 2020-02-10 02:12:48 +00:00
Marco Ballesio
497aff4020 App freezer stat logs
Bug: 143308662
Test: westworld tests on local device (go/westworld-local-development)
Change-Id: I0f3f966b6057a3465a1e686f93caf28cd7247b2c
2020-02-10 02:09:40 +00:00
TreeHugger Robot
4b41675b13 Merge "Refine surrounding text logic and test case readability." 2020-02-10 02:07:19 +00:00
Muhammad Qureshi
133efaa22f ServiceManager --> StatsFrameworkInitializer
Bug: 149128236
Test: m
Change-Id: I6b506128b4990fa24d745da978608fe3d68a1d8f
2020-02-09 17:14:17 -08:00
Muhammad Qureshi
cefc882d9c FrameworkStatsLog --> StatsdStatsLog
Create a new StatsLog module for statsd apex

Bug: 149128236
Test: m
Change-Id: I48bc2b47c0fbcffd6a8ac646323cafb107358ec9
2020-02-09 17:14:17 -08:00
Jaewan Kim
dab21fdbb8 MediaSessionService: Fix crash with implicit media button receiver
PendingIntent can be built with implicit intent (i.e. intent without
ComponentName), while using it cause exception.
However, apps can still create and set media button receiver with
implicit intent. Prevent crash when MediaSessionService is notify about
such app's media button receiver.

Bug: 147536687
Test: Build and run
Change-Id: Icfdd45edaa8e25dbdeca3c2180bd234718eef202
2020-02-10 00:42:01 +00:00
Automerger Merge Worker
45b0fc870d Merge "rm libbinderthreadstate" am: d61f0dcaec am: 4c80c8da0c am: 2afa74f459
Change-Id: I167e26697d1356280cec9c5eefb361359f6da4a8
2020-02-09 23:54:34 +00:00
Automerger Merge Worker
2afa74f459 Merge "rm libbinderthreadstate" am: d61f0dcaec am: 4c80c8da0c
Change-Id: I25aacc3f1cd9c3544e90934c37cff5a973a7bd7b
2020-02-09 23:44:07 +00:00
Automerger Merge Worker
4c80c8da0c Merge "rm libbinderthreadstate" am: d61f0dcaec
Change-Id: Ib7de947aa4ee5b349c9576355869702ac94d8624
2020-02-09 23:27:45 +00:00
Treehugger Robot
d61f0dcaec Merge "rm libbinderthreadstate" 2020-02-09 23:06:21 +00:00
Nicolas Geoffray
6097439672 Use new image location for JIT Zygote.
Bug:119800099
Test: boots, correct image is being picked up, correct files are being
pinned

(cherry picked from commit 9ac03a0504)

Change-Id: I0fd94e27ec2e8ecd814576efed8363b0e6b6d438
Merged-In: I7add3006b0d72b005daabb6609d954b466985304
2020-02-09 23:02:05 +00:00
Nicolas Geoffray
97f02a4f26 Merge "Use new image location for JIT Zygote." 2020-02-09 22:47:09 +00:00
Hai Shalom
69c2a18a46 Merge changes from topic "Passpoint_FQDN"
* changes:
  [Passpoint] Allow multiple profiles w/identical FQDN
  [Passpoint] Allow multiple profiles w/identical FQDN
2020-02-09 21:49:41 +00:00
Lyn Han
98da8f3afc Consistent padding between overflow & normal bubbles
Bug: 138116789
Test: manual - overflow & normal bubbles look the same size now.
Previously, overflow bubbles were smaller as a result of the padding.

Change-Id: I3660d0f347468b25a1501758e1a170c8269a9434
2020-02-09 13:34:16 -08:00
Etan Cohen
3df4c8942f [WIFICOND][API] MacAddress + capability flags
Per API council feedback:
- Convert: byte[] -> MacAddress
- Formalize capability bit flags

Bug: 149105833
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I3e65511eec9b8d5ebc829de34b386b600ed67e82
2020-02-09 13:12:11 -08:00
TreeHugger Robot
8db82cde96 Merge "Make legacy storage appop unsticky on upgrade to R" 2020-02-09 20:58:34 +00:00
Jeff Sharkey
260a3a0b4f Add column for indexed XMP metadata.
Partners have requested that we index XMP metadata so that gallery
apps can quickly determine XMP values (such as photosphere camera
parameters) without having to perform their own expensive indexing
of the underlying files on disk.

This change also redacts any location metadata contained in the
indexed metadata, since we can't safely perform dynamic redaction of
database values.

Bug: 148571206
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I9be27cbfca037ccc59d3cc4bd4b004bbba51a5a8
2020-02-09 13:50:26 -07:00