On 1 November 2013 06:44, leon lee <llr...@qq.com> wrote: > Just some queries: > * adb to ubuntu > Q: "adb shell" will log into ubuntu? >
Yes. It takes a while until adb job is started, so check $ adb devices, until emulator turns to "device". At that point "$ adb shell" should work. > * serial console to android > Q: how to do this? > If you use the ./run-emulator.sh wrapper script the terminal where you run that script will eventually give you android's container shell prompt. > * telnet access to control emulated events (sms, gps, etc) > Q: how to do this? > Connect to the port shows in the graphical window title (e.g. 5554) over telnet and type help for available commands. > > It will boot into black screen on the graphical output. > Q: in graphical mode, is "adb shell" still available? > All of the above is always available. Not sure what you mean by "graphical mode", depending on the flags used the graphical window is shown / not shown, but other than that it's the same. Regards, Dmitrijs. > ------------------ Original ------------------ > From: "Dmitrijs Ledkovs"<x...@ubuntu.com>; > Date: Oct 31, 2013 > To: "ubuntu-phone"<ubuntu-phone@lists.launchpad.net>; > Subject: [Ubuntu-phone] Updates to the android-emulator > > It's now packaged in the archive as android-emulator package. > > # in trusty > $ apt-get install android-emulator > > At the moment one can install it as a normal package, but it ( for > whatever reasons) wants to run with read-write privileges. > > So to run it > > $ cp -r /usr/share/android/emulator/ ~/ > > $ cd ~/emulator/ > > # To download latest ubuntu rootfs and create filesystem > $ ./build-emulator-sdcard.sh > > $ ./run-emulator.sh > > To run emulator. > > At the moment this should give one: > > * adb to ubuntu > * serial console to android > * telnet access to control emulated events (sms, gps, etc) > > It will boot into black screen on the graphical output. > > Things to fix at the moment: > > * missing /dev/eth0 > * /data read-only in the android-container > * no graphical output > > If you are not running trusty yet, you can download the latest emulator > from: > http://packages.ubuntu.com/trusty/i386/android-emulator/download > > Regards, > > Dmitrijs. > > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : ubuntu-phone@lists.launchpad.net > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp > . -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp