Commit Graph

49750 Commits

Author SHA1 Message Date
Treehugger Robot 2b8e96bd64 Merge "fs_mgr: remount: system is root" 2019-04-02 21:54:34 +00:00
Josh Gao 887e8f4bfd Merge "adbd: demote CHECKs to warning logs."
am: 16f4a033c3

Change-Id: I15d430f0296231c56bd8e2a9826e2ede962145c6
2019-04-02 14:41:26 -07:00
Josh Gao 16f4a033c3 Merge "adbd: demote CHECKs to warning logs." 2019-04-02 21:30:15 +00:00
Yao Chen 14c6db6d65 Report last atom tag of the failed stats log.
Test: manually tested with statsd

Change-Id: I4de61a2eea393e8518cb76147598778293440a81
Merged-In: I4de61a2eea393e8518cb76147598778293440a81
(cherry picked from commit cf776d9b83)
2019-04-02 14:26:01 -07:00
Mark Salyzyn b18aba0a9f fs_mgr: remount: system is root
For devices without overlayfs and system is root (Hikey, Hikey960)
correct "/system" to "/" if that is the mount point.

Test: adb-remount-test.sh
Bug: 129720614
Change-Id: I3bdbd5ea7b70d03477055e60521d8132b486c904
2019-04-02 21:22:27 +00:00
David Anderson 7f724ad4e9 Merge "Fix device mapper name clashes on non-A/B devices." am: 97d1fccd5b
am: d7874a2fa9

Change-Id: I5ea972dd4e28dc476a49ac623fd03004c4a21ee1
2019-04-02 14:08:25 -07:00
David Anderson d7874a2fa9 Merge "Fix device mapper name clashes on non-A/B devices."
am: 97d1fccd5b

Change-Id: Id47e289674eee3c17f0a267544e75cc48213fcb1
2019-04-02 14:05:20 -07:00
Nick Kralevich 6b38459ee5 Merge "Revert "relax /system/bin directory permissions"" am: 98880af580
am: 88b15b2b7c

Change-Id: I6781355d5502edf84dd5e493d532392b28f4aee3
2019-04-02 14:04:43 -07:00
Yao Chen 0a75f928d1 Increase the SO_SNDBUF for statsd socket.
In addition to the dgram queue size, the sender buffer size also matters.
Set it to a higher value (default is 224KB).

Test: manual
Change-Id: Ib610c1fa1eaf3c5e36f51854a2b0720f387dc1b8
2019-04-02 13:55:28 -07:00
David Anderson 97d1fccd5b Merge "Fix device mapper name clashes on non-A/B devices." 2019-04-02 20:16:36 +00:00
Nick Kralevich 88b15b2b7c Merge "Revert "relax /system/bin directory permissions""
am: 98880af580

Change-Id: Iee04f5127100e2115a8612d5c5a82f758b6bce69
2019-04-02 13:16:34 -07:00
Treehugger Robot 98880af580 Merge "Revert "relax /system/bin directory permissions"" 2019-04-02 19:48:26 +00:00
Mark Salyzyn e419a79329 ueventd: populate /dev/block/mapper link
Since DM_NAME= is not sent (delete bug) or interpreted with ueventd
message, instead probe /sys/devices/virtual/block/dm-X/dm/name when
instantiating.  Cache the value for later delete.

By creating the /dev/block/mapper/<name> nodes, this will give
selabel_lookup_best_match an alias to hang its hat on so that the
associated /dev/block/dm-X nodes will be suitably labelled and
differentiated.

NB: For Android, the deletion of the nodes will only happen in the
    context of fastbootd, update_engine and gsid; otherwise the links
    and properties created can be considered set-once and persistent.

Test: manual inspect /dev/block/mapper/ links
Bug: 124072565
Change-Id: I6d9e467970dfdad7b67754ad61084964251eb05f
2019-04-02 19:28:47 +00:00
Vic Yang 270f65ffdb Version liblog LL-NDK library
The system version of liblog has been versioned.  Do the same for
LL-NDK verison as well.

Test: Build and examine the dynamic symbols.
Change-Id: Ie63cc845c891d9372fb1990e713b3fe4f0f2f723
2019-04-02 12:22:50 -07:00
Josh Gao 87afd52fb5 adbd: demote CHECKs to warning logs.
It seems like we don't actually always get these events in order, so
demote them to a log and restart the connection instead of aborting.

Bug: http://b/129464137
Test: mma
Change-Id: I7dffbf62f9dea665cf9f9f9e1bd18d444b6905ec
2019-04-02 10:56:07 -07:00
Elliott Hughes 66e5ae0f5a libcutils: android_reboot command should be unsigned.
Hex literals have the type of the first type they fit in. The reboot
constants are large enough that that's `unsigned` rather than `int`.

Bug: http://b/76110968
Test: treehugger
Change-Id: Iac4fe61d1fe572297febf0b57e34d698942469f9
2019-04-02 09:19:46 -07:00
Nick Kralevich 8d1b43bbf4 Revert "relax /system/bin directory permissions"
It appears Chase has fixed their app, so we no longer need to keep these
permissions relaxed.

