Commit graph

55383 commits

Author SHA1 Message Date
Kevin Brodsky
dfe4a19f7e Merge "Remove leftover support for target-as-host"
am: 5688181a11

Change-Id: Ib87b5eaffd36e9e7ff6faafd5682ff34df5a4107
2020-01-13 12:18:54 -08:00
Treehugger Robot
5688181a11 Merge "Remove leftover support for target-as-host" 2020-01-13 20:15:27 +00:00
Kevin Brodsky
0b633d8800 Remove leftover support for target-as-host
Support for target-as-host was removed by 4626b71057 ("Fix win_sdk
build."), so ADB_HOST_ON_TARGET is never defined.

Test: build
Change-Id: I5ab27e68208677266e2e4272bc2bae7d6a097c5d
2020-01-13 14:48:49 +00:00
Nikita Ioffe
45778d2773 Merge "Add more logging to fs_mgr_remount_userdata_into_checkpoint"
am: 860e8682e2

Change-Id: I33faa03e8a2a8c041cdbc53a1f034d8d03e40fc0
2020-01-13 05:01:44 -08:00
Nikita Ioffe
860e8682e2 Merge "Add more logging to fs_mgr_remount_userdata_into_checkpoint" 2020-01-13 12:30:49 +00:00
Martijn Coenen
90dac782a2 Merge "init: Bind mount /mnt/installer early for scoped storage."
am: 644d6a1e2e

Change-Id: If5f113c475bb84a1d15b952d325b5755e11e48a1
2020-01-13 01:02:15 -08:00
Treehugger Robot
644d6a1e2e Merge "init: Bind mount /mnt/installer early for scoped storage." 2020-01-13 08:27:44 +00:00
Jiyong Park
6a027535b0 Merge "Add /system/lib to the permitted paths for ns of APEXes"
am: a6379cd2df

Change-Id: I7fd9f53d46133f9be7757a8d54b06104c034dc7b
2020-01-13 00:22:17 -08:00
Treehugger Robot
a6379cd2df Merge "Add /system/lib to the permitted paths for ns of APEXes" 2020-01-13 08:19:23 +00:00
Martijn Coenen
c70c0665fc init: Bind mount /mnt/installer early for scoped storage.
Scoped storage has some unique requirements that are hard to implement
with the two mount namespaces, because the daemon that does the mounting
(vold) lives in a different namespace than the processes using those
mounts.

In particular, /mnt/installer is a special bind mount that should
receive mount events under /mnt/user, but at the same time only
only propagate mount events under /mnt/installer to /mnt/installer in
the other namespace. More details in the code.

Bug: 134706060
Test: /mnt/installer shows up and is setup correctly.
Change-Id: I6dab5ace5a345d9d684a9f1ae94c833fc294d49e
2020-01-11 15:07:21 +01:00
Dan Shi
003672e013 Merge "Add libc++ as static library"
am: 679185dc88

Change-Id: I36ba918f45352256d36c72d5f30f50672993e825
2020-01-10 10:32:08 -08:00
Treehugger Robot
679185dc88 Merge "Add libc++ as static library" 2020-01-10 18:30:25 +00:00
Nikita Ioffe
cb0c92e66d Add more logging to fs_mgr_remount_userdata_into_checkpoint
Sometimes unmounting userdata fails, this should help in debugging.
Ideally this information should be persisted somewhere so that we can
add it to the bugreport, but so far I don't have solution better than
writing it to a file in /metadata partition.

Test: adb reboot userspace
Bug: 135984674
Bug: 143970043
Change-Id: I92489600bf31f7f47b8b87de7cd4a882be21910e
2020-01-10 17:41:54 +00:00
Yifan Hong
30b4536053 Merge "Add balsini@ as libsnapshot owner"
am: 84ef7f65e8

Change-Id: Id4cea7047a3e60d79d1a0dbf5f3e220c2de26909
2020-01-10 03:02:28 -08:00
Yifan Hong
84ef7f65e8 Merge "Add balsini@ as libsnapshot owner" 2020-01-10 10:28:42 +00:00
Dan Shi
754167b241 Add libc++ as static library
This is for the test to run without packaging libc++.so in vts-core
suite.

Bug: 147249791
Test: atest FastbootVerifyUserspaceTest
Change-Id: I0263d13a2dd08186502b30b2fad25d4f0f3a6be8
2020-01-09 14:24:23 -08:00
Tom Cherry
a57b9d705d Merge changes I62be2c1e,I292662fc
am: e92461d802

Change-Id: Ic18f80aeddb9ec97fe6383196c3693ced64da45c
2020-01-09 10:32:21 -08:00
Tom Cherry
e92461d802 Merge changes I62be2c1e,I292662fc
* changes:
  liblog: remove more unused code
  liblog: remove the last of the transport structs
2020-01-09 18:29:54 +00:00
Alessio Balsini
b0b9c714d3 Add balsini@ as libsnapshot owner
Add balsini@ as libsnapshot owner to cover EMEA timezone.

Bug: n/a
Test: n/a
Change-Id: I2d5c900c62f202db2432df87f7847b0133872443
Signed-off-by: Alessio Balsini <balsini@google.com>
2020-01-09 10:11:45 +00:00
Elliott Hughes
3eae3ca9d3 Merge "adb: fix adb connect help typo."
am: f5a329f1a4

Change-Id: If8a62fd4cad973fe5bffda869c59cd1dc26fa96b
2020-01-08 20:37:11 -08:00
Treehugger Robot
f5a329f1a4 Merge "adb: fix adb connect help typo." 2020-01-09 04:34:27 +00:00
Woody Lin
2af792be76 Merge "InitFatalReboot: Panic the system if init_fatal_panic is "true""
am: d377ad8b06

Change-Id: I0c7dd0272adeaa0d85f3d2d7064e75e7381a777e
2020-01-08 18:13:24 -08:00
Woody Lin
d377ad8b06 Merge "InitFatalReboot: Panic the system if init_fatal_panic is "true"" 2020-01-09 02:11:52 +00:00
Tom Cherry
b47aa2a592 liblog: remove more unused code
Cleanup the headers; we really don't want to encourage any more
cutils/list.h usage...

Remove __android_log_uid() since the only remaining users are built
for device, so they can just use getuid() directly.

Test: build
Change-Id: I62be2c1e43d83807deaa9342afcc72459947cf15
2020-01-08 17:11:09 -08:00
Tom Cherry
21bb36c66a liblog: remove the last of the transport structs
Test: build, liblog unit tests
Change-Id: I292662fc64e3163b570c5daeaa8f912fb6ca74e8
2020-01-08 17:11:06 -08:00
Josh Gao
955738001d Merge "adb: avoid consuming input in adb remount."
am: 97186600b5

Change-Id: I6e8bcaedb345928fcfc4e062d28b89fb8c46eb2b
2020-01-08 16:17:12 -08:00
Treehugger Robot
97186600b5 Merge "adb: avoid consuming input in adb remount." 2020-01-08 23:52:40 +00:00
Yifan Hong
5cf2d3ecc0 Merge "SnapshotManager expose no space error"
am: 3be1310cf8

Change-Id: I0ddf4aa1baca81757f313d3cddaa11862875dfc6
2020-01-08 14:08:31 -08:00
Ady Abraham
f0b712654a Merge "SurfaceFlinger: migrate capabilities to surfaceflinger.rc"
am: 1f3e40e8e7

Change-Id: I27a56b089cdac1486983fff1d1ad8e2e0152defa
2020-01-08 14:05:59 -08:00
Treehugger Robot
3be1310cf8 Merge "SnapshotManager expose no space error" 2020-01-08 21:36:43 +00:00
Treehugger Robot
1f3e40e8e7 Merge "SurfaceFlinger: migrate capabilities to surfaceflinger.rc" 2020-01-08 21:18:44 +00:00
Josh Gao
9e75634082 adb: avoid consuming input in adb remount.
Bug: https://issuetracker.google.com/146163747
Test: dd if=/dev/zero bs=1024 count=1 | (adb remount; wc)
Change-Id: I700090cd0bbae2d76569008f3c1a116336951c0a
2020-01-08 12:43:34 -08:00
Ady Abraham
21844fa771 SurfaceFlinger: migrate capabilities to surfaceflinger.rc
SurfaceFlinger requires CAP_SYS_NICE which is set in
libcutils/fs_config.cpp. This is the old way of setting capabilities
and new the way is to set it directly on surfaceflnger.rc

Test: adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test
Test: adb shell stop surfaceflinger && adb shell start surfaceflinger
Bug: 147271477
Change-Id: I680509a385928a9c929d4fe4857118af219e2b13
2020-01-08 19:35:57 +00:00
Xin Li
54e69f89c9 Merge "DO NOT MERGE - Merge January 2020 Security Release into master"
am: 3b79cfb72d

Change-Id: I252631c788fa1c586afe3704cdf5101a513aba7a
2020-01-08 10:11:26 -08:00
Elliott Hughes
65474fd78c adb: fix adb connect help typo.
Bug: http://b/130380645
Test: adb connect
Change-Id: I04205ff0120bcfd865dc5fa95846694d0ff6de80
2020-01-08 10:02:43 -08:00
Xin Li
724b6f63bf DO NOT MERGE - Merge January 2020 Security Release into master
am: ccf87b69d5

Change-Id: I30bf4ba5e974c9b22fe9f30861c930d25cfab7e4
2020-01-08 09:47:48 -08:00
Tom Cherry
fb06eac118 Merge "init: Fix writing "reboot recovery" to BCB"
am: a4b446d766

Change-Id: Ida33a676a34831bd6d9950f76edb5ca74f2824ad
2020-01-08 09:47:21 -08:00
Xin Li
3b79cfb72d Merge "DO NOT MERGE - Merge January 2020 Security Release into master" 2020-01-08 17:39:17 +00:00
Tom Cherry
a4b446d766 Merge "init: Fix writing "reboot recovery" to BCB" 2020-01-08 17:15:08 +00:00
Woody Lin
6bbfa26813 InitFatalReboot: Panic the system if init_fatal_panic is "true"
While handling the fatal signals and abort, exits from the signal
handler to panic the system if "androidboot.init_fatal_panic" in cmdline
is configured as "true".

Bug: 146818493
Change-Id: I59fffb7598ce981383ae24961a97fd2fd8e8d64e
2020-01-08 11:43:51 +08:00
Yifan Hong
d11a4aba6e Merge "ImageManager returns FiemapStatus."
am: 70768af0fe

Change-Id: Ibfdf51d231c7f2501584f0afc69487381abe5c42
2020-01-07 19:23:01 -08:00
Yifan Hong
70768af0fe Merge "ImageManager returns FiemapStatus." 2020-01-08 02:57:37 +00:00
Yifan Hong
162e020d0a Merge "libfiemap: Create/Open returns FiemapStatus"
am: 0ed21b604c

Change-Id: Ibdff6906573e4863d7eab808ad217db4370b9f5e
2020-01-07 17:12:50 -08:00
Yifan Hong
0ed21b604c Merge "libfiemap: Create/Open returns FiemapStatus" 2020-01-08 01:00:43 +00:00
Bowgo Tsai
7755c46a09 Merge "Support AVB chain partitions for HASH descriptors"
am: 4d82b283dd

Change-Id: I697a3b29676f5da194b3c9518187fdddd7482d38
2020-01-07 16:21:16 -08:00
Treehugger Robot
4d82b283dd Merge "Support AVB chain partitions for HASH descriptors" 2020-01-08 00:16:20 +00:00
Xin Li
ccf87b69d5 DO NOT MERGE - Merge January 2020 Security Release into master
Bug: 147314974
Change-Id: Ia77f51c0996b4840fcb49376f35ea17f0b1fdf48
2020-01-07 15:25:26 -08:00
Yifan Hong
cd232f9734 SnapshotManager expose no space error
When there is not enough space on /userdata, CreateUpdateSnapshot
returns SnapshotManager::Return with ErrorCode::NO_SPACE.

Test: libsnapshot_test
Bug: 138808058

Change-Id: If2effe63f6a4324eff8d05d4db4ce98be8190262
2020-01-07 14:20:44 -08:00
Yifan Hong
e4b44fc501 ImageManager returns FiemapStatus.
IImageManager::CreateBackingImage and ZeroFillNewImage now returns
FiemapStatus, which is an error code and provides more information
about the reason of error.

In particular, the error code is NO_SPACE if disk space is full during
allocation / writing.

Bug: 138808058
Test: libsnapshot_test

Change-Id: I500a3d9f55a2d7e60438b5b4ae70f8b5fed162fa
2020-01-07 13:01:58 -08:00
Yifan Hong
6170c7a02f libfiemap: Create/Open returns FiemapStatus
Add variants to SplitFiemap::Create and FiemapWriter::Open that
returns a FiemapStatus and take a unique_ptr<T>* out parameter to
get more information on the reason of the failure.

Test: fiemap_writer_test
Test: fiemap_image_test
Bug: 138808058
Change-Id: Iea77ac9810f98c2202e038b7aede15dd2d137b2b
2020-01-07 13:01:58 -08:00