yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 General] xdaboy122:
i reinstalled git and sucess but failure.

root@ubuntu:~# apt-get install git-core gnupg flex bison gperf build-essential \>
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version.
gnupg is already the newest version.
flex is already the newest version.
bison is already the newest version.
gperf is already the newest version.
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-33 linux-headers-2.6.32-33-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:~# zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
>
zip warning: name not matched: zlib1g-dev
zip warning: name not matched: libc6-dev
zip warning: name not matched: lib32ncurses5-dev
zip warning: name not matched: ia32-libs

zip error: Nothing to do! (curl.zip)
root@ubuntu:~#
[Galaxy Ace S5830 General] rocking.nitesh007:
:) i finished with a 64.3 MB zip..... but when tried to flash error occurred when boot.img was installing error was "assert failed" ....then i tried with cyanogen updater-script ....using dsixda i replaced both binary and script and the again tried to flash the zip .... the zip flashed successfully ..... as it is aosp rom there is no A2D..advanced features so i removed the installation of these features from updater-script .... when i rebooted phone failed to boot stuck on samsung-gt5830 logo ..... i googled about this a figured out i m using a stock rom might be i should use rfs file system or ext4 supported kernel but..... no success in any option .... phone stucks at same point .....

i logcat one errors come : android system error unable to load mian libraries [then all names of propirtery + google libraries ex->bluetooth , jpeg .....etc etc]

i replaced all files under

build/tools/releasetools/

with cynogen's configuration during all tries.

help?
[Galaxy Ace S5830 General] CallMeVentus:
The assert failure was due to a boot.img that was bigger than 4MB
[Galaxy Ace S5830 General] CallMeVentus:
Look on top , and see if I highlighted the errors
[Galaxy Ace S5830 General] xdaboy122:
Hey yeah that note I have problems with installing libcurses file. but where is solution I m on Ubuntu 10.4 64 bit.

And are u busy these days u are not online these days

sent from my phone

plzzzz hit thanks if I helped you in any means .......;)
[Galaxy Ace S5830 General] CallMeVentus:
I have work , unlike you . :p
[Galaxy Ace S5830 General] xdaboy122:
O I checked ur Facebook page u are helping a friend and plzzzzzz also help me.I know I m annoying but there is nothing I can do.

sent from my phone

plzzzz hit thanks if I helped you in any means .......;)
[Galaxy Ace S5830 General] CallMeVentus:
you forgot sudo apt-get install you noob

Ugh .
[Galaxy Ace S5830 General] xdaboy122:
Ugh ok I m noob then why r u crying.

sent from my phone

plzzzz hit thanks if I helped you in any means .......;)
[Galaxy Ace S5830 General] xdaboy122:
Mmm maybe I should learn Linux a little Nn a lot more.

sent from my phone

plzzzz hit thanks if I helped you in any means .......;)
[Galaxy Ace S5830 General] xdaboy122:
so i got it that dollar sign means it is one line command and i was executing each line diffrently :p but now another problem:o sorry matt for being noob.but i learned lot from your tutorial like using terminal and compiling python software and other things thanx.

btw problem

i downloaded the repo script it is in my bin folder and made it executable but still this error

root@ubuntu:~# PATH=~/bin:$PATH
root@ubuntu:~# cd WORKING_DIRECTORY
root@ubuntu:~/WORKING_DIRECTORY# repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1
Traceback (most recent call last):
File "/root/bin/repo", line 91, in <module>
import readline
ImportError: No module named readline
root@ubuntu:~/WORKING_DIRECTORY#

:confused:
[Galaxy Ace S5830 General] CallMeVentus:
You didn't install readline-dev or whatever package that was called .
[Galaxy Ace S5830 General] xdaboy122:
hey matt there is no such package help dude ...............:rolleyes:
[Galaxy Ace S5830 General] CallMeVentus:
Mmmhmm , you totally did not see the first post
[Galaxy Ace S5830 General] CallMeVentus:
I need to know how you solved your malformed recovery.fstab !

Herpderp Galaxy Ace.
[Galaxy Ace S5830 General] rocking.nitesh007:
i replaced files under "build/tools/releasetools/" from cynogen.
[Galaxy Ace S5830 General] CallMeVentus:
Thank you :)

Herpderp Galaxy R.
[Galaxy Ace S5830 General] rocking.nitesh007:
:)

... i am getting this from logcat

could not load needed library 'libsystem_server.so' for 'libandroid_servers.so'

help?
[Galaxy Ace S5830 General] CallMeVentus:
Gingerbread ?

Just grab any custom gingerbread ROM and copy all the missing libs .

Extract the ROMs out first from their .zip !

Instructions:

Go into the /system/lib folder of the custom ROM you downloaded

Ctrl+A (select all) then right-click and click "Copy"

Paste it into your AOSP's /system/lib folder

Re-zip your AOSP

Flash !
[Galaxy Ace S5830 General] rocking.nitesh007:
thanks.......i replaced with cynogen ....n got errors .... log file i have attached....
[Galaxy Ace S5830 General] madman:
he might be suggesting libs from non-cyanogenmod roms like myth rom
[Galaxy Ace S5830 General] rocking.nitesh007:
edit :

1. tried with Myth's rom .... got same errors.

2. tried with samsung's rom ... extracted from system.rfs ... got error [log file attached for samsung's rom files]
[Galaxy Ace S5830 General] rocking.nitesh007:
stuck at..

AndroidRuntime(272): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 268 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 268 could not load needed library 'libcameraservice.so' for 'libsystem_server.so' (link_image[1962]: 268 could not load needed library 'libcamera.so' for 'libcameraservice.so' (reloc_library[1311]: 268 cannot locate '_ZNK7android16CameraParameters16getTouchIndexAecEPiS1

anyone knows about _ZNK7android16CameraParameters16getTouchIndexAecEPiS1 ? ... what is going wrong.....
[Galaxy Ace S5830 General] CallMeVentus:
Libcamera.so is not found , copy that from any stock GB into /system/lib
[Galaxy Ace S5830 General] xdaboy122:
hii its me again :p atlast after installing ubuntu on seprate harddidk and setting up enviorment etc now i m doing repo sync it is downloading somethings.in india we have problems of power cuts.so if there is power cut can i start repo sync again from the point where i left it.if yes then what would be command.thanx:)
[Galaxy Ace S5830 General] CallMeVentus:
Yes you can resume .

PATH=~/bin:$PATH
chmod a+x ~/bin/repo
repo sync

Herpderp Adreno + Tegra.
[Galaxy Ace S5830 General] CallMeVentus:
It's normal

Herpderp Adreno + Tegra.
[Galaxy Ace S5830 General] xdaboy122:
thanx emo you helped me a lot but

so what u mean by copy of cm7 i mean do i need cm7's source code or cm7 by grif or axel.is there any special place or forum where u ask questions when u are stuck.;)
[Galaxy Ace S5830 General] CallMeVentus:
Cm7 sources -.-

Herpderp Adreno + Tegra.
[Galaxy Ace S5830 General] divereigh:
Quick question: I can't find extract_files.sh in the cooper directory (from your git repository android_device_samsung_cooper). The files in there were only committed 5 days ago I think, so I am guessing that what I have downloaded is the code from the ICS branch whereas I am trying to compile Gingerbread.

EDIT: Ignore this, I figured it out - just used the one from CM7 (and hacked the extract-files.sh around a lot)
[Galaxy Ace S5830 General] praphull:
Assert failed while flashing

Hi

Thanks for such a great post.

By following the steps mentioned in this thread, I have successfully built Gingerbread 2.3.7 image for Ace from AOSP (lunch cooper-user). When I tried to flash the final zip, it showed me assert failure errors.

When I was using stock recovery, assertion failed during product/model/board verification, since configuration had all values as GT-S5830.

ro.product.model=GT-S5830
ro.product.name=GT-S5830
ro.product.device=GT-S5830
ro.product.board=GT-S5830
ro.build.product=GT-S5830

Assertion failure message in this case (from /tmp/recovery.log) was:

However, when I'm using CWM5 recovery, assertion fails at different point:

Note the difference in settings:

ro.product.model=GT-S5830
ro.product.brand=samsung
ro.product.name=cooper
ro.product.device=cooper
ro.product.board=cooper

Any pointers would be helpful. Thanks in advance.
[Galaxy Ace S5830 General] NJosh:
Wow!!! I always wanted to compile my own build.. But did not know how and was ashamed to ask for it.. This guide def made it really easy(as easy as it can get ;)).. Thanks a million.. You are a life saver.. :D
[Galaxy Ace S5830 General] CallMeVentus:
You should be using CWM5 to flash AOSP builds.....because CM7 uses CWM5 too.....you can try using CM7's boot.img

