Commit graph

39349 commits

Author SHA1 Message Date
Brian C. Young
58ce81349a Add UID parameter to authentication token
The keystore/keymaster changes to prevent some keys from being used
while the screen is locked require passing Android user IDs as well as
keymaster secure IDs.

Test: go/asym-write-test-plan

Bug: 67752510

Change-Id: I07bfad82775025f8cf66004e46387d1354ef6575
2018-01-25 10:33:42 -08:00
Christopher Ferris
21d7691c22 Merge "Add error propagation into Unwinder/Elf objects." am: 19ab4580be am: 83720310f0
am: d6b4de9010

Change-Id: I852d7bdf94a60c6d8d9a12b093677d0e85f33859
2018-01-25 16:42:31 +00:00
Jiyong Park
6f13a1470a Merge "libutilscallstack is private VNDK-SP" am: 4d182ff205 am: 24b2baa310
am: d6e966832e

Change-Id: Ic3af241b4c4348f1dc77d43205d18cfa9d36db7d
2018-01-25 16:41:53 +00:00
Christopher Ferris
d6b4de9010 Merge "Add error propagation into Unwinder/Elf objects." am: 19ab4580be
am: 83720310f0

Change-Id: Id0feb54110f29e7cacecfb73f54a19e868a326a5
2018-01-25 16:17:06 +00:00
Jiyong Park
d6e966832e Merge "libutilscallstack is private VNDK-SP" am: 4d182ff205
am: 24b2baa310

Change-Id: If67508edeaf09db44a1ce98d5ae40bf1f13ecada
2018-01-25 16:16:37 +00:00
Christopher Ferris
83720310f0 Merge "Add error propagation into Unwinder/Elf objects."
am: 19ab4580be

Change-Id: I05d8efab28d7098755d9eba21a0849e582ff8107
2018-01-25 15:29:20 +00:00
Jiyong Park
24b2baa310 Merge "libutilscallstack is private VNDK-SP"
am: 4d182ff205

Change-Id: If74362f1920191f011606207e12e0a05a6c144c6
2018-01-25 15:28:50 +00:00
Christopher Ferris
19ab4580be Merge "Add error propagation into Unwinder/Elf objects." 2018-01-25 15:00:32 +00:00
Treehugger Robot
4d182ff205 Merge "libutilscallstack is private VNDK-SP" 2018-01-25 07:27:49 +00:00
Jiyong Park
a32678df55 libutilscallstack is private VNDK-SP
The library isn't intented to be exposed to vendors. It is a platform
private library.

Bug: 72471487
Test: Pixel 2016/2017 boots to the UI. Photo editing works.
Change-Id: Ib0479a43d66d988c2f882688240746bed3213dad
2018-01-25 14:02:08 +09:00
Jaekyun Seok
207a211804 Merge "Support /product partition" am: 8f324542a2 am: 10e1ec7de3
am: 83ffef2cb1

Change-Id: Ia1933bbede3db2489151e5ab8ead574582b87f7a
2018-01-25 04:17:36 +00:00
Jaekyun Seok
83ffef2cb1 Merge "Support /product partition" am: 8f324542a2
am: 10e1ec7de3

Change-Id: Ia850e866ae87f0fb72ab59a7abea12e58ebc0115
2018-01-25 04:12:12 +00:00
Jaekyun Seok
10e1ec7de3 Merge "Support /product partition"
am: 8f324542a2

Change-Id: I0fa35c223fbdc64158b8c8460ace2b631f342183
2018-01-25 04:04:34 +00:00
Jaekyun Seok
8f324542a2 Merge "Support /product partition" 2018-01-25 03:53:37 +00:00
Christopher Ferris
2fcf4cf13e Add error propagation into Unwinder/Elf objects.
The backtrace offline code uses these error codes to diagnose errors.
In addtion, I've had cases where seeing these errors would help diagnose
failures.

This also allows us to add a few features to indicate why an unwind
terminated (such as max frames exceeded).

Bug: 65682279

Test: Updated unit tests pass.
Change-Id: If82b5092698e8a194016d670efff1320f9b44d50
2018-01-24 17:50:46 -08:00
Elliott Hughes
d70259274a Merge "Add a graphics owner for graphics.h." am: 3303c5d520 am: ca8ffc893b
am: a82f7a0fe5

Change-Id: I39ba58ee9d74781897bcc55cc34e624cee389b1f
2018-01-25 01:46:19 +00:00
Elliott Hughes
a82f7a0fe5 Merge "Add a graphics owner for graphics.h." am: 3303c5d520
am: ca8ffc893b

Change-Id: Iac8a7699dddd1660636be296f0741cf19714852d
2018-01-25 01:37:32 +00:00
Elliott Hughes
ca8ffc893b Merge "Add a graphics owner for graphics.h."
am: 3303c5d520

