Kodi Community Forum

Full Version: Kodi on Android VirtualBox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have created an android virtual machine (Andorid x86 lollipop 5.1) in virtualbox and installed Kodi Krypton 17 x86 on top of it. Kodi is always getting crashed when launching the app in android vm. can anyone help me on identifying the issue? Please check the logs below with error,

11-27 07:39:13.069 V/Kodi    (10045): Debug Print: CEGLNativeTypeAndroid: maximum/current resolution: 0x0
11-27 07:39:13.070 V/Kodi    (10045): Debug Print: CEGLNativeTypeAndroid: selected resolution: 0x0
11-27 07:39:13.070 V/Kodi    (10045): Debug Print: InitWindowSystem: Using EGL Implementation: android
11-27 07:39:13.070 V/Kodi    (10045): Debug Print: EGL failed to return any matching configurations: 0
11-27 07:39:13.071 V/Kodi    (10045): Debug Print: InitWindowSystem: Could not find a compatible configuration
11-27 07:39:13.071 V/Kodi    (10045): Debug Print: CApplication::Create: Unable to init windowing system
11-27 07:39:13.071 D/Kodi    (10045): ERROR: Unable to create GUI. Exiting
11-27 07:39:13.071 V/Kodi    (10045):  => XBMC_Run finished with -1
11-27 07:39:13.074 D/gralloc ( 1081): Registering a buffer in the process that created it. This may cause memory ordering problems.
11-27 07:39:13.074 E/libEGL  ( 1081): called unimplemented OpenGL ES API
11-27 07:39:13.074 E/SurfaceFlinger( 1081): glCheckFramebufferStatusOES error -1869586495
11-27 07:39:13.074 E/SurfaceFlinger( 1081): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
11-27 07:39:13.074 W/WindowManager( 1346): Screenshot failure taking screenshot for (800x600) to layer 21020
11-27 07:39:13.076 V/threaded_app(10045): WindowFocusChanged: 0xb3f1d6a0 -- 0
11-27 07:39:13.076 V/threaded_app(10045): Pause: 0xb3f1d6a0
11-27 07:39:13.077 W/art     (10045): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[12,tid=10063,Native,Thread*=0xb3f55000,peer=0x12d1b0a0,"Thread-293"]
11-27 07:39:13.077 V/XBMC    (10045): detaching thread
Where do I start...
Kodi on Android x86 isn't really supported, you're running an ancient version of Android x86 (considering they are up to 8.1 RC2 now)

Emulated environments probably wont provide the right hardware or may be buggy

Basically don't do it, its a bad idea.  Kodi is available for pretty much any platform that can run Virtualbox... run it on the host
Thanks @jools5000.

But, We wanted to simulate Android 5.1 on a Virtual Machine with kodi installed. My Android VM has to communicate with other VMs and the kodi can play videos without hardware dependencies. That's the reason we installed kodi on a VM rather than host machine

Since Kodi krypton 17 armv7 was not working on Android VM. I recompiled Kodi (Krypton) for x86 and installed the apk on android VM. But still it did not work.

What are all the other possible options i can run kodi on android virtual machine?
Fix the root cause. Install proper GLES drivers.