Commit Graph

27130 Commits

Author SHA1 Message Date
Dimitry Ivanov e6050e248a Merge "Replace public library list with shared lib sonames"
am: fd87c062ab

Change-Id: I6c3578920711e16f28a04305bc12c02db905bf3e
2017-02-11 19:30:02 +00:00
Dimitry Ivanov fd87c062ab Merge "Replace public library list with shared lib sonames" 2017-02-11 19:26:50 +00:00
Todd Poynor 4dbefe4d4c Merge "init.rc: create /data/misc/reboot for storing reboot reason"
am: e499403bf4

Change-Id: Idf51132742d019c42f6ca6a5d45511c504d701c4
2017-02-10 21:36:23 +00:00
Wei Wang e6ceb5a5b9 Merge "bootstat.rc: record post_decrypt_time_elapsed only for FDE device"
am: 936738b8f7

Change-Id: If9b499c73fc2399ca3e106c9df7626f97b09e4e1
2017-02-10 21:36:10 +00:00
Treehugger Robot e499403bf4 Merge "init.rc: create /data/misc/reboot for storing reboot reason" 2017-02-10 21:33:36 +00:00
Treehugger Robot 936738b8f7 Merge "bootstat.rc: record post_decrypt_time_elapsed only for FDE device" 2017-02-10 21:32:30 +00:00
Todd Poynor 44ee2b0ef8 init.rc: create /data/misc/reboot for storing reboot reason
Create /data/misc/reboot if not already.

Bug: 30994946
Test: manual: reboot command; modified thermal-engine.conf
Change-Id: I66418beba539f76759b44742af7700f26a2c1f87
2017-02-10 19:26:13 +00:00
Neil Fuller 06979c821e Merge "Documentation improvements"
am: cee583bc53

Change-Id: I8d1d1195d629dc6432155454fb4fafaf90400248
2017-02-10 15:20:12 +00:00
Neil Fuller cee583bc53 Merge "Documentation improvements" 2017-02-10 15:16:43 +00:00
Neil Fuller cb9ea947f3 Merge "Rename "Bundle" to "Distro""
am: 0ef5727905

Change-Id: Ia09aa0366f6109eb885bb95e7e12b59376bf3d08
2017-02-10 14:59:23 +00:00
Neil Fuller 0ef5727905 Merge "Rename "Bundle" to "Distro"" 2017-02-10 14:55:44 +00:00
Neil Fuller 6074cb8805 Merge "Add bundle format minor version check logic"
am: 3cf4b8664a

Change-Id: I8d0267b2fab9d968f6a6403d629f786fd8fc15aa
2017-02-10 13:07:30 +00:00
Neil Fuller 3cf4b8664a Merge "Add bundle format minor version check logic" 2017-02-10 13:02:35 +00:00
bowgotsai 776caaf6ea Merge "fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB"
am: f803afaa65

Change-Id: I7a397030eb8a889c8d9f461d44c566def0479a01
2017-02-10 06:25:16 +00:00
Treehugger Robot f803afaa65 Merge "fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB" 2017-02-10 06:21:14 +00:00
George Burgess IV 9a7f57b909 Merge "cutils: Add clang FORTIFY support"
am: f2e615c7b8

Change-Id: Ic13ab7bc917e0bf0cc6549749d5f1f8a67f3c40e
2017-02-10 02:11:46 +00:00
George Burgess IV 7d1dc5083b Merge "Add permission bits to open() with O_CREAT."
am: c33ba01a71

Change-Id: Ib92ab3987de5a3bafdfef36592aeead9988a65d5
2017-02-10 02:11:38 +00:00
Treehugger Robot f2e615c7b8 Merge "cutils: Add clang FORTIFY support" 2017-02-10 02:07:28 +00:00
Treehugger Robot c33ba01a71 Merge "Add permission bits to open() with O_CREAT." 2017-02-10 02:07:28 +00:00
Jorge Lucangeli Obes 41aa8f07b2 Merge "Add a sample service for testing init."
am: d7b5c7b2da

Change-Id: Id4600c9dc36f6b22ca165622967bb68a2bc51425
2017-02-10 01:41:57 +00:00
Treehugger Robot d7b5c7b2da Merge "Add a sample service for testing init." 2017-02-10 01:40:12 +00:00
Evan Ralston 281fa200fb Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL"
am: 9fcabf739b

Change-Id: I6a07a22d727e2e5a886bf6c717d787273feb3226
2017-02-10 01:19:55 +00:00
Treehugger Robot 9fcabf739b Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" 2017-02-10 01:14:23 +00:00
Michael Wright f5951632d0 Merge "Only allow system to write to existing input nodes."
am: bab6ec555c

Change-Id: Iff70503026c0e43d44e0f3d79edae22e9356aa5d
2017-02-10 00:19:59 +00:00
Treehugger Robot bab6ec555c Merge "Only allow system to write to existing input nodes." 2017-02-10 00:15:24 +00:00
Connor O'Brien 76bdadbf7d Merge "Fastboot: use flash erase & logical block size for building userdata"
am: 6e0dd6285e

Change-Id: I1b9fa4a0335f4a9f834607b92d7f74b9d7afed94
2017-02-10 00:08:22 +00:00
Connor O'Brien 6e0dd6285e Merge "Fastboot: use flash erase & logical block size for building userdata" 2017-02-10 00:01:41 +00:00
Jorge Lucangeli Obes 28e980b59c Add a sample service for testing init.
I find myself using something like this every time I add functionality
to init. I cannot possibly be the only one doing this. On the other
hand, if this hasn't been added for so long, maybe there's a reason
for that.

The advantage of using a test service versus modifying an existing
service is that the test service doesn't *require* any permissions or
privileges, so you can add and/or remove whatever you need to test
without breaking the service.

I found it useful to have the service check its own /proc/<pid>/status
from command-line arguments, so that's what the service does.

This CL also adds a .clang-format file for init.

Bug: None
Test: Service runs and exits successfully.

Change-Id: I3e7841a7283158e10c0bf55e0103c03902afb1f0
2017-02-09 18:23:09 -05:00
Michael Wright 344e929e6d Only allow system to write to existing input nodes.
This prevents the shell user from injecting input as if it were coming
from an existing input device, which in turn makes it easier for malware
/ abuse analysis to detect when someone is injecting input via the
command line vs a real user using a device.

(cherrypick of 95637eb2a332b9a09914b1bf32c10fccfba4a175.)

Bug: 30861057
Test: ran getevent, saw correct output, played with device
Change-Id: Ib53eea1b7767f25510b5d36fe6109101a9fad8e0
2017-02-09 14:45:25 -08:00
Sandeep Patil 48b32bf398 Merge "ueventd: source ueventd configs from vendor and odm"
am: d54d4c275e

Change-Id: I39565fa11c5a8ac9611c5970cc574a405657be77
2017-02-09 21:33:00 +00:00
Treehugger Robot d54d4c275e Merge "ueventd: source ueventd configs from vendor and odm" 2017-02-09 21:25:44 +00:00
George Burgess IV 67959bceb2
cutils: Add clang FORTIFY support
Bug: 32073964
Test: Builds on angler, bullhead, marlin, sailfish. Bionic CTS tests
pass on Angler and Bullhead.

Change-Id: I3d7f8ff73f92b1deb1e07f08282098e71e2d03a9
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-02-09 20:18:19 +01:00
bowgotsai 72ffff70fc fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB
Remove polling_vbmeta_blk_device() as it tries to get /vbmeta entry
from fstab. Also move the polling of a partition inside read_from_partition()
in fs_mgr_avb_ops.cpp as it's where the reads happen.

Bug: 31264231
Test: Device can boot with AVB

Change-Id: Id717e160b085eca42eb9bc5eb2fa7e658bea3ad6
2017-02-10 02:20:22 +08:00
Wei Wang bd6ab49555 bootstat.rc: record post_decrypt_time_elapsed only for FDE device
Bug: 35110957
Test: on marlin
Change-Id: Id32f65ad4d693dcf52f1581bf55b3fe671c985cc
2017-02-09 10:09:22 -08:00
Yunlian Jiang 90cc4fd6a4 Merge "fix warning: Null pointer argument in call to memory comparison function"
am: ce07b6fa4f

Change-Id: Ida2150c0640ff30fc694c6a84c3777eaff906a7c
2017-02-09 17:23:36 +00:00
Treehugger Robot ce07b6fa4f Merge "fix warning: Null pointer argument in call to memory comparison function" 2017-02-09 17:20:14 +00:00
Mark Salyzyn 66181b9bd8 Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ...
am: 71c0993126

