Commit Graph

62073 Commits

Author SHA1 Message Date
TreeHugger Robot
9a1f5baa3e Merge "Skip extra <pastSigs /> tags." 2018-01-31 16:02:27 +00:00
TreeHugger Robot
dd020f6fb9 Merge "Add key rotation." 2018-01-31 15:55:10 +00:00
Ricky Wai
3603722f6b Merge "Add Network Watchlist adb test commands" 2018-01-31 15:54:22 +00:00
TreeHugger Robot
27e35bf646 Merge "AM: Clear keyguardGoingAway after it has gone away" 2018-01-31 15:39:50 +00:00
Amith Yamasani
b97eb6b817 Merge "Delay coming out of doze until keyguard dismissed" 2018-01-31 15:20:30 +00:00
Ricky Wai
fbd4b1a6cb Merge "Report all watchlist events before last midnight" 2018-01-31 14:06:31 +00:00
Amith Yamasani
396a10c5b0 Delay coming out of doze until keyguard dismissed
v2 (earlier attempt was reverted due to deadlock)

Don't come out of doze when screen is on, but
wait until the keyguard is dismissed as well.
Pass along the keyguard dismissed to DeviceIdle

Request exitIdle when notifications are clicked.

Bug: 63527576
Test: Manual:
       Turn off screen
       adb shell dumpsys battery unplug
       adb shell dumpsys deviceidle step x4
       Turn on screen, verify still in doze
       Unlock, verify out of doze

Change-Id: Ic5129611d4f098723b31d62a27db8f50860697d4
2018-01-31 12:05:46 +00:00
Adrian Roos
6c91900da5 AM: Clear keyguardGoingAway after it has gone away
Fixes an issue where the keyguard going away flag was not cleared
until the keyguard showed again, which prevented SystemUI from ever
controlling the orientation while it is not showing the keyguard,
such as during unlocked AOD.

Change-Id: I40d4052321fe76c988d673a5ecbc07b74192bec6
Fixes: 69368568
Test: Set up secure keyguard, Turn off "power button locks", open a landscape app, press power button, verify AOD shows in portrait.
2018-01-31 13:02:16 +01:00
TreeHugger Robot
f85d9162f9 Merge "Annotation for package in FrameworkRobolectricTestRunner" 2018-01-31 11:39:25 +00:00
TreeHugger Robot
397c38d017 Merge "Revert "Adds generic intent Instant App resolution"" 2018-01-31 09:57:26 +00:00
TreeHugger Robot
4b4539b6b0 Merge "Revert "Removes EphemrealResolverService and related"" 2018-01-31 09:57:17 +00:00
TreeHugger Robot
7c691c606c Merge "Throttling alarms for a package per its standby bucket" 2018-01-31 07:20:01 +00:00
TreeHugger Robot
8420d5e596 Merge "Introduce a TextClassifierManagerService." 2018-01-31 05:26:27 +00:00
Eric Laurent
f0ca5890ec Merge "AudioService: clear binder identity before calling AudioSystem" 2018-01-31 03:19:49 +00:00
TreeHugger Robot
8fe62bea0b Merge "New autofill APIs: DateTransformation and DateValueSanitizer." 2018-01-31 03:02:41 +00:00
Patrick Baumann
1e0c91968e Revert "Removes EphemrealResolverService and related"
This reverts commit 5564f880db.

Reason for revert: Resolve merge conflict for another revert (ag/3537193)
Bug: 72710855
Change-Id: Id7c3a3993a45c588ee4668d7486d67d764541b1e
2018-01-31 03:00:26 +00:00
Sudheer Shanka
a64df69b38 Merge "Update the logic for getting metered data disabled pkgs in DPMS." 2018-01-31 02:08:17 +00:00
TreeHugger Robot
3a247b19dd Merge "Removes EphemrealResolverService and related" 2018-01-31 02:05:32 +00:00
TreeHugger Robot
b78bb44a87 Merge "Atom: Shutdown sequence event" 2018-01-31 02:05:26 +00:00
Dmitry Dementyev
b43b7c0152 Merge "Add PersistentKeyChainSnapshot serialization/deserialization methods." 2018-01-31 01:59:41 +00:00
Chavi Weingarten
fbcdae0694 Merge "Use self's pendingTransaction object when setting position." 2018-01-31 01:57:55 +00:00
TreeHugger Robot
e7a47ab038 Merge "Fix regression: skip verification for apks in /system" 2018-01-31 01:43:31 +00:00
Patrick Baumann
860b8ba719 Revert "Adds generic intent Instant App resolution"
This reverts commit 3e8bd0f3b5.

Reason for revert: b/72710855

