相关疑难解决方法(0)

使用adb时,为什么我会拒绝访问数据文件夹?

我使用adb和以下命令连接到我的live设备:

C:\>adb -s HT829GZ52000 shell
$ ls
ls
sqlite_stmt_journals
cache
sdcard
etc
system
sys
sbin
proc
logo.rle
init.trout.rc
init.rc
init.goldfish.rc
init
default.prop
data
root
dev
$ cd data
cd data
$ ls
ls
opendir failed, Permission denied
Run Code Online (Sandbox Code Playgroud)

我惊讶地发现我有访问被拒绝.为什么我不能使用这样的命令行浏览目录?

如何在手机上获得root访问权限?

android adb

174
推荐指数
7
解决办法
31万
查看次数

Android:adb:权限被拒绝

无论我在"adb shell"之后键入什么,它都会失败Permission denied:

D:\android-sdk-windows\platform-tools>adb shell find /data -name *.db
find: permission denied

D:\android-sdk-windows\platform-tools>adb shell test
test: permission denied

D:\android-sdk-windows\platform-tools>adb remount
remount failed: No such file or directory
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

android adb

73
推荐指数
6
解决办法
27万
查看次数

adb shell su工作,但adb root不工作

我根植了解锁的Galaxy S3(SGH-T999)

现在,我正在尝试adb root从Windows 命令提示符运行,但是,我收到adbd cannot run as root in production builds错误.所以,我检查的第一件事是我的手机是否真的扎根了?

所以我尝试了以下方法:

打开命令提示符

$adb devices // lists my device
$adb shell //goes to shell
$su // opens a 'SuperSu' prompt on my phone and I 'Grant' permission
# // Before following the rooting instructions, I was getting 'no su command found' in the previous step. So, I believe my phone is ROOTED. **Correct me if I'm wrong.**
Run Code Online (Sandbox Code Playgroud)

但是,当我这样做时adb root,我会收到adbd cannot run …

shell android root adb

70
推荐指数
7
解决办法
26万
查看次数

如何在nougat中运行的Android Studio模拟器中编辑/ etc/hosts文件?

任何人都知道如何编辑在nougat中运行的android工作室模拟器中的/ etc/hosts文件?我将编辑它,以便我可以在我的本地Web服务器中使用我的虚拟主机.我尝试使用adb通过终端进行编辑,但是它返回了只读文件系统.尝试也使用chmod但仍然失败.

更新:我还尝试使用adb $ ./adb -s emulator-5554 push~/Desktop/hosts/system/etc/hosts拉取文件

adb:错误:无法将'/ Users/Christian/Desktop/hosts'复制到'/ system/etc/hosts':无法创建文件:只读文件系统

android android-emulator android-studio

28
推荐指数
9
解决办法
3万
查看次数

如何从android studio开发时在system/app中安装应用程序

有没有办法在Android Studio上开发时直接在system/app文件夹中安装应用程序(设备已植根)?

这意味着,当我按下"运行应用程序"按钮时,我希望将apk放在系统/应用程序中.

如果无法做到这一点,建议最方便的方法是构建和测试系统应用程序?

android android-studio

22
推荐指数
3
解决办法
1万
查看次数

标签 统计

android ×5

adb ×3

android-studio ×2

android-emulator ×1

root ×1

shell ×1