4

Run a Headless Android Device on Ubuntu server (no GUI)

 1 year ago
source link: https://gist.github.com/nhtua/2d294f276dc1e110a7ac14d69c37904f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Zebiano commented Mar 12, 2021

edited

I'm surprised this actually worked, thank you very much!

I did get a warning saying the emulator is out of date. Is there an easy way to update it?

I also installed adb with apt install adb as I wasn't being able to test for devices. After installing it I saw the emulator, but when I tried to run 01.emulator-up.sh again, I got a emulator: command not found error. Any idea on how to fix that?

And lastly, how can I actually turn the emulator off?

EDIT: I'm an idiot, forgot to run commands with sudo. That fixed the emulator: command not found error. Yet running 01.emulator-up.sh yields

Error: Android Virtual Device 'avd28' already exists.remote repository...
Use --force if you want to replace it.
null

Any idea on what's going on here? I've since killed the emulator with sudo kill <pid>.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK