本文介绍了Android:adbd无法以root身份在生产版本中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有解锁root权限的基于Android的手机(2.3.6)。
因为我想通过自己的计算机访问手机,所以今天我安装了QtAdb和Android SDK。
如果我打开命令提示符并这样做

I have an Android-based phone (2.3.6) with unlocked root privileges.Since i'd like to have access to my phone through my computer, today i've installed QtAdb and Android SDK.If i open a command prompt and i do

我得到

这样我就可以在手机上复制,删除和推送文件(在电话中,我使用 SuperSU应用收到通知。)

And so I am able to copy, remove, push files on my phone (on the phone i get a notification using the app "SuperSU".)

但是,如果我在Windows 7下启动QtAdb,则会出现以下错误: adbd无法在生产版本中以root身份运行。我想念什么吗? QtAdb出问题了吗?

But if i launch QtAdb - under Windows 7 - i get the following error: "adbd cannot run as root in production builds". I miss something? There's something wrong with QtAdb?

推荐答案

问题是,即使您的手机已经植根,服务器上的 adbd服务器手机不使用root权限。您可以尝试绕过这些检查,或者在手机上安装其他adbd,或安装包含补丁adbd的自定义内核/发行版。

The problem is that, even though your phone is rooted, the 'adbd' server on the phone does not use root permissions. You can try to bypass these checks or install a different adbd on your phone or install a custom kernel/distribution that includes a patched adbd.

,一个更简单的解决方案是使用chainfire中的 adbd不安全功能,这将动态修补您的adbd。它不是永久的,因此您必须在启动adb服务器之前运行它(否则将其设置为每次启动都运行)。您可以从Google Play商店中获得两美元的应用程序:

Or, a much easier solution is to use 'adbd insecure' from chainfire which will patch your adbd on the fly. It's not permanent, so you have to run it before starting up the adb server (or else set it to run every boot). You can get the app from the google play store for a couple bucks:

或者您可以免费获得它,作者已经在xda-developers上发布了免费版本:

Or you can get it for free, the author has posted a free version on xda-developers:

将其安装到设备上(将其复制到设备上并使用文件管理器打开apk文件),在设备上运行 adb insecure,最后杀死计算机上的adb服务器:

Install it to your device (copy it to the device and open the apk file with a file manager), run 'adb insecure' on the device, and finally kill the adb server on your computer:

%adb kill-server

% adb kill-server

然后重新启动服务器,它应该已经是root。

And then restart the server and it should already be root.

这篇关于Android:adbd无法以root身份在生产版本中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 03:29