Android Database Live Inspector is an Android Studio App Inspection plugin for watching Room/SQLite database activity from a running debug app. It records SQL statements, bind args, timing, errors, and small result previews, then shows them in a custom App Inspection tab.
Install from JetBrains Marketplace: Install Plugin
plugin: Android Studio plugin UI and App Inspection tab.inspector: on-device inspector DEX that Android Studio injects into the app process.agent: app-side Room/SQLite wrapper that captures query events.protocol: shared JSON message types.stubs: compile-time inspection API stubs.
Release versions of the agent are published to Maven Central with their protocol implementation bundled into the AAR. It can be used from any app without GitHub credentials:
repositories {
mavenCentral()
}Add the agent to your debug app and wrap your Room builder:
dependencies {
debugImplementation("dev.ahmedvhashem.databaseliveinspector:agent:VERSION")
}import dev.ahmedvhashem.databaseliveinspector.agent.DatabaseLiveInspector
DatabaseLiveInspector.install(context)
val builder = Room.databaseBuilder(context, AppDatabase::class.java, "app.db")
DatabaseLiveInspector.attachTo(builder, "app.db")
val db = builder.build()Run the debug app, open Android Studio's App Inspection tool window, and select Database Live Inspector.