summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-01-22 20:53:09 +0200
committerSteve Kondik <shade@chemlab.org>2016-01-23 23:45:01 -0800
commit64deb448b8ac50587bc90e3506e639e4e1a066ed (patch)
tree1b4820dbb8db97a54cdd2b1c19d661b01af0bab2 /libs
parentf191fbe0c23cd446631832b7f46d5b8ea173a28c (diff)
downloadframeworks_base-64deb448b8ac50587bc90e3506e639e4e1a066ed.zip
frameworks_base-64deb448b8ac50587bc90e3506e639e4e1a066ed.tar.gz
frameworks_base-64deb448b8ac50587bc90e3506e639e4e1a066ed.tar.bz2
batteryservice: Avoid exception if device doesn't support HVDCP
E BatteryService: Failure in reading charger type E BatteryService: java.io.FileNotFoundException: /sys/class/power_supply/usb/type: open failed: ENOENT (No such file or directory) E BatteryService: at libcore.io.IoBridge.open(IoBridge.java:452) E BatteryService: at java.io.FileInputStream.<init>(FileInputStream.java:76) E BatteryService: at java.io.FileReader.<init>(FileReader.java:42) E BatteryService: at com.android.server.BatteryService$Led.isHvdcpPresent(BatteryService.java:792) E BatteryService: at com.android.server.BatteryService$Led.updateLightsLocked(BatteryService.java:849) E BatteryService: at com.android.server.BatteryService.processValuesLocked(BatteryService.java:501) E BatteryService: at com.android.server.BatteryService.update(BatteryService.java:330) E BatteryService: at com.android.server.BatteryService.-wrap4(BatteryService.java) E BatteryService: at com.android.server.BatteryService$BatteryListener.batteryPropertiesChanged(BatteryService.java:870) E BatteryService: at android.os.IBatteryPropertiesListener$Stub.onTransact(IBatteryPropertiesListener.java:58) E BatteryService: at android.os.Binder.execTransact(Binder.java:453) E BatteryService: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) E BatteryService: at libcore.io.Posix.open(Native Method) E BatteryService: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) E BatteryService: at libcore.io.IoBridge.open(IoBridge.java:438) E BatteryService: ... 10 more Change-Id: I3ed4d8959a7e492e483fab365cf09612b5302908
Diffstat (limited to 'libs')
0 files changed, 0 insertions, 0 deletions