Skip to content

Instantly share code, notes, and snippets.

@willnix
willnix / usb-android-emulator-ubuntu.md
Last active May 14, 2020 18:08 — forked from Alabate/usb-android-emulator-ubuntu.md
Use custom USB device with Android emulator by using custom built kernel on Ubuntu 18.04

Use custom USB device with Android emulator by using custom built kernel on Ubuntu 18.04

The android emulator doesn't support all usb devices because they are disabled in the kernel. So we need to build it with another configuration. My goal was to build the same version as it was before, but with just configuration modifications.

Find current android version

Start the emulator without modifications, go into

Configuration > System > About emulated device > Android version

/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#49270a";
static const char normbgcolor[] = "#995522";
static const char normfgcolor[] = "#ffffff";
static const char selbordercolor[] = "#e30212";
static const char selbgcolor[] = "#49270a";
static const char selfgcolor[] = "#e30212";