facebookarchive / stetho

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.
http://facebook.github.io/stetho/
MIT License
12.66k stars 1.13k forks source link

Support for SqlCipher #588

Closed usergoodvery closed 6 years ago

usergoodvery commented 6 years ago

Hi, Is there a known mechanism for using stetho with db encrypted with SqlCipher. Or more directly, is there a way to provide the key to stetho?

longinoa commented 6 years ago

There is no current way to provide a key.

Seeing as how close SqlCipher is to SqlLiteDatabase you could look at creating a SqlLiteDatabaseProvider that bridges the two.

The other option is to create a DumperPlugin that would be able to do the queries for you.

mathroule commented 5 years ago

Hi, I'm trying to use Stetho on an app using SqlCipher, I got this issue https://github.com/sqlcipher/android-database-sqlcipher/issues/328. There is a way to disable database inspection and keep network monitoring in Stetho?

mathroule commented 5 years ago

If I'm trying to open the encrypted database in Chrome DevTools, the database become corrupted and the app crash on next startup. So one way to disable database inspection is to not use it.

mathroule commented 5 years ago

Stetho can decrypt SQLCipher database thanks to this plugin https://github.com/technoir42/stetho-sqlcipher.