Tag Archives: adb shell error

[Solved] adb shell error: error: device unauthorized

2022/7/29 oppo-r11s Android 8-test success

After connecting the Android device, the windows computer wants to enter the device through the terminal command line, and an error is reported

Error content

C:\Users> adb shell

error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

Inspection items:

1. Whether the data cable is plugged firmly

2. Whether the developer option is turned on

3. Whether the USB debugging option is turned on

If the above inspections are normal, the following methods can be used to solve the problem:

On the command line, enter adb kill-server to close the ADB service, and then ADB devices. He will automatically start the service. After querying the device, enter ADB shell again to test successfully.

If you fail unfortunately, you can enter adb start-server to restart the service that has just been shut down.

adb kill-server

adb shell error: device offline [How to Solve]

How to Solve error: error: device offline

Today I used a terminal command to connect to the NetEase mumu emulator, and when I tried to access the emulator’s files after connecting, I got an error: device offline when executing the adb shell command

Solution:

adb kill-server
adb start-server
adb remount


This error has been successfully resolved