Change-Id: Ic66ab4150744a498ddff1d738e32b2c36343874d
2018-01-25 01:22:38 +00:00
Jaekyun Seok
dff165d3a2 Support /product partition
This CL will enable reading /product/build.prop and add product paths
into ld.config.txt.in.

Bug: 64195575
Test: tested with 'PRODUCT_PRODUCT_PROPERTIES := ro.product.abc=abc' on
sailfish

Change-Id: Ie996def20e25dc1afe0c74af2096af844934b2dc
2018-01-25 09:37:20 +09:00
Treehugger Robot
3303c5d520 Merge "Add a graphics owner for graphics.h." 2018-01-25 00:25:35 +00:00
Christopher Ferris
4e01261246 Merge "Small behavioral changes to the unwinder." am: 335675c2fd am: 504863e063
am: aaf882306f

Change-Id: I5f48c1fff19279d46363caf387817204e1b07f95
2018-01-25 00:17:11 +00:00
Christopher Ferris
aaf882306f Merge "Small behavioral changes to the unwinder." am: 335675c2fd
am: 504863e063

Change-Id: I11e8530a437d518b9537414a836f1d7f7405e0c2
2018-01-25 00:13:20 +00:00
Christopher Ferris
504863e063 Merge "Small behavioral changes to the unwinder."
am: 335675c2fd

Change-Id: I17b0eafc1d3204f697ad31877116819fc138d9c8
2018-01-25 00:10:28 +00:00
Christopher Ferris
335675c2fd Merge "Small behavioral changes to the unwinder." 2018-01-25 00:03:12 +00:00
Christopher Ferris
1a141a0925 Small behavioral changes to the unwinder.
- Be a little more lenient when reading the cies/fdes. If next entry data
  winds up incorrect, don't fail, simply stop processing the entries. This
  only applies when reading all of the cies/fdes at once.
- Fail to init an eh_frame with no entries and fallback to assuming the
  eh_frame has no header instead.
- Change the step to always try debug_frame first which has the most
  accurate information.
- Add small unit tests and a couple of offline unit tests to verify
  this behavior.

These changes are needed to support offline unwinding since it depends
on this new behavior.

Bug: 65682279

Test: Ran new unit tests.
Change-Id: I3529f1b0c8e14cd7409494e5de2f3c9e78d0855e
2018-01-24 13:20:03 -08:00
TreeHugger Robot
83720e6c87 Merge "Fingerprint data is now stored in one of two ways depending on the" 2018-01-24 20:24:22 +00:00
Courtney Goeltzenleuchter
a41ce24ac1 Merge "Add Dataspace and PixelFormats to support HDR" 2018-01-24 19:43:48 +00:00
Elliott Hughes
f2f049f27a Add a graphics owner for graphics.h.
Bug: N/A
Test: N/A
Change-Id: I91c07531ba8a2da0187b7411b9c11dc3191dcede
2018-01-24 11:08:54 -08:00
Daniel Colascione
6a6629ffe9 Merge "Add MCL_ONFAULT to mlockall" am: ccb9960beb am: 179c81f733
am: 1592d9b458

Change-Id: I55420b49d0902dc00b5741294c05a1320bf13325
2018-01-24 08:31:28 +00:00
Daniel Colascione
1592d9b458 Merge "Add MCL_ONFAULT to mlockall" am: ccb9960beb
am: 179c81f733

Change-Id: Iae5a52528102bd3c19c3cc9eff661130d1e35c92
2018-01-24 08:23:20 +00:00
Daniel Colascione
179c81f733 Merge "Add MCL_ONFAULT to mlockall"
am: ccb9960beb

Change-Id: Icef5d96370340e2d69b58327b26acb1562841518
2018-01-24 07:57:09 +00:00
Daniel Colascione
ccb9960beb Merge "Add MCL_ONFAULT to mlockall" 2018-01-24 06:10:17 +00:00
Christopher Ferris
ba6a6066d9 Merge "Add extra frame when dex_pc is non-zero." am: 0ad424358c am: ce7a773232
am: 7542d19389

Change-Id: Id29f4fd60d6f753ca97f9cee968bd335a23b0497
2018-01-24 03:03:17 +00:00
Christopher Ferris
7542d19389 Merge "Add extra frame when dex_pc is non-zero." am: 0ad424358c
am: ce7a773232

Change-Id: I5381f340ec250f7c12d66231b1644c17c01d02f6
2018-01-24 02:58:39 +00:00
Christopher Ferris
ce7a773232 Merge "Add extra frame when dex_pc is non-zero."
am: 0ad424358c

Change-Id: I829267e02fa1342d09923c9087e3a4f3f9d63b1d
2018-01-24 02:54:41 +00:00
Christopher Ferris
0ad424358c Merge "Add extra frame when dex_pc is non-zero." 2018-01-24 02:44:21 +00:00
Badhri Jagan Sridharan
d8edad80ad Merge "Fix selinux denials for usbd" am: 23e60de4ff am: 461316dd0e
am: 5020a73743

