back to home

amitshekhariitbhu / Android-Debug-Database

A library for debugging android databases and shared preferences - Make Debugging Great Again

8,640 stars
880 forks
82 issues
JavaJavaScriptHTML

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing amitshekhariitbhu/Android-Debug-Database in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/amitshekhariitbhu/Android-Debug-Database)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Android Debug Database Android Debug Database is a powerful library for debugging databases and shared preferences in Android applications Android Debug Database allows you to view databases and shared preferences directly in your browser in a very simple way What can Android Debug Database do? • See all the databases. • See all the data in the shared preferences used in your application. • Run any sql query on the given database to update and delete your data. • Directly edit the database values. • Directly edit the shared preferences. • Directly add a row in the database. • Directly add a key-value in the shared preferences. • Delete database rows and shared preferences. • Search in your data. • Sort data. • Download database. • Debug Room inMemory database. About me Hi, I am Amit Shekhar, Founder @ Outcome School • IIT 2010-14 • I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos. Follow Amit Shekhar • X/Twitter • LinkedIn • GitHub Follow Outcome School • YouTube • X/Twitter • LinkedIn • GitHub I teach at Outcome School • AI and Machine Learning • Android Join Outcome School and get a high-paying tech job: Outcome School Outcome School Blog - High-quality content to learn Android concepts. All these features work without rooting your device -> No need of rooted device Using Android Debug Database Library in your application Add this in your : If you are using , add the following: Add this in your If you are using , add the following: Using the Android Debug Database with encrypted database Add this in your If you are using , add the following: And to provide the password for the DB, you should add this in the Gradle: DB_PASSWORD_{VARIABLE}, if for example, PERSON is the database name: DB_PASSWORD_PERSON Use so that it will only compile in your debug build and not in your release build. That’s all, just start the application, you will see in the logcat an entry like follows : • D/DebugDB: Open http://XXX.XXX.X.XXX:8080 in your browser • You can also always get the debug address url from your code by calling the method Now open the provided link in your browser. Important: • Your Android phone and laptop should be connected to the same Network (Wifi or LAN). • If you are using it over usb, run Note : If you want use different port other than 8080. In the app build.gradle file under buildTypes do the following change You will see something like this : Seeing values Editing values Working with emulator • Android Default Emulator: Run the command in the terminal - and open http://localhost:8080 • Genymotion Emulator: Enable bridge from configure virtual device (option available in genymotion) Getting address with toast, in case you missed the address log in logcat As this library is auto-initialize, if you want to get the address log, add the following method and call (we have to do like this to avoid build error in release build as this library will not be included in the release build) using reflection. Adding custom database files As this library is auto-initialize, if you want to debug custom database files, add the following method and call Adding InMemory Room databases As this library is auto-initialize, if you want to debug inMemory Room databases, add the following method and call Find this project useful ? :heart: • Support it by clicking the :star: button on the upper right of this page. :v: TODO • Simplify emulator issue Issue Link • And of course many more features and bug fixes. You can connect with me on: • Twitter • LinkedIn • GitHub • Facebook **Read all of our blogs here.** License Contributing to Android Debug Database All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.