Commit Graph

12795 Commits

Author SHA1 Message Date
Peter Visontay
1cfc06a1e5 Merge "Remove the OP_REQUEST_DELETE_PACKAGES op from the list of runtime permissions." 2018-02-16 09:54:09 +00:00
Felipe Leme
5b32ebe4df Improved Autofill logging.
Test: manual verification
Bug: 73172668

Change-Id: I8c77f2a792f3195efa44f44a4c9888c355eaee3c
2018-02-15 15:04:51 -08:00
Peter Visontay
827f231aea Remove the OP_REQUEST_DELETE_PACKAGES op from the list of runtime permissions.
It was added to that list by mistake.

Bug: 63907873
Test: CtsPermissionTestCases:AppOpsTest
Test: built the platform
Change-Id: I30448bfe5a0816303c9900bd120b1db57f78bc54
2018-02-15 17:48:16 +00:00
TreeHugger Robot
4db3ca08dc Merge "Add Backup and Restore directory OWNERS" 2018-02-15 17:14:16 +00:00
Michal Karpinski
c31222f009 Add Backup and Restore directory OWNERS
Bug: 73454476
Change-Id: Id28cbf7d919e95720c51d6a14388e9fea9d84650
2018-02-15 14:50:44 +00:00
David Brazdil
66f75f9ce1 Merge "Update hidden API toast message" am: 10034d94cf am: 42ab3eeb4c
am: 0a6ca96902

Change-Id: I2cc692827716043e0f9065c9c1be932642ed5856
2018-02-15 14:40:43 +00:00
David Brazdil
0a6ca96902 Merge "Update hidden API toast message" am: 10034d94cf
am: 42ab3eeb4c

Change-Id: I6c82dc811f3118733d3afffa7ddb6d5016d4f075
2018-02-15 13:14:49 +00:00
David Brazdil
42ab3eeb4c Merge "Update hidden API toast message"
am: 10034d94cf

Change-Id: I7e5c4c5333be8d1bc5722b0924c31a8ad94be29e
2018-02-15 13:01:54 +00:00
David Brazdil
10034d94cf Merge "Update hidden API toast message" 2018-02-15 11:55:15 +00:00
David Brazdil
5234d559b4 Update hidden API toast message
Change the toast message shown by an Activity when VMRuntime reports
that the app has used a private API.
(a) fix a typo: compatiblity -> compatibility
(b) change guidance from "please consult log" to "go to <url> for
    more info" where devs can learn how to proceed if their app does
    have compatibility issues.

Bug: 64382372
Test: make, visual
Change-Id: Idbe32a724438bb7b0826d0b4e11ef505015cb321
2018-02-15 09:09:55 +00:00
TreeHugger Robot
ce3f5d00f9 Merge "Added new AM method: updatePersistableUriPermission()" 2018-02-15 06:59:31 +00:00
TreeHugger Robot
67d9a90b63 Merge "Fix javadoc to match event payload content." 2018-02-15 06:17:39 +00:00
TreeHugger Robot
f781a621cb Merge "Clear lifecycle description on recycle and improve logging." 2018-02-15 05:31:17 +00:00
Jorim Jaggi
d067decc07 Merge "Override all transitions from package start" 2018-02-15 01:34:37 +00:00
Felipe Leme
7a429721de Added new AM method: updatePersistableUriPermission()
This method will be used by the DocumentUI's ScopedDirectoryProvider
to update (grant or revoke) Scoped Directory Access permissions.

NOTE: it's currently implemented both on AM and AMS, but the latter will be
replaced by calls to takePersistableUriPermission() or
releasePersistableUriPermission().

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest

Bug: 63720392
Bug: 72055774

Change-Id: Icd7c8b7756d78fd137ba7b05ab5e35efdfcd19af
2018-02-14 16:26:22 -08:00
Bryce Lee
f52974c812 Clear lifecycle description on recycle and improve logging.
This changelist clear any custom description set on a lifecycle item
and improves the data logged. This changelist should be reverted once
the root cause has been discovered.

Bug: 71506345
Test: manual
Change-Id: I38edb292684745e6e912b3ba09fb220bf7f39149
2018-02-14 15:55:08 -08:00
Pavel Grafov
c6fe1e0430 Fix javadoc to match event payload content.
Test: only comments has changed.
Bug: 70886042

Change-Id: I3b46ea689794c61e1ac6916db95feff364a25c1b
2018-02-14 22:05:40 +00:00
Jorim Jaggi
04dc5968c0 Override all transitions from package start
When launching a notification, often the launch goes into a
service, broadcast or trampoline activity that starts another
activity, for which we loose the ability to control the animation
because we don't provide the activity options anymore.

