yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] michyprima:
The proprietary_vendor_samsung repo is not needed. this is mine:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="teamhacksung/buildscripts" path="buildscripts" remote="github" revision="jellybean">
<copyfile dest="build.sh" src="samsung/build.sh" />
</project>
<project name="teamhacksung/android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="github" revision="jellybean" />
<project name="teamhacksung/android_device_samsung_i9100" path="device/samsung/i9100" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="jellybean" />
<project name="teamhacksung/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="jellybean" />
</manifest>
[Galaxy S II Original Android Development] Paradoxxx:
Make clobber

Envoyé depuis mon GT-I9100 avec Tapatalk
[Galaxy S II Original Android Development] Entropy512:
If your machine has more than one core, including just the "last lines" won't work.

In many cases, one compile thread bombs but the others continue for a bit before they stop. So sometimes the error can be buried a few pages up.
[Galaxy S II Original Android Development] Goddchen:
It will have to download the proprietary files from a device then, right?
[Galaxy S II Original Android Development] michyprima:
the files in the repository are in a different location. the build system is searching for them in the galaxys2-common and i9100 folders. the repos you are downloading from uses different directory structure, so you would need to get them from a device anyway.

But I could be wrong afterall.
[Galaxy S II Original Android Development] Goddchen:
well, my build is working fine, although i haven't downloaded anything from a device. I'm a little confused now. Anyone to bring some light into this? :)
[Galaxy S II Original Android Development] GFXi0N:
Hi!

I finally successfully configured a compilation environment on a virtual machine running ubuntu 12.04 64 bit (I had some problems trying to compile on my daily use arch linux system)

I have some questions.

First one is: When i run the command

lunch cm_i9100-userdebug (form ~/android/system/)

I get "No such file: cm_i9100-userdebug"

I'm not even sure what this command does... i will check man and so,... but if anyone can shed a iut of light, i would appreciate it.

Another thing is, even though it got me 41 minutes to cmpile the kernel, which i thing its a pretty good time for being a virtual machine, i got a 7 Mb kernel-cm-10-20120801-i9100-signed.zip - if i compare it to today's codework's kernel release, it's like half Mb bigger... is this difference of size normal?

Thanks.
[Galaxy S II Original Android Development] kalgecin:
Use. /build.sh i9100

That does everything need be doing. Team hacksung made an amazing job for that script IMO
[Galaxy S II Original Android Development] GFXi0N:
Yeah, the script works, but the lunch command and the file sizes... it's still strange....

Plus, I had some warnings (they looked like java warnings).... I guess it's like any compilation... As long as it compiles, you can ignore the warnings....
[Galaxy S II Original Android Development] :
. build/envsetup.sh

lunch cm_i9100-userdebug

maybe now lunch will work.
[Galaxy S II Original Android Development] GFXi0N:
No such file.... weird because i can successfully compile....

EDIT:

If only I followed the instructions....

I was doing ./build/envsetup.sh thinking . build/envsetup.sh was a typo

D'oh!
[Galaxy S II Original Android Development] :
haha, be careful, any tiny thing that you think it's wrong, may be right ;) good advice for life too.
[Galaxy S II Original Android Development] Znuf:
I compil my rom every day, it's working fine. Now, it's possible to automate the process?

I tried with cron but i don't know how insert.

# make clean

and

$ repo sync -j16

anyone know the comandline? or a best way :o

and how to move the zip to my ftp server? The name change everyday.

Thank you :)
[Galaxy S II Original Android Development] bagi_to:
Just make a bash script

Start with "#!/bin/bash" and enter your commands, make it executable chmod +x filename und run this with cron

For FTP you can do it this way:

ftp -n -v HOST << EOT

ascii

user USER PASSWORD

prompt

put FILENAME

bye

EOT

Gesendet von meinem GT-I9100G
[Galaxy S II Original Android Development] Znuf:
Thank's but, I had my bash file like that :

#!/bin/bash
make clean
repo sync -j16
./build.sh i9100

if i lunch my bash like that

# /android/system/./bash.sh

if i'm on the good directory, it's ok

he don't have rule to clean etc... it don't do the action in the good directory.

I think i need to specify in which directory it work. But i can't find the solution .:crying:
[Galaxy S II Original Android Development] bagi_to:
Put "cd yourdirectory" AS first command

Gesendet von meinem GT-I9100G
[Galaxy S II Original Android Development] Znuf:
Work like a charm!!!

it was too easy, why i don't have to think about that before X_X

Thanks you very much
[Galaxy S II Original Android Development] Soenisti:
Wow works for me too on Funtoo running 3.5.0 and gcc 4.6.2. Had to build the kernel BEFORE the rest or it would throw errors but sync and then rebuild is working fine. Already running the ROM too and battery life is much better!

Woohoo!!! :laugh:

Actually might start posting the ROM as it's so smooth ;)
[Galaxy S II Original Android Development] StevenHarperUK:
USB Audio Dock Support

Hi,

I have submitted 2 patches to enable USB Audio support for the i9100.

The first (cyanogenmod github) http://review.cyanogenmod.com/#/c/20586/ adds an extra Observer if the Kernel supports the endpoint

/sys/class/switch/dock/state

It also adds a new Observer for Settings messages.

The second patch (github) adds a new tab in the GalaxyS2Settings.apk called Dock

On Startup or when the checkbox is changed, an intent is fired; this intent is recieved by the services/java/com/android/server/WiredAccessoryObserver.java (see first patch)

If anyone has a Dock and wants to review / try it I would be grateful.

Also basic Java reviews are always handy.

To get the first patch :

cd android/system/frameworks/base
git pull http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/86/20586/1

I am new to using GitHub but the second commit is here

https://github.com/StevenHarperUK/a...mmit/5e824f740ab85f54e1896de710203497ee30de12
[Galaxy S II Original Android Development] Karboush:
Flashable zip

Hello guys,

Thanks to the "build from source how to" made by teamhacksung, I almost succeeded in compiling it.

Here are the last lines

target Strip: libssl (out/target/product/i9100/obj/lib/libssl.so)
host SharedLib: libsqlite (out/host/linux-x86/obj/lib/libsqlite.so)
host Executable: llvm-rs-cc (out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc)
Copying: out/target/common/obj/JAVA_LIBRARIES/com.android.gallery3d.common2_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/inputmethod-common_intermediates/emma_out/lib/classes-jarjar.jar
host SharedLib: libSR_Session (out/host/linux-x86/obj/lib/libSR_Session.so)
host SharedLib: libSR_Recognizer (out/host/linux-x86/obj/lib/libSR_Recognizer.so)
Install: /home/syst3m/android/system/out/target/product/i9100/system/fonts/DroidSansFallback.ttf
Install: /home/syst3m/android/system/out/host/linux-x86/bin/llvm-as
host Executable: clang (out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
build/envsetup.sh : ligne 1545 : 21260 Processus arrêté schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"
Elapsed: 179 min(s) 25 sec(s)
/home/syst3m/android/system/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: BFD (GNU Binutils) 2.21 internal error, aborting at /i/toolchain-src//binutils/binutils-2.21/bfd/merge.c line 873 in _bfd_merged_section_offset

/home/syst3m/android/system/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: Please report this bug.

As you can see I got a few errors... I didn't find anything interesting about it. How can I bypass these? Am I far from the end?

If it's case I don't know how to generate the flashable zip! How? Where?

Thanks codeworkx and teamhacksung for everything you've done!
[Galaxy S II Original Android Development] codeworkx:
Seems to be a problem with your linux distribution.

Try updating your binutils.

Mine:

GNU ld (GNU Binutils for Ubuntu) 2.22

And since i can't read your language, also install schedtool if not done yet.
[Galaxy S II Original Android Development] D4rKn3sSyS:
Just thought this would be a good place to put this

http://review.cyanogenmod.com/#/c/20684/

Have fun translators, even if it doesn't get merged, just cherrypick it or download the .jar / build it from sources.
[Galaxy S II Original Android Development] Rayids:
Is there any way to change how JB handles headset controls?
[Galaxy S II Original Android Development] golcheck:
How to properly setup ccache?

I've put USE_CCACHE=1 and CCACHE_DIR=~/.ccache in .bashrc and .profile but building cm10 still takes about 90 min. On my previous PC it worked and building cm9 took 30 min (reduced from 80).
[Galaxy S II Original Android Development] RagingHarry:
Just have a look at the folders /prebuilt/linux_x86/ in cm10 and cm9.

and keep the "prebuilt/linux-x86/ccache/ccache -M 50G" command in mind, these folders/files aren't present in CM10 ;)
[Galaxy S II Original Android Development] thracemerin:
ccache was moved in CM10 since it uses a different GCC toolchain, it's in /prebuilts/misc/linux-x86/ccache now
[Galaxy S II Original Android Development] GFXi0N:
Ok, this was weird.

Did these steps:

make ckean

repo sync -j16

./build.sh i9100

It took 66 minutes to create the output files.

The generated kernel had today's date, but the full package one had the previous day i compiled the rom, which was 08/01 instead of getting today's date, 08/05 ... why can this be?
[Galaxy S II Original Android Development] pulser_g2:
export USE_CCACHE=1

ccache -M 15G

make clean

./build.sh i9100

While it runs, look at "ccache - s" and check cache is getting filled. Once done, do a make clean and rebuild, and see if you get cache hits on next build
[Galaxy S II Original Android Development] golcheck:
ok, I've set it up, cleared it, built cm10 and stats look like this:

cache directory /root/.ccache
cache hit 0
cache miss 5
called for link 13
no input file 63
files in cache 10
cache size 248 Kbytes
max cache size 50.0 Gbytes

It seems that it is not working :(
[Galaxy S II Original Android Development] StevenHarperUK:
hi, my dock patch has been merged http://review.cyanogenmod.com/#/c/20586/

Can someone who has the correct rights to the teamhacksung git

consider merging https://github.com/teamhacksung/android_device_samsung_i9100/pulls

EDIT : thanks for the merge Codeworkx
[Galaxy S II Original Android Development] mesaj:
Is there any way we (users, devs) could help with hwcomposer without waiting for official releases?
[Galaxy S II Original Android Development] christan:
Go to Android Development Thread and search for ROMs based on CM10 many devs have fixed hw composer on their own! ;)

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Galaxy S II Original Android Development] thracemerin:
Unless you know something about how it works that the CM team don't, it's unlikely that without some help in the form of a leak that anything can be done.

