The recommended approach is to create a file /etc/udev/rules.d/les (as the root user) and to copy the following lines in it.must be replaced by the actual username of the user who is authorized to access the phones over USB.
The system needs to be configured to allow such access. Under GNU/linux systems (and specifically under Ubuntu systems), regular users can't directly access USB devices by default. Libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \ Zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \ On newer versions of Ubuntu such as 11.10 you may need to do the following: Libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \ X11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \ Zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
#Minimal adb and fastboot download 4.2.7 install
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \ $ sudo add-apt-repository "deb hardy-updates main multiverse" $ sudo add-apt-repository "deb hardy main multiverse" $ sudo add-apt-repository "deb lucid partner"
In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used. The Sun JDK is no longer in Ubuntu's main package repository. You can find it at .ĭetailed instructions for Ubuntu 10.04+ follow. JDK 6 if you wish to build Gingerbread or newer JDK 5 for Froyo or older. Python 2.4 - 2.7, which you can download from. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree. Note: It is also possible to build Android in a virtual machine. Reports of successes or failures on other distributions are welcome. The Android build is routinely tested in house on recent versions of Ubuntu LTS (10.04), but most distributions should have the required build tools available. You will need 25GB free to complete a single build, and up to 80GB (or more) for a full set of builds.įor an overview of the entire code-review and code-update process, see Life of a Patch. Note: The source download is approximately 6GB in size. Building under Windows is not currently supported. To build the Android source files, you will need to use Linux or Mac OS.
#Minimal adb and fastboot download 4.2.7 how to
The "Getting Started" section describes how to set up your local work environment, how to use Repo to get the Android files, and how to build the files on your machine.