Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 64deb448 authored by Michael Bestas's avatar Michael Bestas Committed by Steve Kondik
Browse files

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
parent f191fbe0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment