yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] harishgayatri:
Is there any way to build CM7 for Phones other than the ones in the list?
[Android Software/Hacking General [Developers Only]] Mattix724:
The emulator version of the cyanogenmod wiki covers building for new devices. I just wish we could only sync the source for CM7 instead of syncing 8GB of crap for all cyanogenmod devices...

unless there's an alternative repository dedicated only to the source...
[Android Software/Hacking General [Developers Only]] droseum20:
wow. looks pretty nice, good work!
[Android Software/Hacking General [Developers Only]] astrayasagiri:
Do we have anything I can use for windows?
[Android Software/Hacking General [Developers Only]] ramanvemman:
dont think so

AFAIK playing with Android core(linux kernel) is pure Linux affair.

You may try with cygwin but it might not help. Try ubuntu and install it using wubi. Which creates a single large file on your existing windows partition and you can use windows boot menu to boot into linux. Or try VirtualBox
[Android Software/Hacking General [Developers Only]] v4ibh4v:
can u plz make a rom for my spice Mi-350

i dont have linux can u make a rom for me?

i have spice Mi-350

it is similar to lenovo lephone a60/ muchtel a2/ viewsonic v350

Thanks,

Vaibhav
[Android Software/Hacking General [Developers Only]] junixquiaoit:
PLs make sony ericsson too. @_@
[Android Software/Hacking General [Developers Only]] :
Would it be possible to add the liquid metal? - its missing out on a lot of ROM development :(

Sent from my Blade
[Android Software/Hacking General [Developers Only]] nicandris:
I'm currently working on incorporating all supported SE devices, so you'll have to wait a bit (still midterm exams, projects and work in the way)

like what phone?

i checked around, there is no CM build for the Liguid Metal except from a port in modaco.com. but it is unfinished and most of parts not working
[Android Software/Hacking General [Developers Only]] nicandris:
Guys please check this link and reshare it if you have a Google+ account!!

https://plus.google.com/100317092290545434762/posts/8CwEUdfcDv7

It will help me incorporate more devices in the script

https://plus.google.com/112186609233063121487
[Android Software/Hacking General [Developers Only]] Epix4G:
Epic4G

https://github.com/teamhacksung/android_device_samsung_epic4gtouch

Can this be added .... let me know what else you need and i will try to get it
[Android Software/Hacking General [Developers Only]] nicandris:
i need someone from teamhacksung contacting me. i had a few requests for roms from them and i will have to create a separete script for them as soon i get some time.
[Android Software/Hacking General [Developers Only]] VuK$3:
It freezes on on 99% when fetching From git://github.com/CyanogenMod/android_prebuilt...

I am using ubuntu 11.10 :confused:
[Android Software/Hacking General [Developers Only]] abudulamh:
Nice job.......
[Android Software/Hacking General [Developers Only]] rochi:
If i need TO add a device TO the possibilities what requisities should its github have!?

Inviato dal mio GT-P1000 usando Tapatalk
[Android Software/Hacking General [Developers Only]] hackqiang:
great script !
[Android Software/Hacking General [Developers Only]] Pons:
Build CM from scratch you say? I don't see an option for ICS! Script is broken!!One!11!

;)
[Android Software/Hacking General [Developers Only]] nicandris:
haha i aint koush and u aint cyanogen :P well there is no reason adding ics support yet. they only aded it for samsung galaxy s and s 2 and even on that devices is not working completely. i will add it as soon as more devices reach a working state
[Android Software/Hacking General [Developers Only]] devius:
it's great job people, how about to make some guy for this script?

how about to make commits to repository and make something like a rom development system?
[Android Software/Hacking General [Developers Only]] nicandris:
not sure if i follow your though here friend. you want to commit changes to cm?
[Android Software/Hacking General [Developers Only]] devius:
It will be great to have a nice App for building CM from sources based on this script
[Android Software/Hacking General [Developers Only]] yabbie:
nice.

thanks for sharing
[Android Software/Hacking General [Developers Only]] mundano:
Can you please update the opening post with the latest version from github? The version that is on the OP doen't work for the Samsung Galaxy S.
[Android Software/Hacking General [Developers Only]] f0li0:
douchebuild.sh LMAO!
[Android Software/Hacking General [Developers Only]] sineld:
thanks. gonna try.
[Android Software/Hacking General [Developers Only]] nicandris:
added. try it
[Android Software/Hacking General [Developers Only]] nicandris:
Well well well... there is work to be done!!

https://plus.google.com/b/112186609233063121487/112186609233063121487/posts/LaoJ29895po
[Android Software/Hacking General [Developers Only]] austontatious:
I haven't tried to run this yet, but is there a place to change the git? Like if I don't want to use CM because they haven't made their code for ics on the shooter public yet? Thanks!

PS - other than that this looks awesome. Just what I need (cause I'm code-retarded)
[Android Software/Hacking General [Developers Only]] nicandris:
well the script is in plain text. you ca edit it in notepad? gedit? vi? pico? word? :P
[Android Software/Hacking General [Developers Only]] notyouraveragexdanoob:
ran the script all went well without issues till i ran build.sh selected 6 and the terminal disappered :/

ive deleted everything and tried again and it failed again.
[Android Software/Hacking General [Developers Only]] austontatious:
Wait - so I need to type something? Sorry, too hard. :P
[Android Software/Hacking General [Developers Only]] erhaid:
Really Nice. will try to build my own CM :)

bye
[Android Software/Hacking General [Developers Only]] oldsoulsong:
Hey guys.

I'm trying to build using this for my Galaxy S II. It all starts of fine and everything seems to download and install OK. It pulls the proprietary files off my phone without any errors. Just after the actual build process starts. It says file not found about 5 or 6 times but doesn't say the name of the file. Shortly after that the terminal window closes. Then if I load up the SH file again , the terminal windows just closes straight away.

I'm using Ubuntu 11.10 32bit on a quad core Phenom 3.2 GHz, 4GB of RAM.

Does anyone know what could be causing these problems. if you need any more information please let me know and I'll post it.

I've probably missed something stupid

Thanks in advance
[Android Software/Hacking General [Developers Only]] TheKiD075:
FYI...If you're building CM7 you have to have a 64bit system. Gingerbread requires 64bit to build.

Sent from Custom Inc2.
[Android Software/Hacking General [Developers Only]] crachel:
only AOSP requires 64 bit, Cyanogenmod removed the requirement and can be built on 32 bit
[Android Software/Hacking General [Developers Only]] TheKiD075:
I stand corrected!

Sent from Custom Inc2.
[Android Software/Hacking General [Developers Only]] crachel:
the reason I knew that is I had thought the same thing about 8 or 9 months ago in this very thread http://xdaforums.com/showpost.php?p=11831685&postcount=68 ;)
[Android Software/Hacking General [Developers Only]] Laum:
Tried to use this with a clean install of Ubuntu 11.10 64bit. Just updated it with apt-get (around 260 packages), but nothing else.

Two bug reports:

-ADB needed ia32-libs to be installed. The script didn't select those packages.

-Compiling needed gcc-multilib to be installed or it would fail with an error. The solution was found from here http://code.google.com/p/linux-track/issues/detail?id=10

-also looks like g++-multilib was needed too

Both problems are probably only on 64bit version of Ubuntu.

Thanks alot for this script! :)
[Android Software/Hacking General [Developers Only]] icomar:
can you PLEASE add support for ACER LIQUID MINI? this is a cheap and good phone with very few custom roms (i think 2...), it would be great to have CM on that! I could test it!
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
I'm getting a "new repo command - you should upgrade soon" notice.

How do I do that. :-S

Sorry if I'm just plain stupid. :-)

These typos was sent from my Nexus S [i9023]using xda premium
[Android Software/Hacking General [Developers Only]] KM7:
Thanks !!
[Android Software/Hacking General [Developers Only]] nicandris:
it should have a line below that. smth like

cp /home/____/android/system/.repo/repo/repo /home/____/.sdk/tools/repo
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
There is. Just didn't see it before. :P

Is there any chance; that upgrade/update will be included in your next update? If that's even possible.

Thanks again for this. Really appreciate your work. Been using it ever since the build-bot broke down.

Hope I'm making any sense at all. :D

These typos was sent from my Nexus S [i9023]using xda premium
[Android Software/Hacking General [Developers Only]] echo_rc:
Need help, i got this problem

Do you have SDK/ADB installed? (y/n)?

y

You already have the files, skiped

~/android/system Dir Exists

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 17451 100 17451 0 0 9017 0 0:00:01 0:00:01 --:--:-- 30244

Getting repo ...

from git://github.com/android/tools_repo.git

github.com[0: 207.97.227.239]: errno=Connection timed out

fatal: unable to connect a socket (Connection timed out)

Repo initialized! (Please note that this is gonna take emmmm... SOOOOOOOOME time to complete.

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

Use "repo init" to install it here.

Did the repo synchronization completed successfully? (y/n)
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Repo seems to be causing a lot of trouble these days. =-O

These typos was sent from my Nexus S [i9023]using xda premium
[Android Software/Hacking General [Developers Only]] Rastafarian-:
thank you nicandris or useful thread...keep it good work
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Would it work if I just replace the repo-http address in your script, with the new one?

https://dl-ssl.google.com/dl/googlesource/git-repo/repo

being the new one.

These typos was sent from my Nexus S [i9023]using xda premium

Well, I'm testing it now. Hope it doesn't f***'s my pc. :-P
[Android Software/Hacking General [Developers Only]] nicandris:
well if it works inform me so i can add it. i've been busy this days with tests and assignments so i've been a bit out of my normal schedule. i've prepared a version for cm9 also but didn't tested it yet
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
I'll be happy to help you test it. :-P

Cm7 script, so far so good. Still downloading from cm-git. :-) But looking good.

These typos was sent from my Nexus S [i9023]using xda premium

Edit: btw, I'm on Ubuntu 10.04 - 64 bit. And I don't mind formatting my linux partition, just for the sake of testing.
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
Sussess

Well, just came back home, and found a update.zip, in my builds-dir.

So I'm guessing that it worked. Gonna flash now and see if I encounter any problems. :)

Will report back soon.

Edit: It boots. :D So the conclusion must be, you CAN just replace the repo-http adress in line 153 with the new one, already provided. ;)

Please note, that I have only tried the "douchebuild.sh" with the new repo.

Have yet to test the "build.sh".
[Android Software/Hacking General [Developers Only]] milezmilez:
Anyone else having trouble syncing the repository? I'm on Ubuntu 11.10 and stalling after seeing this:

Fetching projects: 99% (310/313) Receiving objects: 21% (4134/19495), 527.64 remote: Total 19495 (delta 10829), reused 18973 (delta 10307)

Receiving objects: 100% (19495/19495), 1.81 GiB | 796 KiB/s, done.

Resolving deltas: 100% (10829/10829), done.

From git://github.com/CyanogenMod/android_prebuilt

* [new branch] gingerbread -> github/gingerbread

* [new branch] gingerbread-release -> github/gingerbread-release

* [new branch] ics -> github/ics

* [new tag] cm-7.1.0 -> cm-7.1.0

************Nothing happens for 3 hours******************

was fetching for a while after I executed:

cd ~/android/system/

repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

repo sync -j16

I tried without the "-j" option too, still stalls at the same place, anyone with any ideas?
[Android Software/Hacking General [Developers Only]] Pons:
Try repo sync --local-only then try resyncing it.

Sig: Help CUViper get a GNexus. Vote for him at http://bit.ly.cuvipergn
[Android Software/Hacking General [Developers Only]] benbailey84:
how/where do you change it?
[Android Software/Hacking General [Developers Only]] Reptilez_DK:
With gedit, in line 153 of the douchebuild.sh script.

These typos was sent from my Nexus S [i9023]using xda premium
[Android Software/Hacking General [Developers Only]] bibold:
Hey, I've got the exact same problem... Did u find a solution?

---------- Post added at 05:14 PM ---------- Previous post was at 05:07 PM ----------

Didn't seem to work :

julien@Ubuntu11:~$ repo sync --local-only

Traceback (most recent call last):

File "/home/julien/.repo/repo/main.py", line 366, in <module>

_Main(sys.argv[1:])

File "/home/julien/.repo/repo/main.py", line 346, in _Main

result = repo._Run(argv) or 0

File "/home/julien/.repo/repo/main.py", line 137, in _Run

result = cmd.Execute(copts, cargs)

File "/home/julien/.repo/repo/subcmds/sync.py", line 443, in Execute

project.Sync_LocalHalf(syncbuf)

File "/home/julien/.repo/repo/project.py", line 973, in Sync_LocalHalf

revid = self.GetRevisionId(all)

File "/home/julien/.repo/repo/project.py", line 955, in GetRevisionId

rev = rem.ToLocal(self.revisionExpr)

File "/home/julien/.repo/repo/git_config.py", line 644, in ToLocal

raise GitError('remote %s does not have %s' % (self.name, rev))

error.GitError: remote github does not have refs/heads/gingerbread
[Android Software/Hacking General [Developers Only]] Blindi1985:
I have always same Error:

Fetching projects: 12% (38/314) error: unable to resolve reference refs/remotes/github/gingerbread: Success

From git://github.com/CyanogenMod/android_device_htc_speedy

! [new branch] gingerbread -> github/gingerbread (unable to update local ref)

error: unable to resolve reference refs/remotes/github/gingerbread-release: Success

! [new branch] gingerbread-release -> github/gingerbread-release (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.0: Success

! [new tag] cm-7.0.0 -> cm-7.0.0 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.1: Success

! [new tag] cm-7.0.1 -> cm-7.0.1 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.2.1: Success

! [new tag] cm-7.0.2.1 -> cm-7.0.2.1 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.3: Success

! [new tag] cm-7.0.3 -> cm-7.0.3 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.1.0: Success

! [new tag] cm-7.1.0 -> cm-7.1.0 (unable to update local ref)

error: unable to resolve reference refs/remotes/github/gingerbread: Success

From git://github.com/CyanogenMod/android_device_htc_speedy

! [new branch] gingerbread -> github/gingerbread (unable to update local ref)

error: unable to resolve reference refs/remotes/github/gingerbread-release: Success

! [new branch] gingerbread-release -> github/gingerbread-release (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.0: Success

! [new tag] cm-7.0.0 -> cm-7.0.0 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.1: Success

! [new tag] cm-7.0.1 -> cm-7.0.1 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.2.1: Success

! [new tag] cm-7.0.2.1 -> cm-7.0.2.1 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.0.3: Success

! [new tag] cm-7.0.3 -> cm-7.0.3 (unable to update local ref)

error: unable to resolve reference refs/tags/cm-7.1.0: Success

! [new tag] cm-7.1.0 -> cm-7.1.0 (unable to update local ref)

error: Cannot fetch CyanogenMod/android_device_htc_speedy
[Android Software/Hacking General [Developers Only]] sevenup30:
i have this error:

From git://github.com/CyanogenMod/android_external_webkit
2c528dd..3abf037 ics -> github/ics
Fetching projects: 93% (291/312) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (309/312) fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors

i tried the new url but still here.

and after i dont have any folder in ~/android/system/device
[Android Software/Hacking General [Developers Only]] nicandris:
it seems there is some kind of problem with github. anyone else experiencing problems synchronizing?
[Android Software/Hacking General [Developers Only]] crachel:
Cyanogen tweeted that there is an issue and he has opened a ticket with Github
[Android Software/Hacking General [Developers Only]] nikku_hot123:
i am stuck here...

From git://github.com/CyanogenMod/android_device_samsung_epicmtd

ebc0a07..023f036 gingerbread -> github/gingerbread

Fetching projects: 94% (294/312) fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

error: Cannot fetch CyanogenMod/android_prebuilt

Did the repo synchronization completed successfully? (y/n)
[Android Software/Hacking General [Developers Only]] prodigiez:
how bout adding sgs2 hd lte in list ?
[Android Software/Hacking General [Developers Only]] salviya:
great discussion...
[Android Software/Hacking General [Developers Only]] krzych:
LOL, where did he come from? :D

I'm new here and to Cyanogen at all, but I'm trying to build one right now, so I suppose will come back soon ;). Nice tool guys, I barely know Debian based distros, but as far as I see now, it's quite fool-proof script :) Thanks :)
[Android Software/Hacking General [Developers Only]] benbailey84:
I am trying to do this on an HTC Aria, I have S-Off, root etc... I'm not very experienced with android dev. anyway, to my post...

Yeah I am having this error also... more exactly this one

~/android/system $ repo sync

Fetching projects: 94% (294/312) fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

error: Cannot fetch CyanogenMod/android_prebuilt

I changed the repo in previously said place... Seems like this github deal is the culprit... boooooo :mad:
[Android Software/Hacking General [Developers Only]] nicandris:
it seems there is something wrong with github in the past week. not something i can fix i am sorry
[Android Software/Hacking General [Developers Only]] wowsher:
Credit for this goes to whoareyou over on the cyanogenmod forum here:

I did not have to delete anything just update the two files (actually it seems to be working just with the xml file updated). It is currently still syncing but made it past 294 and is on 309.

In Terminal:

cd "YOUR_WORKING_DIR" (android/system if you did not change anything)

cd .repo

nano manifest.xml

replace all urls starting with "git://" to "https://"

nano manifests.git/config

replace all urls starting with "git://" to "https://

wowsher
[Android Software/Hacking General [Developers Only]] nicandris:
anyone else tried this? is it working @wowsher?
[Android Software/Hacking General [Developers Only]] wowsher:
Yes I was able to sync the repo after make those changes. The build process runs for a long time then I am getting this error when building:

packages/apps/Settings/src/com/android/settings/vpn/OpenvpnEditor.java:170: cannot find symbol

symbol : method getUseTlsAuth()

location: class android.net.vpn.OpenvpnProfile

p.setUseTlsAuth(newP.getUseTlsAuth());

There are a number of other errors just like this with different methods all in OpenvpnProfile.

I am going to do the clean/clobber/build option and see if that fixes it.

I found out this appears to be a problem with a commit done by cyanogenmod devs involving changes to the OpenVPN UI

http://review.cyanogenmod.com/#change,11452

By the way 0 to exit does not work in the build script....

should probably be:

echo -n "Select Option(0-13): "

read option

while [[ $option -lt 0 || $option -gt 13 ]]; do

echo "Selection ERROR.."

echo -n "Select Option(0-13): "

read option

wowsher
[Android Software/Hacking General [Developers Only]] mrdegriz:
Many Thanks OP this looks awesome. Perfect excuse to multiboot this laptop. Installing now!
[Android Software/Hacking General [Developers Only]] nicandris:
Updated the download with all the fixes that were mentioned in the thread. will try adding more devices soon. anyone wants to test the cm9 version also?
[Android Software/Hacking General [Developers Only]] benbailey84:
Was the above extraction successful (n/y)?

n

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

/home/ben/douchebuild.sh: line 630: cd: /home/ben/android/system/device/htc/liberty/: No such file or directory

/home/ben/douchebuild.sh: line 631: ./extract-files.sh: No such file or directory

That is the error im having... What do i need to do/change?
[Android Software/Hacking General [Developers Only]] nicandris:
it seems the repo didn't complete syncing. go to ~/android/system and do a repo sync there
[Android Software/Hacking General [Developers Only]] benbailey84:
fatal: Not a git repository: '/home/ben/.repo/projects/device/htc/glacier.git'

did as stated above got this error, I am not sure why that is in there, i dont have that phone. how do i remove that repo? Its not letting it complete the process.
[Android Software/Hacking General [Developers Only]] wowsher:
You are either not running it in the ~/android/system directory OR your repo init is wrong... How are you trying to sync? the script of just typing commands? if it is commands then we need to know the directory you are running it from and the exact command(s) you are running. It should be placing the sync files into /home/ben/android/system not into /home/ben/ so the .repo directory should be in /home/ben/android/system does that help at all?

wowsher
[Android Software/Hacking General [Developers Only]] benbailey84:
yeah. i will give it a try
[Android Software/Hacking General [Developers Only]] wowsher:
Your steps appear to be the same .. I do not know why it defaults to your home directory for the repo... Maybe there is a problem with your permissions in android/system? Or the .repo directory inside android/system... maybe delete the android directory and rerun the whole douchebuild script again?

what directory are you running douchebuild.sh from? Your home directory?

what os and version are you running? In a VM, dual boot, x86 or x64? I am running ubuntu x32 dual boot using wubi.

wowsher