This CL adds the ability to override all activity launches
originating from a certain package for a couple of seconds, such
that we have the ability to still control the animation from
SystemUI.

Test: go/wm-smoke
Test: Start stopwatch, press home, press notification
Test: atest PendingRemoteAnimationRegistryTest
Change-Id: I4d077c4ac4565f060e849e4b33920d2bf4a80d48
2018-02-14 13:52:45 -08:00
TreeHugger Robot
4963ce8efc Merge "Add support for url_bar sanitization on autofill compat mode." 2018-02-14 20:22:31 +00:00
Felipe Leme
185de72695 Add support for url_bar sanitization on autofill compat mode.
Browsers typically use a standard class (like EditView) to hold the URL of the
page being loaded, and the content of that view is sanitized in the initial
autofill request. So, when running in compat mode, we need a mechanism to let
services tell which view contains the URL, so we can convert its contents to
a sanitized webScheme + webDomain pair or properties.

Test: manual verification
Fixes: 72994424

Change-Id: I8be5f3533d6c31f81f28036dc51d5de10a528079
2018-02-14 09:43:21 -08:00
Wale Ogunwale
4357d119af Remove Activity#setDisablePreviewScreenshots from system API
Change-Id: Ie106fb77f4645cc0c9061f4b6f7a4546711e5cb3
Bug: 73250551
Test: N/A
2018-02-14 07:21:52 -08:00
Wale Ogunwale
427ef56c0f Merge "Deprecated onCreateThumbnail" 2018-02-14 14:28:18 +00:00
TreeHugger Robot
18869a30b6 Merge "NIAP: Log cert validation and key integrity failures." 2018-02-14 13:45:40 +00:00
Rubin Xu
7b7b3b2090 Merge "Add System API for system update clients" 2018-02-14 02:14:59 +00:00
Holly Jiuyu Sun
02d43443d0 Merge "Public EuiccManager APIs." am: 42339c464f
am: cddc0c12cc

Change-Id: I01d436c16df678292c8aec1f3ea2d7a65f3e10dd
2018-02-14 00:24:46 +00:00
Holly Jiuyu Sun
cddc0c12cc Merge "Public EuiccManager APIs."
am: 42339c464f

Change-Id: I95f1713b1a1be188e7eae62adbfc975bfca982c3
2018-02-14 00:08:35 +00:00
Holly Jiuyu Sun
052fbabc35 Public EuiccManager APIs.
Public EuiccManager and other related necessary files.
Mark EuiccCardManager and other related necessary files as @SystemApi.
Solve lint errors and warnings.

Bug: 35851809
Test: test on phone
Change-Id: I8a2c78804cae56b679d311d613edca5be4bc2522
Merged-In: I68853e134e1e31fa9b91a83af6c491a2a8cca971
2018-02-13 12:53:45 -08:00
Pavel Grafov
f8839eaaf7 NIAP: Log cert validation and key integrity failures.
Bug: 70886042
Test: manual, connect to EAP-TLS with self-signed cert.
Test: manual, create a key and damage it in /data/misc/keystore/user_0/
Change-Id: I61a8307da72bac38993f6588e9f184b360f6bf79
2018-02-13 19:22:04 +00:00
Wale Ogunwale
578b3bd59d Deprecated onCreateThumbnail
API hasn't done anything in the platform for ages and there is not plan
to make it do anything.

Change-Id: I7d433a0d45aed860659c311381bc9f356eb9f986
Fixes: 73249948
Test: builds
2018-02-13 10:59:18 -08:00
Rhiannon Malia
619e2c0d61 Merge "Adding suppressShowOverApps to TvExtender" 2018-02-13 18:14:31 +00:00
TreeHugger Robot
d71e03f0a1 Merge "Fix work profile shortcut launch" 2018-02-13 09:07:36 +00:00
TreeHugger Robot
f91f5dc809 Merge "API Review: Nullability annotation for DeviceAdminReceiver device owner user callback" 2018-02-13 04:18:32 +00:00
Rubin Xu
658d7bbf1d Add System API for system update clients
Introduces the concept of installation option and new system API for system
update clients to convert a complex SystemUpdatePolicy into a simple action
and an effective time, under any given time. This should abstract away the
current complexity in SystemUpdatePolicy and all system update clients only
need to query the current installation option and act on it, without the need
to understand or implement other logic related to the policy.