Change-Id: Ief17305629740f695cecc038a7b25166b699b0f4
2017-02-09 15:33:57 +00:00
Mark Salyzyn 1947f3960b liblog: add local_logger
am: 7100288532

Change-Id: Ib4b2ce1f7633fc20ef792693bfb132e7da9b9440
2017-02-09 15:33:55 +00:00
Mark Salyzyn 81fcfc88f6 liblog: add __android_log_config_*_close()
am: 96432fc665

Change-Id: If7ce3adfeeb82cf621a90e750efc49ab7605c3bf
2017-02-09 15:33:50 +00:00
Mark Salyzyn a042b3a78e liblog: add android_log_logger_list management
am: cf983bcbae

Change-Id: I2344a384ad8a51f156b970267714677ede7d3a1b
2017-02-09 15:33:45 +00:00
Mark Salyzyn 5221ac3dfd liblog: add logprint to host build
am: 62d0d2d683

Change-Id: I487132a928ad33acfab90df5da781635070d2c57
2017-02-09 15:33:41 +00:00
Mark Salyzyn a2c9787367 liblog: benchmark: Use local LOGGER_NULL frontend
am: 8f2492f582

Change-Id: I738e97874f8a237750377ce1a03c06c6fedbb295
2017-02-09 15:33:36 +00:00
Mark Salyzyn 9d68551f47 liblog: Add android_set_log_frontend
am: 850d06e1c9

Change-Id: I4c47a1a6ed54d98d37ec5f9ab54b0d49156e1905
2017-02-09 15:33:30 +00:00
Mark Salyzyn 71c0993126 Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ...
* changes:
  liblog: add local_logger
  liblog: add __android_log_config_*_close()
  liblog: add android_log_logger_list management
  liblog: add logprint to host build
  liblog: benchmark: Use local LOGGER_NULL frontend
  liblog: Add android_set_log_frontend
2017-02-09 15:30:47 +00:00
Neil Fuller c65c61b4d5 Documentation improvements
Tweaks for documentation. Mostly to point out that the constants
are duplicated in Java code.

Bug: 31008728
Test: mmm tzdatacheck
Change-Id: I068c09cfc6109a7567ad7e08edcecad40be831b3
2017-02-09 13:47:03 +00:00
Neil Fuller 16e6487575 Rename "Bundle" to "Distro"
Renaming "Bundle" to "Distro" because bundle is confusing
given android.os.Bundle.

Bug: 31008728
Test: mmm tzdatacheck
Change-Id: I70408678d67eed9f9e0424c0791e856c909837be
2017-02-09 13:31:57 +00:00
Neil Fuller f54cadb83d Add bundle format minor version check logic
The code now checks the minor version for completeness.

Bug: 31008728
Test: Manual testing
Change-Id: I28840065f794bd28de6282e81dc55336f77ab2d1
2017-02-09 11:53:07 +00:00
George Burgess IV d6f2e69624 Add permission bits to open() with O_CREAT.
It's an error to pass open O_CREAT without giving it mode bits:
https://linux.die.net/man/3/open

Bug: 32073964
Test: Compiles with clang FORTIFY.
Change-Id: I6b2a3694f85565afdeb782585c6af36e8c4d1557
2017-02-08 23:44:29 -08:00
James Hawkins cefdacef3c Merge "Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime.""
am: 23f4e6b0a5

Change-Id: Ibef66ccd1a1fe362692ee45cb86cd9c0212c1f85
2017-02-09 02:31:44 +00:00
Connor O'Brien ce16a8a940 Fastboot: use flash erase & logical block size for building userdata
If the bootloader provides erase-block-size and logical-block-size
getvar variables, then pass these to libext4_utils when building a new
userdata image. This info is used to tune stride and stripe-width.

Bug: 33243520
Test: Modify fb_getvar to return values for "erase-block-size" and
"logical-block-size" and check that fastboot -w sets userdata
parameters correctly.
Signed-off-by: Connor O'Brien <connoro@google.com>

Change-Id: Id48b7a3ebb9074983a4422a79a64dcb437c0f888
2017-02-08 18:30:40 -08:00