OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add documentation for TCP interactions with transforms" into pi-dev
Benedict Wong [Fri, 30 Mar 2018 00:01:43 +0000 (00:01 +0000)]
Merge "Add documentation for TCP interactions with transforms" into pi-dev

6 years agoMerge "Creating java package for Privacy proto." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:37:55 +0000 (23:37 +0000)]
Merge "Creating java package for Privacy proto." into pi-dev

6 years agoMerge "Handle public volumes and otherwise invalid UUIDs." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:33:18 +0000 (23:33 +0000)]
Merge "Handle public volumes and otherwise invalid UUIDs." into pi-dev

6 years agoMerge "Add support for testing mode root certificate." into pi-dev
Dmitry Dementyev [Thu, 29 Mar 2018 23:25:14 +0000 (23:25 +0000)]
Merge "Add support for testing mode root certificate." into pi-dev

6 years agoMerge "Fix seccomp filter set up in zygote" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:21:50 +0000 (23:21 +0000)]
Merge "Fix seccomp filter set up in zygote" into pi-dev

6 years agoMerge "Minor javadoc fixes." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:11:32 +0000 (23:11 +0000)]
Merge "Minor javadoc fixes." into pi-dev

6 years agoMerge ""02:00:00:00:00:00" invalid for MAC randomization" into pi-dev
Mukesh Agrawal [Thu, 29 Mar 2018 22:25:13 +0000 (22:25 +0000)]
Merge ""02:00:00:00:00:00" invalid for MAC randomization" into pi-dev

6 years agoMerge "Allow PO to call setSystemSetting." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:24:25 +0000 (22:24 +0000)]
Merge "Allow PO to call setSystemSetting." into pi-dev

6 years agoMerge "[Magnifier-37] Hide handle when overlaps magnifier" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:16:58 +0000 (22:16 +0000)]
Merge "[Magnifier-37] Hide handle when overlaps magnifier" into pi-dev

6 years agoMerge "Only return internal path when not visible." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:16:32 +0000 (22:16 +0000)]
Merge "Only return internal path when not visible." into pi-dev

6 years agoMerge "Fixed mClientState dump." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:58:17 +0000 (21:58 +0000)]
Merge "Fixed mClientState dump." into pi-dev

6 years agoMerge "Fixed annotation typo." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:43:14 +0000 (21:43 +0000)]
Merge "Fixed annotation typo." into pi-dev

6 years agoMerge "Add the CorePerfTests and MultiUserPerfTests to APCT metrics" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:33:45 +0000 (21:33 +0000)]
Merge "Add the CorePerfTests and MultiUserPerfTests to APCT metrics" into pi-dev

6 years agoMerge "Add MtpDocumentsProviderPerfTests to APCT metric" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:33:25 +0000 (21:33 +0000)]
Merge "Add MtpDocumentsProviderPerfTests to APCT metric" into pi-dev

6 years agoMerge "Add permission hint, update permission slice structure" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:29:07 +0000 (21:29 +0000)]
Merge "Add permission hint, update permission slice structure" into pi-dev

6 years agoCreating java package for Privacy proto.
Kweku Adams [Thu, 29 Mar 2018 21:26:23 +0000 (14:26 -0700)]
Creating java package for Privacy proto.

Also setting fields in the GlobalSettingsProto.Private message to LOCAL.

Bug: 72814439
Bug: 74975371
Test: flash device and check incident.proto output
Change-Id: Ia580144b8b0d0cb9bd9a3297a37213ed5f60a514

6 years agoAdd support for testing mode root certificate.
Dmitry Dementyev [Wed, 28 Mar 2018 19:36:45 +0000 (12:36 -0700)]
Add support for testing mode root certificate.

1) Add Certificate
2) Helper class for end-to-end tests
3) Only create snapshot for passwords with special prefix in test mode
4) Sync only keys with insecure prefix in test mode.

Bug: 76433465
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I6edc8c4716c3a034b6b79c7aa6f4b8478e9a3c9e