No they didn't.

What they did was merge this patch: http://review.cyanogenmod.com/#/c/19925/ which was coded by codeworkx, and you would think that if it worked he would have merged it to official CM, so...

Try getting your info correct before saying something.
[Galaxy S II Original Android Development] GFXi0N:
I used the ccache utility myself and reduced the compilation time from 5 hours to an hour and a half.... It's a virtual machine so so long times are kind of normal....

Man, I have to look into that problem I was getting when building in my arch Linux host system.... I still don't understand why it failed the way it did....

Btw congrats in merging trebuchet... One step at a time... :o
[Galaxy S II Original Android Development] Doopliss:
Hardware key customisation settings were merged yesterday. We need to add the following to the config.xml overlay in the device tree to prevent the search key preferences showing up:

<!-- Hardware 'face' keys present on the device, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 - Home
2 - Back
4 - Menu
8 - Assistant (search)
16 - App switch
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareKeys">7</integer>

If anyone is able to do that it would save me having to figure out how github works :P

(Same needs to be done for i9300, i9100g and n7000, I guess.)
[Galaxy S II Original Android Development] mljjlm:
Is it the same for all SGS2 devices? (should it go to galaxys2-common, or is it better to do it in all the different device-overlays?)
[Galaxy S II Original Android Development] Doopliss:
The i777 has a search key so it requires no change (as 15 is the default value). Therefore I think it must be done for each device individually.
[Galaxy S II Original Android Development] Soenisti:
I'm on Gentoo with 3.5.0, gcc 4.6.2-r1, glibc-2.13-r4 and binutils 2.21.1-r1. Builds sweetly. I found doing the kernel first then a straight build works best and am using the ArchiLinuc config plus manually specified tools.jar. Java is 1.6.0.33.

---------- Post added at 11:43 AM ---------- Previous post was at 11:38 AM ----------

which one? There are 6 config.xml's in the device tree for samsung/galaxys2-common/overlay/... I'm guessing one of either Phone or the 2 frameworks ones.

Can then do a commit into github if it works for me.
[Galaxy S II Original Android Development] GFXi0N:
I really cannot believe it, again the same error while building in arch:

ERROR: could not open directory /home/jonander/android/system/out/target/product/i9100/obj/KERNEL_OBJ/../../system/usr/lib/modules/

99.98

.3.0.36-CM-g7f5a4aa: No such file or directory

Why would my system add those 99.98 characters to the directory???

