yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] nicandris:
thanx! didn't know different versions have different folder names. i added your change in github, as soon i merge some other stuff i will reupload
[Android Software/Hacking General [Developers Only]] zico_newbie:
Can i use this to another phone which is not on list?
[Android Software/Hacking General [Developers Only]] nicandris:
if the phone is here then just ask me and it will be added in the list

http://wiki.cyanogenmod.com/index.php?title=Building_from_source

if not, well... emmmm nop :P
[Android Software/Hacking General [Developers Only]] rYuuk:
when will this be supporting xperia devices :confused:
[Android Software/Hacking General [Developers Only]] gakjelasbgt:
thanks for the tutorial bro!

but i cant see any support for Sony Ericsson phone?

is there's any possibility for me to build for my phone -> SE X8?
[Android Software/Hacking General [Developers Only]] SaeMii3N:
Thanks, this should come in handy.
[Android Software/Hacking General [Developers Only]] nicandris:
well i don't see any SE devices in here... as soon as they get in here i will add them
[Android Software/Hacking General [Developers Only]] matteof93:
is there the possibility to build CM from scratch for the LG Optimus One?
[Android Software/Hacking General [Developers Only]] Mattix724:
What would it take to build cyanogenmod with this script for the Kyocera Zio M6000?
[Android Software/Hacking General [Developers Only]] ashwaa:
how about adding support to micromax a70
[Android Software/Hacking General [Developers Only]] nicandris:
This script compiles only existing devices from the CM repo. it cannot create a new build without having the source code. visit http://mirror.teamdouche.net for a complete list of ongoing cm projects
[Android Software/Hacking General [Developers Only]] shad0wboss:
it's a very nice self explainatory tool...but i was surprised why I9001 isn't in the list :/
[Android Software/Hacking General [Developers Only]] alkathiri:
Thanks for the website. Xda
[Android Software/Hacking General [Developers Only]] nicandris:
i9001 is the galaxy s plus? teamdouche does not officially build for this device, that's why it's not in the list
[Android Software/Hacking General [Developers Only]] :
This is a great tutorial, thanks :P
[Android Software/Hacking General [Developers Only]] dewasha:
please add huawei devices!!! thankssss!
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Kernel.org is up and running again. :)

These typos was sent from my Nexus S [I9023] :P
[Android Software/Hacking General [Developers Only]] nicandris:
sweet! compiling now :P love your signature btw
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Thanks. ;)

Btw, support for nexus s? :P lol

These typos was sent from my Nexus S [I9023] :P
[Android Software/Hacking General [Developers Only]] nicandris:
I'm pretty sure it's in there under Samsung ;)
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Whoops! Sry. :)

These typos was sent from my Nexus S [I9023] :P
[Android Software/Hacking General [Developers Only]] gahomii:
thaaaaaaaaaaaanks
[Android Software/Hacking General [Developers Only]] luishka:
nicandris, its possible to adapt the script for the HTC tattoo/click? :cool:

thanks in advance
[Android Software/Hacking General [Developers Only]] nicandris:
well this is the page of tattoo on cm7.

http://wiki.cyanogenmod.com/wiki/HTC_Tattoo:_Compile_CyanogenMod_(Linux)

do they have nightlies for this device?
[Android Software/Hacking General [Developers Only]] luishka:
there is nightlies for that device ;)

h t tp://download.cyanogenmod.com/?device=click
[Android Software/Hacking General [Developers Only]] gsxr750:
Droid 2 Global

Does this include droid 2 global too?
[Android Software/Hacking General [Developers Only]] nicandris:
added in 2.4.3 ;)
[Android Software/Hacking General [Developers Only]] luishka:
many thanks :)
[Android Software/Hacking General [Developers Only]] fresh.cie:
very, very good, thanks for this!
[Android Software/Hacking General [Developers Only]] chewwy420:
Anyone else having an issue when trying to sync with kernel.org? If I go there with web browser it tells me down for maintenance. Been like that for a week now.
[Android Software/Hacking General [Developers Only]] Pons:
http://www.linux.com/news/featured-blogs/171-jonathan-corbet/491001-the-cracking-of-kernelorg

http://linux.slashdot.org/story/11/09/03/1638248/Kernelorg-Attackers-Didnt-Know-What-They-Had
[Android Software/Hacking General [Developers Only]] rsdunn:
CM Nightlies have been back up for a few days now. So who has the work around for repo sync they are using to get to the new code drops? I'd like to get my builds going again...
[Android Software/Hacking General [Developers Only]] nicandris:
well probably they just don't sync with kernel.org i guess! their brunch though includes kernel.org and i'm not sure how to sync just the separate cm7 code... will look into it but don't wait much :P
[Android Software/Hacking General [Developers Only]] Pons:
http://synrgi.wordpress.com/2011/09/07/android-repository-remedy/

I'm full of helpful links.
[Android Software/Hacking General [Developers Only]] chewwy420:
Thanks!

I just changed 2 lines in the script to what it says in the link you posted and it is working fine!
[Android Software/Hacking General [Developers Only]] nicandris:
haha many thanx! i didn't even had time to search for this in google! appreciate the help ;)

Now, the question is, do you want to add this in the main script (do you believe kernel.org will be down for more time) or do you want to keep it as a separate patch?
[Android Software/Hacking General [Developers Only]] TheKiD075:
I say add it, they said that once everything comes back that you wont have to switch back. It can stay with no repercussions.

Sent from my Cyanmodded Inc2 Special with XDA Premium!
[Android Software/Hacking General [Developers Only]] nicandris:
Updated to v2.5

Updated sdk to v13

Fixed repo to sync from github and not from kernel.org (thanx PonsAsinorem)
[Android Software/Hacking General [Developers Only]] Pons:
No worries. I just did a little digging because it was bothering me. The least I could do was share what I found to make your script easier.

And I agree with updating it. Kernel.org could be down for a day, or could be done for months. Security audits takes time, and you can't rush it. Besides, if it comes back up and your script doesn't work, it's too easy to correct it.
[Android Software/Hacking General [Developers Only]] rsdunn:
getting an error after syncing and choosing the device line 397... see below. There was a tab at the end of the line above 397 removed it but didn't stop the error... still looking.

VENDORS:

1. Commitiva

2. Geeksphone

3. HTC

4. Motorola

5. Samsung

6. Viewsonic

7. ZTE

8. LG

9. Barnes & Noble

10. Emulator

Select Vendor(1-10): 5

./douchebuild.sh: line 397: syntax error near unexpected token `)'

./douchebuild.sh: line 397: ` 19) echo "Vendor=HTC, Device=Tattoo"'
[Android Software/Hacking General [Developers Only]] nicandris:
needed ";;" in line 397 fixed in 2.5.1
[Android Software/Hacking General [Developers Only]] rsdunn:
remove this post please

HTCdev_menu case section 18 missing closing ;; fixed all is well...
[Android Software/Hacking General [Developers Only]] spences10:
Hi, thanks for this awesome script

I get this error:

error: command 'sync' requires repo to be installed first.

Use "repo init" to install it here.

Does anyone know what I have done wrong?

I'm using a Linux Mint VM to do this on
[Android Software/Hacking General [Developers Only]] nicandris:
well basically you have a lot more errors there :P

can you do an ls ~/sspense and post results?
[Android Software/Hacking General [Developers Only]] nicandris:
the repo is the official cm repo. what the nightlies buildbots compile. so it should have all the changes in there. will compile now and check if something is missing. for the edited code, you pasted 2 different things, first part from androidmake and second from build.sh. what is the problem that needed fixing?
[Android Software/Hacking General [Developers Only]] drigerott:
build.sh downloaded from first post, don't work...terminal :

infact i just copy the end of you're androidmake (the cd repo line)
[Android Software/Hacking General [Developers Only]] nicandris:
wow thanx for that!! :) you are right... one moment and i will reupload :)

edit* uploaded. apparently i forgot

cd ~/android/system ;
[Android Software/Hacking General [Developers Only]] RunTimeWorld:
would be nice if the script checks and skips stuff that is installed already such as the android sdk
[Android Software/Hacking General [Developers Only]] nicandris:
working on that already. also options to install for other devices, create shortcuts, recognize x64 etc etc
[Android Software/Hacking General [Developers Only]] crachel:
Thanks for this :D

I'm gonna add this to a cron job so I can have builds in between the nightlies, while we wait for a stable release
[Android Software/Hacking General [Developers Only]] nocomp:
repo not found but git-core installed

HI,

first of all thxx for this great tool :))))

i have try my first rom, but face a bug, when ppl call, the screen of mùy nexus one is all white for 5 sec :'(

i am trying the build.sh script, but i am having this error :

[CODE]herve@android-factory:~/androdev$ sh build.sh
build.sh: 2: repo: not found
build/envsetup.sh: 1: Syntax error: "(" unexpected
herve@android-factory:~/androdev$ [/CODE]

but what is weird, git-core is installed

herve@android-factory:~/androdev$ sudo apt-get install git-core
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
git-core est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 246 non mis à jour.

did i missed something????

thxx for your help

herve
[Android Software/Hacking General [Developers Only]] nocomp:
i ve fixed it.

if you have this same prob, get repo here

curl http://android.git.kernel.org/repo >~/bin/repo

chmod +x repo

++
[Android Software/Hacking General [Developers Only]] nocomp:
well in fact, now i have another prob :'(

any idea?

herve@android-factory:~/androdev$ sh build.sh
Fetching projects: 2% (5/225) remote: Counting objects: 38, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 24 (delta 17), reused 1 (delta 0)
Unpacking objects: 100% (24/24), done.
From git://github.com/CyanogenMod/android_bootable_recovery
0b7bbf2..3d6a211 froyo -> github/froyo
d9fbe2f..a1f43bf gingerbread -> github/gingerbread
Fetching projects: 4% (9/225) remote: Counting objects: 5, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://github.com/CyanogenMod/android_device_bn_encore
170c703..5202166 gingerbread -> github/gingerbread
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 5), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From git://github.com/CyanogenMod/android_device_commtiva_z71
379ab1b..df40873 gingerbread -> github/gingerbread
Fetching projects: 16% (36/225) remote: Counting objects: 5, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://github.com/CyanogenMod/android_device_samsung_fascinate
706d15f..c5abaec gingerbread -> github/gingerbread
Fetching projects: 17% (39/225) remote: Counting objects: 5, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://github.com/CyanogenMod/android_device_samsung_vzwtab
ac23a39..1ec1fa4 gingerbread -> github/gingerbread
Fetching projects: 61% (138/225) remote: Counting objects: 15, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From git://github.com/CyanogenMod/android_frameworks_base
bf17157..f1df5d9 gingerbread -> github/gingerbread
Fetching projects: 100% (225/225), done.
Syncing work tree: 100% (225/225), done.

build/envsetup.sh: 1: Syntax error: "(" unexpected
herve@android-factory:~/androdev$
[Android Software/Hacking General [Developers Only]] nocomp:
here is the beguining of envsetup.sh

function help() {
cat <<EOF
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- croot: Changes directory to the top of the tree.
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm: Builds all of the modules in the supplied directories.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
- cmremote: Add git remote for CM Gerrit Review
- cmgerrit: Send patch request request to CyanogenMod repos
- mka: Builds using SCHED_BATCH on all processors
- reposync: Parallel repo sync using ionice and SCHED_BATCH

Look at the source to view more functions. The complete list is:
EOF
[Android Software/Hacking General [Developers Only]] nicandris:
well that command is actually in the ./androidmake script... if it's not installed probably you try to build in another folder (not ~/android/system ???) or did you change anyth in the script?

now abt the envsetup.sh error, i cannot think of anyth... how do you guys create those errors? :P hehe ok ok try in ~/android/system

repo diff

do you get any results?

also type

uname -a

in a terminal and post me the results
[Android Software/Hacking General [Developers Only]] nocomp:
hi, thx a lot for your time

this is what i get

herve@android-factory:~/android/system$ repo diff
herve@android-factory:~/android/system$ uname -a
Linux android-factory 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
herve@android-factory:~/android/system$

i hope it ll help

best regards
[Android Software/Hacking General [Developers Only]] nocomp:
weird,

i run bash build.sh instead of sh build.sh and it worked...
[Android Software/Hacking General [Developers Only]] nicandris:
weird indeed. try chmod 775 build.sh and try ./build.sh
[Android Software/Hacking General [Developers Only]] nocomp:
i ll try next time,

one question,

i try to find out / understand where to rename mod version, and put other bootanimation before the build is started, and can t find the location of the folder.

where is it?

thx for help

best regards

herve
[Android Software/Hacking General [Developers Only]] nocomp:
1st build done :)

just tried it on nexus one, complete nightmare, never seen a rom so slow, it s frame per frame (took me 20 sec for realise the unlock schema)

