当我启动应用程序然后在调试日志中打印以下错误时,我想知道是应用程序端问题还是设备端,我是 android 开发的新手,所以任何人都可以确认为什么会出现以下日志?
设备 Moto G3
12-28 11:09:31.190 6380-6403/? E/MC_LineReader: Error opening /sys/class/power_supply/bms/resistance
java.io.FileNotFoundException: /sys/class/power_supply/bms/resistance: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.motorola.motocare.util.LineReader.<init>(LineReader.java:20)
at com.motorola.motocare.util.LineReader$1.<init>(LineReader.java:53)
at com.motorola.motocare.util.LineReader.firstLineReader(LineReader.java:53)
at com.motorola.motocare.util.BatteryUtils.getBatteryResistance(BatteryUtils.java:130)
at com.motorola.motocare.action.BatteryLevelAction.onReceiveImpl(BatteryLevelAction.java:42)
at com.motorola.motocare.util.BackgroundReceiver$1.run(BackgroundReceiver.java:14)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.motorola.motocare.util.LineReader.<init>(LineReader.java:20)
at com.motorola.motocare.util.LineReader$1.<init>(LineReader.java:53)
at com.motorola.motocare.util.LineReader.firstLineReader(LineReader.java:53)
at com.motorola.motocare.util.BatteryUtils.getBatteryResistance(BatteryUtils.java:130)
at com.motorola.motocare.action.BatteryLevelAction.onReceiveImpl(BatteryLevelAction.java:42)
at com.motorola.motocare.util.BackgroundReceiver$1.run(BackgroundReceiver.java:14)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)