service adbd /system/bin/adbd
时间: 2023-10-22 10:04:12 浏览: 39
这是一个 Android 系统中的命令,用于启动或停止 Android Debug Bridge (ADB) 守护进程。ADB 是一种调试工具,它可以通过 USB 或无线网络连接到 Android 设备,并在计算机上执行各种操作,如安装应用程序、传输文件、查看日志等。通过启动 ADB 守护进程,可以使计算机与 Android 设备建立连接,以便进行调试和开发工作。
相关问题
adbd cannot run as root
adbd is the Android Debug Bridge daemon, which allows communication between the Android device and a computer. By default, adbd runs as a non-root user for security reasons. However, there are certain situations where you may need adbd to run as root.
To run adbd as root, you can modify the device's init.rc file. You will need root access to make this change. Follow these steps:
1. Connect your device to your computer using a USB cable.
2. Open a terminal or command prompt and execute the following command to access the device shell:
```
adb shell
```
3. Execute the following command to remount the /system partition in read-write mode:
```
mount -o rw,remount /system
```
4. Use a text editor (such as vi or nano) to edit the init.rc file. The file is usually located in the /system/etc directory.
```
vi /system/etc/init.rc
```
5. Look for the line that starts with "service adbd" and modify it to include the "root" option. It should look like this:
```
service adbd /sbin/adbd --root
```
6. Save the changes and exit the text editor.
7. Reboot your device for the changes to take effect.
```
reboot
```
Keep in mind that running adbd as root can have security implications, so be cautious when making this change.
adbd : opening control endpoint /dev/usb-ffs/adb/ep0
这是一个关于 Android 调试桥(Android Debug Bridge,简称 ADB)的日志信息,表示 ADB 正在打开控制端点 /dev/usb-ffs/adb/ep0。ADB 是一种用于在计算机和 Android 设备之间进行通信的工具,可以用于安装应用程序、调试应用程序、传输文件等操作。