Commit Graph

9280 Commits

Author SHA1 Message Date
Calin Juravle
38674ecef1 Merge changes from topics "public-prof", "dexopt_dm"
* changes:
  Allow public profile compilation for primary apks
  [framework] Pass .dm files to dexopt at install time
2018-02-02 18:05:00 +00:00
Jason Monk
b715b04763 Add backup/restore for slices access
Test: various "adb shell bmgr" commands to verify behavior
Change-Id: Ic4439e0e17516462acdb8d28fe49095209a2ed6f
Fixes: 68751119
2018-02-02 10:33:19 -05:00
Calin Juravle
cc65194e8e [framework] Pass .dm files to dexopt at install time
Test: DexoptOptionsTest
      adb install foo.apk foo.dm
Bug: 30934496

Change-Id: If7e705a0efc0954a385ec3bfe7a93921c0d83351
2018-02-02 14:35:32 +00:00
Dmitry Dementyev
63e027d040 Merge "Update RecoveryController to use KeyStore grant API." 2018-02-02 05:28:29 +00:00
TreeHugger Robot
df07d10609 Merge "Fixes crash null exception on land/seascape pinned orientations" 2018-02-02 01:48:23 +00:00
Dmitry Dementyev
29b9de5b8a Update RecoveryController to use KeyStore grant API.
Missing parts:
1) Whitelist locksettingsservice to use grant API.
2) Probably have similar update for recovered keys - they will live in
system service and RecoveryAgent will use getKey() method to access
them.
3) ApplicationKeyStorageTest

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

Change-Id: I584b89e3f777bed679b2eb5173750f3f1dee3635
2018-02-01 17:41:18 -08:00
David Srbecky
51c66ea459 Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time." am: ddd440b8a2 am: 8df431a8ef
am: 2eaaf25218

Change-Id: Iffc4920eacc01df241ab770bb2805f2b6fc79dce
2018-02-01 23:15:22 +00:00
Matthew Ng
9c3bce5c44 Fixes crash null exception on land/seascape pinned orientations
Reverts the revert of ag/3546427 and fixes the regression.

Didn't add the ids to the layout in landscape and seascape that caused
the crash. Also fixed a boolean parsing issue in CommandQueue and
correcting the unpin button press when it lays the buttons after
overview proxy connects to launcher.

Change-Id: I59791f6a08e11d17dfb32ab3a2733766c8cf1036
Fixes: 72800226
Test: manual, rotate screen and pin (like in play movies)
2018-02-01 14:16:11 -08:00
TreeHugger Robot
e545db013a Merge "Revert "Uses back and home button for screen pinning when recents is invisible"" 2018-02-01 21:14:02 +00:00
Jeff Sharkey
850f29a169 Merge changes Iac97c342,I52518d52
* changes:
  Enable sendfile() and splice() optimizations.
  Use sendfile() and splice() to speed up copying.
2018-02-01 21:08:52 +00:00
TreeHugger Robot
44b261f372 Merge "Use statsd constants instead of literals" 2018-02-01 20:37:29 +00:00
David Srbecky
2eaaf25218 Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time." am: ddd440b8a2
am: 8df431a8ef

Change-Id: Ib2c08bb7bcf5d85c15db9ec16eca1ae9c7930eb6
2018-02-01 19:25:40 +00:00
Matthew Ng
9b9d0c513a Revert "Uses back and home button for screen pinning when recents is invisible"
This reverts commit c4356fb753.

Reason for revert: Regression b/72800226

Change-Id: Iaa14de444c00a9da7c3b3a6d8828f40d66a8ac29
2018-02-01 18:04:00 +00:00
Jeff Sharkey
b18f899241 Use sendfile() and splice() to speed up copying.
There are several places across the OS where Java code is simply
copying data between two points, which requires bringing that data
out into userspace before going back into the kernel.  (That's pretty
lame.)  The patches for the recent Meltdown/Spectre security issues
have made this overhead even worse, so it's finally time to move this
copying directly into the kernel.

This change adds a couple new FileUtils.copy() methods which inspect
the given streams/FDs, and attempt to do as much optimization as
possible before falling back to a slower userspace-based copy.

Benchmarks are showing typical improvements of 44% for 32KB files,
50% for 32MB files, and 35% for 32MB pipes.

Plenty of tests are included, and there's a simple kill-switch that
can be used to enable/disable the feature if it starts causing any
trouble.  (A future CL will enable the optimizations.)

Test: bit FrameworksCoreTests:android.os.FileUtilsTest
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
Bug: 71932978
Change-Id: I52518d529da5d961610998b9f61399064d8025cd
2018-01-31 21:47:22 -07:00
TreeHugger Robot
ab4332d616 Merge changes I855f5315,I9ac7e13e,I003837a9
* changes:
  WSA: More dead code.
  Restore pinned stack shadows.
  Nuke WSA#mClipRect/mHasClipRect
2018-02-01 04:03:36 +00:00
TreeHugger Robot
a5a4386a30 Merge "Uses back and home button for screen pinning when recents is invisible" 2018-02-01 02:13:11 +00:00
Bookatz
9086762d56 Use statsd constants instead of literals
Instead of writing StatsLog.write(StatsLog.NAME, 1), we replace the 1
with the appropriate StatsLog constant.

Bug: 72749863
Test: still compiles

Change-Id: I68c8206de49df7e77ee66333dd633e4b70c7b226
2018-01-31 17:02:20 -08:00
Matthew Ng
c4356fb753 Uses back and home button for screen pinning when recents is invisible
All the text and screen pinning hint shows tells the user that the back
and home button should be held to exit screen pinning. The hint also do
not have the recents button shown if it is invisible. The toast code has
been moved to recents and services calls through to post a toast message
depending if the recents button is visible.

Test: manual
Fixes: 72059911
Change-Id: I93abf5072b97760f33e7e77421544a4b3ad27beb
2018-01-31 15:06:02 -08:00
TreeHugger Robot
3a2e3b03dc Merge "Revert "Revert "Adds generic intent Instant App resolution""" 2018-01-31 22:38:48 +00:00
Patrick Baumann
577d402d0d Revert "Revert "Adds generic intent Instant App resolution""
This reverts commit 860b8ba719.

The original change that was reverted contained a bug that allowed an
http view/browsable intent used to query for browsers to be considered
as a candidate for instant apps. This was resulting in an attempt to
bind to the instant app resolver while holding a lock on mPackages.

This change ensures that PMS doesn't bind while checking for the browser
status of a package in both the instant app filtering code and by adding
the FLAG_IGNORE_EPHEMERAL to the canonical browser intent.

Reason for revert: Applying fix

Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623
Fixes: 63117034
Fixes: 71916178
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-31 14:00:18 -08:00
Robert Carr
32bcb10e33 Restore pinned stack shadows.
We use the approach of outsetting the stack bounds and then
insetting windows which don't have surfaceInsets by said outsets.

Test: Manual. go/wm-smoke
Bug: 72657549
Change-Id: I9ac7e13ec696f88f02794175d0d44ac870f91d33
2018-01-31 12:39:46 -08:00
TreeHugger Robot
466fb53324 Merge "Add fading to the pattern unlock screen." 2018-01-31 20:32:39 +00:00
Vishwath Mohan
dcc1f19417 Add fading to the pattern unlock screen.
This CL sets the user traced pattern on the unlock screen to fade as
it's drawn, reducing the chances of shoulder surfing.

Test: Build, set a pattern, and try.
Change-Id: I2ad37a10782d826d076dcf5142700d8facc2f52e
2018-01-31 10:28:09 -08:00
TreeHugger Robot
397c38d017 Merge "Revert "Adds generic intent Instant App resolution"" 2018-01-31 09:57:26 +00:00
TreeHugger Robot
b78bb44a87 Merge "Atom: Shutdown sequence event" 2018-01-31 02:05:26 +00:00
TreeHugger Robot
32697552f2 Merge "Minor optimization for CollectionUtils.mapNotNull" 2018-01-31 01:52:32 +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
David Srbecky
156ed92c94 Propagate the "dalvik.vm.minidebuginfo" property to ART run-time.
Change-Id: I27e230fe91490defde4cc38ca8cbc3aa0765fed1
2018-01-30 14:37:37 +00:00
Alison Cichowlas
087fc33b05 Merge "Revert "Security model for moving sharesheet to systemui"" 2018-01-30 00:00:10 +00:00
Chenjie Yu
00efc9c9f5 Merge "change bluetooth update to be cumulative value based" 2018-01-29 23:51:08 +00:00
Alison Cichowlas
76f0ccb5f1 Revert "Security model for moving sharesheet to systemui"
This reverts commit 88f3d4dbe1.

Bug: 72554856
Test: repro instructions in bug
2018-01-29 16:34:33 -05:00
TreeHugger Robot
84783905c0 Merge "Adds generic intent Instant App resolution" 2018-01-29 18:43:46 +00:00
Tej Singh
1ea4289b4d Atom: Shutdown sequence event
Records start and duration of shutdown, along with reason and if it was
a reboot.

Test: manually verified statsd received atom. CTS test for this will be
difficult, and I will investigate further later.

Change-Id: I0f6b595e0e251fd0a8b38127182d055885460a55
2018-01-29 10:35:51 -08:00
TreeHugger Robot
6fa646ab95 Merge "Reduce pss collection amount, improve logging." 2018-01-29 16:52:08 +00:00
Patrick Baumann
3e8bd0f3b5 Adds generic intent Instant App resolution
Bug: 63117034
Change-Id: Ie3818e913e8e1077f60434a626bc606c0b5015ab
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-29 16:19:42 +00:00
TreeHugger Robot
8036428c56 Merge "Revert "Move A11y events throttling away from View(RootImpl)"" 2018-01-27 03:45:39 +00:00
TreeHugger Robot
4470d5eadb Merge "Clean up the procstats dump enums and change component to use message." 2018-01-27 02:33:21 +00:00
Dmitry Dementyev
0f06d06125 Merge "Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot." 2018-01-27 00:37:53 +00:00
Dianne Hackborn
e17b445b6c Reduce pss collection amount, improve logging.
Tuned rates that we collect PSS, to reduce how much we do
that heavy operation.  Added a new way to determine
whether a process has changed to a state for the
"first" time -- now this is when it has gone to that
state for the first time since it was in a lower state.
This will reduce the amount of time we consider a
process to be first to only when it has previously
gone into a higher state than it had before.

Keep track of more fine-grained information about why we
collect a PSS sample (not just internal, but for a single
process, all processes because of a mem state change, all
processes because of a poll).

Started collecting RSS in various places, so we can start
looking at that w.r.t. PSS and see about transitioning to
it is a new primary metric.

Added logging for many of the places where the system
writes its configuration files, so we can more easily
see any bad behavior going on in those areas.

Added some currently disabled code to read smaps directly
instead of using fgets().  Probably won't help, but want
tot test.

Bug: 70859548
Test: atest CtsAppTestCases
Change-Id: I400dba0f3ae9c024df51c946cfa592561028b598
2018-01-26 15:15:04 -08:00
Dmitry Dementyev
b4fb987770 Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot.
Bug: 72299798
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I1a530414d255867786142fa2e01e50469379e295
2018-01-26 11:55:50 -08:00
Eugene Susla
72c510f1c4 Revert "Move A11y events throttling away from View(RootImpl)"
This reverts commit e4d31b3c10.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -08:00
Ben Gruver
fbf5892f15 Merge "Implement UI for warn-on-launch" 2018-01-26 18:44:11 +00:00
TreeHugger Robot
b0db811fe9 Merge "Statsd and frameworks reference proto enums" 2018-01-26 05:02:35 +00:00
Yi Jin
676d1ace1c Clean up the procstats dump enums and change component to use message.
Bug: 72415114
Test: manually flashed and run: dumpsys procstats --proto
Change-Id: Iea47fa41c04c3c6e8335e040086a0b5d65c22aaf
2018-01-25 17:56:06 -08:00
TreeHugger Robot
ce6b2d6bb9 Merge changes from topic "product_partition"
* changes:
  Read media files from /product/media/audio
  Support /product partition
2018-01-26 01:10:16 +00:00
Bookatz
1a1b0464cb Statsd and frameworks reference proto enums
For frameworks constants that don't have intrinsic meaning (i.e. their actual
value and order don't matter), so that it is unlikely that their values
will be changed:
This cl introduces proto enums representing some constants found in
the Android codebase, and connects the two.

By using the Proto enum as the source-of-truth, it means that Java and
proto can be kept in sync. Otherwise, when the Java frameworks code
changes, it silently breaks the protos from working properly, since the enums
are wrong. By having the Java code reference the proto enums, it ensures
that everything is in sync. The values of the constants are unchanged.
But future changes to these constants will need to be done in the proto
file, which the Java file merely references.

The protos are necessary for incidentd and statsd and, in the future,
possibly dumpsys. In this way, the logging mechanism is much less likely
to get broken when new constants are added, and we can be ensured that
the logging accurately reflects the underlying codebase.

Bug: 69478930
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases
Change-Id: If79032c34b2799db1e3e70cb47b1312fd72092b9
2018-01-25 15:47:57 -08:00
Calin Juravle
2b6e24c7e5 Merge "[framework] Extend profile operations to take the profile name" 2018-01-25 18:58:09 +00:00
Igor Viarheichyk
2e7de8ce68 Merge "Fix translations detection for BCP 47 locales." 2018-01-25 18:47:12 +00:00
TreeHugger Robot
0ad372a7e4 Merge "Fix context menu position for RTL" 2018-01-25 17:18:23 +00:00
TreeHugger Robot
3bcddc94ac Merge "Chained attribution for GnssLocationProvider." 2018-01-25 17:14:11 +00:00