log信息来源补充
This commit is contained in:
@@ -49,4 +49,5 @@ flutter pub get
|
||||
flutter run
|
||||
|
||||
# Release APK
|
||||
flutter build apk --release
|
||||
flutter build apk --release
|
||||
```
|
||||
@@ -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') &&
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user