Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot test my AOSP build on the emulator

I built the Android AOSP tree for the mako device successfully on my Ubuntu 14.04 LTS desktop with the '. build/envset.sh', 'lunch mako-userdebug', and 'make -j4' series of commands. I tried to run it in the emulator by following the Google-provided instructions (i.e. typing the 'emulator' command in a terminal right after the build is complete) but it does not work. The emulator starts up but is stuck on a black screen. I noticed the following warning/errors while the emulator starts up:

emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Transport endpoint is not connected (errno = 107)

Any help in resolving this error is greatly appreciated.

like image 602
Phil Avatar asked Oct 19 '22 23:10

Phil


1 Answers

Phil,

To make an image for the emulator, you will need to make one of the generic images. e.g. lunch aosp_arm-eng (you can also us userdebug, etc). It may not show up in the lunch menu, but it should be available nonetheless. The emulator was made strictly to test the changes made in the framework and to the default system properties (those that are hardware independent). Building the arm version should fix your errors!

Best!

like image 96
Michael S. Avatar answered Oct 30 '22 02:10

Michael S.