Change-Id: I2ee28b9ce16f66614d0a27859627e2464d1cdbed
2018-01-24 02:35:18 +00:00
Badhri Jagan Sridharan
5020a73743 Merge "Fix selinux denials for usbd" am: 23e60de4ff
am: 461316dd0e

Change-Id: I4b46b19b5484f596d8224178aa22f65c1e6507cf
2018-01-24 02:27:38 +00:00
Badhri Jagan Sridharan
461316dd0e Merge "Fix selinux denials for usbd"
am: 23e60de4ff

Change-Id: Ia081a6206bc30c98c7cce2eb8c34ea750894871c
2018-01-24 02:21:47 +00:00
Treehugger Robot
23e60de4ff Merge "Fix selinux denials for usbd" 2018-01-24 02:17:43 +00:00
Daniel Colascione
d39adf2a4a Add MCL_ONFAULT to mlockall
This way, we don't fault in the entirety of our DSOs immediately;
instead, used pages are "sticky" in memory. Works only on kernel 4.4
and up: downlevel, we ignore the mlockall failure.

Once we get statically-linked lmkd in better shape, we'll just switch
to that.

Change-Id: I07a75ee3bc1264a1db41635c2acf611fede99b91
2018-01-24 01:53:52 +00:00
Tom Cherry
ce8e23d41d Merge "Label /vendor_file_contexts as file_contexts_file" am: a0e50d0b56 am: 5759bcccbb
am: f25a11cf97

Change-Id: Ia6b21b14cdbc9b8c0e99577cb75b88bc22cdfc91
2018-01-24 01:28:29 +00:00
Tom Cherry
f25a11cf97 Merge "Label /vendor_file_contexts as file_contexts_file" am: a0e50d0b56
am: 5759bcccbb

Change-Id: I80a4265f9d252ac79e78a0bc4fb378769e26e9ef
2018-01-24 01:19:09 +00:00
Tom Cherry
5759bcccbb Merge "Label /vendor_file_contexts as file_contexts_file"
am: a0e50d0b56

Change-Id: I868f7f5e0e11e4a8926d6e2b40b042b8d81d2d3d
2018-01-24 01:14:38 +00:00
Tom Cherry
a0e50d0b56 Merge "Label /vendor_file_contexts as file_contexts_file" 2018-01-24 00:59:11 +00:00
Badhri Jagan Sridharan
d5db344807 Fix selinux denials for usbd
auditd  : type=1400 audit(0.0:9): avc: denied { dac_override } for comm="usbd" capability=1 scontext=u:r:usbd:s0 tcontext=u:r:usbd:s0 tclass=capability permissive=
auditd  : type=1400 audit(0.0:9): avc: denied { dac_override } for comm="usbd" capability=1 scontext=u:r:usbd:s0 tcontext=u:r:usbd:s0 tclass=capability permissive=0

Bug: 72397740
Test: booted the device to make sure that the denials are no longer
seen.
Change-Id: Ie276103ba261fd762fb8c24234904e3f3ce3d2f1
2018-01-24 00:24:49 +00:00
Courtney Goeltzenleuchter
e1128319c4 Add Dataspace and PixelFormats to support HDR
Bug: 63710530
Test: make
Change-Id: I40c668978972598d057e4302f27ebc65f59cf895
2018-01-23 16:15:27 -08:00
Andreas Huber
a03134ea22 Fingerprint data is now stored in one of two ways depending on the
shipping API version:

For devices shipped before Android P nothing changes, data
is stored under /data/system/users/<user-id>/fpdata/...

Devices shipped from now on will instead store
fingerprint data under /data/vendor_de/<user-id>/fpdata.

Support for /data/vendor_de and /data/vendor_ce has been added to vold.

Bug: 36997597
Change-Id: I83f87e88d1731e515b459a3d6d5bf3104afe6cfe
Test: manually
2018-01-23 14:29:40 -08:00
Christopher Ferris
0b06a590d9 Add extra frame when dex_pc is non-zero.
Use the art dex file library to read the dex data.

Add unit tests for the UnwindDexFile code.

Bug: 72070049

Test: All unit tests continue to pass.
Test: Dumped the backtrace of the 137-cfi test while running in interpreter
Test: mode and verified that the stack trace is correct. Did this on host
Test: and for arm/arm64.

Change-Id: Ia6f343318c5dd6968a954015a7d59fdf101575b0
2018-01-23 13:17:48 -08:00
Elliott Hughes
211b21bbf9 Merge "Build toolbox with _FILE_OFFSET_BITS=64." am: 98aad49d58 am: 9e2d0b33f1
am: a87503d424

Change-Id: I0720907d554369cf19cd8b1cf29a66d0e9192ac8
2018-01-23 21:10:50 +00:00