yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] chrismalla:
A binary blob is a precompiled driver. We (i9100) don't get drivers in form of source code, we only get 1 and 0s. So we have to modify the CM/AOSP code to make them work, often by writing "wrappers".

If we take the i9100G for example: Texas Instruments do provide us with drivers in source code form so that we can modify them, right? Of course they aren't fully compatible with AOSP on the i9100G out of the box, so the maintainers of the device have to modify them somewhat to make them fit. To the question, what end are the developers generally modifying to make the drivers fit? The CM code or the driver itself? And what is easiest?

Are TI's drivers GPL licensed?

Independent question: Samsung must use a software to compile their drivers to binaries, right? Then, why isn't it possible to decompile them back to source code form?

If I'm writing a driver, when I'm done I'll compile it (1 and 0s/binary). This compiled binary is unique. Only my exact written driver (in source code form) will generate the exact, unique binary. So why isn't it possible to go backwards in this process and decompile it to source code form, rather than from source code to binaries?
[Galaxy S II Original Android Development] GFXi0N:
Decompile something is like "un-baking" bread, for comparing it somehow......

You cannot take the final product (bread) and separate it to get the original ingredients.

All you can do is try to gess how it was done and do it yourself to make it as similar as possible and perhaps, add some enhancements.......

see the picture? That's the idea :)
[Galaxy S II Original Android Development] chrismalla:
I know I know. But I think it's possible by letting a computer finding out which words lead up to the corresponding binaries. Just let it find the words and match them up till the binary matches the Samsung binary.
[Galaxy S II Original Android Development] bagi_to:
You can't get the source code back when you only got the binary.

You can reassemble it and try to guess what it's doing but the exact written source will be buried.
[Galaxy S II Original Android Development] GFXi0N:
When you code something, you name variables, then, the compiler turns all your code into machine language and that variable that you created and named turns into a pointer to a memory address, not minding the name you previously used, so, those things get lost.

That's why the best you can get to see is data coming in and out and memory addresses moving here and there when you use assembly language.

In a nutshell : all the readable and understandable grammar and terminology of the source code gets scrambled and there is NO WAY OF REVERTING it... Not even with super computers or anything similar....
[Galaxy S II Original Android Development] MemoryController:
You can probably get a very good idea of what it is doing with the help of hex rays, however the high level code is way too abstracted to be able to recreate it, even more so when you don't have the debug symbols

Sent from my GT-I9100 running CM10
[Galaxy S II Original Android Development] bluefa1con:
1 we are already using ics drivers that's how u got the rom

Ics hw composer doesn't support butter (dah)

2 we had a petition few months back, didn't work
[Galaxy S II Original Android Development] thracky:
Ok I'm bringing up a fairly old post here but, I ran into this issue compiling a rom for a different samsung device, also on Arch, and figured I'd share my hacked together solution if you do happen to encounter it.

1. Solving the "99.98" issue:

in ~/android/system/kernel/samsung/<kernelname>/scripts open depmod.sh in your favourite text editor.

Find depmod_hack_needed=true and change it to false, save the file.

2. After solving the 99.98 issue, you will notice that the modules are not in fact located in ~android/system/out/target/product/samsung/i9100/system/usr/lib/modules because lib does not exist in usr, but is in fact located in system, the parent directory of usr. What I did to solve this was after a failed build, I simply created a symlink to ....system/lib in system/usr

So, for the noob, that would be: "ln -s ../lib lib" if you execute it from the ~/android/system/out/target/product/samsung/i9100/system/usr/ directory.

I know this doesn't even remotely fix the root cause of these issues, but it does allow you to build if you ever encounter this error on Arch 64 bit as I did.
[Galaxy S II Original Android Development] codeworkx:
if you would use our buildscript you would have noticed that there's no manual hacking needed.
[Galaxy S II Original Android Development] thracky:
Definitely wrong thread, ask in the discussion thread.

---------- Post added at 12:58 PM ---------- Previous post was at 12:07 PM ----------

That and I just noticed depmod.sh is also fixed in hacksung kernel scripts, unfortunately I was not building a hacksung device but remembered someone here having the same issue a while back so decided to share.
[Galaxy S II Original Android Development] inouext:
Hi, im getting 2 bugs in CM10-20120910.

1. All my folders in external SD got duplicated - triplicated, including mp3 and photos.

2. Got a screen resolution problem with Portuguese Brazil, see below

Brazil Portuguese:

https://lh5.googleusercontent.com/-...Sc9lE/s512/Screenshot_2012-09-12-18-40-32.png

English:

https://lh6.googleusercontent.com/-...Ne7VI/s512/Screenshot_2012-09-12-18-47-28.png

Look at clear buttom.
[Galaxy S II Original Android Development] golcheck:
anyone getting this message when doing repo sync?

...
Fetching projects: 83% (262/315) p11-kit: duplicate configured module: gnome-keyring.module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
Fetching projects: 84% (265/315) p11-kit: duplicate configured module: gnome-keyring.module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
...
[Galaxy S II Original Android Development] manups4e:
when you change language from english to brazil, the hour's format changes...try to change some options in the settings and everything should go fine :)
[Galaxy S II Original Android Development] Marc-Sch:
It is a known Gnome bug, no problem...

Envoyé depuis mon GT-I9100 avec Tapatalk
[Galaxy S II Original Android Development] bonigv:
Repo Sync problem

hi, I am doing my first repo sync of CyanaogenMod github repo, targeting some hacking on the jelleybean branch. The sync is now going on four more than 24 hrs! It has pulled about 16.8GB of data. I am new to git and this repo. So I wanted to check whether this is the way it is. I have rather poor internet. So not much worried about the length of the process. However I do see a lot of errors like this.

fatal: pack has 3 unresolved deltas465)

fatal: index-pack failed

Does the repo sync reventually work out all these transfer errors and poll in the whole repo?

I so far only have a hidden holder ./repo under ~/android/system. nothing unpacked that I can see in a project structure.

Sync is going on.
[Galaxy S II Original Android Development] codeworkx:
Will be fine at the end. Happy waiting. ;)
[Galaxy S II Original Android Development] bonigv:
Thanks. Hoping for a happy ending :).

How to get rid off this error?

error: Cannot fetch platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6
[Galaxy S II Original Android Development] bonigv:
stuck with repo sync : help

Looks like I am very close yet so far. How can I resolve this last error?

My manifest.xml is this. : http://pastebin.com/1dp3MiRb
[Galaxy S II Original Android Development] D4rKn3sSyS:
I had that on my fedora machine the other day, just remove

platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6

and do repo sync again. Everything will be fine this time.
[Galaxy S II Original Android Development] bonigv:
Thanks. I had tried commenting out that line but did not work. Removing the problem line from manifest.xml seems to be working. It is syncing tree now. :)

---------- Post added at 06:21 AM ---------- Previous post was at 06:16 AM ----------

alright, so now it again came to another error. Seems related. Does this sound familiar?

---------- Post added at 06:30 AM ---------- Previous post was at 06:21 AM ----------

so, i did a repo sync again and this time did not get the previois error. Now building.

---------- Post added at 07:24 AM ---------- Previous post was at 06:30 AM ----------

build came to a grinding halt a bit later with the following error. I need that project after all I guess. Please help.
[Galaxy S II Original Android Development] mljjlm:
Add the line back to the manifest file, and try to delete the project files from the .repo folder and sync again
[Galaxy S II Original Android Development] bonigv:
Will be great if someone can tell me the reason for the original error.

Sent from my GT-I9100 using Taptalk 2

---------- Post added at 08:18 AM ---------- Previous post was at 07:38 AM ----------

that was a working suggestion. as you said I added the project back in manifest.xml. Then removed ~/android/system/.repo/projects/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6.git folder and re ran repo sync. It fetched everything without any problems. Now I will try build again. Thanks.
[Galaxy S II Original Android Development] dervomsee:
emmc vs sdard1

It would be nice if one of the developers can implement something like this in CM10

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

<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/mnt/emmc"
android:storageDescription="@string/storage_internal"
android:primary="true"
android:removable="false"
android:allowMassStorage="true" />

<storage android:mountPoint="/mnt/sdcard"
android:storageDescription="@string/storage_sd_card"
android:primary="false"
android:removable="true"
android:allowMassStorage="true" />

<storage android:mountPoint="/mnt/usbdisk"
android:storageDescription="@string/storage_usb"
android:primary="false"
android:removable="true" />
</StorageList>

with the mountpoints sdcard0 and sdcard1 the new updater and some other apps are not working.

thank you!
[Galaxy S II Original Android Development] codeworkx:
Old mountpoints are symlinks to new ones. Where's the problem?

We're just following aosp standards.

Anyway, environment variable is pointing to internal sdcard, any app which doesn't respect it is fail.
[Galaxy S II Original Android Development] mljjlm:
Will the proprietary-files.sh-script be updated to use libsecion.so instead of libion.so? - And of course to include it when building?
[Galaxy S II Original Android Development] bonigv:
Can someone please help me understand how to resolve this error? I am reasonably confident that I have synced the prebuilts and have pulled the latest proprietary files from i9100 running latest nightly. Noob here.

Hmm, Looks like I am getting a corrupted Term.apk from github?

Solution : Please correct me if this is wrong. Edited vendor/cm/get-prebuilts to the following

It downloaded and unzipped Term.apk w/o any problems. Now running build. Eagerly waiting for the next error. Every error I have learnt something new about the source organization.

Latest ERROR

Now, I am into compilation errors. Could this be because of the GCC version? I am running with 4.3
[Galaxy S II Original Android Development] gsal:
Siyah doesnt work with latest builds.only stock kernel.wait for update.

Στάλθηκε;; από το;; GT-I9100 μο;;υ;; χρησιμο;;πο;;ιώντας Tapatalk 2
[Galaxy S II Original Android Development] Mr.Greg:
Your post is really development related, you posted in right place. You won a prize!
[Galaxy S II Original Android Development] RagingHarry:
That was exactly what i was thinking about after trying to make a new build at home.

Running into this error that shuts the build process down:

make: *** No rule to make target `vendor/samsung/galaxys2-common/proprietary/system/lib/libion.so', needed by `/root/android/system/out/target/product/i9100/obj/lib/libsamsungion.so'. Stop.

Didn't have any probs building Thursday afternoon.
[Galaxy S II Original Android Development] mljjlm:
You can pull the libs into that folder to make it build, but I had too put the libsecion.so back onto the phone before it would boot...
[Galaxy S II Original Android Development] nightmw:
Fix is on the way: http://review.cyanogenmod.com/#/c/24458/

just needs to be merged.
[Galaxy S II Original Android Development] bonigv:
first successful build!

finally!! happiness.
[Galaxy S II Original Android Development] bonigv:
Well, short lived happy-ness. Built zip had a size of 158MB where as the latest nightly sat at somewhere close to 151MB. So cautiously I dropped the zip to recovery and indeed it crapped. I do not know how to express the crap any better. So I rolled back to my last nightly. What more information is needed to express my problem clearly? Is it something someone has experienced before? I had some trouble with audiolib2 but it is resolved now. So far I built with the latest source twice and both times I ended up with a similar sized (158MB) zip.

EDIT:

build error on latest. I have pulled the latest prop files from i9100 before the build.
[Galaxy S II Original Android Development] kalgecin:
I'm getting this error message

CC net/netfilter/nf_conntrack_extend.o
CC net/ipv6/xfrm6_state.o
CC net/netfilter/nf_conntrack_acct.o
CC drivers/media/video/samsung/mali/common/mali_kernel_core.o
arm-eabi-gcc: error: directory: No such file or directory
arm-eabi-gcc: error: directory": No such file or directory
make[7]: *** [drivers/media/video/samsung/mali/common/mali_kernel_core.o] Error 1
make[6]: *** [drivers/media/video/samsung/mali] Error 2
make[5]: *** [drivers/media/video/samsung] Error 2
make[4]: *** [drivers/media/video] Error 2
make[3]: *** [drivers/media] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
CC net/netfilter/nf_conntrack_ecache.o
CC net/ipv6/xfrm6_input.o
....
....
target Symbolic: libOMX.SEC.WMV.Decoder (/home/michael/android/system/out/target/product/i9100/symbols/system/lib/omx/libOMX.SEC.WMV.Decoder.so)
target Symbolic: sqlite3 (/home/michael/android/system/out/target/product/i9100/symbols/system/xbin/sqlite3)
Copying: /home/michael/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-jarjar.jar
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/michael/android/system/kernel/samsung/smdk4210'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Elapsed: 21 min(s) 50 sec(s)

any solutions?
[Galaxy S II Original Android Development] codeworkx:
Look commit history: fix getting subversion revision number on mali and ump.

