issues
search
DanielBlomberg1
/
mimir
Android app for logging various sensors data in smart devices.
Apache License 2.0
0
stars
0
forks
source link
Task 5: Error handling
#10
Closed
danmida
closed
3 weeks ago
danmida
commented
3 weeks ago
Implemented a file integrity checker aka data corruption check during transfer
Before sending log, calculates checksum with SHA-256 algorithm
Checksum is sent as hidden message at same time as log is sent, class in phone side listens for the checksum
Phone waits for log to be fully transferred
Phone calculates received log checksum with same algorithm and compares to checksum received from watch
Most common case why data would corrupt is smartwatch losing connection during transfer
Proper handling is not implemented, incomplete file will be partially transferred and stay in phone storage
Snackbar notification (works only on MainActivity.kt)
Sends notification when file integrity is verified
FIle transfer/download progress bar (total file size needs to be fixed)
Global Notification (works on all activities on phone)
Sends notification when file has been received from watch
Sends notification error if file has corrupted during transfer due to failing checksum verification
Improved/debugged connected phone detection to also catch cases when watch disconnects and is connected again
Error will be created that phone is not connected if not paired
Changed storage saving location to /storage/emulated/0/Android/data/com.mobilewizards.logging_app/files/Download
Ran into issues accessing from external storage during file integrity checking. Permissions?
Implemented a file integrity checker aka data corruption check during transfer
Snackbar notification (works only on MainActivity.kt)
Global Notification (works on all activities on phone)
Improved/debugged connected phone detection to also catch cases when watch disconnects and is connected again
Changed storage saving location to /storage/emulated/0/Android/data/com.mobilewizards.logging_app/files/Download