Skip to content

Fix Android backup with missing journal#97

Open
limeimetw wants to merge 1 commit into
masterfrom
fix/94-android-backup-zero-byte
Open

Fix Android backup with missing journal#97
limeimetw wants to merge 1 commit into
masterfrom
fix/94-android-backup-zero-byte

Conversation

@limeimetw
Copy link
Copy Markdown
Collaborator

Summary

  • Fix Android backup creation when the optional SQLite rollback journal (lime.db-journal) is absent or transient.
  • Propagate backup/write failures from DBServer.backupDatabase() so the UI shows failure instead of success/0 B output.
  • Ensure backup progress is hidden on both success and failure.
  • Add regression coverage for missing/present optional journal handling and output failure propagation.

Verification

  • ANDROID_HOME=$HOME/Android/Sdk ANDROID_SDK_ROOT=$HOME/Android/Sdk ./gradlew :app:compileDebugJavaWithJavac :app:compileDebugAndroidTestJavaWithJavac
  • Attempted targeted connected androidTest for the new DBServer tests; blocked by no connected Android device (DeviceException: No connected devices!).
  • Independent review performed; initial blockers fixed before PR.

Fixes #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

備份功能是否可用?

1 participant