Abhishek Madan
Abhishek Madan

Reputation: 177

Check if headless android emulator is running

I am running a headless emulator (Android api 25) on a Ubuntu linux 14 server and I see the below output for the command-

$./adb devices

List of devices attached
emulator-5556   device

However, If i try to run any other command I get error

$./adb shell dumpsys deviceidle get deep
Can't find service: deviceidle


$./adb shell 'pm list packages -f'
Error: Could not access the Package Manager.  Is the system running?

How can i verify that my emulator is functional?

Upvotes: 1

Views: 2809

Answers (1)

Karan Harsh Wardhan
Karan Harsh Wardhan

Reputation: 1126

is adb devices -l not working? it should show you the status of the device as well

try adb push, for eg

adb push foo.txt /sdcard/foo.txt

or adb install for eg

adb -s emulator-5556 install apkname.apk

these commands will work with any running emulator/device

all these commands are available on the documentation

Upvotes: 2

Related Questions