• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Problem with ADB Shell

TheNub

Lurker
First, im not sure where to post this so please forgive me.

i am using the razr maxx. i noticed that when im not in the adb shell, it sees my device. but once i am in the shell, it doesnt see my device. and then i noticed that it completely changes what the device is called that its looking for. suggestions?

thanks for u time.

:~# adb devices
List of devices attached
014E7E200D01201D device

:~# adb shell
shell@cdma_spyder:/ $ adb device
List of devices attached
091149d00400601e offline
 
Hi, welcome to AF! :ciao:

To be honest, I'm not sure what the use of typing in any adb command when you are in adb shell is
 
Yeah, it's probably because you are already in it, the command is looking for devices that are attached as ADB devices but if you are already in shell then it's not going to be able to see itself. Just my guess
 
Thank u for the posts. That actually makes sense so i decided to test leaving out adb.

First I tested the normal command outside of the shell.
PC:~# adb devices
List of devices attached
014E7E200D01201D device

Next I entered the shell and tried without adb, then with to compare the results.
PC:~# adb shell
shell@cdma_spyder:/ $ devices
/system/bin/sh: devices: not found

127|shell@cdma_spyder:/ $ adb devices
List of devices attached
091149d00400601e offline

It appears to not identify the "devices" as a command if adb is not present.
 
Back
Top Bottom