6 years agoMerge "Block root task from being shown in recents" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:10:31 +0000 (21:10 +0000)]
Merge "Block root task from being shown in recents" into pi-dev

6 years agoMerge "Update mobile data icons." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:58:02 +0000 (20:58 +0000)]
Merge "Update mobile data icons." into pi-dev

6 years agoMerge "Surface the log write errors to StatsLog.write" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:57:56 +0000 (20:57 +0000)]
Merge "Surface the log write errors to StatsLog.write" into pi-dev

6 years agoMerge "Add a SystemApi to control display saturation." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:55:22 +0000 (20:55 +0000)]
Merge "Add a SystemApi to control display saturation." into pi-dev

6 years agoFix seccomp filter set up in zygote
Victor Hsieh [Tue, 27 Mar 2018 22:02:38 +0000 (15:02 -0700)]
Fix seccomp filter set up in zygote

This needs to land with extra syscalls whitelisted, including capset and
setresuid.  These privileged syscalls are used in the setup after the
filter is initialized.

Test: system starts, different apps run
Bug: 63944145
Bug: 76461821
Change-Id: I49e6b292805f35baffb3530461c8741e75aceb32
Merged-In: I49e6b292805f35baffb3530461c8741e75aceb32

6 years agoHandle public volumes and otherwise invalid UUIDs.
Jeff Sharkey [Thu, 29 Mar 2018 20:29:27 +0000 (14:29 -0600)]
Handle public volumes and otherwise invalid UUIDs.

Public volumes have short UUIDs (which aren't valid 128-bit UUIDs),
so we can't pass them around.  Even if they were valid UUIDs, we
don't handle clearing cached data on them, and they most likely
don't support fallocate(), so don't match them.

Test: manual
Bug: 74132243
Change-Id: Ib855eb869a86392e96ced94a9926c0b32b87e57e

6 years agoMerge "Fix empty program list filter handling." into pi-dev
Tomasz Wasilczyk [Thu, 29 Mar 2018 20:28:12 +0000 (20:28 +0000)]
Merge "Fix empty program list filter handling." into pi-dev

6 years agoMerge "Add in/out ColorSpace to ImageDecoder" into pi-dev
Leon Scroggins [Thu, 29 Mar 2018 20:27:43 +0000 (20:27 +0000)]
Merge "Add in/out ColorSpace to ImageDecoder" into pi-dev

6 years agoMerge "Clean up codes holding mInstallLock in PackageParserCallback" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:27:35 +0000 (20:27 +0000)]
Merge "Clean up codes holding mInstallLock in PackageParserCallback" into pi-dev

6 years agoAllow PO to call setSystemSetting.
yuemingw [Wed, 28 Mar 2018 14:58:49 +0000 (15:58 +0100)]
Allow PO to call setSystemSetting.

As system setting is per user, we should allow PO to call it.

Bug: 77204777
Test: runtest -x services/tests/servicestests/src/
com/android/server/devicepolicy/DevicePolicyManagerTest.java

Change-Id: I84152fa04adb441955b48b676be6e792134b52c2

6 years agoOnly return internal path when not visible.
Jeff Sharkey [Thu, 29 Mar 2018 20:20:48 +0000 (14:20 -0600)]
Only return internal path when not visible.

When a volume is visible (wrapped in sdcardfs), we need all file
operations to go through that sdcardfs layer to keep it in sync.

Test: manual
Bug: 73922090
Change-Id: I14f1f4743f470a6cbc78030e1ea8411f9910a5b9

6 years agoMerge "Avoid clock and challenge overlap" into pi-dev
Lucas Dupin [Thu, 29 Mar 2018 20:18:32 +0000 (20:18 +0000)]
Merge "Avoid clock and challenge overlap" into pi-dev

6 years agoMerge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:09:42 +0000 (20:09 +0000)]
Merge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev

6 years ago[Magnifier-37] Hide handle when overlaps magnifier
Mihai Popa [Tue, 27 Mar 2018 18:03:09 +0000 (19:03 +0100)]
[Magnifier-37] Hide handle when overlaps magnifier

In most cases, the magnifier will be displayed above the current line,
so it will not overlap with the handle being dragged. However, when
there is not enough space in the current surface for the magnifier to be
displayed above the current line, the handle can overlap with the
magnifier. Since the handle is implemented as a different window, we
cannot really control the z ordering between them, and we noticed that
the handle will be rendered over the magnifier, which looks bad. This CL
better handles this situation, by hiding the handle when it would
overlap with the magnifier.

Bug: 76459199
Test: manual testing
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest FrameworksCoreTests:android.widget.TextViewTest
Change-Id: Id5a17fd964360df6094f9e2680e5bcca886c4d2d

6 years agoMinor javadoc fixes.
Felipe Leme [Thu, 29 Mar 2018 20:01:49 +0000 (13:01 -0700)]
Minor javadoc fixes.

Test: echo 'In TH we trust!'
Bug: 74830976

Change-Id: Ib88fc0b0275e87ea31d22759507b4c29c7849c05

6 years agoMerge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev
Vishwath Mohan [Thu, 29 Mar 2018 19:57:37 +0000 (19:57 +0000)]
Merge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev

6 years agoRevert "Clear pattern on completion (if fade is enabled)."
Vishwath Mohan [Thu, 29 Mar 2018 17:56:33 +0000 (17:56 +0000)]
Revert "Clear pattern on completion (if fade is enabled)."

This reverts commit b8e9782f70d6aa28368798cdb969607831c826ce.

Bug: 77257848
Test: Can change from pattern to pin/password

Change-Id: I17f9625e506c8e0839fffa95a62c904890cac603

6 years agoFixed annotation typo.
Felipe Leme [Thu, 29 Mar 2018 18:56:58 +0000 (11:56 -0700)]
Fixed annotation typo.

Bug: 73648631
Test: not really

Change-Id: I4a10642f05e28e5e324ca5b40e50a29138f49b8b

6 years agoAdd MtpDocumentsProviderPerfTests to APCT metric
jdesprez [Thu, 29 Mar 2018 19:27:57 +0000 (12:27 -0700)]
Add MtpDocumentsProviderPerfTests to APCT metric

Add it to the suite version of APCT metric instrumentation

Test: build device-tests.zip
Bug: 77280599
Change-Id: I3a00af2382f4905d84b500b6f5523456d211689f

6 years agoMerge "Tidy up users of TRANSPORT constants." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:23:38 +0000 (19:23 +0000)]
Merge "Tidy up users of TRANSPORT constants." into pi-dev

6 years agoMerge "Switch reference time to ZonedDateTime" into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:22:47 +0000 (19:22 +0000)]
Merge "Switch reference time to ZonedDateTime" into pi-dev

6 years agoAdd the CorePerfTests and MultiUserPerfTests to APCT metrics
jdesprez [Thu, 29 Mar 2018 19:17:50 +0000 (12:17 -0700)]
Add the CorePerfTests and MultiUserPerfTests to APCT metrics

Add them to the suite version of APCT metric instrumentation.

Test: atest CorePerfTests
Bug: 77280599
Change-Id: Ia8f0c44fcb9fd21869ed64e54483aa87556a469d

6 years agoMerge "Add the compilation reason to the dexopt dumps" into pi-dev
Calin Juravle [Thu, 29 Mar 2018 19:15:44 +0000 (19:15 +0000)]
Merge "Add the compilation reason to the dexopt dumps" into pi-dev

6 years agoMerge "Update BleScanStateChanged comment" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 19:05:19 +0000 (19:05 +0000)]
Merge "Update BleScanStateChanged comment" into pi-dev

6 years agoFix empty program list filter handling.
Tomasz Wasilczyk [Thu, 29 Mar 2018 00:50:08 +0000 (17:50 -0700)]
Fix empty program list filter handling.

Also, fix some minor issues about program list fetching.

