为什么使用Android ADB Shell的SQLite 3命令返回“权限被拒绝"? [英] Why does the SQLite 3 command using the Android ADB shell return "permission denied"?

查看:129
本文介绍了为什么使用Android ADB Shell的SQLite 3命令返回“权限被拒绝"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

特别是,我试图在ADB shell中使用sqlite3命令在正在构建的Android应用程序的数据库上运行一些查询.

Specifically, I was trying to use the sqlite3 command with the ADB shell to run some queries on the database of the Android application I'm building.

我不断收到"sqlite3:权限被拒绝".我正在使用从Google购买的Nexus One进行开发.我的手机需要扎根吗?

I kept getting "sqlite3: permission denied". I'm developing on a Nexus One that I purchased from Google. Does my phone need to be rooted or something?

$ sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3: permission denied

推荐答案

文件受读取保护.您需要扎根手机或使用仿真器.

The files are read protected. You need to root your phone or use the emulator.

这篇关于为什么使用Android ADB Shell的SQLite 3命令返回“权限被拒绝"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