2
私がアプリを起動すると、以下のエラーがデバッグログに出力されます。アプリ側の問題かデバイス側かを知りたいのですが、誰がこのログが下に来る理由を確認できますか?/sys/class/power_supply/bms/resistanceを開くエラーが発生しました
デバイスモト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)
私は同じ問題に直面しています。解決策を投稿してください –