Skip to content

Repository files navigation

default

Android Database Live Inspector

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

request respone

What is inside

  • 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.

App setup

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.

About

Android Database Live Inspector embedded in App Inspection windows

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages