yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 General] beekay201:
after Ic7ba4c35, build now breaks with:

could be an error on my end though. cleaning up now and rebuilding.

edit: definately an error on my end, don't have that file in my local dir. :|

edit2: it was a behaviour worthy of a noob git user. :D

edit3: Jens encountered another error

after Ie5ebc225 went in probably, i can also confirm this.

edit4: our fellow spanish users can build again and so can we: I865df4ee, Ifa9ff4dc; thanks djMesias. :)
[Galaxy S I9000 General] Zatta:
Synching now, building tonight. Finally, after two weeks on extremely slow internet connection.

Edit: works ask, 7.2.0-RC0-KANG running :)

Taptalked u see
[Galaxy S I9000 General] beekay201:
while we still running/building CM7, some more news about the future, especially for us.

from http://www.cyanogenmod.com/blog/cm9-progress-update

edit: just checked DHL tracking, my new toy is in Spain already :D :D on it's way to my place :D
[Galaxy S I9000 General] lohho:
I try to build nightlys myself right now but i force a problem.

SInce i use linux (ubuntu64 11.10) in a virtualbox iam forced with the problem that the VB don't recognice my sgs via usb so i cant get the propertiary stuff from the phone to start the building.

It's working fine with adb in the hostsystem (win7 64) fine through, but i don't get it in the VB.

Anybody experience with this sort of problem?

edit1: VMplayer seem to recognice the sgs, so iam trying with it right now.
[Galaxy S I9000 General] andrei16ro:
If you find how it works please right it down here. I am using windows and I want to do it with a virtual machine too.

tks
[Galaxy S I9000 General] lohho:
Well VMwareplayer work.

Just use it and install some linux you prefer (i used ubuntu) in it and then follow the common howtos. (if you don't find em write it and ill post the links here).
[Galaxy S I9000 General] beekay201:
I was going to suggest VMware, but i'm glad you got it working with VMPlayer.

edit: it has arrived :D what a beastly display :D
[Galaxy S I9000 General] kasper_h:
YEEY, I build my first KANG today :):)

How I did it:

-I installed VMware Player on my Windows 7 64bit laptop (i3 350 - 3GB)

-I made a Ubuntu 11.04 32bit machine (1GB, 1 core, bridged network (not NAT), 30GB HD)

-I added "deb http://archive.canonical.com/ maverick partner" to the synaptic package manager (settings>repositories), and then installed sun-java6-jdk (For me, it didn't work with apt-get).

-I then opened a terminal and typed "apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool"

-I then downloaded SDK and extracted it to /home/kasper (personal folder). I then ran ./android from the tools directory and downloaded the SDK components

-I then added the /platform-tools directory to $PATH (to be able to run adb)

-I did not do anything to the udev parameters, default was fine.

-I then followed Compile Wiki from the "Create the Directories" part down

-Building took around 2 hours

So, now I have some questions:

-Is there a howto or any useful info to start adding non-merged commits?

-The /out/target/product/galaxysmtd folder contains all the files from which the flashable zip is compiled. Do these files get overwritten automatically when rebuilding, or do I need to clean/empty this folder?

-Do I need to completely build/compile CM7 after every small change, or is there a shortcut to only apply the changes without rebuilding the remaining stuff?
[Galaxy S I9000 General] Zatta:
Cool!

Question 1: while waiting for bk's guide I started with the small cherry-pick guide in this very thread, it is not so difficult.

Question 2: it gets overwritten, no need to clean it.

Question 3: would be nice but afaik you need to build the whole thing. But for a separate app you can use "mmm" but that seems more something for devs.

Taptalked u see
[Galaxy S I9000 General] kasper_h:
Thanks a lot, I'll give it a try tomorrow :)
[Galaxy S I9000 General] andrei16ro:
Please can someone post a download link for the last Lang that they build?tks.
[Galaxy S I9000 General] Zatta:
uhhhh, NO!!

Taptalked u see
[Galaxy S I9000 General] andrei16ro:
Sorry I mean Kang not Lang. Tks
[Galaxy S I9000 General] kasper_h:
No. KANG = DIY. You make one for your own use. Only officials from teamhacksung may publish KANGs in some instances...
[Galaxy S I9000 General] jose.celestino:
Nice work :)

No, that is unadvised. It may be ok for core developers to distribute KANGs to users, to test a particular feature or fix, but having anyone distributing KANGs would just add confusion and make bug reporting dificult.

You can build a KANG yourself with instructions from this thread. You'll see it's not that hard (hard enough for you to make sure that that's really what you want to do) and very rewarding. Or you can wait for the next nightly or milestone.
[Galaxy S I9000 General] pramathesh:
Guys any inputs on using an external Bluetooth GPS receiver on cyanogen mod rom's? I'm currently using insanity version of cm. Any help is highly appreciated.

Sent using my brain
[Galaxy S I9000 General] Zatta:
First, you are in the wrong thread but because it is a good day today I'll try to send you on the right direction.

Try to find a guy named Gekkekoe. He has a thread about exactly that subject, somewhere in the development section.

I don't have a link available, search and you will find. And/or ask in the main thread also in the development section.

Taptalked u see
[Galaxy S I9000 General] pramathesh:
Thanks a lot my friend.

Sent using my brain
[Galaxy S I9000 General] kasper_h:
This is a very wonderful guide to get started!!!

I have two questions:

-If I want to work on the java myself, should I also first create a test-branch, checkout to this branch, and then edit the files, to make sure the master stays untouched?

-I always use FuguMod kernel and would like to compile it into my CM7-Kang. I read your previous post. So, If I use this, will it work?

cd ~/Workspace/android/system
git clone git://github.com/teamhacksung/samsung-kernel-aries.git
cd samsung-kernel-aries/
./build.sh galaxysmtd
[Galaxy S I9000 General] drakenabarion:
Hi all. While I am capable to setup the build environment to build a kang, I don't have the bandwidth (or speed) to sync repo. It would take me a week and I would go well over my download limits... (rural area, so no alternative connection).

Would anyone (trusted users) be willing to share one of your builds?

Sent via my GT-I9000 running CM7 (GB 2.3.7) using XDA premium
[Galaxy S I9000 General] Jens1969:
Taken from the "CM9 Update Progress" news (http://www.cyanogenmod.com/blog/cm9-progress-update): "Koush and Arcee have put together a solution to this problem that adds new devices on-demand to your local repository, saving on both bandwidth and the long startup time." This could be a solution to your problem with CM7 and bandwidth usage.
[Galaxy S I9000 General] drakenabarion:
Oh thanks for pointing that out. I was under the impression that it was not fully implemented just yet. So things are already at the point where I can just select one phone model - I can start setting that up later. :-)

Sent via my GT-I9000 running CM7 (GB 2.3.7) using XDA premium
[Galaxy S I9000 General] mundano:
removed... 10 char
[Galaxy S I9000 General] Zatta:
If you find out how.. Please share that knowledge with us. I was also under the impression that it is a future feature.

Taptalked u see
[Galaxy S I9000 General] andrei16ro:
From which date is this kang built?
[Galaxy S I9000 General] mundano:
05/12/2011 1am +/-, CET ...
[Galaxy S I9000 General] Zatta:
Please take that of this board. Read a bit back and adhere to the common policies.

I know your intentions are good and if you wish to share do it discrete and over pm or so.

Taptalked u see
[Galaxy S I9000 General] Zatta:
something like this.

Taptalked u see
[Galaxy S I9000 General] drakenabarion:
I will start on this later today/tonight. I already have a fully functional Ubuntu installed to a v box vm so probably just a case of ensuring I have updated versions of Java etc before following some instructions already in this thread. Of course if I can't avoid needing to download 5+gb then we'll know the new system isn't implemented yet.

Thanks for posting! My fault really but yeah, I didn't mean that people post links on this thread. Doing so would fill the thread with feedback and lots of people asking for help with unrelated things and make general kang discussion difficult/impossible.

Sent via my GT-I9000 running CM7 (GB 2.3.7) using XDA premium
[Galaxy S I9000 General] andrei16ro:
There is any way to install the repository just for galaxymtd?
[Galaxy S I9000 General] kasper_h:
As far as I know, not yet...

Sent from my CM7 galaxy
[Galaxy S I9000 General] nrg:
Can somebody please show the official statement from teamhacksum about them not wanting to see custom Cyanogenmod builds aka KANG in its "own" dedicated thread? As I remember, they only wanted all references removed from the official "nightly thread".

Even if they would have stated this, it wouldn't make any sense. Its an opensource project which means everybody can jump in and help. Building a current KANG would mean some people wouldn't have to setup the build environment and could still benefit from newer commits.

I have seen more custom CM7 builds in this forum from different people who added things to CM7 and want to share them. They just give it a different name and then its "legit"?

The title of this thread makes it clear what goes on here. We don't confuse the official thread in any way, which teamhacksum wants to prevent.

If teamhacksum was really against this, they would have build a KANG themselves to prevent all this confusion, but I guess they are just too busy with the ICS porting.

Just make sure when you post a KANG to add a note about not reporting to the official nightly thread, all discussions about it should go here.
[Galaxy S I9000 General] Zatta:
You are right in the first place. Everyone could build from sources and make their own thread to post them. They could call it something like AGH, PLM or OSR, just what they like. And they could add features like bluetooth GPS mouse support.

But.. One doing so should also give proper support in that case. Releasing builds straight from source, aka kangs would confuse people and clutter the normal threads anyway, even when one would ask not to publish comments there or state "not for noobs", "own risk" etc.

If the team decides to release a kang, it is up to them, not to us here.

Edit: personally I wouldn't like to see this thread change from the subject "building kangs" to "kangs itself".

One more thing, I know that in the nexus s section a thread exists where one or two people distribute kangs with cherry-picked addons. If you would like to start such a thread, go ahead but provide the proper support like they do overthere.

Taptalked u see
[Galaxy S I9000 General] kasper_h:
You are correct: teamhacksung didn't want KANGs in the nightly thread but it was OK to do it in a separate thread. Some maybe our reactions were a bit strong :)

Still, I will not posts my KANGs here. I do a some testing and half of those tests result in failure (e.g. bootloops, non-functional apps). I don't feel its appropriate to share my testbuilds here :)

However, if someone would like to build&share a clean KANG, it's fine with me :) (although for me, this thread is more about learning to build KANGs than sharing them).
[Galaxy S I9000 General] Zatta:
Boks.

Taptalked u see
[Galaxy S I9000 General] andrei16ro:
When I do this: repo sync -j16 the fetching is stopping at 99% (310/313) do you have any idea how to fix this? I am doing it thru VMWare like in a previous tutorial.
[Galaxy S I9000 General] Zatta:
This is just a wild guess: why not try it again without -j16? Meaning you won't fetch things simultaneously, maybe better on a virtual machine. But again, just a wild guess..

Oh, by the way, good to see you trying it, thumbs up!

Taptalked u see
[Galaxy S I9000 General] pikachu01:
Just an FYI.

If you're stuck on the step where you need to ADB to pull proprietary files from the phone, just:

1. download a CM7 nightly zip file

2. unzip the zip file somewhere

3. edit the adb script that pulls the proprietary file (I forgot the name, but you can search for it in the device specific folders, and grep for adb) to "cp" instead of "adb pull" from the folder you've unzipped from.

4. ????

5. PROFIT!
[Galaxy S I9000 General] beekay201:
there is.

basically, there are 3 files that we need to edit:

1) ~/path/to/cm7/repo/root/folder/.repo/manifests/default.xml

2) ~/path/to/cm7/repo/root/folder/vendor/cyanogen/vendorsetup.sh

3) ~/path/to/cm7/repo/root/folder/vendor/cyanogen/products/AndroidProducts.mk

Create new branches (name them whatever you like, i tend to use "local-config") under each folder; .repo/manifests, vendor/cyanogen and vendor/cyanogen/products.

(remember the post #1 on git building).

1) here we delete lines (with path starting with 'device') that we dont want. don't delete the ones that have "common" in them.

2) again, remove unwanted device lines.

3) again, remove unwanted device lines.

note: if you leave a device in the last two files, which was removed from the manifest (the first one), you'll get a build error.

finally, just commit the changes to each branch. later, when you repo sync again, you'll still have those edits in branches, and can just rebase them most of the time.

dev team has released kangs before. at least one was released almost out of pure user pressure.

from cm7 sgs nightlies thread​

in sum, you're right nrg, no posting about kangs in nightlies thread; i kinda learned that the hard way. and i once thought as you do: progress in bug reporting could be better. i now think not everyone has the will to learn or to pushing themselves through that learning process, most just want a medicin for flashitis. i don't mind being called a noob, as long as that mean that i'm struggling to learn.

or do ^C and try again

and hell yeah

:P

good when you don't have cm7 installed. I would recommend copying device/samsung/galaxysmtd/extract-files.sh to another location and editing the copy; or instead just create a new branch, checkout to it, edit the file, then 'git add extract-files.sh', and commit.

edit: also, i thought about it some more, and your tip could probably even useful in other situations, for example building for devices which one doesn't have.
[Galaxy S I9000 General] habylab:
Been directed here from Cm7 thread, where can I get a normal Cm7 build with the latest comits since the buildbots have gone down?

Sent from my lag free CM7-nightly'd-up Galaxy S using the XDA Premium app
[Galaxy S I9000 General] jose.celestino:
You can read post #75 on how to build one and # 80 and following on why posting KANGs is not the best of ideas for non devel users, or maybe it is.
[Galaxy S I9000 General] habylab:
Thank you!

Sent from my lag free CM7-nightly'd-up Galaxy S using the XDA Premium app
[Galaxy S I9000 General] kasper_h:
I got a question on repo sync. I manually adjusted some java-files to get some errors out. What happen if these same files get updated in the original github repo? Error message? My changes get overwritten?
[Galaxy S I9000 General] nrg:
You are right, its better it has its own thread, preventing questions about it here.
[Galaxy S I9000 General] Zatta:
Better open a kang build thread for that, please. So that this will stay a place to discuss building, as discussed before.

I have no doubt about your good intentions and I support you in this matter, also as discussed here before.

Here its the link, possibly more kangs to come later:http://xdaforums.com/showthread.php?t=1382537

Taptalked u see
[Galaxy S I9000 General] beekay201:
put simply, better use git.
[Galaxy S I9000 General] siky_dude:
umm, guys...

This is the place where you can POST and talk about your own personal cm7 builds, aka KANGS, experimental ideas and such.

you can post, actually, i recommend posting :D
[Galaxy S I9000 General] Zatta:
You could also read an few posts back...

Taptalked u see
[Galaxy S I9000 General] kasper_h:
Thanks for the reply! I guess I have to tell git to use CyanogenMod/android.git as remote.upstream source and then use "git fetch upstream" to get the latest stuff?

Sent from my CM7 galaxy
[Galaxy S I9000 General] siky_dude:
Okay ^^
[Galaxy S I9000 General] beekay201:
'git fetch' will only get info on upstream status, allowing you to cherry pick for example.

'git pull' will fetch AND merge both upstream and your current local branch, thus updating local repos to latest upstream revision.
[Galaxy S I9000 General] kasper_h:
Thanks for your info. I finally get the feeling I start to understand git :D
[Galaxy S I9000 General] beekay201:
that's what we've been doing.

posting. not building and sharing. as for myself, i will never upload a cm7 kang anywhere.

we talked about kangs, experimental ideas and such. we can't report bugs, we can't share anything since it's not built by buildbot. ideas were left out, we even got moved to General - and without warning. Development has so many crap, no space was left for us.
[Galaxy S I9000 General] kasper_h:
I build my first kernel ever :)

So now I have a zImage file. I would like to have CM include it in the build process, so it gets added to the update-zip. Is this something I can easily do?
[Galaxy S I9000 General] beekay201:
Grab a tested boot.img, unpack it, overwrite zimage, repack.

Check cm wiki "building kernel from src".
[Galaxy S I9000 General] kasper_h:
Thanks. I checked the CM wiki. The scripts to unpack/repack boot.img were not there, but I found them on XDA. I then used the unpack-bootimg.pl on a recent boot.img, but got an error (Found a secondary file after the ramdisk image. According to the spec (mkbootimg.h) this file can exist, but this script is not designed to deal with this scenario.).
[Galaxy S I9000 General] beekay201:
You found this thread, i presume.

Well, i don't really know why it started giving out that error, but i do know how to solve it.

edit unpack-bootimg.pl

coment out the following and save:

if ($numfiles == 0) {
die "Could not find any embedded ramdisk images. Are you sure this is a full boot image?\n";
} elsif ($numfiles > 1) {
die "Found a secondary file after the ramdisk image. According to the spec (mkbootimg.h) this file can exist, but this script is not designed to deal with this scenario.\n";
}

make your changes if you would like to change something, if you do, re-create ramdisk

pack it all up again with:

'mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel your-kernel-file --ramdisk newramdisk.cpio.gz -o mynewimage.img'

there, it should work.
[Galaxy S I9000 General] Perka:
Unpack boot.img cm9

Hi guys, I have searched and found nothing, ended up in this thread.

So here it goes, I want to unpack a boot.img from Teamhacksung ICS but I get this error:

./split_bootimg.pl boot.img
Android Magic not found in boot.img. Giving up.

Any help? Pls.
[Galaxy S I9000 General] beekay201:
have you tried something like this?