is there special file to edit or parameter to add for cook for nexus one?

thxx for help

herve
[Android Software/Hacking General [Developers Only]] nicandris:
hehe ;) i dont think its something wrong with your build. my latest builds are slow also. i also noticed that after the 26th of feb there are no nightlies so the problem is probably known so the buildbot is disabled for now. we should wait till i guess the merges are completed in the repo or until the buildbot creates a new nightly
[Android Software/Hacking General [Developers Only]] nocomp:
hi,

thxx for your reply,

but how come it doesn t hapepnd on the one you download from nightly build?

thx for your time

herve
[Android Software/Hacking General [Developers Only]] nicandris:
well the latest nightly is from 26/2. the changes/merges probably started after that. your build is always up to date so the new changes that cause the problem are in your build ;) you'll have to wait until it's fixed from teamdouche :)
[Android Software/Hacking General [Developers Only]] spences10:
sspence@sspence-VirtualBox ~ $ ls ~/sspense

ls: cannot access /home/sspence/sspense: No such file or directory

sspence@sspence-VirtualBox ~ $ ls ~/

android bin Downloads Public

androidsdk Desktop fastboot Templates

android-sdk_r12-linux_x86.tgz Documents Music Videos

android-sdk_r13-linux_x86.tgz douchebuild.sh Pictures workspace
[Android Software/Hacking General [Developers Only]] nicandris:
sorry i meant "ls ~/"

type

rm -rf android*

and try again
[Android Software/Hacking General [Developers Only]] spences10:
will do, thanks :D
[Android Software/Hacking General [Developers Only]] spences10:
No still the same error??
[Android Software/Hacking General [Developers Only]] spences10:
Ok, it seems the VM I was using in the office didnt want to play, I tried at home and it seems to be working fine now
[Android Software/Hacking General [Developers Only]] azrull:
no SE? boring
[Android Software/Hacking General [Developers Only]] kmiloco49:
can you add support for nexus s 4g "crespo4g"?

thanks
[Android Software/Hacking General [Developers Only]] nicandris:
Still no instructions on how to build in the CyanogenMod wiki. As soon as the instructions are uploaded i will add them

Added in v2.5.2 go get it (and test it ;))
[Android Software/Hacking General [Developers Only]] warhell200:
Building on ubuntu 11.04

im using linux mint 11 and i cannot get the script to work right or build under it, i really like to use your script to do it but it fails every time.
[Android Software/Hacking General [Developers Only]] daren226:
Best ROM

Whats the Best Custom ROM for i5800?
[Android Software/Hacking General [Developers Only]] Pons:
How about an error message or what it's doing? "It's not working" doesn't give us a lot to troubleshoot with.
[Android Software/Hacking General [Developers Only]] iStatiK:
If you want me to i will copy proprietary files for the Infuse 4G. However, CM7 is not an official build for my beloved Infuse, yet. Your choice.
[Android Software/Hacking General [Developers Only]] kmiloco49:
Im getting permission denied when the script is trying to run the ./extract-files.sh for the nexus s 4g

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
/home/kmiloco/Downloads/nicandris-CM-from-scratch-e028cd7/douchebuild.sh: line 593: ./extract-files.sh: Permission denied

Edit: I manually change the permissions for extract-files.sh and ran the file again. It did pull the files but then stops here

./extract-files.sh: 121: ./setup-makefiles.sh: not found
[Android Software/Hacking General [Developers Only]] Bytecode:
Can you guys add support for LG P500? We have an unofficial working CM7 port.

https://github.com/mik9/ (porting sources)
[Android Software/Hacking General [Developers Only]] nicandris:
well, the way that the script works it's impossible to add separate repo for this... i can make a new script is the way that the script works is the same, or if you provide me the commands of building it
[Android Software/Hacking General [Developers Only]] gjroeleveld:
Device GalaxyS mapped to wrong vendorid

Great script thanks,

save a lot of time from a box from scratch.

2 things, in a vmware image the repo sync -j16 can be a bit to much,

had to change it to -j8 to succesfully sync (2cpu 4GB mem)

edit: Must be an ubuntu 11.10 thing.. same happens on my laptop (Dell XPS M1530) -j4 went fine.

The mapping of the GalaxyS is wrong,

the script in androidmake_2.5.2.zip maps it to a vibrant, but it should be galaxysmtd

on line450 (on github) douchebuild.sh:

