Page 1 of 1

Android files re-use for Froyo / Ginger

PostPosted: Fri Feb 25, 2011 11:14 pm
by MadRocker
Quick android folder recycle method.
If you want to get the Froyo or Ginger android folders to build with but are scared of the 2gb - 4gb download then try this cheat.
Modify this to the desired Ginger or Froyo names as you want.

~/JetDroid/android

This folder has a hidden .repo folder that contains 4 folders.
ls ~/JetDroid/android/.repo
Code: Select all
manifests
manifests.git
projects
repo


Now to reuse about 2gb of this android folder for another Froyo or Ginger or android-2.3.3_r1 version you will need to copy this projects folder to a new folder.
Example:
mkdir ~/JetDroid/android-2.3.3
mkdir ~/JetDroid/android-2.3.3/.repo
cp -avfr ~/JetDroid/android/.repo/projects ~/JetDroid/android-2.3.3/.repo


ls ~/JetDroid/android-2.3.3/.repo
Code: Select all
projects

Now you should see the projects folder.

cd ~/JetDroid/android-2.3.3
Code: Select all
~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2.3.3_r1
~/bin/repo sync -j4


This should update and you should see this below as it updates.
Code: Select all
* [new tag]         android-2.3.3_r1 -> android-2.3.3_r1
* [new tag]         android-2.3_r1 -> android-2.3_r1
* [new tag]         android-adt-0.9.8 -> android-adt-0.9.8
* [new tag]         android-adt-0.9.9 -> android-adt-0.9.9
and

Code: Select all
Syncing work tree: 100% (165/165), done.


ls ~/JetDroid/android-2.3.3
Code: Select all
bionic  bootable  build  cts  dalvik  development  device  external  frameworks  hardware  libcore  Makefile  ndk  packages  prebuilt  sdk  system


Now to check if you are good use this command:
make clean
Code: Select all
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRI40
============================================
Checking build tools versions...
Entire build directory removed.


This is a rough draft guide and might need some editing, please feel free to edit as is needed.