gpt4 book ai didi

android - 添加SQLCipher后如何测试数据库是否加密?

转载 作者:太空狗 更新时间:2023-10-29 13:30:57 24 4
gpt4 key购买 nike

添加 SQLCipher 库后,并添加调用

SQLiteDatabase.loadLibs(context);

如何确认我的应用程序数据库已加密?

我尝试通过 adb 访问 .db。adb shell 在尝试访问 db 文件进行检查时说权限被拒绝或出错。

最佳答案

I tried accessing the .db via adb. adb shell says permissions denied or error when trying to access the db file for inspection.

使用模拟器和 DDMS 或 adb pull(后者的 shell 脚本参见 this blog post)。

use adb shell run-as on a production device ,假设设备不是很旧。

但是,您仍然无法打开数据库,除非您使用的是支持 SQLCipher 的 sqlite3 副本或其他客户端。

关于android - 添加SQLCipher后如何测试数据库是否加密?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15486803/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com