summaryrefslogtreecommitdiffstats
path: root/libutils/misc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Shared libs are supported in recovery modeJiyong Park2018-06-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | adbd has been built as a static executable since the same binary was copied to the recovery partition where shared library is not supported. However, since we now support shared library in the recovery partition, adbd is built as a dynamic executable. In addition, the dependency from adbd to libdebuggerd_handler is removed as debuggerd is handled by the dynamic linker. A few more modules in /system/core are marked as recovery_available: true as they are transitive dependencies of the dynamic linker. This change also includes ld.config.recovery.txt which is the linker config file for the recovery mode. It is installed to /etc/ld.config.txt and contains linker namespace config for the dynamic binaries under /sbin. Bug: 63673171 Test: `adb reboot recovery; adb devices` shows the device ID Test: Select 'mount /system' in the recovery mode, then `adb shell`. $ lsof -p `pidof adbd` shows that libm.so, libc.so, etc. are loaded from the /lib directory. Change-Id: I363d5a787863f1677ee40afb5d5841321ddaae77
* Fix / suppress new unused warnings for mingw+clangDan Willemsen2017-11-291-2/+4
| | | | | | Bug: 69933068 Test: mmma system/core Change-Id: I089166a979d3d8c5ada38a7745d507b555048499
* fix: ATRACE does not work for libs loaded in sphal namespaceJiyong Park2017-05-271-2/+36
| | | | | | | | | | | | | | | | | | From O, libutils.so is loaded twice. Once in the default namespace and once in the sphal namespace for vendor libs. However, since the framework only communicates with the instance loaded in the default namespace, report_sysprop_change() event is not notified to the instance in sphal namespace. This causes ATRACE to not work for vendor libs loaded in sphal namespace. So, the instance loaded in default namespace now explicitly redirects the event to the other instance. Bug: 62084107 Test: start an app, run 'adb shell atrace gfx --stream'. atrace from the graphics driver are visible. Change-Id: Ia6c2ca6bcb9a8849ebb09b5c38d60480c92d4571
* libutils: include what you useSteven Moreland2017-04-141-6/+2
| | | | | | | | | These includes are included transitively by liblog, but not by the VNDK version of liblog. Bug: 33241851 Test: links with BOARD_VNDK_VERSION := current Change-Id: Ide4aee3cacad2a2bf6bd0cbdf0254c6c245f4020
* clean-up libutils includesMathias Agopian2017-03-031-5/+0
| | | | | | | | | | | | moved Foo.h as first include of Foo.cpp, and removed redundant includes. Made NativeHandle non virtual. Test: run & compile Bug: n/a Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a
* Consistently use strerror in libutils.Elliott Hughes2015-06-301-1/+0
| | | | | | | | It's easier for people to debug, and side-steps the problem that errno values differ between architectures. Bug: http://b/17458391 Change-Id: I1db9b2cbb653839d3936b91e37e5cff02671318a
* Kill HAVE_PTHREADS.Yabin Cui2015-01-271-4/+4
| | | | | Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
* move libs/utils to libutilsAlex Ray2013-08-021-0/+90
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d