echo

case $device in

1) echo "Vendor=Samsung, Device=Galaxy S"

_vendor="samsung"

_device="vibrant"

_udev_v="skip"
[Android Software/Hacking General [Developers Only]] nicandris:
changed + changed :P

thanx
[Android Software/Hacking General [Developers Only]] pikachu01:
One bug I've found, Samsung Galaxy S device selection is directed to Vibrant's.
[Android Software/Hacking General [Developers Only]] nicandris:
didnt had the time to reupload here. the changes are saved in github
[Android Software/Hacking General [Developers Only]] kmiloco49:
I finally got it to build for the nexus s 4g

I have a wubi installed 64bit system

This code wasnt installing the proper libraries for it to compile

sudo apt-get install -y g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib

I had to change it to this

sudo apt-get install -y g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev

I found this note on the cyanogenmod wiki

NOTE: gcc-4.3-multilib g++-4.3-multilib is no longer available for Ubuntu 11.04 64-bit, but should still build without issue.

Thank you for the scrip, it makes my life a lot easier now
[Android Software/Hacking General [Developers Only]] rsdunn:
Package lib32readline5-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

lib32readline-gplv2-dev

Using the latest readline does install on x64
[Android Software/Hacking General [Developers Only]] nicandris:
that's for wubi only or it applies on other distros? (eg. Ubuntu)
[Android Software/Hacking General [Developers Only]] spc_hicks09:
Stupid question I'm sure but I'm at work and can't search through 40 something pages right now but......by using this, does that mean I could build CM from source for the Droid Charge?
[Android Software/Hacking General [Developers Only]] nicandris:
What's the code name of Charge? Is it in here?

http://wiki.cyanogenmod.com/index.php?title=Building_from_source
[Android Software/Hacking General [Developers Only]] spc_hicks09:
I'm actually not sure what the code name is but I'm pretty sure it's not on there. Thanks anyway though! :D
[Android Software/Hacking General [Developers Only]] Jamin13:
Do you know if the script to extract the proprietary drivers will work on a stock rooted phone?
[Android Software/Hacking General [Developers Only]] a771la:
repo error?

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>301 Moved Permanently</title>

</head><body>

<h1>Moved Permanently</h1>

<p>The document has moved <a href="http://android.googlesource.com/repo">here</a>.</p>

</body></html>

this is my repo file

i'm on ubuntu

what can i do?
[Android Software/Hacking General [Developers Only]] Amin`:
can I use it for se x10?
[Android Software/Hacking General [Developers Only]] tmlhodge:
If i exited the terminal at 98% do i have to start over or will it detect what I've already done? Had to quit cause it took 8 hours and i had to leave.
[Android Software/Hacking General [Developers Only]] radnussrini:
Thanks for the Post:cool:
[Android Software/Hacking General [Developers Only]] mawale:
are this tutorial is 100% works to build rom for CDMA / EVDO android phone?
[Android Software/Hacking General [Developers Only]] rochi:
Is suitable to build cm for galaxy tab after having copied propietary files nicandris!? If not is there a way to get. This to work with this device!?

Inviato dal mio GT-P1000 usando Tapatalk
[Android Software/Hacking General [Developers Only]] nicandris:
not quite sure, but i would say yes. the files are on the same location stock/non-stock

emmm not sure, will check mine later on

Repo sync will continue were u left it (probably will fetch some updates on the way)

not yet ;)

well it's pretty basic. just run douchebuild.sh and you will get it

galaxy tab is honeycomb right? why would you want to revert to gingerbread? cm didnt create a rom for galaxy tab
[Android Software/Hacking General [Developers Only]] rochi:
it is 2.3.3... there's an unofficial port yet.. but i wanted to compile myself
[Android Software/Hacking General [Developers Only]] nicandris:
i will check if the source is in their git. if it is i will add it on the script
[Android Software/Hacking General [Developers Only]] rochi:
thank you!
[Android Software/Hacking General [Developers Only]] Amin`:
thx a lot!

can you guide me to build a nightly rom for x10?I have some information about cooking...but my english is so bad then I cant understand what you write in the first post...so plz Guide me simply that I can understood;)

thx
[Android Software/Hacking General [Developers Only]] CEDDTU:
good job, thanks so much
[Android Software/Hacking General [Developers Only]] fansile:
good job

and thanks for sharing.