Herpderp Defy.
[Galaxy Ace S5830 General] praphull:
Thanks Mathew.

I tried with boot.img from ICSSunday and it gave me the same assertion failures. I tried many things and eventually was able to flash the zip after using the update-binary in ICSSunday.

Right now I'm stuck at boot screen. Logcat shows this and keeps looping:

You mentioned copying libcamera.so to rocking.nitesh007 but that's not the case. It's already present. I got two other similar errors before this but fixed them by copying libs3cjpeg.so and libarccamera.so from stock GB.

Any idea?

Thanks anyways.
[Galaxy Ace S5830 General] CallMeVentus:
I had that problem too....what I did was to copy all /system/bin, /system/lib, /system/xbin from any CM7.1 to the AOSP , but not overwriting any files that are already present

Herpderp Defy.
[Galaxy Ace S5830 General] praphull:
Thanks for the information. I tried by copying from stock as well as CM, but it's still stuck at the same point. :mad: I'll try some other options, possibly a rebuild, and will update the result. Meanwhile, if you have any other suggestions regarding this, please let me know. Thanks for all the help you've provided till now.

---------- Post added at 11:07 PM ---------- Previous post was at 10:51 PM ----------

Hi Nitesh,

Can you tell how you fixed this one? I'm stuck at the same point. I tried replacing missing items from CM and stock, but got no success. Thanks in advance.
[Galaxy Ace S5830 General] CallMeVentus:
This might be caused by a bad build......you can try the build from my AOSP thread

Herpderp Defy.
[Galaxy Ace S5830 General] xdaboy122:
can u explain which files adb would be pulling and can i use miuiv4 by u guys :) (i think not bcz miuiv4 is ics and maybe i need a gingerbread rom)
[Galaxy Ace S5830 General] CallMeVentus:
It'll pull some libs , so miui cannot be used

Herpderp Defy.
[Galaxy Ace S5830 General] Peteragent5:
Is this Thread specific to Galaxy Ace?

What modifications should I change to make it for Galaxy Gio.

Thanks :D
[Galaxy Ace S5830 General] CallMeVentus:
Just use the gio repo instead of cooper

And select gio-eng or something like that

Herpderp Defy.
[Galaxy Ace S5830 General] CallMeVentus:
Shameless bump......I need to sticky this :/ if it works of course

Herpderp iPad2.

No I don't care if you're anti-Apple.
[Galaxy Ace S5830 General] praphull:
Thanks Matthew. Rebuild worked for me. Five minutes back I booted up my build after fixing the radio issue. Thanks a lot for your help. I'll now make a clean build again and check if everything works fine.

I've documented whenever I diverted from your tutorial and will share the soon after verifying again so that this guide gets better.

Once more, thanks for your help and support! :)
[Galaxy Ace S5830 General] CallMeVentus:
No , thank you ;)

Herpderp Defy.
[Galaxy Ace S5830 General] cjlallana:
Hey man, great guide! I hope this thread is not dead!

I have a question. I just did the repo sync and already "fresh downloaded" everything. The thing is that I realized I won't have enough space in the hard drive I downloaded everything, but I do have in this other huge hard drive.

So is there any way to move the whole android folder and path to another folder without having to do the whole process again? How can I do this?

By the way, awesome job. If I ever get to release a decent rom, I'll give you credits!
[Galaxy Ace S5830 General] CallMeVentus:
I think you can only compile in an ext partition.....try to make space if you can :o

Ace-ing all tests.
[Galaxy Ace S5830 General] madman:
D/AndroidRuntime( 137): CheckJNI is OFF

D/dalvikvm( 137): Unable to stat classpath element '/system/framework/framework.jar'

D/dalvikvm( 137): Unable to stat classpath element '/system/framework/android.policy.jar'

D/dalvikvm( 137): Unable to stat classpath element '/system/framework/services.jar'

ahh well compiled aosp from both palopl and coolyas configs.. bot builds fails to boot as this files are not there even in zip whats going wrong ?

there were no errors as such while compiling and some which i had i solved them to get build done even with recovery.fstab

and besides you removed your aosp alpha3 for reference (why?)
[Galaxy Ace S5830 General] CallMeVentus:
I've not encountered that problem.....that's very strange .

And I don't know how AOSP alpha 3 disappeared

This was sent from a Galaxy Ace. Problem?
[Galaxy Ace S5830 General] madman:
can you reupload and mirror it to that xda upload which you got so it will never be down ?

i will log down full terminal so as to check wtf is wrong in builds..

and why pablopl modded gralloc to be built from qcom sources rather than that of coolya's ?
[Galaxy Ace S5830 General] adil_:
Need help with this error.

Any help for this error?

infinityy@infinityy-Aspire-5738:~/WORKING_DIRECTORY$ make -j3 update-api
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=cooper
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GWK74
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/system/lib/libril.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/cooper/system/lib/libril.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/obj/lib/libril.so'
build/core/dynamic_binary.mk:141: warning: ignoring old commands for target `out/target/product/cooper/obj/lib/libril.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/cooper/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE cooper
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/cooper/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
[Galaxy Ace S5830 General] trunggaga:
So complex @@
[Galaxy Ace S5830 General] CallMeVentus:
Replace /hardware/qcom/gps/loc_api/liblic_api-rpc with the ones from CM7 .

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
cm7 sources?

Do I need to download the entire cm7 source for that?
[Galaxy Ace S5830 General] CallMeVentus:
You just need their hardware/qcom/gps , you can find it on http://github.com/cyanogenmod
[Galaxy Ace S5830 General] panpjp:
My comp's Intel Core i5-2467 @ 1.60 GHZ and 4 GB RAM with 500GB HDD. Will this work?
[Galaxy Ace S5830 General] CallMeVentus:
1. Don't quote the entire post please

2. It will work with a swap partition of a few gigs

You should be using the vfp.S from CM7

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] panpjp:
Thx for guide but my Acer Aspire S3 is not capable with Ubuntu's WiFi libs :(:(:(:(:(:(
[Galaxy Ace S5830 General] noobdroid_90:
Is there any specific reason you suggest using ubuntu lucid?
[Galaxy Ace S5830 General] adil_:
status6 error

Well the build completed successfully and I have a 61 MB zip file in the out/target/product/cooper directory. But I'm getting a status 6 error while flashing. What may be the cause for that?
[Galaxy Ace S5830 General] CallMeVentus:
Have you checked your updater-script ?

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
updater-script.

Ya. I think there is something wrong. So i wanted to use the updater-script from your AOSP. but the link is dead. Can I use it from other roms? If yes, What modifications shall I make?

Or else can u upload updater-script from your AOSP build? So that I can correct mine... Thank you.
[Galaxy Ace S5830 General] CallMeVentus:
The only way where you can really find the Status 6 error is by making a recovery log .

Recovery > Flash ROM > See error > Advanced > Report Error > Reboot to Android > clockworkmod/recovery.log

You'll be able to see it there .
[Galaxy Ace S5830 General] adil_:
status 7 error

In recovery.log I found that the error was in line 25, so I commented that out. Then I got status 7 error (expects 3 args, got 4). I googled and found that I have to replace update-binary with a working one. so I replaced it with the one from cm7 rom. but still I get the same error. Any help. Thanks.
[Galaxy Ace S5830 General] CallMeVentus:
The argument error lies in your updater-script , whether it was format or mount .

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
format()
[Galaxy Ace S5830 General] CallMeVentus:
Show me your updater-script

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] CallMeVentus:
Change

format("ext4", "EMMC", "/dev/block/stl12", "0");

To

format("ext4", "EMMC", "/dev/block/stl12", "/system");

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
Still the same error.

format() expects 3 args, got 4
[Galaxy Ace S5830 General] CallMeVentus:
Try this for a change:

format("ext4", "EMMC", "/dev/block/stl12");

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
I think that worked, but I'm getting a new error now... Here is the complete recovery.log....

http://pastebin.com/Z8XSY8cq
[Galaxy Ace S5830 General] CallMeVentus:
package_extract_file: no system/bin/modelid_cfg.sh in package
set_perm: chown of /tmp/modelid_cfg.sh to 0 0 failed: No such file or directory
set_perm: chmod of /tmp/modelid_cfg.sh to 777 failed: No such file or directory
about to run program [/tmp/modelid_cfg.sh] with 2 args

Remove modelid_cfg.sh references from your updater-script

run_program: execv failed: No such file or directory
run_program: child exited with status 1

Remove execv references too

write_raw_image: no mtd partition named "boot" script aborted: assert failed: write_raw_image("/tmp/boot.img", "boot")
assert failed: write_raw_image("/tmp/boot.img", "boot")
E:Error in /sdcard/cooper-ota-eng.infinityy.zip
(Status 7)
Installation aborted.

Change:

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

To:

package_extract_file("boot.img", "/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
Remove references implies that I have to remove the lines containing those phrases... right?
[Galaxy Ace S5830 General] CallMeVentus:
Yeah . You got it .

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
successful boot, but....

So the AOSP booted successfully. but...

Intial expressions

The boot animation starts with lewa rom's (which I was using before), then everything goes black and device boots up.

As soon as it boots, live wallpaper app force closes.. The graphics dont work smoothly. There are glitches everywhere.

Now after initial testing I can say that,

Working

+phone app

+messaging

+call

+settings

+bluetooth

Not Working or FC

-wifi

-portable hotspot

-live wallpaper fc

-camera fc

-gallery fc

-Call connects but cant end the call

-3g icon shows up but data doesnt work

-sd card isnt read

So what shall I do now to solve them?

BTW thanks for all your help CallmeVentus...
[Galaxy Ace S5830 General] CallMeVentus:
That's where you have to solve them yourself , I'm only here to help you kickstart the ROM

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
I think You got me wrong. I'm not asking You to solve those problems.

I was asking what can I do solve them. Like Should I change something in the source or I have to take logcat and try to figure out whats going wrong? Thanks.

One more thing, In the about phone, It shows the kernel version of lewa rom. Is it correct?
[Galaxy Ace S5830 General] CallMeVentus:
Oh . You can either mess with source or replace libs .

Logcats are very useful in showing what is wrong .

Kernel ?? Lewa ?? How ?

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
Thats what I'm thinking.. Anyway does it imply any error during build process or during flashing?
[Galaxy Ace S5830 General] madman:
why was lewa boot animation present there as he says ? he should have formatted all partitions using update-script else there may be hell of conflicts arising
[Galaxy Ace S5830 General] adil_:
Well only system partition was formatted in updater-script.. But I wiped data and cache before flashing..

One more thing I'm using cwm 5.0.2.8... Does it affect?
[Galaxy Ace S5830 General] madman:
it seems unlikely that it was formatted as aosp will not be including lewa bootanimation or anything like that.. and which configs you used ?? as lewa kernel is too much suspicious that aosp was not flashed at all
[Galaxy Ace S5830 General] CallMeVentus:
What ? You didn't wipe before the install ?

I also personally think the kernel didn't flash because of the assert

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
I used PabloPl's sources as described in the OP.

I was using lewa rom when I extracted the required libs from the device... Is it the reason?
[Galaxy Ace S5830 General] CallMeVentus:
But they didn't extract the kernel.....this is getting stranger all the time .

Either that or maybe it was caused by the workaround I did when I asked you to remove asset from boot.img flash part of updater-script

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] madman:
Was there any lewa apps there as I strongly think you didn't format all three partitions there..
[Galaxy Ace S5830 General] adil_:
There weren't any... only pure AOSP apps... Also in the about phone, it showed the correct build no...
[Galaxy Ace S5830 General] adil_:
Shall I extract the files again with cm7 and rerun the build?
[Galaxy Ace S5830 General] CallMeVentus:
If you want to....

"I have to go. It's just....they really need me." - Sora
[Galaxy Ace S5830 General] adil_:
So now I have to just extract the files and run the bulid again... or I have to do something else? Like deleting some files or some other commands?
[Galaxy Ace S5830 General] CallMeVentus:
Just rerun the extract-files.sh script then run make clean before building again

"I have to go. It's just....they really need me." - Sora