Change-Id: I1378ccb5c5c16256e472e1ff7c3ad2460e091300
Fixes: 72710855
2018-01-31 01:35:13 +00:00
Suprabh Shukla
75edab1e74 Throttling alarms for a package per its standby bucket
Packages can now get to run alarms only if a certain amount of time has
elapsed since they last go to do so. The time interval is decided based
on the current app standby bucket the package is in. So, frequently used
apps get to run alarms more frequently than the rarely used ones

Test: atest CtsAlarmManagerTestCases
or
atest CtsAlarmManagerTestCases:AppStandbyTests

Bug: 72660630
Change-Id: Ib89c81e8166eab4c985152e01178da61f8a880f7
2018-01-30 17:33:34 -08:00
Dan Cashman
1dbe6d0284 Add key rotation.
Change certificate checks to also consider the possibility of
signing certificate rotation by checking the
SigningDetails#pastSigningCertificates field.  In particular, add a
SigningDetails#checkCapability method which reports whether or not
the older SigningDetails is an ancestor of the current one, and
queries whether or not the old one has been granted capabilities,
such as being a sharedUser.

Bug: 64686581
Test: Builds, boots, browser and camera work, all with v3 signing.

Change-Id: I4199ff3f2d9ae959325b117b28e666ae31889800
2018-01-30 16:59:31 -08:00
TreeHugger Robot
5b44673751 Merge "New Autofill APIs for UserData id." 2018-01-31 00:45:33 +00:00
Jeffrey Vander Stoep
6cade96ac5 Merge "Revert "pm: Apps with shared UID must also share selinux domain"" 2018-01-31 00:04:31 +00:00
Sudheer Shanka
3bf7fd2d39 Update the logic for getting metered data disabled pkgs in DPMS.
Bug: 63700027
Test: atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetMeteredDataDisabled
Test: atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetMeteredDataDisabled
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I207f7d43d3aade7e91ae98f32e9b775b16b2153e
2018-01-30 15:46:24 -08:00
TreeHugger Robot
9ff79aea5e Merge "Hook up the full slice access checkbox" 2018-01-30 23:33:54 +00:00
Alex Chau
87ea3c3de3 Merge "API Review: Return status code for user management APIs" 2018-01-30 23:30:52 +00:00
Jeffrey Vander Stoep
244ef2b030 Revert "pm: Apps with shared UID must also share selinux domain"
This reverts commit 60747d2823.

Reason for revert: b/72708181
Bug: 72708181

Change-Id: I694f12d769d9ba60201ecb68d3c3b8090fed6593
2018-01-30 23:26:17 +00:00
Dmitry Dementyev
24e9be8bc7 Add PersistentKeyChainSnapshot serialization/deserialization methods.
Unlike Parcelables, Byte array produced by the class can be safely stored in the database.

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

Change-Id: I826a0cc4d7dc33ff1a062374a4fc8471db8e2f34
2018-01-30 14:59:57 -08:00
Patrick Baumann
5564f880db Removes EphemrealResolverService and related
This change removes deprecated classes and constants that were not
renamed from ephemeral to instant prior to O. There were no
consumers of these APIs as correctly named alternatives existed and were
referenced in docs. No known consumers of these APIs exist on user
builds.

Fixes: 38137176
Fixes: 38121489
Test: manual; builds and instant apps launch
Change-Id: I982f8a6edc5668dd42cea65e52a1433ec8d6f8ef
2018-01-30 22:48:03 +00:00
chaviw
2f0567b00d Use self's pendingTransaction object when setting position.
When iterating through each child to set its updated position,
the transaction object was passed to the children. This could allow
multiple transactions to update the same property on the same child.
If that occurs, then the merge does not guarantee the same order.
This could cause earlier transactions to overwrite later ones. Instead,
have each WC update its own transaction object.

Change-Id: Ie1bb758e4efd74fa012c7ec945d9c1c586162df4
Fixes: 72198558
Fixes: 72463091
Test: Issues from bugs no longer occur.
Test: go/wm-smoke-auto
2018-01-30 14:04:07 -08:00
TreeHugger Robot
72482d91b2 Merge "Updating the text classifier model path" 2018-01-30 21:50:35 +00:00
Makoto Onuki
0845599540 Merge "Tron counters for battery saving stats." 2018-01-30 21:19:29 +00:00
Victor Hsieh
dd963c6365 Fix regression: skip verification for apks in /system
This is a regression caused by I33531a3f6148232b777ea8bfd02f13700649e317

Test: SystemServerTiming_StartPackageManagerService_avg: 789.5 -> 577.5
Bug: 30972906
Bug: 72572541
Change-Id: I6eafc317f3864bf15ac7653bc526e634148d8b00
2018-01-30 13:17:14 -08:00
Jeffrey Vander Stoep
250fd72343 Merge "pm: Apps with shared UID must also share selinux domain" 2018-01-30 20:12:32 +00:00
Jason Monk
ddb8a96fe6 Hook up the full slice access checkbox
Store the apps that have this access in xml

