Determine if it is possible to run Android tests in virtualbox




Firefox for Android
5 years ago
5 years ago


(Reporter: gbrown, Assigned: gbrown)


Firefox Tracking Flags

(Not tracked)




5 years ago
Very similar to bug 813724, this bug is about investigating how to run Fennec and Fennec tests on VirtualBox.

This was my starting point:

Comment 1

5 years ago
First test, running on OS X:

 - Download and install VirtualBox from
 - Download Android 4.0.4 VM from
 - Uncompress the VM file, look for “Android-*.vbox” and double-click it to load and boot the configuration into VirtualBox
 - At the boot menu in VirtualBox, select the option “Android Startup from /dev/sda” 
 - Let Android ICS boot

This came up fine and I was able to establish adb access with the Android SDK adb as well as the adb included with VirtualBox.

I installed SUTAgent and started it. It reported an IP of (standard emulator behavior). I issued "adb forward tcp:20701 tcp:20701" and then "telnet localhost 20701" to verify correct SUTAgent behavior -- no problems.

I installed the latest Nightly without incident...but it won't start.

Comment 2

5 years ago
E/GeckoAppShell(  411): java.lang.UnsatisfiedLinkError: Couldn't load mozglue: findLibrary returned null
E/GeckoAppShell(  411): 	at java.lang.Runtime.loadLibrary(
E/GeckoAppShell(  411): 	at java.lang.System.loadLibrary(
E/GeckoAppShell(  411): 	at org.mozilla.gecko.GeckoAppShell.loadMozGlue(
E/GeckoAppShell(  411): 	at org.mozilla.gecko.GeckoApp.onCreate(
E/GeckoAppShell(  411): 	at org.mozilla.gecko.BrowserApp.onCreate(
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at$600(
E/GeckoAppShell(  411): 	at$H.handleMessage(
E/GeckoAppShell(  411): 	at android.os.Handler.dispatchMessage(
E/GeckoAppShell(  411): 	at android.os.Looper.loop(
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/GeckoAppShell(  411): 	at java.lang.reflect.Method.invoke(
E/GeckoAppShell(  411): 	at$
E/GeckoAppShell(  411): 	at
E/GeckoAppShell(  411): 	at dalvik.system.NativeStart.main(Native Method)

Comment 3

5 years ago
Like bug 723295 (permissions? sdcard available?) or bug 792428 (armv6 v armv7)?

Comment 4

5 years ago
I was using the wrong APK: trying to install an arm apk on an x86 VM.

Using an -i686 apk, Fennec starts up very briefly, then dies with our old friend:

11-29 19:25:58.823 I/Gecko   ( 1415): An error occurred earlier while querying gfx info: eglChooseConfig returned zero OpenGL ES2 configs. Maybe this device does not support OpenGL ES2?. 
11-29 19:25:58.823 I/Gecko   ( 1415): ###!!! ABORT: OpenGL-accelerated layers are a hard requirement on this platform. Cannot continue without support for them.: file /home/mozdev/src/widget/xpwidgets/nsBaseWidget.cpp, line 829
11-29 19:25:58.823 F/libc    ( 1415): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)

Comment 5

5 years ago
Similar to -- I cannot find a way around the gpu emulation issue, so...
Last Resolved: 5 years ago
Resolution: --- → WONTFIX

Comment 6

5 years ago
adb devices sometimes does not recognize virtual box. Try adb kill-server / adb start-server -- sometimes that helps.

When it works, it looks just like an emulator:

$ adb devices
List of devices attached 
emulator-5554	device

Comment 7

5 years ago
More VMs at and
You need to log in before you can comment on or make changes to this bug.