one of my users has as Samsung SM-X210 running Android 16 with SDK 36.
My software is complied with SDK 35 (just to let you know)
His database keeps getting what appears to be corrupted to me. Things that should take seconds or less take over 20 minutes.
I think he is having a hardware problem but cannot prove it.
when I search google I got this results and was wondering if anyone else en counted something similar
My program runs on hundreds of device flawless and he is the only one seeing this. I am sure he is having a hardware problem. When he sends me his database and I restart it everything works fine. Any help
ADDITIONAL NOTE: My app is not crashing so I have nothing to debug
My software is complied with SDK 35 (just to let you know)
His database keeps getting what appears to be corrupted to me. Things that should take seconds or less take over 20 minutes.
I think he is having a hardware problem but cannot prove it.
when I search google I got this results and was wondering if anyone else en counted something similar
My program runs on hundreds of device flawless and he is the only one seeing this. I am sure he is having a hardware problem. When he sends me his database and I restart it everything works fine. Any help
Google Search:
SQLite database problems on a Samsung SM-X210 (Galaxy Tab A9+) targeting Android 16 (SDK 36) likely stem from tightened data access restrictions, threading issues, or database corruption, rather than native SQLite bugs
. Address these by employing transaction-based batching, using WAL (Write-Ahead Logging) mode, and upgrading to modern data persistence libraries like Room.
Key Troubleshooting & Best Practices
Handle Corruption: SQLiteDatabaseCorruptException is common. Ensure database helpers properly handle closing connections on multiple threads.
Optimize Performance: Enable WAL mode (db.enableWriteAheadLogging()) for better concurrency.
Batch Operations: Wrap multiple INSERT or UPDATE statements within a single transaction to prevent performance bottlenecks on Android 16.
Use Proper Tools: Use Perfetto tracing and dumpsys meminfo to diagnose locking issues on the SM-X210.
Targeting SDK 36: Ensure that database file paths and permissions comply with the latest Android 16 behavior changes regarding file storage.
For robust solutions, migrate to Android Jetpack Room, which abstraction over SQLite often resolves concurrency issues.
ADDITIONAL NOTE: My app is not crashing so I have nothing to debug