Commit graph

53718 commits

Author SHA1 Message Date
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
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
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
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
Tom Cherry
3ab3135bba liblog: enable more tests
Enable more of the disabled tests.  These should not be flaky and have
value.

The dual_reader test is rewritten in the style of RunLogTests() as
well.

Test: 100 iterations of these tests on CF without failure
Change-Id: I15de9e21b066aa22635cc0bd71b51e2648198823
2019-10-15 11:15:53 -07:00
Alessio Balsini
0355d22d64 Use ReadFileToString() in GetHash()
On some devices the previous implementation of GetHash() was failing at
reading files, returning "Bad file descriptor" error.
Using ReadFileToString() that seems to have fixed the issue.

Test: libsnapshot_test
Change-Id: Ie3598d8bad5b3db1cf816c120e6922a066aa2743
Signed-off-by: Alessio Balsini <balsini@google.com>
2019-10-15 18:55:10 +01:00
Tom Cherry
4e49f412c7 Merge "liblog: remove obsolete comment"
am: f5bad500f3

Change-Id: I63c3af0651d7160c862c8a22e20e3d571f41f6cd
2019-10-15 08:15:31 -07:00
Tom Cherry
f8a393f65c Merge "liblog: use RunLogTests() for more tests"
am: 7f79bc53cb

Change-Id: I11debdc1a8ad0dca27fea5a0a2e51a095676146b
2019-10-15 08:14:55 -07:00
Tom Cherry
f5bad500f3 Merge "liblog: remove obsolete comment" 2019-10-15 14:48:05 +00:00
Tom Cherry
7f79bc53cb Merge "liblog: use RunLogTests() for more tests" 2019-10-15 14:43:23 +00:00
Jiyong Park
07348eb619 Merge "Don't preload libneuralnetworks.so"
am: af15eff03b

Change-Id: Idade938fe6fb696b5a59c28ea25e630043dcac9f
2019-10-15 05:49:18 -07:00
Treehugger Robot
af15eff03b Merge "Don't preload libneuralnetworks.so" 2019-10-15 12:35:47 +00:00
Alessio Balsini
a6e3d497ae Utility class for COW size calculation
The Linux kernel's dm-snapshot relies on a COW device to keep trace of
all the modified sectors.
The COW device has a precise structure, which allows to compute its
space requirement in advance, as a function of:
- sector size;
- chunk size;
- list of modifications applied to the snapshot device.

Create a class that implements the COW device space occupancy given this
information.

Bug: 140835698
Test: libsnapshot_test
Change-Id: I50e3815741ee689d14fc3611532ff9d3b3e0e879
Signed-off-by: Alessio Balsini <balsini@google.com>
2019-10-15 13:06:48 +01:00
Jooyung Han
abe56ba48d Merge "Use com.android.vndk.current variant for vndk list"
am: 9e52397825

Change-Id: I48b450dd17f9454cf12a68c0c217ee13daaed3ca
2019-10-15 02:44:11 -07:00
Jooyung Han
9e52397825 Merge "Use com.android.vndk.current variant for vndk list" 2019-10-15 09:21:19 +00:00
Alessio Balsini
81b5c744e8 Merge changes I1cae6530,I7ffaa260
am: e34d239023

Change-Id: I820f359622aba7cb871928116acab57bdee53c47
2019-10-14 22:10:18 -07:00
Treehugger Robot
e34d239023 Merge changes I1cae6530,I7ffaa260
* changes:
  Publish chunk size in utility.h
  Remove magic numbers from test and use storage literals
2019-10-15 04:55:19 +00:00
Wei Wang
ee2f260223 sched_policy: add get_cpuset/sched_policy_profile_name
Expose API to return name of task profile for cpuset/sched policy so
that libprocessgroup clients using SetTaskProfiles directly don't have
to maintain the mapping. This reduces the risk of inconsistency and saves
memory.

Bug: 139521784
Test: atest libcutils_test:SchedPolicy
Change-Id: I414312a038613913fb6a827bdcefceb3dec21264
2019-10-14 20:03:06 -07:00