Test: manual
Bug: 74353024
Change-Id: I77546b806f2d9de9505e64335af47e99079cea3e

6 years agoMerge "Bouncer should not show over the full screen user switcher on boot." into...
TreeHugger Robot [Thu, 29 Mar 2018 18:28:12 +0000 (18:28 +0000)]
Merge "Bouncer should not show over the full screen user switcher on boot." into pi-dev

6 years agoFixed mClientState dump.
Felipe Leme [Thu, 29 Mar 2018 18:26:53 +0000 (11:26 -0700)]
Fixed mClientState dump.

Test: adb shell dumpsys autofill
Bug: 72986827

Change-Id: I1df10dde0e16c68004cc99b47f84026d3c06c5b8

6 years agoMerge "Fix letterbox insets when starting app" into pi-dev
Jorim Jaggi [Thu, 29 Mar 2018 18:21:29 +0000 (18:21 +0000)]
Merge "Fix letterbox insets when starting app" into pi-dev

6 years agoMerge "RemoteAnimations: Add failsafe" into pi-dev
Adrian Roos [Thu, 29 Mar 2018 18:10:28 +0000 (18:10 +0000)]
Merge "RemoteAnimations: Add failsafe" into pi-dev

6 years agoMerge "Improved documentation of AutofillFieldClassificationService.onGetScores(...
TreeHugger Robot [Thu, 29 Mar 2018 18:00:55 +0000 (18:00 +0000)]
Merge "Improved documentation of AutofillFieldClassificationService.onGetScores()" into pi-dev

6 years agoSurface the log write errors to StatsLog.write
Yao Chen [Thu, 29 Mar 2018 18:00:38 +0000 (11:00 -0700)]
Surface the log write errors to StatsLog.write

Test: statsd_test
Bug: 77222120
Change-Id: I1c6e41a3949ce21fbec6893da7f5f94f5aec8c36

6 years agoMerge "Add FLAG_INCREMENTAL support to LocalTransport." into pi-dev
Anton Philippov [Thu, 29 Mar 2018 17:54:52 +0000 (17:54 +0000)]
Merge "Add FLAG_INCREMENTAL support to LocalTransport." into pi-dev

6 years agoAdd in/out ColorSpace to ImageDecoder
Leon Scroggins III [Thu, 29 Mar 2018 13:48:47 +0000 (09:48 -0400)]
Add in/out ColorSpace to ImageDecoder

Bug: 76448408
Test: I851173b771668f0e6712bebfe06bfb8559801199

Add ImageInfo.getColorSpace() for retrieving the default ColorSpace.
This matches BitmapFactory.Options.outColorSpace.

Add ImageDecoder.setTargetColorSpace() for choosing a new ColorSpace.
This matches BitmapFactory.Options.inPreferredColorSpace.

Rename setSampleSize to setTargetSampleSize to match setTargetSize and
setTargetColorSpace.

Change-Id: If2f4e755dfc163f754849f896de24659198973db

6 years agoAdd a SystemApi to control display saturation.
Bryan Mawhinney [Thu, 22 Mar 2018 15:52:41 +0000 (15:52 +0000)]
Add a SystemApi to control display saturation.

Allows an app with the appropriate permission to reduce
(make more gray) the saturation of colors on the display.

Test: manual
Bug: 77189882
Change-Id: I2b7b065d07bd2ca24730b2e8c52d161c22b307ab

6 years agoMerge "Prefer default orientation for secondary displays" into pi-dev
Andrii Kulian [Thu, 29 Mar 2018 17:32:57 +0000 (17:32 +0000)]
Merge "Prefer default orientation for secondary displays" into pi-dev

6 years agoMerge "Indicate whether BandConfig initialization is required or not." into pi-dev
Tomasz Wasilczyk [Thu, 29 Mar 2018 17:27:56 +0000 (17:27 +0000)]
Merge "Indicate whether BandConfig initialization is required or not." into pi-dev

6 years agoMerge "Root (uid=0) should be core. Fix UserHandle.isCore()." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 17:17:23 +0000 (17:17 +0000)]
Merge "Root (uid=0) should be core. Fix UserHandle.isCore()." into pi-dev

6 years agoClean up codes holding mInstallLock in PackageParserCallback
Jaekyun Seok [Thu, 29 Mar 2018 15:31:57 +0000 (00:31 +0900)]
Clean up codes holding mInstallLock in PackageParserCallback

Bug: 77232370
Test: succeeded building and tested with taimen
Change-Id: Id588cffdcd63684abcb115532bed597d8ca10924

6 years agoMerge "Fix StatsCompanionService pull on bucket ends" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 17:00:25 +0000 (17:00 +0000)]
Merge "Fix StatsCompanionService pull on bucket ends" into pi-dev

6 years agoMerge "Move Path to NAR" into pi-dev
John Reck [Thu, 29 Mar 2018 16:53:41 +0000 (16:53 +0000)]
Merge "Move Path to NAR" into pi-dev

6 years agoMerge "Change alarm/ringer status QS separator." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:50:21 +0000 (16:50 +0000)]
Merge "Change alarm/ringer status QS separator." into pi-dev

6 years agoSwitch reference time to ZonedDateTime
Jan Althaus [Thu, 29 Mar 2018 15:51:57 +0000 (17:51 +0200)]
Switch reference time to ZonedDateTime

Bug: 74838195
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Change-Id: I0df9dddf415fa558435553336a8a0a15621e9b05

6 years agoMerge "Save KeyChainSnapshots to disk" into pi-dev
Robert Berry [Thu, 29 Mar 2018 16:27:42 +0000 (16:27 +0000)]
Merge "Save KeyChainSnapshots to disk" into pi-dev

6 years agoMerge "Add more hidden API uses to light greylist" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 16:22:47 +0000 (16:22 +0000)]
Merge "Add more hidden API uses to light greylist" into pi-dev

6 years agoMerge "NotificationManagerService: don't play notif in SILENT mode" into pi-dev
Jean-Michel Trivi [Thu, 29 Mar 2018 16:14:10 +0000 (16:14 +0000)]
Merge "NotificationManagerService: don't play notif in SILENT mode" into pi-dev

6 years agoAdd FLAG_INCREMENTAL support to LocalTransport.
Anton Philippov [Mon, 26 Mar 2018 18:12:08 +0000 (19:12 +0100)]
Add FLAG_INCREMENTAL support to LocalTransport.

Implement performBackup() with flags argument:

1. If FLAG_INCREMENTAL is passed and transport has no data for this
package or supports only non-incremental backups, request a non-incremental retry.
2. If FLAG_NON_INCREMENTAL is passed, but transport has data, discard
that data and continue.

Bug: 72212840
Test: GTS test in the same topic
Change-Id: I4c4a1dbfa1a807e4d4c523f42bb6a404a39731e9

6 years agoMerge "Don't print contents of user-provided bundles." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 15:36:43 +0000 (15:36 +0000)]
Merge "Don't print contents of user-provided bundles." into pi-dev

6 years agoMerge "Better public volumes handling on secondary users." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 15:15:54 +0000 (15:15 +0000)]
Merge "Better public volumes handling on secondary users." into pi-dev

6 years agoMerge "API for granting/revoking runtime permissions." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 15:14:34 +0000 (15:14 +0000)]
Merge "API for granting/revoking runtime permissions." into pi-dev

6 years agoMerge "DPM: API review for installKeyPair" into pi-dev
Eran Messeri [Thu, 29 Mar 2018 15:00:30 +0000 (15:00 +0000)]
Merge "DPM: API review for installKeyPair" into pi-dev

6 years agoMerge "Federate platform docs against AndroidX" into pi-dev
Alan Viverette [Thu, 29 Mar 2018 14:47:47 +0000 (14:47 +0000)]
Merge "Federate platform docs against AndroidX" into pi-dev

