Commit graph

53921 commits

Author SHA1 Message Date
Jooyung Han
74f23d7ae6 Revert "Revert "Use com.android.vndk.current variant for vndk list""
This reverts commit 08f2376d70.

Bug: 141451661
Test: m && device boot
2019-10-19 02:32:28 +09:00
Tom Cherry
5e81aa2cf5 liblog: fixup log_id_t
1) We don't need two copies of log_id_t
2) We don't need misleading sizeof_log_id_t or typeof_log_id_t macros
3) logd should use android_log_header_t explicitly for its recv buffer
   size
4) Following on from b/129272512, we're settling that returning
   LOG_ID_MAX is an acceptable return value from
   android_name_to_log_id().

Bug: 129272512
Test: build, liblog, logcat unit tests
Change-Id: I67fb964a4a0ae9cb6e1514ca110e47e00dfcfa9a
2019-10-18 09:58:08 -07:00
Maciej Żenczykowski
19177b66cb Merge "better document ifc_{add,del}_address return code"
am: 32e7325c44

Change-Id: I720682a134a47ebd2e76a8d08b30b17cefb4dc8c
2019-10-17 23:31:15 -07:00
Maciej Żenczykowski
32e7325c44 Merge "better document ifc_{add,del}_address return code" 2019-10-18 06:15:30 +00:00
Maciej Żenczykowski
f0d101266f better document ifc_{add,del}_address return code
Test: N/A
Bug: 142764715
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8ffa7985aa2ec81959d57188755e453f0551b872
2019-10-17 17:20:25 -07:00
Josh Gao
c9e09e69b9 deployagent: set sdk version.
Not specifying a platform version in a java binary will result in code
generation tools being built to create framework.jar, which currently
fails when building with BUILD_HOST_static=1.

Specify an SDK version to avoid this.

Bug: http://b/142536936
Test: m -j adb BUILD_HOST_static=1
Change-Id: Ifb9556c7c6cc43417c3f56137edee21f145f8b17
2019-10-17 16:20:26 -07:00
Josh Gao
e7ae4f9d5e Merge "debuggerd_client_test: massively increase timeouts."
am: ecc9b1bd7f

Change-Id: Ibdaebf263dd0032e60240695ebb799f4a3e62989
2019-10-17 14:47:34 -07:00
Treehugger Robot
ecc9b1bd7f Merge "debuggerd_client_test: massively increase timeouts." 2019-10-17 21:33:46 +00:00
David Anderson
0b5678e09e Merge "Integrate libsnapshot with the boot control HAL."
am: c243e19936

Change-Id: Id4a9a5e8733d939c238d783e2550d033b28d5dff
2019-10-17 13:18:51 -07:00
Yifan Hong
bd3586f7df Merge "fs_mgr: vts_core_liblp_test requires root"
am: 356951f2be

Change-Id: I8c5384fdcc471b7a29cff818813ee0a3738a9e51
2019-10-17 13:18:22 -07:00
Josh Gao
5b7f4d9cd5 Merge changes from topic "apex_remount"
am: baea773324

Change-Id: If64a41f61f434b49847c954cc56530703d697b73
2019-10-17 13:15:20 -07:00
Josh Gao
7fc8e46ddd Move remount to PRODUCT_PACKAGES_DEBUG.
am: 6ce44041b5

Change-Id: Id0201fea6451a949701ab2d21063d55821d128e4
2019-10-17 13:15:12 -07:00
David Anderson
c243e19936 Merge "Integrate libsnapshot with the boot control HAL." 2019-10-17 19:57:04 +00:00
Treehugger Robot
356951f2be Merge "fs_mgr: vts_core_liblp_test requires root" 2019-10-17 19:55:23 +00:00
Josh Gao
baea773324 Merge changes from topic "apex_remount"
* changes:
  adbd: replace remount_service with an exec of /system/bin/remount.
  Move remount to PRODUCT_PACKAGES_DEBUG.
2019-10-17 19:14:26 +00:00
Josh Gao
f10d4a15d2 debuggerd_client_test: massively increase timeouts.
debuggerd_client.race seems to have suddenly started to flake, for no
apparent reason. This doesn't seem to reproduce locally, so increase
the timeouts to rule out our test VMs being slow.

Bug: http://b/142571257
Test: treehugger
Change-Id: Ic54a78b8da36cb1163cec7e7976c73c3da628a30
2019-10-17 12:09:49 -07:00
Alessio Balsini
ca742ac83e Merge "Utility class for COW size calculation"
am: d8a72367e5