Can anyone give me some hint?
[Galaxy S II Original Android Development] Mahdi786:
Quick question, if I sync repo and some files get updated do I have to make clean before building again?
[Galaxy S II Original Android Development] stormtroopercs:
device/samsung/galaxys2-common/overlay/packages/apps/Settings/res/values/config.xml:23: error: Found text " -->

" where item tag is expected

make: *** [out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1

no modifications get this everytime since last repo sync this afternoon (4 hours ago)
[Galaxy S II Original Android Development] Mahdi786:
I deleted --> from the file at the bottom in the same line as has_dock_settings, that worked for me.
[Galaxy S II Original Android Development] stormtroopercs:
confirmed i went in there and did that too. thanks for comfirming
[Galaxy S II Original Android Development] manups4e:
hi all. i have a question..everything go fine till i sync the repos...but when i type "./build.sh i9100" i got a lot of errors like obsolete commands ignored or impossible to delete some folders..is all right or there's a problem?
[Galaxy S II Original Android Development] stormtroopercs:
Post it on pastebin.... it sounds alright though
[Galaxy S II Original Android Development] thracemerin:
If its just warnings and you end up with a completed build and a zip file at the end, don't worry about it. If it's actually an error that stops the build, then it's something to look into.
[Galaxy S II Original Android Development] manups4e:
well at a certain point it gives me error 1 and breaks without build...strange...everything goes all fine except for building...but if i build the kernel..it works in 5 minutes
[Galaxy S II Original Android Development] GFXi0N:
With the nightlies around the corner and still facing the same issue as reported a couple of pages back, I give up on compiling under Arch linux.... thanks anyway :)
[Galaxy S II Original Android Development] Doopliss:
See http://review.cyanogenmod.com/20974
[Galaxy S II Original Android Development] Soenisti:
Strange, Are you missing a component maybe in the tool chain? I'm still able to build smoothly although it takes me 5 hours to build the ROM itself (slow machine!!!).
[Galaxy S II Original Android Development] pinpong:
Try to install preload. Maybe it build faster after few times.
[Galaxy S II Original Android Development] GFXi0N:
Doesn't look like a missing package.... more like some tool used in the process misbehaving, but I don't know which, why or how to fix it....

Only one thing.... the tutorial at rootwiki is quite old and recommends installing some specific (lower) versions of some packages, but I installed the ones in the repos... which must be more updated..... maybe I need to downgrade some package?
[Galaxy S II Original Android Development] StevenHarperUK:
Anyone like to try / Review / give feedback on a feature patch

Added vibrate option to lock screen.

http://review.cyanogenmod.com/#/c/21013/

http://review.cyanogenmod.com/#/c/21014/​
[Galaxy S II Original Android Development] punshkin:
Hey everyone, i don't know if this is helpful but the XDA Portal featured this kernel module that gives access to deeper debugging. Maybe this is useful to iron out the left over issues.

If this doesn't belong here just delete my post

http://www.xda-developers.com/android/lime-forensics-kernel-module-for-raw-memory-snapshots/
[Galaxy S II Original Android Development] jgcaap:
is it possible to use some of the samsung ics apps on cyanogenmod?
[Galaxy S II Original Android Development] thracemerin:
Ask here: http://xdaforums.com/showthread.php?t=1794758
[Galaxy S II Original Android Development] Soenisti:
OK, well I put in the versions I'm using above plus I'm using the SUN JDK and not IcedTea like Arch plus my gcc is 4.6.2 whereas Arch uses 4.7.x now I think.
[Galaxy S II Original Android Development] StevenHarperUK:
Looking at the RIL crashes - I am doing some small patches at the moment, and may have noticed a pattern.

Whenever I do a CWM install the RIL has always crashed when I get through the boot.

I am wounding if there is some kind of timeout that is causing the crash due to the Davalk cache being generated.

Has anyone looked into this already?
[Galaxy S II Original Android Development] kalgecin:
Hey @codeworkx just a question... my ROMs have 3.0.36 kernel while I think you've reverted to 3.0.15 after Samsung released the source. Am I missing something or you didn't commit those to the repo?
[Galaxy S II Original Android Development] codeworkx:
github.com/teamhacksung
[Galaxy S II Original Android Development] mesaj:
http://www.teamandroid.com/2012/08/...s3-i9300-jelly-bean-official-firmware-update/ Official JB for s3. Will this help in future development?
[Galaxy S II Original Android Development] PlanDreaM:
DEV thread.Go away.

