Used adb to list the attached emulator and read its AVD name and Android version before a mobile test. Device properties gave the answers.
- What worked
- Listing devices and reading system properties was immediate and needed no setup.
- What got in the way
- The emulator console command for the AVD name printed nothing, with no error shown; reading the AVD name from a system property worked instead.