6 years agoIndicate whether BandConfig initialization is required or not.
Tomasz Wasilczyk [Tue, 27 Mar 2018 20:28:42 +0000 (13:28 -0700)]
Indicate whether BandConfig initialization is required or not.

The broadcastradio HAL 1.x requires waiting for onConfigChanged callback
to indicate the initialization is done, while HAL 2.0 does not have the
config setting (at the tuner session level) at all.

This change makes it possible to cleanly workaround race condition in the
radio app retaining support for both HAL revisions. Future versions of the
RadioManager will provide a method to open a session without taking care
about these nuances.

Bug: 74353024
Test: manual
Change-Id: I5de2d5e5c33626fcf0cfbbaf121d0b13e53d0bae

6 years agoMerge "Not allow shell to dump screen by using ui-automator if... DISALLOW_DEBUGGING_...
Tony Mak [Thu, 29 Mar 2018 14:36:55 +0000 (14:36 +0000)]
Merge "Not allow shell to dump screen by using ui-automator if... DISALLOW_DEBUGGING_FEATURES is set" into pi-dev

6 years agoFix letterbox insets when starting app
Jorim Jaggi [Wed, 28 Mar 2018 16:01:22 +0000 (18:01 +0200)]
Fix letterbox insets when starting app

Showing the letterbox with checking on HAS_DRAWN is too late. We
also need to show it in READY_TO_SHOW such that we have it
available when starting the transition.

Test: Open letterboxed app. Observe no flicker
Test: Capture winscope trace and make sure content insets when
reopening app are correct.
Bug: 76220728
Change-Id: I20ed8b1b5a90cc0a878d3eb1512e1aa1e4cd37f3

6 years agoMerge "Allow apps with dnd access to bypass DND" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 14:27:19 +0000 (14:27 +0000)]
Merge "Allow apps with dnd access to bypass DND" into pi-dev

6 years agoMerge "Add three more wifi APIs." into pi-dev
Nicolas Geoffray [Thu, 29 Mar 2018 14:23:10 +0000 (14:23 +0000)]
Merge "Add three more wifi APIs." into pi-dev

6 years agoChange alarm/ringer status QS separator.
Amin Shaikh [Thu, 29 Mar 2018 13:41:45 +0000 (09:41 -0400)]
Change alarm/ringer status QS separator.

Change-Id: Ib305e65e45a78f1db6091bb978e086c46205db5f
Fixes: 76208830
Test: visual

6 years agoSave KeyChainSnapshots to disk
Robert Berry [Thu, 29 Mar 2018 11:07:17 +0000 (12:07 +0100)]
Save KeyChainSnapshots to disk

Bug: 73921897
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: I909f2f7f289d4e2a0cdff6a3f7184747e5deeae2

6 years agoMerge "Remove unused KeyStore field in RecoverableKeyStoreManager" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:44:59 +0000 (13:44 +0000)]
Merge "Remove unused KeyStore field in RecoverableKeyStoreManager" into pi-dev

6 years agoMerge "Utilize verbose KeyChain errors" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:31:14 +0000 (13:31 +0000)]
Merge "Utilize verbose KeyChain errors" into pi-dev

6 years agoMerge "Clear app data before full restore for specified packages" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 13:23:24 +0000 (13:23 +0000)]
Merge "Clear app data before full restore for specified packages" into pi-dev

6 years agoAdd more hidden API uses to light greylist
David Brazdil [Thu, 29 Mar 2018 13:21:48 +0000 (14:21 +0100)]
Add more hidden API uses to light greylist

Bug: 76443991
Bug: 64382372
Test: make
Change-Id: I5ec60bbf9b747230ab1a5ae539d7d014b24605b0

6 years agoMerge "DO NOT MERGE Unrevert update references to backup agent timeouts" into pi-dev
Annie Meng [Thu, 29 Mar 2018 12:55:42 +0000 (12:55 +0000)]
Merge "DO NOT MERGE Unrevert update references to backup agent timeouts" into pi-dev