CM10/SGSII International
[Galaxy S II Original Android Development] mesaj:
Man, I'm just posting because proprietary blobs. Maybe some can match and then get updated from official Samsung JB into this as currently there are ICS used. And maybe this prebuilt JB hwcomposer which have all JB features can take place where we use ICS hwcomposer now, which isn't fully working for JB and probably is an issue of not working Butter.

Also new EGL libs for mali.
[Galaxy S II Original Android Development] PlanDreaM:
I know.Won't help probably.Unfortunately Samsung HW is not that much mix and match.

CM10/SGSII International
[Galaxy S II Original Android Development] GFXi0N:
I guess asking for more detail on how to build using the older kernel that codeworkx uses in his builds would incur in spoonfeeding and showing my noobishness.... won't it? If anyone can shed a bit more of light... i currently have a working environment so I guess the changes would be minimal... thanks.....
[Galaxy S II Original Android Development] thracemerin:
https://github.com/teamhacksung/android_kernel_samsung_smdk4210_new

Should put you on the right track.
[Galaxy S II Original Android Development] golcheck:
It seems that recent commits to frameworks_native break the build

target thumb C++: libui <= frameworks/native/libs/ui/FramebufferNativeWindow.cpp
target thumb C++: libui <= frameworks/native/libs/ui/GraphicBuffer.cpp
target thumb C++: libui <= frameworks/native/libs/ui/GraphicBufferAllocator.cpp
frameworks/native/libs/ui/GraphicBuffer.cpp: In member function 'android::status_t android::GraphicBuffer::reallocate(uint32_t, uint32_t, android::PixelFormat, uint32_t)':
frameworks/native/libs/ui/GraphicBuffer.cpp:148:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/native/libs/ui/GraphicBuffer.cpp:148:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/native/libs/ui/GraphicBuffer.cpp:148:67: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libui <= frameworks/native/libs/ui/GraphicBufferMapper.cpp
target thumb C++: libui <= frameworks/native/libs/ui/PixelFormat.cpp
target thumb C++: libui <= frameworks/native/libs/ui/Rect.cpp
target thumb C++: libui <= frameworks/native/libs/ui/Region.cpp
target thumb C++: libicuuc <= external/icu4c/common/bmpset.cpp
frameworks/native/libs/ui/GraphicBufferAllocator.cpp: In member function 'android::status_t android::GraphicBufferAllocator::alloc(uint32_t, uint32_t, android::PixelFormat, int, const native_handle_t**, int32_t*)':
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:134:5: error: no return statement in function returning non-void [-Werror=return-type]
frameworks/native/libs/ui/GraphicBufferAllocator.cpp: At global scope:
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:135:25: error: expected ')' before '(' token
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:135:25: error: expected ')' before '(' token
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:135:25: error: expected ')' before '(' token
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:138:5: error: expected unqualified-id before 'if'
frameworks/native/libs/ui/GraphicBufferAllocator.cpp:178:2: error: expected '}' at end of input
cc1plus: some warnings being treated as errors

make: *** [out/target/product/i9100/obj/SHARED_LIBRARIES/libui_intermediates/GraphicBufferAllocator.o] Error 1
make: *** Waiting for unfinished jobs....
Elapsed: 4 min(s) 40 sec(s)
[Galaxy S II Original Android Development] mesaj:
I had this problem before teamhacksung release when experimenting with own build, just removed WORKING_DIR/frameworks and made repo sync, that fixed my build. Latest build I've done was yesterday 23~ and was working fine.
[Galaxy S II Original Android Development] golcheck:
Yesterday it was fine for me too but it seems that others can reproduce the same error http://review.cyanogenmod.com/#/c/21410/
[Galaxy S II Original Android Development] codeworkx:
patch it? :P
[Galaxy S II Original Android Development] CRCinAU:
Hi guys,

I'm wondering if there are any known issues with headset audio?

I use PayPal Here which uses a credit card reader that plugs into the headset jack. I've noticed under the CM10 preview builds, the card reader never works. Under CM9, it works as long as I turn off the option that reduces volume when plugging in a headset.

Under the stock Samsung ROMs, it works 100% of the time with no option changes.

Any ideas on where to start debugging this?
[Galaxy S II Original Android Development] codeworkx:
Using ICS audio blobs on JB is a dirty hack. There's some stuff which is broken, and other stuff with funny behaviour.

get used to it.