1) device.mk: add charger_res_images to PRODUCT_PACKAGES
to use the default charger mode images
2) init.hardware.rc: configure charger service class
3) BoardConfig.mk: enable suspend in charger mode
Bug: 36046603
Change-Id: I3652a69784b8ecd4e670f26fdd66b7c68d578f9f
Signed-off-by: Yueyao Zhu <yueyao@google.com>
Cache is not used on the device using AB update. In that case, init just
waits
for timeout 5s.
[ 18.904216] init: Command 'mount_all fstab.${ro.hardware}' action=fs
(/init.taimen.rc:33) returned 1 took 767.808ms.
[ 23.911072] init: Command 'wait /dev/block/bootdevice/by-name/cache'
action=fs (/init.taimen.rc:40) returned -1 took 5006.36ms.
Test: Build and tested on a device
Change-Id: Iaee76961c98b7b7873e532a7003d560ebf6c4752