Change-Id: Ib0a73d53a152421159cf67182b750b9a35462e70
2019-10-17 06:59:24 -07:00
Tom Cherry
e2f498e1be Merge "liblog: remove checks for __GNUC__"
am: 5f8790f8ab

Change-Id: I6d78df11ab8c1c263733acf41e645524589bab68
2019-10-17 06:57:18 -07:00
Treehugger Robot
d8a72367e5 Merge "Utility class for COW size calculation" 2019-10-17 13:55:44 +00:00
Tom Cherry
5f8790f8ab Merge "liblog: remove checks for __GNUC__" 2019-10-17 13:42:40 +00:00
Jooyung Han
5d1428b437 Merge "Revert "Use com.android.vndk.current variant for vndk list""
am: 047a7d21d9

Change-Id: Ia4d7f11d7a76c34f42cb9e7bc940f0d9a87156f9
2019-10-17 05:08:27 -07:00
Treehugger Robot
047a7d21d9 Merge "Revert "Use com.android.vndk.current variant for vndk list"" 2019-10-17 11:50:47 +00:00
Yifan Hong
4fc16610df fs_mgr: vts_core_liblp_test requires root
Test: atest vts_core_liblp_test

Fixes: 141940321
Change-Id: I2d6e06f4e596cdb985ea67e383e38545d666833b
2019-10-16 18:26:40 -07:00
Yifan Hong
d38f61322d Merge "liblp: MetadataBuilder::NewForUpdate takes always_keep_source_slot arg"
am: b4383e144e

Change-Id: I2c91b9ff24b26f532553067bd6940a1d220b5071
2019-10-16 17:37:22 -07:00
Tom Cherry
362e289c78 liblog: remove checks for __GNUC__
We already assume this in many other parts of the build.

Test: build
Change-Id: Ie685e83963eac942d0d176bb2394b5d3a5b86cac
2019-10-16 17:14:39 -07:00
Yifan Hong
b4383e144e Merge "liblp: MetadataBuilder::NewForUpdate takes always_keep_source_slot arg" 2019-10-17 00:10:32 +00:00
Jooyung Han
08f2376d70 Revert "Use com.android.vndk.current variant for vndk list"
This reverts commit 82f94d61cb.

Reason for revert: some targets are broken

Bug: 142773030
Change-Id: Ida59c52af3d2fd694855fcee60b5bb0d99c85f8d
2019-10-16 23:47:32 +00:00
Josh Gao
44668cdad2 Merge "adbd: allow port configuration on host."
am: 2fd9d735ea

Change-Id: I519b2c84ed20eb04aa994db24dee6481a925749a
2019-10-16 16:35:05 -07:00
Josh Gao
8d1d87e460 adbd: replace remount_service with an exec of /system/bin/remount.
Test: fs_mgr/tests/adb-remount-test.sh
Test: treehugger
Change-Id: Idd581c3927fd8a8bbdf70e90e8f928b7e98e032a
2019-10-16 16:29:10 -07:00
Treehugger Robot
2fd9d735ea Merge "adbd: allow port configuration on host." 2019-10-16 23:22:44 +00:00
David Anderson
dfe6d07a4b Integrate libsnapshot with the boot control HAL.
This patch translates UpdateState states into a MergeStatus from
IBootControl 1.1, and asks the HAL to store it. Unfortunately this patch
has to work around a few issues.

The first issue is that Soong doesn't allow including only the headers
from a HAL. The second issue is that entraining the headers requires
linking to libraries that would otherwise not be needed in init.

To address this, we now have three ways of linking to libsnapshot:
  1. libsnapshot - Has access to gsid and HALs.
  2. libsnapshot_nobinder - Has access to HALs, but not binder (for
                            recovery).
  3. libsnapshot_init - Does not use binder or HALs.

The HAL code is #ifdef'd behind LIBSNAPSHOT_USE_HAL and we make use of
forward declarations and dependency injection to minimize its spread.

Bug: 139154945
Test: libsnapshot_test gtest
Change-Id: I21ffd8a79a43d0589f2f71f346ac1b019584a183
2019-10-16 16:09:38 -07:00
Xin Li
12982dd6ae Skip QD1A.190821.011 in stage-aosp-master
Bug: 141248619
Change-Id: Iebf99abef8f4d88eb66bfdf75fe948537710589d
2019-10-16 15:19:31 -07:00
Alessio Balsini
391086908c libsnapshot: MapCowImage returns the COW device path
When a device is not dm-mapped, the whole path of the newly generated
COW device is required.
This was causing some of the libsnapshot_test cases to fail.
Fix by making MapCowImage() optionally return the COW device path.

Fixes: 142800685
Test: libsnapshot_test
Change-Id: I9570b4254d47b2d8fc942053590a320dcb20f7d5
Signed-off-by: Alessio Balsini <balsini@google.com>
2019-10-16 21:01:58 +01:00
Tom Cherry
987e61a15e Merge "logd: always report the UID of a log message"
am: 405e67b651

Change-Id: Ic8b444376fcd8ed54215069424f6ce852b296b43
2019-10-16 10:59:04 -07:00
Tom Cherry
405e67b651 Merge "logd: always report the UID of a log message" 2019-10-16 17:51:19 +00:00
Christopher Ferris
60c3d70b30 Merge "Add document of changes between Android versions."
am: f223e1e3c1

Change-Id: I10b4232a7c32cb17809069054c2753865b40ca6c
2019-10-16 09:10:29 -07:00
Tom Cherry
ef0b0de729 Merge "liblog: remove client side permissions checking"
am: 443b5dfea7

Change-Id: I9b99e4902ae9c5b46be58185bed524f59af3e63a
2019-10-16 08:54:27 -07:00
Tom Cherry
43a0d64f82 Merge "liblog: remove unneeded checks and includes from headers"
am: fa88eeb95e

Change-Id: I2ee1c38070c361f156d3343cb6781e2cc2459880
2019-10-16 08:53:39 -07:00
Tom Cherry
3bcd8126ff Merge "liblog: enable more tests"
am: 756fffac0b

Change-Id: Iaa874773d9763f114ed62dde32138eff67fb078c
2019-10-16 08:47:37 -07:00
Christopher Ferris
f223e1e3c1 Merge "Add document of changes between Android versions." 2019-10-16 15:27:53 +00:00
Tom Cherry
64458c79cd logd: always report the UID of a log message
logd currently only reports the UID of a log message for 'privileged'
readers (those with a uid or gid of root, system, or log).  However,
UIDs are not particularly sensitive.  Much more importantly,
non-privileged readers can only see less messages from their own UID,
so this restriction is essentially a no-op, as those readers will
already know their own uid.

Test: liblog and logd unit tests
Change-Id: I9da7d15eb840ba3200128391e70d618eec79f988
2019-10-16 13:59:26 +00:00
Tom Cherry
443b5dfea7 Merge "liblog: remove client side permissions checking" 2019-10-16 13:57:41 +00:00
Tom Cherry
fa88eeb95e Merge "liblog: remove unneeded checks and includes from headers" 2019-10-16 13:51:42 +00:00
Tom Cherry
756fffac0b Merge "liblog: enable more tests" 2019-10-16 13:47:21 +00:00
Alessio Balsini
32acbcc687 Merge "Use ReadFileToString() in GetHash()"
am: 9b9854a80a

Change-Id: Ib45c803da5280d17fd176aceb7f802e8bd6ee5ef
2019-10-16 04:00:12 -07:00
Treehugger Robot
9b9854a80a Merge "Use ReadFileToString() in GetHash()" 2019-10-16 10:45:27 +00:00
Wei Wang
1b9bb8e7ab Merge "sched_policy: add get_cpuset/sched_policy_profile_name"
am: ed2d29ea13

Change-Id: I0c06bd3975570a7f71b1b45dbccb7d2a486e2789
2019-10-15 21:28:12 -07:00
Treehugger Robot
ed2d29ea13 Merge "sched_policy: add get_cpuset/sched_policy_profile_name" 2019-10-16 02:44:22 +00:00
Christopher Ferris
07bef8ff7b Add document of changes between Android versions.
This document does not list every change in the unwinder between
Android versions. Instead it attempts to only include information
that someone building an app targeting a specific version of Android
might need to know to make sure their app can unwind properly.
It also tries to describe the way that stacktraces might be displayed
differently between Android versions.

Test: NA
Change-Id: I4029053f763f3471f7ddb5da9b1de2d325ead455
2019-10-15 18:33:11 -07:00
Tom Cherry
1e59dcc203 liblog: remove client side permissions checking
There's no point in client side security checks in this library.  If a
process has access to these files, then they'll be able to do any of
these operations themselves.

Test: liblog unit tests
Change-Id: I75d4e1509eb8ff0ac4579f820a8968f4f5ad4e06
2019-10-15 16:06:06 -07:00