[Q] Hints requested building specific binary to solve bluetooth problems - Nexus 5 Q&A, Help & Troubleshooting

My Nexus has problems connecting over bluetooth to my Car (BMW). I've found a lot of references to similair problems, and also a hint which suggests a change that could solve the problem. The hint can be found on the cyanogem forum in posting 77834, "bluetooth-connection-drops-kar-kit-bmw" (I cannot post links here).
I am running stock KitKat, and for the moment want to keep it that way. So, I decided to try the same patch on KitKat. I've managed to setup a development image in a VM, but keep running into problems compiling - my machine lacks resources (diskspace) to complete a complete build. I do not need a complete build; I need just 1 file, bluetooth.default.so, compiled. My development skills are VERY rusty, and I cannot find out how to build only this file.
I've applied the patch to external/bluetooth/bluedroid/bta/ag/bta_ag_sdp.c, run a make on the Makefile here etc - but, still no luck. The most frustrating bit is that I'm sure this is trivial, but it has been such a long time since I did any development work that I cannot seem to find a way to compile.
Can someone help me out here with hints on how to build the .so? I need bluetoot.default.so, build from the files in the external/.../ag directory, to be situated in system/lib/hw on the android system.

You put a Q in the title yet still posted in the wrong place. Please be more careful about where you post. General is not for questions. Q&A is for questions

Related

[Q] How To Compile tun.ko for Mesmerize running 2.2.1