Devs should be able to fix easy stuff at their own. Just typing make without any knowledge is.... dooooooooh.
[Galaxy S II Original Android Development] kalgecin:
i quite agree with you on that one. i should've looked into the Makefile. Problem is, I was on lecture :confused: Try figuring out what these Russians say in English......... Thanks :)
[Galaxy S II Original Android Development] meisell:
Guys samsung is discussing d release of source code & documentation for exynos...

https://twitter.com/SamsungExynos/status/255664909503848448

Tweet about ur concern & frustrations & pressurise them by spaming with ur tweets...

You know this is very important for us to have hw composer, hdmi & other close sourved things... Also inform others to do the same...
[Galaxy S II Original Android Development] HippyTed:
Hello, I am trying to build my first ROM using the manual method in http://teamhacksung.org/wiki/index.php/CyanogenMod10:How_to_build. I see this was recently updated but I wonder whether the example local_manifest.xml is correct because I get a problem linking mediaserver. The only clue I have found from many searches is a similar problem back in January from an anonymous entry in pastebin.com/1fbJK0JT

Any help would be much appreciated.

Hopefully I have managed to attach an abbreviate log here ...
[Galaxy S II Original Android Development] stormtroopercs:
You need to get the proprietary files.. do ./proprietary-files.sh in i9100 folder with i9100 connected running latest nightly.
[Galaxy S II Original Android Development] HippyTed:
Thanks stormtroopercs.

Yes I did do that, and libasound.so, etc., were put into vendor/samsung/galaxys2-common/proprietary/system/lib by that script.

It looks as though PRODUCT_COPY_FILES in vendor/samsung/galaxys2-common/common-vendor-blobs.mk never put them across into out/target/product/i9100/obj/lib . They're not there at the end. Maybe they were deleted sometime.

I see common-vendor-blobs.mk is called from common-vendor.mk after referring to vendor/samsung/galaxys2-common/overlay which doesn't exist.

Beyond that, I am struggling to understand how common-vendor-blobs.mk ever gets included.

I have re-sync'd to double check this, several times.

Here is my complete log ...
[Galaxy S II Original Android Development] thunderger:
What do you think about using prop files from first N7000 JB leak? Can someone create a repo with these props, please?! :D
[Galaxy S II Original Android Development] stormtroopercs:
Not worth the trouble. And I've heard that the leak has many problems.
[Galaxy S II Original Android Development] ivkos:
Quick question: How do I build only GalaxyS2Settings?

mm GalaxyS2Settings returns:

