Amitshekhar android debug db

Android Debug Database

General

Additional

Commercial

  • Description
  • Package
  • APK
  • Discussion
  • Q&A
  • Resources

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.

All these features work without rooting your device -> No need of rooted device

Check out our other Open Source Projects

Using Android Debug Database Library in your application

Add this to your app’s build.gradle

Using the Android Debug Database with encrypted database

And to provide the password for the DB, you should add this in the Gradle: DB_PASSWORD_, if for example, PERSON is the database name: DB_PASSWORD_PERSON

Use debugImplementation 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 DebugDB.getAddressLog();

Now open the provided link in your browser.

  • Your Android phone and laptop should be connected to the same Network (Wifi or LAN).
  • If you are using it over usb, run adb forward tcp:8080 tcp:8080

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 — adb forward tcp:8080 tcp:8080 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.

Читайте также:  Create fragments in android

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 ? ❤️

  • Support it by clicking the ⭐ button on the upper right of this page. ✌️
  • Simplify emulator issue Issue Link
  • And of course many more features and bug fixes.

Check out Mindorks awesome open source projects here

Contact — Let’s become friends

License

Contributing to Android Debug Database

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

Источник

Как отлаживать базу данных в Android?

Библиотека Android Debug Database — полезный инструмент для устранения неполадок баз данных и общих настроек в приложениях Android. В этой статье мы с нетерпением ждем возможности использовать эту библиотеку и разобраться в ней, так что продолжайте читать и наслаждайтесь.

Что такое база данных отладки Android?

Что ж, ответ на этот вопрос прост: база данных отладки Android позволяет очень легко проверять базы данных и общие настройки прямо в браузере. Не только это, но и ADD также позволяет вам просматривать структуру вашей базы данных в отлаживаемом формате, чтобы вы могли выполнять действия с вашими данными гораздо более детально и изощренно.

Давайте погрузимся в подробности. На что способна база данных отладки Android.

Вот его список:

  • Просмотрите свои файлы.
  • Сортируйте информацию.
  • База данных может быть загружена.
  • Выполните отладку базы данных Room в памяти.
  • Просмотрите все базы данных.
  • Просмотрите все данные в общих настройках вашего приложения.
  • Редактируйте общие настройки напрямую.
  • Добавить строку в базу данных напрямую.
  • Чтобы обновить и удалить данные, запустите любой SQL-запрос в указанной базе данных.
  • Отредактируйте значения базы данных напрямую.
  • В общих настройках напрямую добавьте пару «ключ-значение».
  • Удалите общие настройки и строки базы данных.

Звучит здорово, для начала, давайте начнем!

Шаг № 1 : добавление зависимости к вашему Android-проекту

Источник

Amitshekhar android debug db

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.

All these features work without rooting your device -> No need of rooted device

Check out our other Open Source Projects

Using Android Debug Database Library in your application

Add this to your app’s build.gradle

Using the Android Debug Database with encrypted database

And to provide the password for the DB, you should add this in the Gradle: DB_PASSWORD_, if for example, PERSON is the database name: DB_PASSWORD_PERSON

Читайте также:  Android app user session

Use debugImplementation 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 DebugDB.getAddressLog();

Now open the provided link in your browser.

  • Your Android phone and laptop should be connected to the same Network (Wifi or LAN).
  • If you are using it over usb, run adb forward tcp:8080 tcp:8080

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 :

Working with emulator

  • Android Default Emulator: Run the command in the terminal — adb forward tcp:8080 tcp:8080 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 ? ❤️

  • Support it by clicking the ⭐ button on the upper right of this page. ✌️
  • Simplify emulator issue Issue Link
  • And of course many more features and bug fixes.

Contact — Let’s become friends

Contributing to Android Debug Database

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

CoreWillSoft / Android-Debug-Database Go PK Goto Github PK

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

License: Apache License 2.0

Java 74.16% JavaScript 21.90% CSS 0.53% HTML 3.41%

Android-Debug-Database’s Introduction

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.

All these features work without rooting your device -> No need of rooted device

Check out our other Open Source Projects

Читайте также:  You tv player android 4pda

Using Android Debug Database Library in your application

Add this to your app’s build.gradle

Using the Android Debug Database with encrypted database

And to provide the password for the DB, you should add this in the Gradle: DB_PASSWORD_, if for example, PERSON is the database name: DB_PASSWORD_PERSON

Use debugImplementation 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 DebugDB.getAddressLog();

Now open the provided link in your browser.

  • Your Android phone and laptop should be connected to the same Network (Wifi or LAN).
  • If you are using it over usb, run adb forward tcp:8080 tcp:8080

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 :

Working with emulator

  • Android Default Emulator: Run the command in the terminal — adb forward tcp:8080 tcp:8080 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 ? ❤️

  • Support it by clicking the ⭐ button on the upper right of this page. ✌️
  • Simplify emulator issue Issue Link
  • And of course many more features and bug fixes.

Contact — Let’s become friends

Contributing to Android Debug Database

All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.

Contributors

Watchers

Recommend Projects

React

A declarative, efficient, and flexible JavaScript library for building user interfaces.

Vue.js

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Typescript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

TensorFlow

An Open Source Machine Learning Framework for Everyone

Django

The Web framework for perfectionists with deadlines.

Laravel

A PHP framework for web artisans

Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

javascript

JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

Some thing interesting about web. New door for the world.

server

A server is a program made to process requests and deliver data to clients.

Machine learning

Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

Visualization

Some thing interesting about visualization, use data art

Some thing interesting about game, make everyone happy.

Recently View Projects

Android-Debug-Database

a library for debugging android databases and shared preferences — make debugging great again.

cmmn-js

a cmmn 1.1 rendering toolkit and web modeler.

Источник

Оцените статью