Hello! time for a good guide,
GOOD LUCK!
If you are running into any error please post them here i'll try to fix them.
STEP 1 :
Install the Ubuntu packages:
STEP 2:
Install OpenJDK 6:
STEP 3:
Install the Android SDK:
-Set up directories:
-Download Android SDK from http://developer.android.com/sdk/index.html
-extract it to: ~/android/sdk
-Add Android SDK Path:
Enter the following:
-Add Extra Path For USB:
Enter this:
-Save and close the file and run:
-Close and open a new terminal
-run:
-install the SDK platform tools
STEP: 4
Installing the repo
-Download the repo:
-Add Repo to path:
enter this:
-Initialize Repository & Sync:
-Get repos for our device:
-Connect Phone to computer and type:
-Get prebuilts:
Patching CM10.1:
apply all patches from here:
http://review.cyanogenmod.org/#/dashboard/1381
Add toolchain path:
STEP 5: BUILDING ANDROID
STEP 6: How to do a new build?
This was it! if you liked it hit the thanks button please!
GOOD LUCK!
If you are running into any error please post them here i'll try to fix them.
STEP 1 :
Install the Ubuntu packages:
Code:
sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
sudo apt-get install libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils
sudo apt-get install g++-multilib lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib xsltprocInstall OpenJDK 6:
Code:
sudo apt-get install openjdk-6-jdkInstall the Android SDK:
-Set up directories:
Code:
cd ~
mkdir android
cd android
mkdir sdk-extract it to: ~/android/sdk
-Add Android SDK Path:
Code:
sudo gedit ~/.bashrcCode:
#Android PATH
export PATH=$PATH:~/android/sdk
export PATH=$PATH:~/android/sdk/platform-tools
export PATH=$PATH:~/android/sdk/toolsCode:
sudo gedit /etc/udev/rules.d/99-android.rulesCode:
#Samsung
SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666
SUBSYSTEM=="usb", ATTRS{idVendor}=="####:####", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"Code:
sudo chmod +x /etc/udev/rules.d/99-android.rules-run:
Code:
androidSTEP: 4
Installing the repo
-Download the repo:
Code:
mkdir -p ~/bin
mkdir -p ~/android/system
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repoCode:
sudo gedit ~/.bashrcCode:
export PATH=$PATH:~/binCode:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b mr1-staging
repo syncCode:
. build/envsetup.sh && breakfast galaxysmtdCode:
adb root
cd ~/android/system/device/samsung/galaxysmtd/
./extract-files.shCode:
~/android/system/vendor/cm/get-prebuiltsapply all patches from here:
http://review.cyanogenmod.org/#/dashboard/1381
Add toolchain path:
Code:
#Android Toolchain PATH
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/home/YOUR-USERNAME/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/binCode:
cd ~/android/system
. build/envsetup.sh && brunch galaxysmtdCode:
cd ~/android/system
repo sync
make installclean
find ./out/ -name 'build.prop' | xargs rm
find ./out/ -name 'cm_galaxysmtd-target_files-eng.*.zip' | xargs rmThis was it! if you liked it hit the thanks button please!





