Commit Graph

12774 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
40279e5407 Merge changes I6993325b,Icb5114fe
* changes:
  Frameworks: Annotate trivial @GuardedBy in services/core
  Frameworks: Annotate trivial @GuardedBy in core/java
2018-02-08 23:32:03 +00:00
TreeHugger Robot
fcd3c57e19 Merge "Don't attempt to preload fonts in isolated processes." 2018-02-08 22:51:25 +00:00
David Chen
eac4e64bc4 Temporary fix to prevent breakage with new API.
Adds back in the old method signature. This temporary method can
be deleted in a week or so, after all callers have been migrated to
the new API.

Test: Test that make finishes.
Bug: 72562867
Change-Id: I608fcab0ac5508a482fc8d1e63490d3cfc1fedb1
2018-02-08 14:19:22 -08:00
TreeHugger Robot
f9420f4ddd Merge "Track notification clicked events in UsageStats" 2018-02-08 22:16:09 +00:00
Tej Singh
484524a246 Turn off debug logging in statsd
Sets DEBUG to false everywhere and replaces all ALOGD with VLOG so they
do not print with DEBUG false. Leaves all ALOGI, ALOGW and ALOGE as is.

Test: ran all CTS tests and checked "adb logcat -s statsd" to make sure
it wasn't spammy

Change-Id: Iaa8eb3a0a63723ffe40f94f2815f94df877fd432
2018-02-08 13:11:29 -08:00
Holly Jiuyu Sun
4f73b9c09a 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: I68853e134e1e31fa9b91a83af6c491a2a8cca971
2018-02-08 11:12:30 -08:00
Makoto Onuki
2b5811af2c Fix FLAG_EXEMPT_FROM_APP_STANDBY check
It was checking with the time constraint, but the sync manager
uses FLAG_EXEMPT_FROM_APP_STANDBY for back-off syncs too, so
it was actually valid.

Instead let's just make sure periodic syncs don't have it.

Bug: 73119752
Test: atest CtsJobSchedulerTestCases
Change-Id: Ib87680fcef0707440a186848db076c4524a632af
2018-02-08 11:09:42 -08:00
TreeHugger Robot
9ea3c99a95 Merge "Statsd notifies listener with pendingintent." 2018-02-08 18:50:00 +00:00
Jiuyu Sun
b6276fe5a3 Merge "Revert "Public EuiccManager APIs."" 2018-02-08 17:34:30 +00:00
Pavel Grafov
c9b9e10e73 Merge "Run and log BoringSSL self-test for NIAP compliance." 2018-02-08 17:22:12 +00:00
Amith Yamasani
7ec8941167 Track notification clicked events in UsageStats
Expose some of the new events as SystemApi.

Make some of the timeouts configurable in AppStandbyController.

Make NOTIFICATION_SEEN event upgrade app to WORKING_SET for
12 hours. This is not perfect though and will require further
tweaking as it may result in the app becoming elevated higher
for much longer than necessary.

Change-Id: I62401cfabddf51b6f80b9bba8a358285b8cf9a51
Fixes: 72741441
Fixes: 72067231
Fixes: 72537465
Fixes: 72536347
Test: atest CtsUsageStatsTestCases:UsageStatsTests
2018-02-08 09:09:31 -08:00
Selim Cinek
df155c750b Merge "Removed the ripple for actions with remote inputs" 2018-02-08 16:59:54 +00:00
Jiuyu Sun
d3bb4aed78 Revert "Public EuiccManager APIs."
This reverts commit af6a5fffdc.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id3296a91e5c3ad624a6a03f6532b859524a518bf
2018-02-08 16:38:26 +00:00
Andreas Gampe
3f24e69dbe Frameworks: Annotate trivial @GuardedBy in core/java
Add @GuardedBy for simple functions that require a single lock
and are named XYZLocked.

Bug: 73000847
Test: m
Test: m javac-check-framework RUN_ERROR_PRONE=true
Change-Id: Icb5114fea2ff2385e1cc7511121026099e05c0ee
2018-02-08 02:19:42 -08:00
felipeal
53308c1423 New autofill APIs to get importantForAutofill mode on ViewNodes.
Test: atest CtsAutoFillServiceTestCases:FatActivityTest

Fixes: 72834587

Change-Id: Ia30da4ba53175a5cc4da6837c60d379c8eda05a8
2018-02-08 10:50:15 +01:00
Andrii Kulian
b372da6ef8 Switch activity relaunch to lifecycler
This is needed to be able to relaunch an activity and eventually
bring it to stopped state while it is not visible. Before this
relaunch request put activity in resumed state in the end. With
lifecycler both relaunch and request to move to stopped state can
be done in a single transaction to client.

Also fixed extra relaunch request to activity which was sent
before it was even started. It happened because we were waiting
for another activity to pause before actually scheduling the
launch, and in activity-paused callback we were ensuring config
first. This led to configuration update for not-yet launched
activity and relaunch message was sent first.

Bug: 64610483
Test: android.app.servertransaction tests
Change-Id: Ib89c20cd0fdff209319d4819023c3cdd641a72c7
2018-02-08 00:05:09 -08:00
Makoto Onuki
baae493184 Merge "Revert "Retry: JobScheduler to use UID active state for job exemption"" 2018-02-08 02:31:18 +00:00
Makoto Onuki
2f0b0310ee Revert "Retry: JobScheduler to use UID active state for job exemption"
This reverts commit 3f7be62d31.

Reason for revert: I failed to unrevert it.

Change-Id: I086634236e140d3fe2f46dfff605fde548ab34f4
2018-02-08 02:30:56 +00:00
David Chen
661f791a25 Statsd notifies listener with pendingintent.
Previously, statsd would inform interested listeners that it's time
to collect data via a protected broadcast. However, the preferred
solution is to pass a PendingIntent via a separate setter. Whenever
statsd wants the listener to call getData, StatsCompanionService
will trigger the pending intent.

Test: Tested in marlin-eng that functionality works as expected with
dogfood app.
Bug: 72562867
Change-Id: Ibcfcd5072a1a78947f8a7cbcd0bc429b54351da3
2018-02-07 16:16:23 -08:00
Jiuyu Sun
7fdd2bf7c1 Merge "Public EuiccManager APIs." 2018-02-07 23:55:28 +00:00
Makoto Onuki
b16f567576 Merge "Retry: JobScheduler to use UID active state for job exemption" 2018-02-07 23:23:37 +00:00