yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] demon2112:
u

i do!! inly need a workingspace setup and the basic linux experience,becuase i have no experience with linux/codes/scripts whatso ever hahaha
[Galaxy Tab  Android Development] vhallac:
I am also very much interested. I don't know how I will gather the courage necessary to risk bricking my phone on my first build, but once I've done that, I am sure I will enjoy building and tweaking.
[Galaxy Tab  Android Development] dizgustipated:
you can place ANY repo init inside the make file

(I have used it for BOCA, cm7, tizen, icedBOCA, cm9, AOSP, miui, OMFGB and many more)

currently it is my cm9 repo, so yes you will get basic icedBOCA files, and build basic icedBOCA, if you do not change the repo init address.

included in zip is the make file and the installer.sh (to make setting up your linux environment for android building much easier)

I will be rewritting this makefile to include things like kernel build, kernel directory clean, build directory clean and so on.

enjoy!

PS

today is family day, soon I will see if i can rewrite the op for better clarity.

PPS

my current repo setup and kernel are BML,

NOT

MTD

(which i much prefer anyways, and I am sure you will appreciate)
[Galaxy Tab  Android Development] dizgustipated:
I've rewritten some make files.

One is specifically for tecks cm7 (syncs code and has options to build kernel or kernel, modules and rom altogether. With two word commands)

And a few others for various aosp and cm9 sourcecodes.

If there is interest, just holler and I'll upload.
[Galaxy Tab  Android Development] dizgustipated:
repo down, because I am updating my repo as promised.

doing it all from step one (except building) to make sure its all okay.

(takes me about an hour or two to sync)

Then revisions will be uploaded/explained

Try, for now:

cd android/system
repo init -u git://github.com/dizgustipated/android.git -b ics
repo sync

And be apart of the learning process

Alternatively

Device files are now at:

https://github.com/dizgustipated/device_samsung_galaxytab

Samsung vendor files are now at:

https://github.com/dizgustipated/proprietary_vendor_samsung

Updated cm vendor files are at:

https://github.com/dizgustipated/android_vendor_cm

I'm fairly new in this portion of development.

Isn't it great we can all learn something, together?

;)
[Galaxy Tab  Android Development] tpike:
Looks exciting! Can't wait to get started!
[Galaxy Tab  Android Development] priyana:
Sorry, where to get the elusive repo script?

Sorry again, answering my own question

http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/

Apparently it has been hard to get since kernel.org got hacked

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" -o /usr/local/bin/repo

chmod u+x /usr/local/bin/repo

EDIT:

Silly me, has it been there all the while:

cp android/system/.repo/repo/repo /usr/local/bin/repo
[Galaxy Tab  Android Development] stimpz0r:
hi diz / fellow new starters!

literally a day before you publically announced the "do it yourself" build, i had downloaded cdesai's cm9 release and humbertos kernel and compiled them both. i used your instructions to get it booting, but as wifi didn't work and a few other things were not the best, and then your DIY project started, i decided instead of fiddling with that build i would try yours and fiddle with that. since my computer isnt the most powerful and i use it at nights to watch streamed tv shows, ive only downloaded the repo so far, and am planning to make build tonight before bed :)

i noticed that you have included a pre-compiled kernel with your build, and was wondering if there were any plans to include that as part of the building process as well or will it eventually work alongside humberto's cm9 kernel? i was purely interested in regards to fiddling with drivers kernel side.

anyway ill stop my ramble with a big thanks to you diz and your innovative idea to further the dev community by trying to get people involved. im personally hoping to take it further than just building someones source code and i have you to thank for that. ;)
[Galaxy Tab  Android Development] EmperorX:
Ok so in between owning my own business, buying my first house with my woman, a great friends recent death, preparing for a "little one" of my own, etc etc I am *attempting* to tackle this. Now, I can definitely follow basic instructions. My only question is: Where the hell do I start? It seems as if this thread (unless I am missing something) assumes that I have the proper programs/tools already installed and ready to go? Unless I am way off base here, what exactly do I need to get going? I understand computer specs aren't really a factor here (other than adding length to the process) but... What do I need. I am a complete noob in this area juggling enough on my plate. If you could spell out what I need to setup, (if you already have, I apologize) that would be awesome. Do I need to be on Ubuntu or a Linux distro or is this even possible on Win 7?

If this requires and Ubuntu install then I am completely SOL (this is a very, very long story but Ubuntu DOES NOT install on my specific laptop configuration, I know this seems highly unlikely, but I went through weeks of forum browsing, question asking, dev talking, etc and it just will not install... Very old versions work... but meh). If that is the case, if you could PM me flashable zips (diz) I would be eternally grateful. If not, I guess I will just have to wait until the "TE4M" releases something or you are generous enough to give the green light on releasing an update.zip/whatever else is necessary. I'm sure I could figure out someway to do this but I fear at this point it will just exacerbate my impending nervous breakdown. Thanks for everything diz, I appreciate this philosophy and way of thinking, but I may not be able to take advantage of it at this point in my life :(

Good things come to those who wait I guess....

EDIT: After further researching I know that I will need a linux install to get this going. Looks like i'm out of luck... Sigh, i'm really not trying to be "lazy" here. But with the way life is right now, I just can't do this. Thanks for this whole initiative though.
[Galaxy Tab  Android Development] dizgustipated:
UPDATE

1/9/12

op updated with a new make file, and new instructions

Alternatively,

If you have already started, you can open your make file and change

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

to

repo init -u git://github.com/dizgustipated/android.git -b ics

save, and in terminal

Code:

cd android
make init
make sync

then proceed

There is now no need to run the cyanogen get-prebuilt command
[Galaxy Tab  Android Development] dizgustipated:
Yes, I plan to eventually have the whole thing like my or teks CM7, where you can build the rom and kernel together, from the make file.

But that is a tiny bit down the road, still

either I, a user or humberto may need to work on/fix/create a new script for that
[Galaxy Tab  Android Development] cdesai:
FYI, i've made a build-script for the kernel

./build.sh <p1 | p1c | p1l | p1n - any 1 >

compiles, then makes it into a boot.img - i'll add a buildscript to device in a day or two.
[Galaxy Tab  Android Development] EmperorX:
I am not really sure what you were trying to say in response to my quotes. Perhaps I am a bit daft... But I have all the Android SDK/ etc files on my pc (I have for awhile). I guess the way I am looking at it, your tutorial is for those who are rocking Ubuntu? It is possible for me to do this on a Win 7 machine (perhaps?) but without the guidance I just don't know where to go... I guess I can try and get Ubuntu running on one of my PC's in the office but I wish I could get going on my Win 7 machine, that, as I stated earlier, is incapable of running any of the most recent Ubuntu builds... I am getting a new computer that should arrive in 1-2 weeks... Perhaps I will try then (but I am assuming by that point I will just have a flashable zip from someone... I hope). Thanks again diz@
[Galaxy Tab  Android Development] stimpz0r:
i strongly doubt you would be able to build android from a windows machine (hey i could be wrong, but i personally dont see how it would) BUT if you can boot windows, then your second best bet is to run ubuntu in a virtual machine. it wont have issues with specific hardware, but it will be a lot slower than running natively. anyway it is better than nothing ;)
[Galaxy Tab  Android Development] cdesai:
You need Linux/OSX for building Android, you can use a VM if you got a powerful computer, else it'll take long!
[Galaxy Tab  Android Development] dizgustipated:
empty post
[Galaxy Tab  Android Development] Derrian:
I seem to have errored out.

Any ideas?
[Galaxy Tab  Android Development] Nype:
Hey,

first I want to thank everyone who is helping getting ICS on our tab.

I got it compiled but when I flash the zip the tab does not boot. It is stuck at the galaxy tab writing for 20min now.

I used the current overcome rom before and flashed from external sd.

Any ideas what I did wrong?
[Galaxy Tab  Android Development] dizgustipated:
Yes go back and re read step 6b

Make a log at and post it in paste bin

Post it for everyone to look at, Let's find out.

Hopefully more users will get involved so you guys can work together to figure things out.

I'm hoping this becomes a community dev thread, not a diz walks you through it and teaches everything, thread.

I am happy to see how much activity this idea is getting,

Exciting stuff!

PS I am building 100% fresh along with you guys.

Debugging as we go.

Lol my comp is just super slow! Building takes AWHILE!
[Galaxy Tab  Android Development] Derrian:
river@river:~/android$ system/vendor/cm/get-prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2438k 100 2438k 0 0 372k 0 0:00:06 0:00:06 --:--:-- 481k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 190k 100 190k 0 0 127k 0 0:00:01 0:00:01 --:--:-- 490k
unzip: cannot find or open proprietary/Term.apk, proprietary/Term.apk.zip or proprietary/Term.apk.ZIP.

yep did that,

and still erroring so I'm not sure what's happening.

http://pastebin.com/072a5p5m
[Galaxy Tab  Android Development] Z3rO`:
cd into system/vendor/cm then ./get-prebuilts

That should do the trick.
[Galaxy Tab  Android Development] Derrian:
Ok done that, still getting errors during the build

make[1]: *** [out/target/product/galaxytab/obj/STATIC_LIBRARIES/libcutils_intermediates/android_reboot.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Note: external/doclava/src/com/google/doclava/Stubs.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
make[1]: Leaving directory `/home/river/android/system'
make: *** [build] Error 2

I might just delete everything and try again from scratch tomorrow, unless you have any other ideas mate?
[Galaxy Tab  Android Development] Z3rO`:
Just started compiling myself. No idea, sorry.

Could it be that ccache isn't used anymore? At least ccache -s shows no movement while compiling.

[edit]Just took a closer look at your error. Have you followed diz's advice, and replaced the file mentioned in step 6b?[/edit]
[Galaxy Tab  Android Development] Derrian:
I haven't the foggiest idea, I'll wait and see what Diz says before I decide wether to try again from scratch.
[Galaxy Tab  Android Development] Z3rO`:
Have a look at my last post, I edited it. Replacing the file in step 6b did the trick for me. I errored out with the same error.
[Galaxy Tab  Android Development] dizgustipated:
" system/core/libcutils/android_reboot.c:114: error:"

Go back and read the step one more time
[Galaxy Tab  Android Development] Derrian:
Gah, I'm an idiot, I'll give it a shot tomorrow after I've had some sleep.
[Galaxy Tab  Android Development] reddog69:
thank u diz

it built for me i havent attempted a flash to my tab yet.will let everyone know how that goes

---------- Post added at 07:45 PM ---------- Previous post was at 07:04 PM ----------

mt update zip is only 66 megabytes
[Galaxy Tab  Android Development] humberos:
Congratulations!

Hey, bro!

Thanks for all hard work!

Great job!

Awesome!!!!

Cheers from Brazil!
[Galaxy Tab  Android Development] stimpz0r:
well i got my first build done finally. computer crapped itself a few times but it finally made it through. packed it up and flashed it, and now im getting constant "unfortunately, the process com.android.phone has stopped" messages. for everyones reference, i have no sim in my tablet. below is a pastebin log:

http://pastebin.com/bTzp5uYQ

on another note, ill be the first to publically complete step 10 on the first page:

thanks again diz for helping everyone out. im now off to fiddle and see if i can fix this problem. :)

EDIT: after navigating to the app drawer i noticed that browser, calendar, clock, email and gallery both appear twice. i flashed this over ics alpha 3 (my current daily driver) but i wiped data / cache and davlik cache after flashing.
[Galaxy Tab  Android Development] ayysir:
tried to build 5 times and getting this error.

it will build for like 3 hours then get ths error:

http://pastebin.com/ePcrnm7J
[Galaxy Tab  Android Development] dizgustipated:
Congratulations!

I'm glad to see some completions are starting to happen.

(Yes in saw your paste in, but am going to let you fiddle some)

Is that the USB debugging pic I see?

Did sdcard mount in PC also?
[Galaxy Tab  Android Development] stimpz0r:
yes that is a usb debugging pic, but no sdcard mount on pc unfortunately. :(

anyway, back to fiddling! :)
[Galaxy Tab  Android Development] ouyangcc:
Try edit

~/android/system/external/mesa3d/src/glsl/linker.ccp

add

#include <stddef.h>
[Galaxy Tab  Android Development] adi6262:
is the sync supposed to take a very long pause at

remote: Total 19495 (delta 7010), reused 19495 (delta 7010)
Receiving objects: 100% (19495/19495), 1.80 GiB | 101 KiB/s, done.
Resolving deltas: 100% (7010/7010), done.
From https://github.com/CyanogenMod/android_prebuilt
* [new branch] gingerbread -> github-https/gingerbread
* [new branch] gingerbread-release -> github-https/gingerbread-release
* [new branch] ics -> github-https/ics
* [new tag] cm-7.1.0 -> cm-7.1.0

??

is it normal or some error ?

Edit !!

SYCNED !
[Galaxy Tab  Android Development] cdesai:
Kill the sync and restart - if it doesnt move ahead at all from this point
[Galaxy Tab  Android Development] Nype:
I cannot make a log. When I am in Recovery Mode I get this error with adb:

reloc_library[1384]: 110 cannot locate 'android_log_setColoredOutput' ...

CANNOT LINK EXECUTABLE

I have access to the file system though.
[Galaxy Tab  Android Development] Derrian:
Ok build has been running now for about 3 hours without erroring out.

I really need a more powerful machine, my pc keeps ****ting itself. :D:D
[Galaxy Tab  Android Development] adi6262:
make[1]: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/aditya/android/system'
make: *** [build] Error 2

any ideas ?
[Galaxy Tab  Android Development] frake:
Hi there,

I just was able to build my first update file. Its size is 114854021 bytes, what seems to be quite big to me - haven't had a look inside though, yet.

I had to get the prebuilt stuff manually.

Could not find too much about the make targets anyway - onyone knowing more about what "bacon" stands for? - Do you have a link, where I can find more about the android sources or cm? - Why are there differnt ways to build the thing (Step 6a) - what's the difference here?

There is so much new stuff to learn even for an old developer like me :)

As I don't have my data cable with me, I'll have to postpone the test of this rom until tomorrow or the day after tomorrow - sadly.
[Galaxy Tab  Android Development] stimpz0r:
I found a reboot fixed that... otherwise it would error out randomly.
[Galaxy Tab  Android Development] Nype:
I built it another time. Same size, like frake ones. So the build process seems to be ok.

If I install it from Gingerbread (Overcome 4.1.0), then it does not boot, as I mentioned before.

If I install it from ICS (AOSP, Alpha 3), then the result is like stimpz0r said. The phone process crashes all the time.

EDIT: By the way, isn't it too small? Alpha3 is 49MB and icedBOCA-BETA_A-V10 66MB bigger.
[Galaxy Tab  Android Development] reddog69:
file size

