I personally prefer the adb pull and adb push commands as you can copy multiple files (in a single directory) with just one line command, using DDMS you can copy only one file at a time (no directory).
Using DDMS UI: Here's how to work with emulator's file system using DDMS. install: true By default, after starting up the emulator, a cache will be restored.
Here is an example: adb push foo.txt /sdcard/foo.txtįoo.txt will be pushed (copied) to the emulator.Ģ. The Android machine image comes with the following pre-installed. Here is path of file / folder on your desktop and is path of file / folder on your emulator. Here's the syntax to copy files to or from an Emulator/Device Instance:Ĭopy from desktop to emulator: adb push Ĭopy from emulator to desktop: adb pull You have to use adb push to copy files from Desktop to Emulator and adb pull for the reverse. Using command line: Here's how you can copy files to an SD card image.
If you now look into the out/host/linux-x86/sdk_addon directory, you will find a ZIP file (ending in -img.zip) that contains all the necessary files for running the emulator image externally. You’ll need to set up some directories in your build environment. Note that the suggestion to use PPA openjdk-r is outdated (the PPA has never updated their offering of openjdk-7-jdk, so it lacks security fixes) skip that answer even if it is the most upvoted.
See the Ask Ubuntu question “ How do I install openjdk 7 on Ubuntu 16.04 or higher?”.
* Ubuntu 16.04 and newer do not have OpenJDK 1.7 in the standard package repositories. LineageOS 16.0-17.1: OpenJDK 1.9 (included in source download).LineageOS 18.1: OpenJDK 11 (included in source download).While for Ubuntu versions older than 16.04 (xenial), install:ĭifferent versions of LineageOS require different JDK (Java Development Kit) versions. Libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsyncįor Ubuntu versions older than 20.04 (focal), install also: Lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick.Even better, you may also use the apt-get install
With Ubuntu, you can use the Ubuntu Software Center. (usually originating from the Internet) on your computer. Tip: A package manager in Linux is a system used to install or remove software It may be useful to know some basic command line concepts such as cd, which stands for “change directory”, the concept of directory hierarchies, and that in Linux they are separated by /, etc.
A decent internet connection and reliable electricity.Using SSDs results in considerably fasterīuild times than traditional hard drives. Aim for 16 GB RAM or more, enabling ZRAM can be helpful. The less RAM you have, the longer the build will take. A relatively recent 64-bit computer (Linux, macOS, or Windows) with a reasonable amount of RAM and about 200 GB of free storage (more if you enable ccache.If you want to use Android Studio/AVD there are also instructions for packing up/installing yourĬustom build instead of the default AOSP images that Google provides. These instructions will help you build an emulator-compatible version of LineageOS, ready to run on your computer.
In case you don’t have an officially supported device, don’t want to test changes on your daily driver, or are just someone who wants to test apps with LineageOS-specific features, we’ve still got you covered.