No description
Find a file
Bart Van Assche 5a7e5083e6 healthd: Fix readFromFile()
Not all readFromFile() callers pass an empty string. Make sure that
readFromFile() returns 0 (failure) if the *buf argument is not empty and
if reading fails.

Fixes: 3217c5c7d9 ("batterymonitor: simplify readFromFile and use std::string buffers")
Test: Compile-tested only.
Change-Id: I6f329491f8aa4a6d378eb7c3cbc17038eb6aa64d
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-03 18:46:12 +00:00
bootstat bootstat: add more bootreasons 2021-09-19 19:11:06 +00:00
cli-test [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
code_coverage [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
debuggerd Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00
diagnose_usb Support building diagnose_usb against musl 2021-12-16 14:04:06 -08:00
fastboot fastbootd: Remove all scratch partitions on update-super. 2022-02-17 04:16:53 +00:00
fs_mgr Merge "fs_mgr: Fix misleading comment text regarding __ANDROID_RECOVERY__" 2022-03-03 06:23:14 +00:00
gatekeeperd Depend on KeyMint HAL via default 2021-12-02 08:16:25 +00:00
healthd healthd: Fix readFromFile() 2022-03-03 18:46:12 +00:00
include Remove include/backtrace symlink. 2020-10-20 12:46:14 -07:00
init Document firmware_class.path 2022-03-03 13:00:20 +11:00
janitors Add the two best build system janitors. 2019-03-25 10:25:13 -07:00
libappfuse [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
libasyncio Set min_sdk_version 2021-12-02 09:23:42 +09:00
libbinderwrapper [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
libcrypto_utils Set min_sdk_version 2021-12-02 09:23:42 +09:00
libcutils Rename SupplementalProcess to SdkSandbox 2022-03-02 16:12:41 +00:00
libdiskconfig [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
libgrallocusage Make apex_available explicit 2022-02-09 11:37:19 -08:00
libkeyutils Make libfs_mgr dependencies vendor_ramdisk_available. 2021-07-23 16:50:06 -07:00
libmodprobe Split up the system/core/ TEST_MAPPING. 2021-08-16 16:37:10 -07:00
libnetutils Move libipchecksum to frameworks/libs/net. 2021-12-16 19:38:01 +00:00
libpackagelistparser Split up the system/core/ TEST_MAPPING. 2021-08-16 16:37:10 -07:00
libprocessgroup Merge "Support process path for WriteFileAction" 2022-03-01 00:06:57 +00:00
libsparse Merge changes from topic "sparse-file-read-enum" 2022-01-28 05:28:04 +00:00
libstats Make libstatspull_bindgen available to virt apex. 2022-01-14 10:29:51 +00:00
libsuspend libsuspend: vendor_available. 2021-11-02 13:52:40 -07:00
libsync libsync: remove hridya@ from OWNERS file 2022-01-05 16:59:03 -08:00
libsystem [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
libsysutils Fix 32-bit userspace on 64-bit kernel quota2 compatibility. 2021-10-25 16:24:49 -07:00
libusbhost libusbhost: factor out frameworks descriptors -> byte[] code. 2022-01-24 13:35:20 -08:00
libutils Fix OkOrFail<status_t> conversion ambiguities 2022-02-25 14:27:41 -05:00
libvndksupport Check vendor namespace for SPHAL namespace 2021-11-22 10:57:44 +09:00
llkd llkd: Disable in userdebug builds by default 2021-11-04 16:21:46 -07:00
mini_keyctl Merge "Make libmini_keyctl_static available in recovery" 2021-11-23 17:54:31 +00:00
mkbootfs Rename system/cote/cpio/ -> system/core/mkbootfs/ 2021-05-05 19:03:36 +08:00
property_service remove 'net.qtaguid_enabled' property 2021-11-10 15:52:38 -08:00
reboot [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
rootdir Merge "Use sanitizer paths exported by make" 2022-02-18 03:39:26 +00:00
run-as [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
sdcard [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
set-verity-state Remove support for AVB 1.0. 2021-11-30 00:57:49 -08:00
shell_and_utilities Invert history. 2022-03-03 01:52:15 +00:00
storaged Merge "storaged: Fix bug in empty check" 2021-12-11 03:07:39 +00:00
toolbox toolbox/generate-input.h-labels.py: python3. 2021-08-17 14:34:55 -07:00
trusty Merge "Include correct authorization_set.h header" 2022-03-01 10:31:26 +00:00
usbd usbd - remove unused libcutils dep 2021-06-28 23:56:29 +00:00
watchdogd [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
.clang-format
.clang-format-2
.clang-format-4
.gitignore
CleanSpec.mk snapshotctl don't auto-merge. 2020-03-03 13:19:49 -08:00
METADATA Add METADATA to system/core: Apache2+BSD=NOTICE 2020-04-29 13:16:41 -07:00
MODULE_LICENSE_APACHE2
OWNERS Remove baligh@ from owners. CodeShuffle done. 2020-10-17 00:28:10 +00:00
PREUPLOAD.cfg Add AOSP preupload hook. 2020-04-23 11:02:00 -07:00