my build did complete but it seems awful small at 111 megabytes does this sound right to any one else
[Galaxy Tab  Android Development] Derrian:
make_ext4fs -s -l 336068608 -a system out/target/product/galaxytab/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/galaxytab/system
Creating filesystem with parameters:
Size: 336068608
Block size: 4096
Blocks per group: 32768
Inodes per group: 6848
Inode size: 256
Journal blocks: 1282
Label:
Blocks: 82048
Block groups: 3
Reserved block group size: 23
Created filesystem with 1235/20544 inodes and 44728/82048 blocks
/bin/bash: 336068608 / 4096 -s 128 * (4096 -s 128+64): syntax error in expression (error token is "128 * (4096 -s 128+64)")
Install system fs image: out/target/product/galaxytab/system.img
make[1]: Leaving directory `/home/river/android/system'
river@river:~/android$
river@river:~/android$

I'm guessing this means the build was successful? 0.o
[Galaxy Tab  Android Development] dizgustipated:
Congratulations

;)

It never hurts to repeat the make build command, just to double check

Also

When I get home tonite, I'll pack up an appropriate gapps zip
[Galaxy Tab  Android Development] Derrian:
Thanks diz, but I think something went wrong, it won't boot past the first splash screen.

I wiped everything, flashed, then wiped everything again.

I'll try building again.
[Galaxy Tab  Android Development] frake:
You are right - the rom's size is far too small. I Must have mixed it up with the size of my other device's rom - nevermind!

I'm just manually exploring, what is contained in the archive compared to what has been inside diz's icedBOCA-BETA_A-V10 dated 2011-12-17

Here we go:

- /system folder is much smaller in our version than it has been in BETA_A-V10

- missing /mke2fs in our version - What's this? - Some filesystem stuff?

- dizgustipated seems to have spent some time working on the upgrade script (wasn't the one good, that we can find in BETA_A-V10? - :) Just kidding!

- /updates/zImage has been updated - this is the kernel as shown in Post #1,

- /system/app: seems there are lots of apps missing compared to icedBOCA-BETA_A-V10. This should not hurt too much, but for what reason did you leave them out?

- /system/cameradata is missing - wasn't the camera working within icedBOCA-BETA_A-V10?

- /system/firmware is also missing - what was that for?

- in /system/vendor the directories bin, lib and pittpatt are missing - could this be the reason for non-booting devices? - Just a guess...

Well, I'll stop that now, but we'll have to collect some more information before we should start retrying the flash, shouldn't we?

Have a good day!
[Galaxy Tab  Android Development] Z3rO`:
Yay, mine built too. Filesize of my zip is 122mb. Flashing now. :D
[Galaxy Tab  Android Development] Derrian:
Really? Mine was only 111 MB :banghead::eek:
[Galaxy Tab  Android Development] Z3rO`:
Won't boot. :/

Formated everything including system via clockworkmod before installing the zip.

My logcat: http://pastebin.com/kZ7b7j2J

I think it can't initialize the GFX hardware. Looking into this tomorrow since its 3am (again *sigh*) and my head hurts.

[edit]Posted the wrong size. Mine is 113970131 bytes[/edit]
[Galaxy Tab  Android Development] dizgustipated:
whew, told you all my computer was slow!

Heres what my

make snapshot

says a fresh

make build

built.

I opened android/snapshot/current and deleted the system folder, then ran:

make snapshot

I also had deleted any other snapshots I had made to speed up the build

http://pastebin.com/nQfEM9ZT

now lets flash and debug!

make package CLEAN=1

(my not-tinkered-with, update zip is 118.1 MB (123793438 bytes)

And to answer someones question about apps that arent included here.

we are building CM.

gapps do not come included, and neither do secondary market apps, like I tend to include in my BOCA releases
[Galaxy Tab  Android Development] ayysir:
snapshot is essentially to speed up repeated build times? do you use ccache?

ive been trying to build this rom for 2 days straight. corrected all the errors i have recieved in terminal thanks to ppl in this thread but i think i will give up on compiling this rom.... taking forever to compile

i run a acer netbook, 1gb of ram cpu 1.66ghz. Running Linux Mint 12 on a external HDD partitioned with 180 gb with 2 gb swap space and 5 gb swap file
[Galaxy Tab  Android Development] reddog69:
compiling fine

ya i end up with 112 meg zip file .it flashes fine then hangs on galaxy tab screen
[Galaxy Tab  Android Development] dizgustipated:
found a issue

I/SurfaceFlinger( 111): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 111): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 111): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 111): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so

finally happened after i switched with the ones in the secret download

I either need to update the kernel and make it compatible,

or go back to my older device files.

Give me a few for more debugging
[Galaxy Tab  Android Development] ayysir:
i give up on building man, 2days continuous buildings... nowhere close to being done

seems like i just need a better setup :(

this is currently where it is at at compiling:

http://pastebin.com/K90Lz3bD
[Galaxy Tab  Android Development] Z3rO`:
That part took a long time here too.

I'm compiling on a macbook late 2008 with a core2duo 2,4 ghz and 8 gigs of ram inside of a virtual machine running ubuntu. The VM has 4 gigs of ram and the 2 cpu cores dedicated to it. Building took like 3-5 hours.
[Galaxy Tab  Android Development] ayysir:
i didnt try vm because i figure running linux would be better.

i run a 1 gb ram, 1.66ghz acer netbook. Linux Mint 12 on external hdd. maybe slowness deals with external hdd western digital. even tho i have ubuntu 11.10 on dual boot on the actual internal hdd of my netbook but its only 84 gb partition
[Galaxy Tab  Android Development] Z3rO`:
I don't think it's the external hdd. Ram and CPU power are the limiting factors.
[Galaxy Tab  Android Development] adi6262:
target thumb C++: libv8 <= external/v8/src/accessors.cc
target thumb C++: libv8 <= external/v8/src/allocation.cc
collect2: ld terminated with signal 9 [Killed]
make[1]: *** [out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
make[1]: *** Waiting for unfinished jobs....
collect2: ld terminated with signal 9 [Killed]
make[1]: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc] Error 1
make[1]: Leaving directory `/home/aditya/android/system'
make: *** [build] Error 2

HELP !!

P.S chrome crashed each time i got this error !! each time !