make: *** No rule to make target `GalaxyS2Settings'. Stop.
[Galaxy S II Original Android Development] finnq:
Mhm try the path: mmm packages/apps/....

//tapatalked / i9100 / CMX
[Galaxy S II Original Android Development] andydev:
My company's corporate exchange server requires SD encryption.

Are there any plans to incorporate this into CyanogenMod 10?

Cheers
[Galaxy S II Original Android Development] ivkos:
There's a bug with the camera app that causes the LED flash to fire upon leaving the app. I tried doing some bughunting and found out something really interesting.

* The flash fires upon exiting only if the flash is turned on from the camera settings

* The flash fires only if I leave the app within 1-2 seconds after starting it up. More specifically, I think it fires if I press the back button within 1 second after the preview viewfinder is shown.

* When I'm running logcat in real time from my PC the flash NEVER fires upon leaving

I've tried editing Camera.java to make it turn the flash off before exiting but either I'm doing it wrong, or it just doesn't work. As far as I remember, I've tried editing the stopCamera() method by adding this line before the stopPreview() call:

mParameters.setFlashMode(getString(R.string.pref_camera_flashmode_no_flash));

Unfortunately, it doesn't turn the flash off. Can you please help me with right code I need to use, or can you try implementing a similar solution that turns the flash off before exiting the app?
[Galaxy S II Original Android Development] -Luigi.:
[Report] Volume issue

Hi... you probably already know this issue...

About the volume meter... it doesnt shows the correct level of volume when using headphones. When it shows less than half, the volume is already on maximum.

And another problem is that when listening to music, if a notification arrives, the music volume goes down and should go back to the original volume... but it doesnt comes back =/

This are really annoying problems... if you could fix it would be awesome. I love this rom :D
[Galaxy S II Original Android Development] D4rKn3sSyS:
http://review.cyanogenmod.org/#/c/24155/

If you comment out that part of the code, the issue atleast fixes. But it causes side effects. You can start digging from that start point, I could but I really have no time these days.

Good luck!
[Galaxy S II Original Android Development] mtxx1:
Hello fellow hardworking devs.

is it possible to add on screen navigation buttons on cm10 (similar to aokp & paranoid android)

i never really cared about them, until i realized my homebutton is not very responsive today.

is it possible to add them in future nightlies? would appreciate it. thanks.
[Galaxy S II Original Android Development] bluefa1con:
This isn't the place to ask for framework changes / features

Devs here deal with the device tree mainly and **** Samsung introduced
[Galaxy S II Original Android Development] mtxx1:
:eek:oh my, i'm terribly sorry.

keep up the good work.
[Galaxy S II Original Android Development] HippyTed:
fix linking mediaserver for i9100

Hello devs, further to my problem linking mediaserver in posts #229-#231, the attached patch fixes it for me. I havn't assimilated the Gerrit review process yet and am still getting my head round the build/make system, but maybe this can still help someone else.

I'm only a wannabe dev, so please pm me if this is out of place.:cool:
[Galaxy S II Original Android Development] galaxys s:
how long is there cm10 4.2 ? thanks
[Galaxy S II Original Android Development] pulser_g2:
December 24th, 2072
[Galaxy S II Original Android Development] sakindia123:
How u haz ETA?

Sent from my GT-I9100
[Galaxy S II Original Android Development] cooladityarai:
The only rule of cyanogenmod "NEVER ASK FOR ETA."
[Galaxy S II Original Android Development] mtxx1:
hi every one, few weeks back i asked about enabling on screen navigation buttons.

finally found out how to do it.

in buildprop file, just add this line at the end

qemu.hw.mainkeys=0

reboot and the nav bar will appear, in settings>system>

a new option called "navigation bar" will appear to customize the buttons.

found this info in i9000 forum. i'm so happy. ok that's all from me. have a nice day everyone. :D
[Galaxy S II Original Android Development] -Luigi.:
I was using the update from 16/11, the Face Unlock was working fine!

After flash the new versions, stopped working ... :/
[Galaxy S II Original Android Development] bluefa1con:
1 this is dev thread go on discussion thread

2 search before posting is already answered there

3 re flash gapps
[Galaxy S II Original Android Development] -Luigi.:
1. Sorry, I went to the wrong one.

2. Yes. very easy to search with thousands of posts.

3. Thank u
[Galaxy S II Original Android Development] Psykitt:
Hello CM-Developers!

I realized, that in CM10 based ROMs the audio-channels are not correct while recording a video with the Galaxy S2,

Left microphone on the top side of the phone becomes the right channel and right microphone on the home-button side of the phone

becomes the left channel.

Please check or give an instruction for me how to correct this... thx

Greetings Psy
[Galaxy S II Original Android Development] speed10:
contribute to CyanogenMod

hi am Computer engineering student i like this project and i want to contribute, how can i do it?
[Galaxy S II Original Android Development] MemoryController:
1. Learn java and/or c/c++

2. Check the wiki for what needs to be done/fixed

3. Don't spam the development thread
[Galaxy S II Original Android Development] r1akn:
Does this ROM include Gralloc and HWComposer from 4.2.1?
[Galaxy S II Original Android Development] bluefa1con:
You need to decide first if you want to contribute on framework side of things or device tree

Than look at android documentation to have an idea of how things work

There is no 4.2.1 hw composer

There is close sourced samsung hw composer and gralloc and than there is open source hwcomposer and gralloc that is made to work on 4.2 but is not stable for public use yet
[Galaxy S II Original Android Development] forgetmyname:
You could have saved spam on this thread by PMing him instead... :)
[Galaxy S II Original Android Development] Filgaliel:
So could you.. Well, and me too.
[Galaxy S II Original Android Development] dw1llow:
Wow.. the guy is trying to make contributions towards development and you say some random cold sht like that? Sick of you overly-punctilious, know-it-all, xda-snobs
[Galaxy S II Original Android Development] sharp87:
CM10 Stable is now possible

http://www.sammobile.com/2012/12/08...the-gt-i9100_hk-galaxy-sii-jelly-bean-update/
[Galaxy S II Original Android Development] salvatore94:
I don't think so. Since hwc, libaudio, etc are closed source, codeworkx couldn't fix the last bugs. For example we couldn't archive "project butter" working if samsung don't release hwc's sources.....