关于Android ADB Shell [英] About Android adb shell

查看:113
本文介绍了关于Android ADB Shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Android adb shell

当我插入将成功插入的数据时,它们也会显示在

About Android adb shell

When i am inserting the data that will insert successfully also they are displyed in

file explorer>data>data>package>database


中 但是当我使用adb shell时,该时间显示没有可用的此类表:
我不知道会发生什么
请帮助我...


But when i use adb shell that time display no such table available:
i don''t know what happen
please help me...

推荐答案

听起来您想从adb shell访问应用程序数据目录.由于您的文件通常不可读,因此通常无法访问它,但是,如果您的应用程序设置为可调试的,则可以以pgram用户身份运行adb shell.

在ADB Shell上,只需键入:
It sounds like you want to access your apps data directory from adb shell. It''s nt normally accessible since your files are generally not world readable, however you can run the adb shell as your pgram''s user if your app is set as debuggable

At the ADB shell, just type:
run-as com.your.package.name


现在,您键入的所有命令都将作为您的应用程序执行,您应该能够进入该目录并查看/编辑文件.

来源: http://denniskubes.com/2012/09/25/read -android-data-folder-without-rooting/ [ ^ ]


Now any commands you type after this will be executed as your app and you should be able to get into that directory and view/edit files.

Source: http://denniskubes.com/2012/09/25/read-android-data-folder-without-rooting/[^]


这篇关于关于Android ADB Shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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