Commit Graph

472680 Commits

Author SHA1 Message Date
Rhed Jao
f74e5ccbe5 Fix a11y service targeting sdk version doesn't update
The accessibility service connection uses old service info
to create connection while the system is trying to rebind the
enabled services after packages finished updated. The root
cause is we always reloaded the installed service info after
the a11y services were rebound. To fix this issue, always
reloads the installed service info before rebinds the services.

Bug: 152817355
Test: All a11y related cts tests
Change-Id: Iab424940fc47b5a5f44096d67dc7bdfe2d43c5be
2020-04-02 12:11:52 +08:00
TreeHugger Robot
60e3892fec Merge "Unbreak testStartUsingNetworkFeature_enableHipri failure" into rvc-dev 2020-03-30 04:28:19 +00:00
TreeHugger Robot
e7647d94b4 Merge "Check mBtRouteProvider for null before using it" into rvc-dev 2020-03-30 02:47:50 +00:00
TreeHugger Robot
61b5936007 Merge "Unregister MediaListener on view detached" into rvc-dev 2020-03-30 02:38:02 +00:00
Mark Chien
44592d13da Unbreak testStartUsingNetworkFeature_enableHipri failure
aosp/1261619 break legacy API that only supported for SDK which is
smaller than android M, caller need to have network stack permission
to request network with legacy type. Fix failure by whitelist permission
check for the caller who built with order SDK(< M).

Bug: 152229492
Test: atest CtsTetheringTest
      atest ConnectivityManagerLegacyTest# \
      testStartUsingNetworkFeature_enableHipri

Change-Id: I02504c0eed10ee4e08c8fbf032951022255ba5fa
Merged-In: I367dff0429f26f266282300edc38637b55eece38
(cherry picked from commit b1c8acf0d6)
2020-03-30 02:26:57 +00:00
Tracy Zhou
080431efd0 Merge "Add Hexagon and Flower to R dogfood devices" into rvc-dev 2020-03-30 02:24:30 +00:00
Andrii Kulian
9cb593704e Merge "2/n Move task management logic to TaskContainers" into rvc-dev 2020-03-30 01:29:13 +00:00
Jackal Guo
c822c12780 Merge "Using for loop instead of stream" into rvc-dev 2020-03-30 01:08:46 +00:00
Andrii Kulian
9ea12da428 2/n Move task management logic to TaskContainers
Still no changes in logic, just moving the code around.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I083b751c20fe110f120ae6c7626d3f2e974605ab
2020-03-29 14:03:29 -07:00
Artur Satayev
d6503d5cfd Merge "Export change id processor." into rvc-dev 2020-03-29 18:07:37 +00:00
Andrii Kulian
dddb9dd853 Merge "1/n Move TaskContainers out of DisplayContent class" into rvc-dev 2020-03-29 17:20:33 +00:00
Songchun Fan
520ae0a358 Merge "[frameworks] update with incfs.h" into rvc-dev 2020-03-29 17:11:22 +00:00
Sergey Volnov
5532c77904 Store hard refences in a static context and pass through only weak
references during the Content Capture Sharing.

Motivation: if the remote app is killed, we don't want a possibility of
system server holding a stroing reference (through a reference chain)
to large objects in that app. Therefore what's send in the binder has to
be a weak reference. And we will store a hard reference to those objects
in the client app's static context.

Storing hard references to objects in system_servier is less critical, because that is not going to be killed.

Bug: 148265162
Test: covered by CTS tests
Change-Id: Ie561aab6019d191cf8659fb350e045089e7781ed
(cherry picked from commit 13f65b2974)
2020-03-29 12:50:41 +00:00
Tracy Zhou
95aca253f9 Add Hexagon and Flower to R dogfood devices
Fixes: 150234338
Test: Manual
Change-Id: I984b0d392ff53edfbbe11c208aa63377483887f8
2020-03-29 01:03:50 -07:00
Artur Satayev
f9172bd785 Export change id processor.
- Don't declare the plugin directly, it is exported via java_library that defines the sources.
- Remove unneeded framework-annotation-proc.

