Home > Back-end >  How to read the environment variable on adb device and not current system? [duplicate]
How to read the environment variable on adb device and not current system? [duplicate]

Time:10-01

If I try adb shell $PWD it reads the working directory of the current system and not the adb device.

How can I read the $PWD in the Android device instead via adb?

CodePudding user response:

You should try something like

adb shell 'echo $PWD'

this will expand $PWD to the current working directory in the device.

  • Related