This reverts commit 53842f8a90.

Bug: 119605322
Test: compiles and boots
Change-Id: Iba5e9ecd685eb386997a5e92638b8a1b5943ad4b
2019-04-02 08:54:17 -07:00
Christopher Ferris ca3c8f7788 Merge "Add minimal support for Dwarf 5." am: e44bf1a4a2 am: b0f5022fad
am: 30aae74079

Change-Id: I57ac38379c69efc86d70448726ec5247cd770e12
2019-04-02 08:00:34 -07:00
Christopher Ferris 30aae74079 Merge "Add minimal support for Dwarf 5." am: e44bf1a4a2
am: b0f5022fad

Change-Id: Ib6ebe447f753ab67442ec63158bea9c52d657dfa
2019-04-02 07:51:24 -07:00
Christopher Ferris b0f5022fad Merge "Add minimal support for Dwarf 5."
am: e44bf1a4a2

Change-Id: I7cac4a4fbc8d5e77c9642cf2909c962bb12bad7c
2019-04-02 07:47:13 -07:00
Christopher Ferris e44bf1a4a2 Merge "Add minimal support for Dwarf 5." 2019-04-02 14:39:23 +00:00
Jiyong Park 28429ff8c1 Merge "Search rs namespace prior to vndk namespace" am: 5ccb6a5cdc am: 8b524e9b45
am: deeedf9783

Change-Id: Id1f3e8d310bd1b8f3b7c67e0ab7485d96fd541bb
2019-04-02 01:47:06 -07:00
Jiyong Park deeedf9783 Merge "Search rs namespace prior to vndk namespace" am: 5ccb6a5cdc
am: 8b524e9b45

Change-Id: I50a3280e0fcd1dd30535c32479ca452f7f3f31f1
2019-04-02 01:42:56 -07:00
Jiyong Park 8b524e9b45 Merge "Search rs namespace prior to vndk namespace"
am: 5ccb6a5cdc

Change-Id: I646ddc21e3965ffe3d9926a3c774d941291e5f5f
2019-04-02 01:38:46 -07:00
Treehugger Robot 5ccb6a5cdc Merge "Search rs namespace prior to vndk namespace" 2019-04-02 08:24:42 +00:00
Elliott Hughes 370ad05c32 Merge "libutils: more detailed logging." am: ee4cc04429 am: 0a9c29ddfb
am: 2dfbda57d1

Change-Id: Ife4ac041f5ab8309b7c4c42ca11ed747dcb9dc52
2019-04-01 20:21:57 -07:00
Elliott Hughes 2dfbda57d1 Merge "libutils: more detailed logging." am: ee4cc04429
am: 0a9c29ddfb

Change-Id: I5cb7362e82681d55ce671ec4599c34368f43f5dd
2019-04-01 20:11:39 -07:00
Elliott Hughes 0a9c29ddfb Merge "libutils: more detailed logging."
am: ee4cc04429

Change-Id: I20187bbdd8363248c4ede8821723f4f71ec7a9dd
2019-04-01 20:03:30 -07:00
Treehugger Robot ee4cc04429 Merge "libutils: more detailed logging." 2019-04-02 02:45:41 +00:00
Jiyong Park fa4971f3c3 Search rs namespace prior to vndk namespace
With the recent change that removed get_exported_namespace out of libdl,
the RenderScript SP-HAL stopped using android_dlopen_ext which it used
to load libRS_internal.so in the "rs" namespace. Instead, it now falls
back to the ordinary dlopen() call. The dlopen() call tries to load the
lib in the current namespace (which is sphal) and then falls back to the
linked namespaces: default, vndk, rs.

The problem is that rs is listed as the last namespace and therefore the
linker tries the namespace only when it failed to load the library in
other namespaces: default and vndk. libRS_internal.so is accessible to
both vndk and rs namespaces. So, the dlopen() call always goes into the
vndk namespace and there is no chance for the lib to be loaded in the rs
namespace.

To fix the problem, the rs namespace is placed before vndk so that the
namespace is tried first.

Bug: 129550847
Test: runtest -x cts/tests/camera/src/android/hardware/
Change-Id: Idafc32f8a309dd12495768931d7ea17a2f791c50
2019-04-02 02:43:23 +00:00
Elliott Hughes e18b348e2d Merge "grep: fix ASan heap-buffer-overflow." am: acf9cfbf80 am: 2b0467de5d
am: c5134f93f1

Change-Id: I4611cb966f736bf4a69c2bfa14ed86b396c54661
2019-04-01 18:31:05 -07:00
Steven Moreland 8b0ab6c982 Merge "libutilscallstack: removed from darwin" am: 0e77120dfd am: 061a663555
am: a57b2aa8fe

Change-Id: I1873e614e0525615ddeb4f5916bfb149c60dc6e5
2019-04-01 18:29:47 -07:00
Elliott Hughes c5134f93f1 Merge "grep: fix ASan heap-buffer-overflow." am: acf9cfbf80
am: 2b0467de5d