6 years agoMerge "Rename ImageDecoder.setResize" into pi-dev
Leon Scroggins [Thu, 29 Mar 2018 12:40:24 +0000 (12:40 +0000)]
Merge "Rename ImageDecoder.setResize" into pi-dev

6 years agoMerge "Move graphics APIs to the light grey." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 12:26:26 +0000 (12:26 +0000)]
Merge "Move graphics APIs to the light grey." into pi-dev

6 years agoAdd three more wifi APIs.
Nicolas Geoffray [Wed, 28 Mar 2018 23:00:12 +0000 (00:00 +0100)]
Add three more wifi APIs.

bug: 74066078
Test: m
Change-Id: I2c9a7499094c743de3923226bbcea3c1cd147d5f

6 years agoMerge "Exempt some notis from DND visual suppression" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 12:25:02 +0000 (12:25 +0000)]
Merge "Exempt some notis from DND visual suppression" into pi-dev

6 years agoMerge "Persist KeyChainSnapshot to XML" into pi-dev
Robert Berry [Thu, 29 Mar 2018 10:59:17 +0000 (10:59 +0000)]
Merge "Persist KeyChainSnapshot to XML" into pi-dev

6 years agoExempt some notis from DND visual suppression
Julia Reynolds [Wed, 28 Mar 2018 14:48:37 +0000 (10:48 -0400)]
Exempt some notis from DND visual suppression

Specifically, foreground service notifications
and media notifications.

Fixes: 75261156
Test: atest SystemUITests
Change-Id: I2f1fddbf748a274177d2c8dddb1b72fce82c8c4c

6 years agoRemoteAnimations: Add failsafe
Adrian Roos [Mon, 26 Mar 2018 15:34:06 +0000 (17:34 +0200)]
RemoteAnimations: Add failsafe

Adds failsafe mechanisms to RemoteAnimation and RecentsAnimation:
- cancel animations on binder death
- schedule a short timeout for RecentsAnimation after HOME and POWER events

Also enables RemoteAnimationControllerTest for presubmit, since it's turned
out to be reliable.

Change-Id: Id0bfdbee7d36f662eb386727195da8de2ed1684a
Fixes: 73496879
Test: kill / suspend launcher during animations; verify animations get aborted as expected.
Test: atest RemoteAnimationControllerTest

6 years agoMove graphics APIs to the light grey.
Nicolas Geoffray [Wed, 28 Mar 2018 22:15:54 +0000 (23:15 +0100)]
Move graphics APIs to the light grey.

The APIs have just started being removed in public APIs, and some
non-vendor apps are using them.

bug: 77224796
Test: m

Change-Id: I5c3afd18244a888ec77f14eaa6d839faf4f6d2be

6 years agoClear app data before full restore for specified packages
Artem Iglikov [Tue, 27 Mar 2018 14:12:18 +0000 (15:12 +0100)]
Clear app data before full restore for specified packages

In some cases (deferred restore) the app data needs to be cleared even
if the app has implemented backup agent. As a quick fix introduce
PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE secure setting, which
transport can fill prior to restore.

Bug: 69069240
Test: adb shell settings put secure packages_to_clear_data_before_full_restore com.google.android.apps.nexuslauncher && adb shell bmgr restore com.google.android.apps.nexuslauncher
Change-Id: I2a4651365d9cf4747f32d2ba69312f54cd03d118

6 years agoUtilize verbose KeyChain errors
Eran Messeri [Mon, 26 Mar 2018 15:43:14 +0000 (16:43 +0100)]
Utilize verbose KeyChain errors

As KeyChain reports detailed error codes about failure to generate keys
or attestation records for them, log these detailed errors and throw an
exception if the hardware does not support Device ID attestation.

Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit  cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ib12efcf48c158373e1fc28cc51d67e70282d029e

6 years agoRemove unused KeyStore field in RecoverableKeyStoreManager
Robert Berry [Thu, 29 Mar 2018 09:30:29 +0000 (10:30 +0100)]
Remove unused KeyStore field in RecoverableKeyStoreManager

Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore
Bug: 74944591

