Go to file
Todd Poynor de610c9a0e healthd: don't report fake data for battery-less devices
If the kernel does not implement a power_supply class device of type
battery, do not report fake data, instead report the following by
default:

* batteryPresent = false (instead of true),
* charging status = unknown (instead of charging),
* capacity = 0 (instead of 100%),
* health = unknown (instead of good),
* AC charger online not modified (instead of forcing true)

If no charger and no battery devices are supplied by the kernel, the
AC charger online property will no longer be forced to true.  Devices
that are always plugged into AC power should either implement a
power_supply class charger device or implement a Health HAL that sets
properties appropriately.

Bug: 34507420
Test: manual: gce_x6_phone (no battery or charger),
      boots and stays booted, inspect properties
Change-Id: I14cb3b685e8130428e417e7d08c4246f7415210a
2017-12-14 21:13:06 +00:00
adb Merge "Set $TMPDIR for `adb shell`." 2017-12-12 00:29:50 +00:00
adf Merge "Add OWNERS." am: 3289b9c928 am: 515c8fe572 2017-12-08 01:29:20 +00:00
base Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
bootstat Merge "Add OWNERS." am: 3289b9c928 am: 515c8fe572 2017-12-08 01:29:20 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
demangle Add OWNERS. 2017-12-07 13:30:03 -08:00
fastboot Merge "fastboot: support make_f2fs and sload_f2fs for win32" 2017-12-08 00:58:05 +00:00
fs_mgr Merge "first stage mount: support mount points like /vendor/abc" am: edaa28771f am: 72db512c47 2017-12-14 06:57:41 +00:00
gatekeeperd Make libkeystore_aidl shared and export to PDK. 2017-11-28 16:59:41 -08:00
healthd healthd: don't report fake data for battery-less devices 2017-12-14 21:13:06 +00:00
include Move android_filesystem_config.h => fs_config.h 2017-08-03 17:20:27 +00:00
init Revert "Have property_service create a serialized property_contexts file" 2017-12-13 14:42:26 -08:00
libappfuse Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
libasyncio Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libbacktrace libBacktraceOffline: try both .debug_frame and .ARM.exidx on arm. 2017-12-10 18:00:35 -08:00
libbinderwrapper libbinderwrapper: Android.mk -> Android.bp 2017-04-25 15:55:26 -07:00
libcrypto_utils Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libcutils Stop defining local "unused" macros now this is C++. 2017-11-30 16:24:36 -08:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libion Merge "libion: Adapt to new ION interface" 2017-09-21 01:06:32 +00:00
libkeyutils Add libkeyutils. 2017-05-10 10:40:11 -07:00
liblog Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
libmemtrack Add OWNERS. 2017-12-07 13:30:03 -08:00
libmemunreachable Add OWNERS. 2017-12-07 13:30:03 -08:00
libmetricslogger Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativebridge Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativeloader Load versioned llndk.libraries.txt and vndksp.libraries.txt 2017-12-13 10:27:28 +09:00
libnetutils Merge "Add OWNERS." am: 3289b9c928 2017-12-07 23:51:13 +00:00
libpackagelistparser Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libpixelflinger MIPS[64]: codeflinger: Fix build due to unused variable warnings 2017-11-06 16:38:49 +01:00
libprocessgroup Add memcg related configs to init. 2017-07-18 15:58:40 -07:00
libprocinfo Add OWNERS. 2017-12-07 13:30:03 -08:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libsuspend Merge "Mark the modules as VNDK in Android.bp" 2017-09-15 16:31:01 +00:00
libsync Merge "libsync: Add fence info tests" 2017-09-26 23:46:32 +00:00
libsystem Define priority for video threads 2017-09-07 16:14:07 -07:00
libsysutils Don't complain that the DNSSL RA option is "unknown". 2017-11-28 06:42:04 +00:00
libunwindstack Add libunwindstack support for Mips and Mips64 2017-12-11 15:44:40 +01:00
libusbhost Merge "usblib: fix race & delay waiting for perms on open" am: 255c43cd05 am: 20346c2336 2017-12-08 01:28:35 +00:00
libutils Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
libvndksupport Add OWNERS. 2017-12-07 13:30:03 -08:00
libziparchive Merge "Add OWNERS." am: 3289b9c928 2017-12-07 23:51:13 +00:00
lmkd Merge "Add lmkd/OWNERS." 2017-12-09 18:47:57 +00:00
logcat Add OWNERS. 2017-12-07 13:30:03 -08:00
logd Merge "Revert "add aid check when writting into logd stats buffer. For now we require aid to be system."" 2017-12-11 23:34:17 +00:00
logwrapper Add OWNERS. 2017-12-07 13:30:03 -08:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
property_service Always check prefix matches array at each node 2017-12-13 16:58:33 -08:00
qemu_pipe Add OWNERS. 2017-12-07 13:30:03 -08:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir android.hardware.graphics.allocator@2.0 is no longer VNDK-SP 2017-12-13 17:05:14 +09:00
run-as run-as: Keep supplementary groups. 2017-09-29 15:34:23 -04:00
sdcard Merge "Add OWNERS." am: 3289b9c928 am: 515c8fe572 2017-12-08 01:29:20 +00:00
shell_and_utilities Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
storaged storaged: align buffer address and size for direct_io 2017-12-13 15:54:55 -08:00
toolbox Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
trusty Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.clang-format-4 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.bp Export android_filesystem_config.h as a filegroup 2017-01-17 18:20:28 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add VNDK version for namespace configuration files 2017-12-13 10:31:04 +09:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00
platform_tools_tool_version.mk Fix warning on the build servers 2017-05-25 12:35:40 -07:00