Commit graph

31196 commits

Author SHA1 Message Date
Adam Lesinski
e80f0cc5fb Merge "libziparchive: Add ability to backup in ZipWriter" am: 0e19795a62 am: a41597ba0e
am: 797852c435

Change-Id: I10f76ce5bec477f1e27ef7456e20cdedd9e3833f
2017-03-23 18:15:01 +00:00
Adam Lesinski
797852c435 Merge "libziparchive: Add ability to backup in ZipWriter" am: 0e19795a62
am: a41597ba0e

Change-Id: Iaab0c1908c7a936462ade0157de9e21434dbbce3
2017-03-23 18:09:55 +00:00
Adam Lesinski
a41597ba0e Merge "libziparchive: Add ability to backup in ZipWriter"
am: 0e19795a62

Change-Id: Id15ab4bf8bd40640d2a301f0464230b620e8b603
2017-03-23 18:07:27 +00:00
Treehugger Robot
0e19795a62 Merge "libziparchive: Add ability to backup in ZipWriter" 2017-03-23 17:59:47 +00:00
Fernando Lugo
9e0c682e61 Merge changes I0ad349f2,I0f528cf1 am: 27a091d4a1 am: 69482cc127
am: 89573b397d

Change-Id: Id087881d88f87e2b31a77aab6f818118c04c25c6
2017-03-23 17:01:12 +00:00
Fernando Lugo
89573b397d Merge changes I0ad349f2,I0f528cf1 am: 27a091d4a1
am: 69482cc127

Change-Id: I4871700c01aa89068992ccb04dd6cdfc152434ee
2017-03-23 16:59:13 +00:00
Fernando Lugo
69482cc127 Merge changes I0ad349f2,I0f528cf1
am: 27a091d4a1

Change-Id: Ifac25d45d429da636dbcac608b865163effffc93
2017-03-23 16:55:45 +00:00
Fernando Lugo
27a091d4a1 Merge changes I0ad349f2,I0f528cf1
* changes:
  fs_mgr: allow using legacy A/B suffix
  fs_mgr: adapt to new A/B support
2017-03-23 16:52:51 +00:00
Christopher Ferris
8b06f82bd9 Merge "Initialize si_code in siginfo." am: 446538b5ad am: ab481277f1
am: 393fcff01a

Change-Id: I9346bcad28f3d6b0eb80598863d64114b4997ff5
2017-03-23 16:50:43 +00:00
Christopher Ferris
393fcff01a Merge "Initialize si_code in siginfo." am: 446538b5ad
am: ab481277f1

Change-Id: I9abcd50a260a30d17ff59d50bd2820a71dc225f6
2017-03-23 16:48:11 +00:00
Christopher Ferris
ab481277f1 Merge "Initialize si_code in siginfo."
am: 446538b5ad

Change-Id: I0b51f6d4351f0f918ac4f78ba24400271505b74e
2017-03-23 16:45:42 +00:00
Christopher Ferris
446538b5ad Merge "Initialize si_code in siginfo." 2017-03-23 16:38:11 +00:00
Narayan Kamath
80855f5081 Merge "logwrapper: add a benchmark for android_fork_execvp_ext" am: 1620c51f75 am: 99e39e845b
am: 28cce76d43

Change-Id: I1fa6b24eb1f8d8f5e2e1ee299a3fd9d1328b6fd0
2017-03-23 12:04:58 +00:00
Narayan Kamath
28cce76d43 Merge "logwrapper: add a benchmark for android_fork_execvp_ext" am: 1620c51f75
am: 99e39e845b

Change-Id: Ic2a9d12086dadcb38666f285d757b4559fe31148
2017-03-23 12:02:26 +00:00
Narayan Kamath
99e39e845b Merge "logwrapper: add a benchmark for android_fork_execvp_ext"
am: 1620c51f75

Change-Id: Ib0e80fda748782f52deedcdf699304a268002096
2017-03-23 11:59:56 +00:00
Treehugger Robot
1620c51f75 Merge "logwrapper: add a benchmark for android_fork_execvp_ext" 2017-03-23 11:56:10 +00:00
Narayan Kamath
f4605c2156 Merge "Logwrapper: Remove unused support for input / output processing." am: fa339a4f5c am: 1e7180f598
am: 412f0ac41b

Change-Id: I3bbd3d6694863d8b51626e56cd7950029b36a5f9
2017-03-23 10:12:20 +00:00
Narayan Kamath
412f0ac41b Merge "Logwrapper: Remove unused support for input / output processing." am: fa339a4f5c
am: 1e7180f598

Change-Id: I7e7969727b5ddf00b1a32552a911b2383cda2953
2017-03-23 10:09:49 +00:00
Narayan Kamath
1e7180f598 Merge "Logwrapper: Remove unused support for input / output processing."
am: fa339a4f5c

Change-Id: I118a761301df851ae21618a5097904ba84d654a1
2017-03-23 10:07:20 +00:00
Narayan Kamath
fa339a4f5c Merge "Logwrapper: Remove unused support for input / output processing." 2017-03-23 10:04:26 +00:00
Narayan Kamath
f704193384 logwrapper: add a benchmark for android_fork_execvp_ext
Current results on an aosp_angler (32 bit) :

Benchmark                           Time           CPU Iterations
-----------------------------------------------------------------
BM_android_fork_execvp_ext   15019207 ns    1002131 ns        700

Test: android_fork_execvp_ext_benchmark

Change-Id: I3d4339ff5cbb9a641cbb14f0b55d2b5fc18cdfde
2017-03-23 10:02:21 +00:00
Steven Moreland
2b9a3391d0 Merge "Start hwservicemanager earlier." am: fcd509298d am: 0a85db775e
am: 6c546660d9

Change-Id: Ifd4e04fef289f8ece3884434efa1a3c6d47890fa
2017-03-23 03:53:01 +00:00
Steven Moreland
6c546660d9 Merge "Start hwservicemanager earlier." am: fcd509298d
am: 0a85db775e

Change-Id: I244eae87c9545432d4fc93ccb6dab77b1a564448
2017-03-23 03:49:30 +00:00
Steven Moreland
0a85db775e Merge "Start hwservicemanager earlier."
am: fcd509298d

Change-Id: I3abfc8e790b57f97503e507702aa184ae9fe0dca
2017-03-23 03:47:01 +00:00
Treehugger Robot
fcd509298d Merge "Start hwservicemanager earlier." 2017-03-23 03:39:40 +00:00
TreeHugger Robot
2afb680967 Merge "Add FuseMessage::WriteWithBody function" 2017-03-23 02:48:20 +00:00
Fernando Lugo
ce9d7db979 fs_mgr: allow using legacy A/B suffix
Right now all platforms supporting A/B have not fixed
androidboot.slot_suffix kernel command line parameter. To avoid breaking
all those platform allow using legacy support bootloaders get fixed.

Bug: 36533366
Test: boot
Change-Id: I0ad349f262d0b7f4897f3e184cb053b1440b2d5b
Signed-off-by: Fernando Lugo <flugo@google.com>
2017-03-22 19:22:25 -07:00
Fernando Lugo
d1dcedd3fb fs_mgr: adapt to new A/B support
In the new A/B partition support suffixes don't have "_". So, fix fs_mgr
code that assumes it has "_"

Bug: 36533366
Test: boot
Change-Id: I0f528cf1e8fecacb1b4ae34f6dc42e18ebe777bb
Signed-off-by: Fernando Lugo <flugo@google.com>
2017-03-22 19:21:56 -07:00
Christopher Ferris
496f95f821 Merge "Do not access device maps." am: a06e1c9eef am: cc99ba7ff5
am: 69549a561b

Change-Id: I470d78666c959cfaec33f26b6931ba2ea6c0d6c0
2017-03-23 01:18:38 +00:00
Adam Lesinski
f04daccae9 Merge "healthd: Implement scheduleUpdate" am: 6edabc75ab am: c0405200b8
am: 50094d9865

Change-Id: I75976e5d4d4a38fb0fcb9e0cb5bf33a5786b146d
2017-03-23 01:12:17 +00:00
Christopher Ferris
69549a561b Merge "Do not access device maps." am: a06e1c9eef
am: cc99ba7ff5

Change-Id: I5d4e9d0fa886cacf665840afb6abc9b51cd995b2
2017-03-23 01:09:54 +00:00
Christopher Ferris
9642232f13 Initialize si_code in siginfo.
There was at least one failure due to si_code being unitialized
and then examined.

Test: Run the 32 bit and 64 bit version of the unit tests on angler.
Change-Id: I5455a2cd29afafcd26a49f696e61141bb48478dc
2017-03-22 18:06:57 -07:00
Daichi Hirono
0bb22bd50e Add FuseMessage::WriteWithBody function
The funciton is going to be used to write FUSE header with external
body.

Bug: 35229514
Test: libappfuse_tests
Change-Id: I303022b555deca960b8e08f26140a5ef10133efe
2017-03-23 01:04:15 +00:00
Adam Lesinski
50094d9865 Merge "healthd: Implement scheduleUpdate" am: 6edabc75ab
am: c0405200b8