Bug: 152220864
Test: m && diff merged_compat_config.xml
Change-Id: Ie750b5391229d21679a8610780b9f8d4a997e204
Merged-In: Ie750b5391229d21679a8610780b9f8d4a997e204
(cherry picked from commit 9f5a5623a7)
2020-03-28 19:24:53 +00:00
Nikita Ioffe
810c90c70e Merge "pm install-commit supports waiting for staged session to be ready" into rvc-dev 2020-03-28 18:35:50 +00:00
Anton Hansson
582cb38829 Merge "Revert "Add new class with APIs of varying visibility"" into rvc-dev 2020-03-28 16:52:49 +00:00
Anton Hansson
578cac6e93 Merge "Fix statsd publicapi stub default usage" into rvc-dev 2020-03-28 16:51:47 +00:00
Anton Hansson
26c1b004da Merge "Limit framework module api packages" into rvc-dev 2020-03-28 16:51:13 +00:00
Nikita Ioffe
13973e1d89 pm install-commit supports waiting for staged session to be ready
This change allows callers of adb install-multi-package to benefit from
--wait flag which will wait for the pre-installed verification of staged
sessions.

Test: atest PackageManagerShellCommandTest
Test: adb install-multi-package tzdata.apex shim.apex
Bug: 147694315
Change-Id: Ia356c4dff635ec230eb505fb400913c76ec84042
2020-03-28 12:39:29 +00:00
Yurii Zubrytskyi
95955373b8 Merge "[settings] Add a knob to turn off incremental default" into rvc-dev 2020-03-28 08:34:55 +00:00
TreeHugger Robot
32a316ddfe Merge "Remove permission requirement for SMS_DB_LOST intent." into rvc-dev 2020-03-28 07:31:35 +00:00
Hall Liu
99f278fc65 Merge "Mock TelephonyManager in NotificationManagerService tests." into rvc-dev 2020-03-28 06:48:56 +00:00
Hall Liu
952697b886 Merge changes from topic "phonestatelistener-limit-rvc-dev" into rvc-dev
* changes:
  Add gating, logging for PhoneStateListener's limit
  Institute limit on PhoneStateListener
2020-03-28 06:48:56 +00:00
Dichen Zhang
f24f832fd7 Merge "Fix command injection on screencap" into rvc-dev 2020-03-28 06:34:31 +00:00
Yurii Zubrytskyi
4a90c80aa9 [settings] Add a knob to turn off incremental default
A new value in global settings for the adb to determine if the
device allows using incremental installations by default.

Bug: 150183149
Test: builds
Change-Id: I64e8fafcacbb790fa469629136a7dacbfd34e800
2020-03-27 23:25:35 -07:00
TreeHugger Robot
e1741183b9 Merge changes I0877f915,If6889737 into rvc-dev
* changes:
  RebootEscrow: create event log
  RebootEscrow: add bugreport dump
2020-03-28 05:17:44 +00:00
Hui Yu
5e089a4af5 Merge changes from topic "foregroundServiceType camera/microphone" into rvc-dev
* changes:
  Turn on foregroundServiceType camera/microphone feature in enforcement mode.
  Exempt device owner uid from FGS BG restriction.
2020-03-28 05:14:47 +00:00
TreeHugger Robot
84f9eeb0ed Merge "Fix for a test broken due to removing logcat msgs" into rvc-dev 2020-03-28 04:47:23 +00:00
TreeHugger Robot
ee1e37df50 Merge "Add basic documentation about cec key handling" into rvc-dev 2020-03-28 04:46:30 +00:00
TreeHugger Robot
0ac1c345a4 Merge changes from topic "tej-uid" into rvc-dev
* changes:
  LibstatsPullTest, Testdrive updates for sandboxing
  Uid Sandboxing of Pullers
2020-03-28 04:26:19 +00:00
TreeHugger Robot
d41e1d96a6 Merge "Show prompt reason on scrimmed bouncer" into rvc-dev 2020-03-28 04:17:58 +00:00
TreeHugger Robot
c2e20c4b8a Merge "[HWUI] Add null check for CanvasContext" into rvc-dev 2020-03-28 04:02:31 +00:00
TreeHugger Robot
a8d6a321d3 Merge "Allow autofill to request show soft IME through InputMethodManager" into rvc-dev 2020-03-28 03:46:40 +00:00
TreeHugger Robot
70a7cbf9e5 Merge "Also update color when changing the visibility" into rvc-dev 2020-03-28 03:31:49 +00:00
TreeHugger Robot
03eb7a1bf2 Merge "Only runtime and appop perms need to be in RUNTIME_AND_APPOP_PERMISSIONS_OPS" into rvc-dev 2020-03-28 02:49:48 +00:00
Ram Muthiah
40383b0f2b Merge "Revert "Do not mount whitelisted package in storage data and obb dirs"" into rvc-dev 2020-03-28 02:47:38 +00:00
Ram Muthiah
7929c5dced Revert "Do not mount whitelisted package in storage data and obb dirs"
This reverts commit 2cd955e79d.