if you just want the contents of ramdisk, just tested the above method with a boot.img from aosp maguro build i did yesterday, it extracted contents fine.
[Galaxy S I9000 General] kasper_h:
Thanks, it worked. Problem was with the unpack-script indeed.

Glad Perka also asked a question, I had the feeling the thread was turning into a personal learning thread for me :)

I have a tip for "VMware player"-builders. I have a quad-core cpu. So I thought to share them between windows and ubuntu, 2 cores each. But ubuntu was very "glitchy" (like a 720p video :)). I then googled around and found most people advising not to use multiple cores for VMware except when your machine has a large number of them. So I set VMware to use only one core, and ubuntu became much smoother...and building times were the same.
[Galaxy S I9000 General] kasper_h:
Tested some things in my latest KANG:

Disable bootanimation (url): works as it should. Improvement in boot time (phone off, from pressing power button until lockscreen is shown) from 58s to 47s.

Solve NextCalendarItem on lockscreen (url). I tried to solve this myself in the java code. Solved it 50%. This one seems to solve it completely.

Fix usability of swipe-to-clear feature (url). Seems to work, but needs longer testing.

Change TimePicker behaviour (url). Works well. I was actually surprised to see this was not the default behavior...but that may be more a personal opinion.

Edit: earlier in this topic, there was a short discussion on whether to contribute to gerrit after cherry-picking. My take: if you only see it works after cherry-picking, but you don't understand the code behind it, then don't review. However, if you understand the code-change and tested it to work as it should, I don't see a reason why not to comment.
[Galaxy S I9000 General] mike.sw:
oh wow a better swipe to clear! makes want to learn how to build cm7 by myself :)
[Galaxy S I9000 General] beekay201:
You guys are making me itch.

I've been digging aosp/master, working on my own theme now, running my own flavour, so not paying so much attention to cm right now.

I think i'll grab my sgs and build again. There's people running cm9 alpha on their devices already too :) it's going to be nice future ics kang'ing for all.

Btw, nice going guys.

plenty of info around, enough to get you started i'm sure.
[Galaxy S I9000 General] joyinbuilding:
I'm building my own KANGS for some time and decided to join this forum to share in the fun :)

I saw some questions on making a boot.img for your home-build kernel. But as far as I know, if you build the teamhacksung kernel after modyfing it, the build-script will place the kernel-file + modules in the correct directory of the cm-tree (~/devices/samsung/galaxysmtd), so you don't have to make a new boot.img, just build a CM-kang after kernel building, and your new kernel is automatically build into the KANG. Works perfectly well for me :)
[Galaxy S I9000 General] kasper_h:
Tested it now for a day and swiped 10+ notifications away: works much better now!

If you see my earlier post on building cm7 (link in signature), you can do this quite easily on a normal windows laptop :) Took me 7 hours total (1 hour VMware setup, 1 hour installing software, 3 hours downloading repo, 2 hour building/compiling). After that, it's much less time-consuming.

Thanks for the tip. I looked in my galaxysmtd-directory and indeed found updated kernel/modules there! So all my work on making a boot.img were good for the learning process but useless after all :)

Do you happen to know how I can extract the kernel-file from a zImage? Because the kernel file is quite a bit smaller than the zImage, so I guess it's not the same?!
[Galaxy S I9000 General] beekay201:
You're talking about kernel config?
[Galaxy S I9000 General] kasper_h:
No, I'm talking about the kernel itself (~/android/system/device/samsung/galaxysmtd/kernel), at least I thought this is the kernel itself...

I saw an interesting change being uploaded to gerrit:

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

Something which has been asked over and over again in the nightlies thread: option to select where to save images/movies.

I also uploaded my very first patch myself:

http://review.cyanogenmod.com/#change,10836
[Galaxy S I9000 General] Zatta:
Quite cool Kasper! Just noticed you are also promoted to a reviewer, nice :)

Your third promotion isn't it?

If I were not @sea I would repo sync and check it out unfortunately I can't (due to slow satellite connection for internet).

Verstuurd van mijn GT-I9000 met Tapatalk
[Galaxy S I9000 General] beekay201:
I'll get back to you about the kernel thing sorry, you got me confused :p

Congratulations man, hope it gets in soon, we're cheering for ya :D

The commit you're refering to was abandoned in favour of this one. Just letting you guys know.

edit: is this what you're looking for, kasper?

edit2: as that is for another device, you can also check here.