Android Debug Database lets developers inspect SQLite databases and SharedPreferences from a running debug build via a browser. It is intended for debug builds only and does not require a rooted device.
Overview
Android Debug Database is an Android library that exposes local databases and SharedPreferences to a web UI while an app runs in debug mode. After integration, the library logs a local URL developers can open in a browser on the same network as the device or emulator.
The browser interface can list databases, view and edit table data, run SQL updates and deletes, manage SharedPreferences keys, search and sort values, and download database files. It also supports debugging Room in-memory databases, custom database files, and encrypted stores when the appropriate Gradle dependencies and passwords are supplied.
Setup uses debug-only Gradle dependencies so release builds omit the tooling. Phone and computer must share a network, or USB debugging can forward the default port with adb. Emulator-specific notes mention Genymotion bridge options.
Optional APIs retrieve the debug address programmatically, show a toast with the URL, or register extra database paths through reflection helpers designed to avoid release-build compile errors.
Key features
- Browser UI for SQLite data
- SharedPreferences viewing and editing
- Ad-hoc SQL queries and row edits
- Encrypted database support with password
- Room in-memory database debugging
- Search, sort, and database download
- Debug-only Gradle dependency scope
- Custom and additional database file hooks
Use cases
- Inspecting app SQLite during development
- Editing SharedPreferences without adb shell
- Debugging Room databases on emulators