Change-Id: I46ebe99dfe4c0188cfae63db845c86efe1ec3bf3
2017-03-23 01:03:16 +00:00
Christopher Ferris
cc99ba7ff5 Merge "Do not access device maps."
am: a06e1c9eef

Change-Id: Id30b71a301953d8450bd66552a020437c5e91b94
2017-03-23 00:53:18 +00:00
Adam Lesinski
c0405200b8 Merge "healthd: Implement scheduleUpdate"
am: 6edabc75ab

Change-Id: I80082322b77cbd74b70b4d3c25e172d1c51f6072
2017-03-23 00:48:48 +00:00
Christopher Ferris
a06e1c9eef Merge "Do not access device maps." 2017-03-23 00:32:40 +00:00
Treehugger Robot
6edabc75ab Merge "healthd: Implement scheduleUpdate" 2017-03-22 23:54:02 +00:00
Adam Lesinski
537713bace libziparchive: Add ability to backup in ZipWriter
Based on the compressed size of a file entry,
the decision needs to be made to instead store the file
uncompressed. This adds support to ZipWriter to backup
its last file entry.

The file is now always truncated when the EOCD is written out,
to account for the case where a file entry is backed-up and the
resulting file written is much smaller, leaving garbage data at
the end of the file.

This change also includes a rename of FileInfo -> FileEntry.
This struct was private (now public), so it shouldn't affect any
clients.

Bug: 35461578
Test: make ziparchive-tests
Change-Id: I23dc584406274ab7b8ce62b3fbc3562ca4c2603e
2017-03-22 16:46:42 -07:00
TreeHugger Robot
ce009490fb Merge "Deprecate system/window.h" 2017-03-22 22:23:56 +00:00
Christopher Ferris
f5e568e653 Do not access device maps.
It's possible that a device map has memory controlled by a single entry
device driver. Thus, you can deadlock if a process is touching that
device memory and we try to unwind it and also touch that device memory.
Simply skip any attempts to step through, or get function names from
device memory maps.

Bug: 36130325

Test: Ran new unit tests, ran bionic unit tests, ran art ThreadStress.
Change-Id: Ibc62d7ec8106c619ee08968f05e04aea55d7cbfa
2017-03-22 14:55:05 -07:00
Elliott Hughes
f6d23cd1d5 Merge "Keep the ReadFileToString/ReadFdToString overhead down." am: 2af784bf20 am: 535520480a
am: d02302666f

Change-Id: I5fe24973065674d9922c62d3876f40f0f66f9c9d
2017-03-22 21:08:07 +00:00
Elliott Hughes
d02302666f Merge "Keep the ReadFileToString/ReadFdToString overhead down." am: 2af784bf20
am: 535520480a

Change-Id: I5bb373c28a66bdd15ad6fca23e9d12427cce6dbc
2017-03-22 21:06:01 +00:00
Elliott Hughes
535520480a Merge "Keep the ReadFileToString/ReadFdToString overhead down."
am: 2af784bf20

Change-Id: I4c59280af2b5d3aad0911df7696e675a86cad701
2017-03-22 21:03:31 +00:00
Treehugger Robot
2af784bf20 Merge "Keep the ReadFileToString/ReadFdToString overhead down." 2017-03-22 21:00:00 +00:00
Mathias Agopian
34c9fbb6d1 Deprecate system/window.h
Renamed it to system/window-deprecated.h and
added a comment to that effect. 
window.h now includes system/window-deprecated.h,
which should make it obvious it shouldn’t be used.

Test: compiled
Bug: 34453351
Change-Id: Ie6953fd4383ba6289bd8950c389d14d9ac41f7d5
2017-03-22 20:57:27 +00:00
Keun-young Park
02354ed37b Merge "remove emergency shutdown and improve init's reboot logic" am: 437dc91fa3 am: f803be004a
am: 9766c9ff31

Change-Id: Ifeb00b8356272e831a167e3cc7ebba30bf7134f8
2017-03-22 20:23:34 +00:00
Keun-young Park
9766c9ff31 Merge "remove emergency shutdown and improve init's reboot logic" am: 437dc91fa3
am: f803be004a

Change-Id: I8ce4ca89034b214cf867fc4b8cd2721aae4fba17
2017-03-22 20:20:58 +00:00
Keun-young Park
f803be004a Merge "remove emergency shutdown and improve init's reboot logic"
am: 437dc91fa3

Change-Id: I6d7cac831981f418562579750b3a96ec039ba677
2017-03-22 20:19:23 +00:00
Treehugger Robot
437dc91fa3 Merge "remove emergency shutdown and improve init's reboot logic" 2017-03-22 20:13:43 +00:00