Reason for revert: Bisect indicates this change causes b/152550025

Bug: 152550025
Bug: 151218156
Change-Id: I350bfc44d2137416bd23591fffbe4284e1462a91
2020-03-28 02:39:58 +00:00
TreeHugger Robot
cbf33802f8 Merge "Have Telecom service notify AudioService of RTT call state." into rvc-dev 2020-03-28 02:29:30 +00:00
Hall Liu
ed6d6e69a8 Add gating, logging for PhoneStateListener's limit
Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
2020-03-27 19:21:51 -07:00
TreeHugger Robot
2682bcf618 Merge "BLE-MIDI: fix timestamps for sysex data" into rvc-dev 2020-03-28 02:13:57 +00:00
TreeHugger Robot
5c0b30caab Merge changes from topic "iorap-perfmaster-fix" into rvc-dev
* changes:
  iorap: Change AppLaunch to parse logcat waiting for the service to reset.
  iorap: Log a message when we reconnect to iorapd after binder death.
2020-03-28 02:05:38 +00:00
Tej Singh
f4e17e6639 LibstatsPullTest, Testdrive updates for sandboxing
Test: atest LibStatsPullTests
Test: statsd_testdrive 10051 10004 10055
Test: adb shell cmd stats pull-source 10051 AID_STATSD
Test: adb shell cmd stats pull-source 10055 AID_GPU_SERVICE
Test: adb shell cmd stats pull-source 10004
Bug: 151642352
Change-Id: I3b104cb2f2427b4558d5175dfeb3bb2c80012d0e
2020-03-27 19:02:10 -07:00
Feng Cao
43c2043e2d Allow autofill to request show soft IME through InputMethodManager
* So that autofill manager service can use it to control the IME
  visibility to better support the inline suggestion workflow

Test: m -j, also manually verify with local changes
Bug: 152082216

Change-Id: I5c4b236bedeced8ff714090effce46161ee1170a
2020-03-27 18:54:29 -07:00
Philip P. Moltmann
19f8283a01 Merge "Don't check apex when granting priv permission unless needed" into rvc-dev 2020-03-28 01:19:17 +00:00
TreeHugger Robot
55237e8973 Merge "Add addtional strings for Shared Data dev options screens." into rvc-dev 2020-03-28 01:12:10 +00:00
Tej Singh
3be093b518 Uid Sandboxing of Pullers
Overall flow of implementation:
1. parsing the config in MetricsManager to store the uids per atom. It
follows the mAllowedLogSources logic very closely
2. MetricsManager register itself as a PullUidProvider with the
PullerManager.
3. Metrics pass the config key when pulling (for both registering
receivers and normal pulls) , and the puller manager gets
the allowed uids from the PullUidProvider for that config.
4. PullerManager keys receivers by <atomId, configKey> so that it can
look up the uids for that atom using the PullUidProvider as well.
5. Added shell subscriber support. Hardcode a default of AID_SYSTEM for
them and also allow packages per atom. This involved adding a second
interface to Pull that simply accepts the uids, since I didnt want to
make the ShellSubscriber a PullUidProvider as well.
6. Change adb shell cmd stats pull-source to allow users to specify a
package. Default to AID_SYSTEM as well.

Notes:
The feature is flagged off right now, since configs do not pass in the
desired package. Another approach could be to hardcode in the current
mapping, but that doesn't work for OEM pulled atoms.

Test: m statsd
Test: bit statsd_test:* with useUids = false
Test: bit statsd_test:* with useUids = true
Bug: 144099783
Bug: 151978258

Change-Id: I4a7481d7402a52b9beb4ea28b102803f9e50e79f
2020-03-27 18:07:24 -07:00
Chen Chen
0941d63aee Merge "Bluetooth Metrics: Add metric_id field for Bluetooth metrics to proto. The incremental id is neither a device id nor a pseudo name and therefore PII free." into rvc-dev 2020-03-28 00:54:26 +00:00
Evan Rosky
625280b87c Merge "Handle the UnsupportedOperationException when register TaskOrganizer" into rvc-dev 2020-03-28 00:40:49 +00:00
Evan Rosky
36703fbaa3 Merge "Fix crash on devices that don't support multiwindow" into rvc-dev 2020-03-28 00:40:49 +00:00