log信息来源补充

This commit is contained in:
2026-07-06 19:05:37 +08:00
parent 28824501dc
commit c5e5280de7
3 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -49,4 +49,5 @@ flutter pub get
flutter run
# Release APK
flutter build apk --release
flutter build apk --release --target-platform android-arm64
```
+2 -1
View File
@@ -38,8 +38,9 @@ class ChargeParser {
final result = <Map<String, dynamic>>[];
for (String line in lines) {
final timestamp = TimeUtils.parseLogTimestamp(line);
if (!TimeUtils.isLogTimestampValid(timestamp, chargingStartTime))
if (!TimeUtils.isLogTimestampValid(timestamp, chargingStartTime)) {
continue;
}
final isUsb =
line.contains('chg_usb') &&
+1 -4
View File
@@ -320,10 +320,7 @@ class _BatteryHealthPageState extends State<BatteryHealthPage>
// ---------- 读取当前数据 ----------
Future<void> readBatteryCapacity() async {
dev.log(
'🔵 ========== readBatteryCapacity 开始 ==========',
name: 'BatteryHealth',
);
dev.log('🔴🔴🔴 readBatteryCapacity 被调用了 🔴🔴🔴', name: 'BatteryHealth');
_safState = await _safService.getPermissionState();
dev.log('🔵 SAF状态: $_safState', name: 'BatteryHealth');