Change-Id: Icbb7ecb75e0b652a8088f3127bf19e09c46c834e
2019-04-01 17:55:17 -07:00
Steven Moreland a57b2aa8fe Merge "libutilscallstack: removed from darwin" am: 0e77120dfd
am: 061a663555

Change-Id: I22c6beffb7f5e18c132541e4e2d5f292a34ef3ea
2019-04-01 17:53:45 -07:00
Elliott Hughes 2b0467de5d Merge "grep: fix ASan heap-buffer-overflow."
am: acf9cfbf80

Change-Id: Ifcf8b3cf89e3f8b6d703e2a73cac7b036d013318
2019-04-01 17:45:33 -07:00
Steven Moreland 061a663555 Merge "libutilscallstack: removed from darwin"
am: 0e77120dfd

Change-Id: I104b2986f843224b95d63d9a51b6dad9eccab2fb
2019-04-01 17:40:41 -07:00
Elliott Hughes acf9cfbf80 Merge "grep: fix ASan heap-buffer-overflow." 2019-04-02 00:39:42 +00:00
Steven Moreland 0e77120dfd Merge "libutilscallstack: removed from darwin" 2019-04-02 00:23:30 +00:00
Christopher Ferris c312c9ac15 Add minimal support for Dwarf 5.
This is not full support for dwarf 5, this merely treats a Dwarf 5
version as Dwarf 4. There are new dwarf ops that are not supported yet,
but this minimally support should allow unwinding to work if those
ops are not present.

Bug: 127355724

Test: New Unit tests pass.
Change-Id: I35b24fbcb15a64acd49e1e0b6890dff4456ee6fd
2019-04-01 16:56:09 -07:00
Josh Gao 73a9681319 Merge "adb: make `adb reconnect` perform a USB reset." am: 3b25a17a8a am: 0d9d5ef1bb
am: e5a5a5b18f

Change-Id: If54f9d0b4c8a003ab7cd5557a4d0b0a48fc3654d
2019-04-01 15:34:48 -07:00
Josh Gao e5a5a5b18f Merge "adb: make `adb reconnect` perform a USB reset." am: 3b25a17a8a
am: 0d9d5ef1bb

Change-Id: Id5b2114e90661025563e2eae19567a1eef13e779
2019-04-01 15:18:12 -07:00
Steven Moreland d33a2ee172 libutilscallstack: removed from darwin
libbacktrace only includes its Backtrace.cpp on the linux targets
but not windows or darwin targets. So, both should be disabled.

Previously, libutilscallstack was only ever a static library on
these platforms. Since nothing provided the symbols, these targets
couldn't have been used.

Fixes: 129636352
Test: m

Change-Id: I3f0b09e1d67c485b3ea57f58d1220d9516b326f2
2019-04-01 15:16:13 -07:00
Josh Gao 0d9d5ef1bb Merge "adb: make `adb reconnect` perform a USB reset."
am: 3b25a17a8a

Change-Id: Ic952e10f80684614a0f9da795c730bb52be5a259
2019-04-01 15:12:04 -07:00
Josh Gao 3b25a17a8a Merge "adb: make `adb reconnect` perform a USB reset." 2019-04-01 21:42:57 +00:00
Elliott Hughes fd12160087 libutils: more detailed logging.
The question arose on the bug of whether this is a legit errno or just
a stale value.

Bug: http://b/129139241
Test: ran tests
Change-Id: I486176496028f04d4fcccdd0b29a3df6b13849c9
2019-04-01 12:24:19 -07:00
Elliott Hughes bfd9d63c74 grep: fix ASan heap-buffer-overflow.
Like the regular fgetln(), grep_fgetln() doesn't NUL-terminate the
string, which regexec() doesn't like. ASan just gained the ability to
intercept regexec(), which is why we didn't find this previously.

Bug: http://b/129089665
Test: adb shell grep -R /system -e "abc"
Test: toybox grep tests
Change-Id: Id707cea66a873b83bd763a3dcdf726ac7d062ce0
2019-04-01 10:58:38 -07:00
Jaegeuk Kim cc563077bf Merge "init.rc: tune F2FS to be aligned to system settings" am: 99ba4b36e8 am: d2060b771d
am: e727f6612c

Change-Id: I7a6b250ebb79baf726de6f6493fc2f11262682c4
2019-04-01 09:34:17 -07:00
Jaegeuk Kim e727f6612c Merge "init.rc: tune F2FS to be aligned to system settings" am: 99ba4b36e8
am: d2060b771d

Change-Id: Ic3a3a07eebbc66efef9a15db17b2ca5b8d2a15c8
2019-04-01 09:27:02 -07:00
Jaegeuk Kim d2060b771d Merge "init.rc: tune F2FS to be aligned to system settings"
am: 99ba4b36e8

Change-Id: I1321d587c6bfc5277a9ad16d74ef523e6bd9a789
2019-04-01 09:22:49 -07:00
Treehugger Robot 99ba4b36e8 Merge "init.rc: tune F2FS to be aligned to system settings" 2019-04-01 16:10:28 +00:00