Test: uiservicestests
Bug: 68751119
Change-Id: I06a6eab17dbda1a5849fb553b4f27df1c1796403
2018-01-30 15:04:20 -05:00
TreeHugger Robot
7f8fddc310 Merge "Fix slice listener permissions" 2018-01-30 19:19:27 +00:00
Jeff Vander Stoep
60747d2823 pm: Apps with shared UID must also share selinux domain
There are two existing cases where apps that share a sharedUserId
potentially end up in separate SELinux domains.

1. An app installed in /system/priv-app runs in the priv_app domain.
   An app installed on the /data partition which shares a
   sharedUserId with that priv_app would run in the untrusted_app
   domain (e.g. GTS b/72235911). This issue has existed since
   Android N.
2. The untrusted_app domain may now deprecate permissions based on
   targetSdkVersion, so apps with sharedUserId may have different
   permissions based on which targetSdkVersion they use. This issue
   has existed since Android O, but is particularly problematic for
   feature "Deprecate world accessible app data" which puts every app
   targeting P+ into its own selinux domain.

This change fixes #1 and adds a temporary workaround to prevent #2.

Test: cts-tradefed run cts -m CtsSelinuxTargetSdkCurrentTestCases
Test: cts-tradefed run cts -m CtsSelinuxTargetSdk27TestCases
Test: cts-tradefed run cts -m CtsSelinuxTargetSdk25TestCases
Bug: 72290969
Change-Id: I211de05ad6f10b69e3e082cfe977f2dd43d90549
2018-01-30 09:59:31 -08:00
Bernardo Rufino
03b767733c Annotation for package in FrameworkRobolectricTestRunner
Makes it easier to maintain the tests.

Test: m -j RunFrameworksServicesRoboTests
Change-Id: I798b7c980b4e3426baa6a205d4ca16f82b42109d
2018-01-30 17:52:08 +00:00
Alex Chau
596c2880b3 API Review: Return status code for user management APIs
- Replaced boolean return value with error code

Bug: 71866621
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StartInBackground
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StartInBackground_MaxRunningUsers
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_CannotStopCurrentUser
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StopUser
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotStartManagedProfileInBackground
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotStopManagedProfile
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotLogoutManagedProfile
Change-Id: Iddc3e33c91c3f9584d53e537dbab3f61b8772fb1
2018-01-30 17:34:07 +00:00
Jorim Jaggi
a14bbf5517 Merge "Fix mNoAnimActivities" 2018-01-30 17:21:34 +00:00
Jan Althaus
67d234d726 Updating the text classifier model path
The lib2 implementation of libtextclassifier is incompatible with models
for lib1. To avoid trying to load a lib1 model and failing (which happens
when devices are upgraded from O to P), we need a new update model path.
Using this opportunity to remove smartselection from the filename, which
isn't appropriate any more given what the model is used for.

Test: Ran core framework tests
Change-Id: I79a80d10d920019f5091fe9884f370149d39fe88
2018-01-30 16:57:19 +01:00
TreeHugger Robot
3db0771df1 Merge "Revert "Delay coming out of doze until keyguard dismissed"" 2018-01-30 15:45:09 +00:00
Jorim Jaggi
05bf37612c Merge "Revert "Add "Unlocked device required" parameter to keys"" 2018-01-30 15:36:28 +00:00
Ricky Wai
4e0b244341 Report all watchlist events before last midnight
Also, remove all watchlist events before last midnight when we want to clear db

Bug: 63908748
Test: Visit watchlist site, then set date to tomorrow and reboot
will see records in db is removed and watchlist report has this record

Change-Id: I9543441a49c3ad3a0bf79ad9a9ec231ff10c0748
2018-01-30 15:36:14 +00:00
Brian Young
3a28570b28 Revert "Add "Unlocked device required" parameter to keys"
This reverts commit 55fff3a89d.

Reason for revert: Build breakages on elfin, gce_x86_phone.

Bug: 67752510

Bug: 72679761
Change-Id: Ia495e9cb158b64fcf015e37b170554a7ed6810a7
2018-01-30 15:31:42 +00:00
Jorim Jaggi
fa9ed96f1e Fix mNoAnimActivities
Since we split tasks into separate stacks, mNoAnimActivites from
other tasks/stacks were pretty much never cleared, leading to
skipped animations in the following cases:
- Enter/exit multi-window, relaunch anything, animation was
always skipped.
- Reopen PIP activity from notification shade

Now, we make this a global list which we immediately clear
after using it.

Test: go/wm-smoke
Test: Enter/exit multi-window, relaunch
Bug: 64674361
Change-Id: Ic36d278b263d6b3c6a7ec7416c8b94c4eed8e440
2018-01-30 16:20:38 +01:00