Change-Id: Ibe0167adb103beded9eb0138825f4a975f12c29e

6 years agoRemove unused KeyChainSnapshot tables
Robert Berry [Thu, 29 Mar 2018 09:09:03 +0000 (10:09 +0100)]
Remove unused KeyChainSnapshot tables

This will be persisted as an XML file instead.

Bug: 73921897
Test: none, it's just removing unused consts
Change-Id: Idaeb437d0a7258d03418932d4aba75189092b3fe

6 years agoPersist KeyChainSnapshot to XML
Robert Berry [Wed, 28 Mar 2018 19:26:57 +0000 (20:26 +0100)]
Persist KeyChainSnapshot to XML

Adds parser and serializer, and round trip test.

Bug: 73921897
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore
Change-Id: I8259ec398ee076823ac8bbf847534738514de8dc

6 years agoAdd warning comment about serialization
Robert Berry [Thu, 29 Mar 2018 09:21:50 +0000 (10:21 +0100)]
Add warning comment about serialization

As it's important we do not break serialization of KeyChainSnapshot
(as it could fail in weird and mysterious ways if we did), add
comments warning anybody editing those files to also update the
serializer and deserializer, as well as appropriate tests.

Test: none, just adding comments
Bug: 73921897
Change-Id: If73162b8fb2a0b44fd954b72c9030cd9e042282b

6 years agoDPM: API review for installKeyPair
Eran Messeri [Fri, 23 Mar 2018 13:32:17 +0000 (13:32 +0000)]
DPM: API review for installKeyPair

Per API council review, make installKeyPair take a single, integer flags
argument rather than two boolean ones.

Bug: 71818124
Test: cts-tradefed run commandAndExit cts-dev -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ia04f8d617ae0d1db028bd9bcef3a4bf486449468

6 years agoMerge "Update to lock task features API" into pi-dev
Benjamin Franz [Thu, 29 Mar 2018 09:02:17 +0000 (09:02 +0000)]
Merge "Update to lock task features API" into pi-dev

6 years agoMerge "Permission Check For DPM Get IME API" into pi-dev
Eric Sandness [Thu, 29 Mar 2018 08:25:09 +0000 (08:25 +0000)]
Merge "Permission Check For DPM Get IME API" into pi-dev

6 years agoNot allow shell to dump screen by using ui-automator if...
Tony Mak [Mon, 26 Mar 2018 19:43:06 +0000 (20:43 +0100)]
Not allow shell to dump screen by using ui-automator if...
DISALLOW_DEBUGGING_FEATURES is set

(adb unroot first)
Test: Turn on DISALLOW_DEBUGGING_FEATURES in work profile.
      Can dump personal window + Cannot dump work window by using
      adb shell uiautomator dump
Test: Turn off DISALLOW_DEBUGGING_FEATURES in work profile.
      Can dump window in both profiles
Test: atest CtsAccessibilityServiceTestCases
Test: Enable talkback, try launching a few apps and interact with them.

Fixes: 73147467

Change-Id: I044a1546f9b568b0d19714154d6e7e5ab7232d26

6 years agoFix StatsCompanionService pull on bucket ends
Chenjie Yu [Wed, 28 Mar 2018 17:07:22 +0000 (10:07 -0700)]
Fix StatsCompanionService pull on bucket ends

+ change StatsPullerManager internal time units to be consistent
+ use series of alarms for pullers, instead of use setRepeating

Bug: 76223345
Bug: 75970648
Test: cts test
Change-Id: I9e6ac0ce06541f5ceabd2a8fa444e13d40e36983

6 years agoMerge "Use commas to separate API exemptions list, not colon." into pi-dev
Mathew Inwood [Thu, 29 Mar 2018 06:50:23 +0000 (06:50 +0000)]
Merge "Use commas to separate API exemptions list, not colon." into pi-dev