I have recently unwillingly upgraded from my Samsung Mesmerize I500.01 to the newer Samsung Mesmerize I500.04 in the process of reinstalling my OpenVPN client (the whole reason my company pays for me to have the phone). I discovered that the version of the tun.ko module i have will not work with the newer phone.
I have scoured the internet trying as many different versions of the tun.ko as i could and none will work they all fail with "failed (exec format error)".
After realizing there may not be a pre-compiled one available i moved on to trying to compile my own (which I've never done) . Now it seems as though not only is my directory layout a bit different but I'm missing key files that are referenced in the process ( config.gz ) and cannot find any how-to's that take into account the unique obstacles of this particular version of phone. Of course if someone has this exact same phone and a working module that would be great otherwise I'd love to get help compiling my own.
The Phone is Samsung Mesmerize SCH-I500.EC10 Kernel Version 2.6.32.9 (no additional subversion) Firmware Version 2.2.1
I downloaded a couple source versions off of the Samsung site that seem to be for this phone but I'm not sure exactly which one i should use.
I have experience in Linux but none in development/compiling.
Help would be very much appreciated. And i did search for 4 full work days before posting this thread.
-Jace
Solution Found
After much trial and error i finally managed to compile a working Kernel module for this phone. I will post it here so others with this model may use it.
I know this is an old thread ... but I'm now looking for tun.ko for 2.3.4 ...
Or instructions on compiling it my self ...
Thanks
compiling
Guidojones,
I bellieve i have a document that i made while compiling my tun driver that should be able to help you through the process. I will scour for it this evening and see if i can't come up with something for you.
-Jace
tinookoo said:
Guidojones,
I bellieve i have a document that i made while compiling my tun driver that should be able to help you through the process. I will scour for it this evening and see if i can't come up with something for you.
-Jace
Click to expand...
Click to collapse
Tinookoo,
Were you able to find the document for creating the tun.ko file? I am also interested in compiling it for 2.3.4.
Thank you,
craknjak
i am looking for new threads please help me to find new threads

[Q] How to compile a specific file to solve bluetooth problems?

My Nexus has problems connecting over bluetooth to my Car (BMW). I've found a lot of references to similair problems, and also a hint which suggests a change that could solve the problem. The hint can be found on the cyanogem forum in posting 77834, "bluetooth-connection-drops-kar-kit-bmw" (I cannot post links here).
I am running stock KitKat, and for the moment want to keep it that way. So, I decided to try the same patch on KitKat. I've managed to setup a development image in a VM, but keep running into problems compiling - my machine lacks resources (diskspace) to complete a complete build. I do not need a complete build; I need just 1 file, bluetooth.default.so, compiled. My development skills are VERY rusty, and I cannot find out how to build only this file.
I've applied the patch to external/bluetooth/bluedroid/bta/ag/bta_ag_sdp.c, run a make on the Makefile here etc - but, still no luck. The most frustrating bit is that I'm sure this is trivial, but it has been such a long time since I did any development work that I cannot seem to find a way to compile.
Can someone help me out here with hints on how to build the .so? I need bluetoot.default.so, build from the files in the external/.../ag directory, to be situated in system/lib/hw on the android system.

[Q] How To Configure Python In Prebuilts Directory?

Hello everybody,
I've just started with CyannogenMod and I still have no idea what is happening with it.
The whole story began when I was trying to port one of my scripts to my device.
With the power of buildozer, python-for-android and kivy I was able to build an apk file which runs perfectly on device...or maybe not so perfectly.
The problem was that my script requires python to be compiled with SSL support.
It turned out that the builtin python on my device does not support it.
So I decided to build my own version of CyannogenMod with this feature.
I've downloaded the source and started to read the wiki.
A lot of things are pretty well explained and are very helpful.
But I coudn't find any information about the topic that I was looking for: change default python in CyannogenMod.
Then I started browsing the source and found python in prebuilts directory.
My question now is:
How can I change, replace or configure the python interpreter, which is going to be build within Cyannogen, to support SSL.
I googled around but found nothing.
It will be very helpful if someone can refer to some more detailed article or even better - to explain in details.
Thank you in advance!
Best regards to everyone and see you around!

[Q] Informations for building a new Device tree for a unsupported Device

Hi Everybody,
I want to ask for some informations what is need to do to build SlimRom for a new device. I found a lot of informations about CM, but nothing is really in a way that I really know what I have to do at the end. So is there a Howto, which describes it a little bit more in detail? A lot of howtos was found which describe to get a build-system, and to generate something for a know device. But everybody then describes only: you have to get the vendor files, made your Board-config but only on a very high level.
What I did:
- set up a building-server on ubuntu.
- get Slim-Sources branch JB4.3, and build the version for galaxysmtd to be sure that the buildprocess is ok.
- get "Nonreallyfree"-Opensources from Samsung for my I8200, and try to put them in the right places, and try to implement all needed files in the device/samsung/i8200 folder.
Up to now I think I have everything in place more or less, but the system told me that there is no rule for make 'bacon', but lunch seems to work right with setting the variables...
Up to now I did not used the blobs of the devices. The question is, if that is needed if I have the sources from open Samsung?
I know, jb43 is not the newest, but I start here, because up to now the sources are based on that level, and the kernel have no selinux implemented... If this start point will work, then I will try to go ahead with higher versions... end goal will be Slimkat...
Any help is very much appreciated!!
BR
SP

How to build ROM with echo fixed

Dear S7 developers,
I know that a fix for the echo issue cannot be released here in the forums for others to download because of copyright issues, but I could potentially build the ROM myself and pull in the right files to fix the issue or is there anything blocking me from doing so? If so, has anyone done this before and can give some rough directions? A quick search didn't yield anything related to this in the forums. If this is not solved, I have to look into it myself but I'd rather keep working on my Note 10.1.
Maybe we can even go further. There are other software related projects that have to deal with copyright issues, too. They usually solve this by having a manual step for the user who is installing something so that they don't have to provide the necessary copyrighted material. Can't this be done in this case, too? Can't we prepare a ROM and have one/multiple files that need to be adb pulled by the user from their phone with the original Samsung ROM still running and then pushed back after flashing a custom ROM?
If it would be that easy, someone would probably already have solved this I guess. Still looking forward for some answers here.
Did you solve?

Categories

Resources