Test: gts-tradefed run gts-dev --module GtsGmscoreHostTestCases --test com.google.android.gts.devicepolicy.DeviceOwnerTest#testSystemUpdatePolicy --ignore-business-logic-failure
Test: runtest frameworks-services -c com.android.server.devicepolicy.SystemUpdatePolicyTest
Bug: 72939648
Bug: 64813061
Change-Id: I92537c7b99103a807d8adcbe2dc01b42a9740068
2018-02-13 02:40:11 +00:00
Makoto Onuki
7041c4b96b Fix work profile shortcut launch
Shortcuts let the launcher start activities on work profile, so we can't apply
the usual cross-user startActivity check.

LauncherApps already checks the calling user and the target user relationship,
so let's just skip the handleIncomingUser check.

Bug: 72659387
Test: atest CtsShortcutManagerTestCases
Test: atest ${ANDROID_BUILD_TOP}/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java

Change-Id: I3b6179af0c9d5e54ed8fd57c9c830f7a6ecec9da
2018-02-12 15:48:02 -08:00
Qingxi Li
ceb94979e3 Merge "Public EuiccManager APIs." 2018-02-12 22:09:53 +00:00
TreeHugger Robot
72fa42bee3 Merge "Fix FLAG_EXEMPT_FROM_APP_STANDBY check" 2018-02-12 21:53:48 +00:00
TreeHugger Robot
8dddeb98f5 Merge "Revert "Fix issue #72116995: Add permission guarding Service#startForeground"" 2018-02-12 19:47:35 +00:00
TreeHugger Robot
ec053e07c1 Merge "New autofill APIs to get importantForAutofill mode on ViewNodes." 2018-02-12 19:04:42 +00:00
Ian Pedowitz
0b4add68db Revert "Fix issue #72116995: Add permission guarding Service#startForeground"
This reverts commit a9da85fde4.

Reason for revert: b/73224471

Bug: 73224471
Bug: 72116995
Change-Id: I1485305f40d47fdb138cb1e484c329cf20892a6b
2018-02-12 16:12:33 +00:00
Neil Fuller
d93e8866a3 Merge "Add support for time zone notifications" 2018-02-12 15:14:49 +00:00
Alex Chau
b12e672379 API Review: Nullability annotation for DeviceAdminReceiver device owner user callback
Bug: 73088491
Test: None
Change-Id: If5c885b128d7447ad80c299b15c2a23a3b648f7d
2018-02-12 16:14:14 +08:00
TreeHugger Robot
d6d5e0cc77 Merge changes from topic "revert-assetmanager2-02-09-2018"
* changes:
  Revert "Replace AssetManager with AssetManager2 implementation"
  Revert "libandroidfw: Make sure to set the 'app as lib' flag"
  Revert "Make idiomatic use of ApkAssets and AssetManager"
  Revert "libandroidfw: Add ApplyStyle and SetConfiguration benchmark"
  Revert "libandroidfw: Improve performance of AssetManager2"
  Revert "AssetManager2: Allow out of order type/type spec"
  Revert "AssetManager2: Fix list function"
  Revert "AssetManager2: Fix issue with native cast"
2018-02-10 03:42:41 +00:00
Makoto Onuki
e491821c5f [3rd try] JobScheduler to use UID active state for job exemption
JobScheduler used to use procstate foreground state to decide whether
to exempt jobs, but it should use UID's active state instead, so that
if apps in the temp-whitelist schedule jobs, they run immediately.

Test: Boot
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java

Bug: 72125364
Change-Id: I7a5628e76121199f3a5299e2a5576e1481574a6e
2018-02-09 15:39:20 -08:00
Adam Lesinski
56c82be0d4 Revert "Make idiomatic use of ApkAssets and AssetManager"
This reverts commit 633085456e.

Bug: 73134570
Change-Id: I7c5171e752dd178dcd64497a780ba0f97d03b7a0
2018-02-09 12:43:15 -08:00
TreeHugger Robot
8fbd47056d Merge "Improve temporary logging around activity destruction." 2018-02-09 18:05:05 +00:00
Bryce Lee
a33c13df13 Improve temporary logging around activity destruction.
This changelist improves logging for capture details around
b/71506345. These modifications are intended to be reverted once
the root cause has been found.

Bug: 71506345
Test: manual
Change-Id: I1dd5eba710e81bf78632359d4ee4c047fefa5da6
2018-02-09 07:56:49 -08:00
TreeHugger Robot
27b3cad257 Merge "Fix issue #72116995: Add permission guarding Service#startForeground" 2018-02-09 07:31:46 +00:00
TreeHugger Robot
bde353c36f Merge "Turn off debug logging in statsd" 2018-02-09 03:10:20 +00:00
TreeHugger Robot
1b6f515550 Merge "Temporary fix to prevent breakage with new API." 2018-02-09 00:29:19 +00:00
TreeHugger Robot
cacd69515f Merge "Switch activity relaunch to lifecycler" 2018-02-08 23:58:15 +00:00