In need of bluetooth hack: Samsung i760 WM6.0 - Windows Mobile Development and Hacking General

It appears that the samsung i760 doesn't keep track of connected bluetooth devices very well. I have a hands free setup in my car. I paired it up, choose the hands free profile, hit save and it connects up just great. Next I turn off the car, turn it back on and it wont connect. I open bluetooth settings, open the hands free device, reselect hands free and hit save and it connects instantly. Seems like its a bug. I hope maybe its a registry tweak. I would love the help of the XDA dev crowd even if its only suggestions on what to try.
Is there a windows mobile equivalent of regmon for windows mobile? Maybe we can track down what changes in the registry.
I understand a similar thing occurred on the blackjack and has been worked on though I don't know if the same thing can be applied here.
Thanks!

Related

Danger of Windows Mobile 6.1 automatic bluetooth pairing

Just tried a few latest windows 6.1 roms and found out that my bluetooth headset (I tried a few) is not asking for passcode anymore (it used to ask to enter "0000"). On one hand - it's a cool feature saving you time and efforts to pair your devices. On the other hand- it's quite dangerous. Just imagine somebody near you (while you're having lunch) is playing with bluetooth on the laptop and connects to your phone without you knowing it. Potentially, he can download all your info from the phone. No good!
I was thinking that it maybe something wrong with my bluetooth or the ROM on the phone. But after I did a quick search here, it appears that Windows 6.1 has this neat feature of "automatic cycling of the standard passcodes" during pairing process. Is there any fix to this security breach? Or maybe I'm not getting it quite right?
well i still havent paired my headset with my pdacorner v23 NonRBSN rom but if you go to comm manager, hit settings, the click on bluetooth. On the tab Security there should be a box that says authentication passkey required. i dont know if thats bluetooth or infrared....but im sure its bluetooth.
Hope that works.
With all the wm 6.1's I've used it appears to only work with BT headsets... GPS and other BT devices need a key....
Cheers...
If that's so - it's good. I'll experiment with bluetooth dongle on my PC.

Bluetooth Quick Connect / Favorites Today Plugin and/or Command-line app

I'm a Desktop .Net developer with NO bluetooth experience and only a bit of low-level networking experience so I'm speaking from limited knowledge, but not complete ignorance.
I use my phone as an A2DP source and AVRCP client for quite a few devices (Jabra JX20 Pura, Jabra BT3030, Windows Vista, various BT speaker systems) and Alpine BT300) around my house, garage, car, and on the go. They all work wonderfully (some have better range than others, some better sound), but using any of them presents a couple common issues.
Some devices (like my car), constantly seek out the last paired device until they connect, while most of the other require a connection to be initiated from the phone. The phone doesn't care which is around or has the best signal, just which one successfully connects first.
I'd like an app that could have profiles setup which would let me control certain variables OR at a more basic function (see below):
Bluetooth Profile
Device Priority
Minimum Strength (to be used when more than one device has the same priority)
That would be my ultimate goal, but in the meantime I'd be happy with something as simple as a command line app that could be bound to a key or shortcut which would try to connect to a predefined list of BT MACs for a given profile and stop when the first one connects successfully. Variations on this might allow a connection attempt to a specific device instead of a list. This way I could have StartMenu or Today shortcuts.
The point here is largely to have to avoid nagivigating all the menus needed to initiate an A2DP connection, but I'm sure there are MANY other uses people would find.
If someone could point me in the right direction (I'm researching already of course) to the namespace(s) and or class(es) in .Net 2 or newer which would allow me to enumerate and/or initiate connections, this may be something I could bring to the community (assuming it doesn't already exist, and I have asked MANY times).
I've created a poll also to see what kind of interest is out there for this software and how much support I might receive.
I've been knocking an app up to suit my own personal A2DP needs... and a lot of yours by the look of things ;-) Things it does:
Kinetic scrolling finger friendly list of A2DP devices known to your phone (tap to select then tap again to attempt connection).
Toolbar buttons indicating active A2DP connection status (tap to disconnect active connection).
Bluetooth devices applet shortcut.
Switch bluetooth on (a good few of my devices need the phone to be discoverable so the app forces the phone to be discoverable at all times *blush*).
Switch bluetooth off.
Shortcut to program launcher list (automatically displays this list when you initiate a connection to a selected device... and there's items to display in the list of course).
Command line access (via secondary exe) allowing you to attempt connection (to a named , the last connected or first found device) and disconnect an active A2DP connection. I've only really tested the named device connection but the other 2 modes *should* work
QVGA / VGA and orientation aware.
I've been wanting to work towards getting it up on XDA... but time constraints (and a baby on the way ) have gotten in the way and it's unlikely I'll have the time to do it for a good while. I'd be happy to pass on the code to someone willing to take it further if that's any use. It's written (very quickly!) in VB.net BTW.
It uses a few bits and bobs from other people though:
A2DPToggle's "a2dp.exe" to handle initiating a connection.
Icons from lord only knows where I found them.
The kinetic list code found on here (http://forum.xda-developers.com/showthread.php?t=333124&highlight=klist). IIRC, I used the gingercat updated version and tweaked it to my own needs. There's many a kludge I've put in to the code to get things working quick-smart (D-Pad navigation mainly).
InTheHand 32feet.NET libraries (http://inthehand.com/content/32feet.aspx). These work with MS Bluetooth stack only.
So permission from the respective folks above would be needed before releasing it into the wild I guess.
Here's a screeny
Hey great tool! When I click a device will it auto connect or only open the BT Explorer and will it work with Broadcom BT Stack? Thanks
Oops, meant to say it's been developed for the MS bluetooth stack only. Sorry about that.
When you attempt to connect to a device it first checks the device is reachable and only then attempts to initiate an A2DP connection.
Northernmost said:
I've been knocking an app up to suit my own personal A2DP needs... and a lot of yours by the look of things ;-) Things it does:
Click to expand...
Click to collapse
Absolutely. I can get around in VB.Net and C# just fine. If you don't want to publish the code publicly, PM me your email address and I'll invite you to my Sharepoint site (easiest way I know to share files and manage communique), otherwise attach here.
It sounds like you've already covered 99% of what I was looking for, but I'd be more than happy to do what I can to more the idea forward, even taking suggestions from others in this thread.
About the BT stack, I'm running a Vogue with a ROM cooked in PPCKitchen, how do I determine which stack I'm running and can that be changed?
rainabba said:
About the BT stack, I'm running a Vogue with a ROM cooked in PPCKitchen, how do I determine which stack I'm running and can that be changed?
Click to expand...
Click to collapse
I've no idea what stack Vogues come with but the MS stack device list looks like the attachment below. If yours looks the same it's the MS one. I guess the Vogue forum should have any info on swapping stacks if it's possible.
Sounds like I found the correct people to answer my question about BT. Is there a way / how can I: enable my Mogul 6800 phone to transmit the sound that would normally go through the speaker to my BT headset in order to listen to streaming audio from the net using Kinoma Play which goes out and picks up all sorts of "radio programs" , i.e. not using a direct URL. I am also not able to listen to audio files from the Audio Recorder through anything except the speaker, even not through a head phone. Do I need to download a program or set up my phone differently. I currently have Titan WM6.1 Build 20755 GPS kitchen from PPC Geeks. Thanks so much for your help.
jminor4326 said:
Sounds like I found the correct people to answer my question about BT. Is there a way / how can I: enable my Mogul 6800 phone to transmit the sound that would normally go through the speaker to my BT headset in order to listen to streaming audio from the net using Kinoma Play which goes out and picks up all sorts of "radio programs" , i.e. not using a direct URL. I am also not able to listen to audio files from the Audio Recorder through anything except the speaker, even not through a head phone. Do I need to download a program or set up my phone differently. I currently have Titan WM6.1 Build 20755 GPS kitchen from PPC Geeks. Thanks so much for your help.
Click to expand...
Click to collapse
You need an A2DP capable device (high quality), connected, THEN start your audio program OR use a program called Audio Gateway with a basic Bluetooth headset (low quality audio).
thank you very much.
Northernmost, how about that source code? If you want to pass it along less privately than a post here, PM me and I'll provide a solution (source control, WSS, etc.)
Sent you a PM the other day. Let's go the private way for now.

[Q] switching a2dp and handsfree profile from homemade app?

Dear XDA folks,
a bit of a story about what the problem is exactly, and how I want to fix it:
I'm a happy owner of an HTC desire with froyo on it, which works like a charm.
There's one small problem though, my car stereo seems to be a bit picky when connecting.
My bluetooth is on, I start the car, and the phone tells me it has connected to a headset, the stereo tells me nothing is connected.
Same happens with the A2DP function, phone says it is connected, stereo doesn't detect it.
After a bit of messing around with it, I found a way to work around this, after connecting, disable and enable the bluetooth profiles (called media and handsfree in android) once, and they both work like a charm.
----
What I want to do, is make an app which checks if the device is connected to the stereo (which shouldn't be much of a problem), and then switch both of the audio profiles off for a moment (one at a time) and then back on.
Problem is, how do I switch them from my app? I've been looking at the documentation for hours, but I can't seem to find out.
The bluetoothchat sample is a great start to build a BT program I think, but I'm pretty much stuck here.
Is there someone who can point me in the right direction?
Thanks in advance
Nobody? I succeeded with making an app that displays the paired devices (after a bit of borowing from the BTchat sample), so that pointed me in the right direction.
Still, I'm stuck with the problem of switching the profiles/services on and off, and I'm sure one of you can help me
Thanks
Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App
xr4v3nx said:
Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Great thanks for the idea, will try that right away.
Will let you know how it turned out.
-edit-
DARN can't find options to enable/disable a2dp and handsfree in tasker, maybe I'm missing it, but so far I don't think it is there.
Thanks for the suggestion though
Help?! Can't believe noone knows how to do this?
Heeeeeeelp! Still stuck with it

Bluetooth pairing problem with 2.2

I have 2.2 official, rooted (315) working with the performance upgrade.
Each time I get in to my car, although I have previoulsy paired the phone with the cars bluetooth, it asks me for the password, as if the phone doesnt store the it from one use to the other. Once I put the passord in it works fine.
On my other car it has paired fine and remembers it each time. I don't have to redo the password.
the thing is I was using Froyo 2.2 on my previous phone, an HTC Desire and didn't have this problem on either car.
Is this a phone or car issue and if it is the former, do I need additional software?
I have now flashed Steve's 1.5 Rom and the issue is still there.
What I do not understand is that the HTC Desire was fine on 2.2 but with the Streak it is there, I am asked to input my pairing password everytime I get into the car.
Does the Streak handle its bluetooth differently to the HTC? Is there an app I can use?
Has anybody had a similar problem?
Sorry mate no issues whatsoever with mine and the parrot mki9200 handsfree kit. I'd suggest fiddling around in the phones bluetooth options, and maybe delete the partnerships both on the phone and on the handsfree.
Other tha turning the bluetooth off and on there aren't any other 'settings' that I can find. Its there an equivalent 'tweaks' type as app as you get with win mo that might have some extra settings?
Sent from my Dell Streak using XDA App
The only BT problem I've seen, is with mine...
318 "stock", no other mods.
If I have wi-fi enabled & connected to a wi-fi hotspot, or my home router,
BT conversations will cut in and out, until I turn wi-fi off.
jazzdude555 said:
Other tha turning the bluetooth off and on there aren't any other 'settings' that I can find. Its there an equivalent 'tweaks' type as app as you get with win mo that might have some extra settings?
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
now dont take my word as the word of god as I started androiding since yesterday in the evening only but:
when in car, activate the connection between your handsfree and your phone, then goto bluetooth settings in your phone, tap on the connected device, there will be a bunch of further settings (like what services it would use, etc.)
i think that in your situation however the best advice would be deleting the pairing details both from the phone and from the handsfree.
I usually don't have this problem with my parrot mki9200 handsfree kit, but I have experienced similar things in the past, but that was only when my phone spazzes out and error occurs. Can't remember what errors like but it's usually when random things start force closing and stuff, and the phone is due a full reboot (not forced to reboot but manually rebooted just to refresh the phone) or I need to repair for whatever reason. I either just have to re-enter the passcode and I'm off or when I try to repair the connection, it would connect straightaway without asking for a passcode, but then if I unpair the connection, the system would then prompt me to enter a passcode and entering the passcode would connect the devices together again (even though I'm trying to unpair them).
My advice would be to try doing a fresh pair by establishing a full and stable connection (so probably after you've entered the code and are connected) then unpair on both the phone and the your car kit, then power both systems down (car so the hands free kit powers off and the phone), then start them up again and establish a fresh pair connection and see if that helps. Other than that, I would suggest seeing if there is any firmware updates for your hands free kit cos it might not be fully compatible with the Dell Streak even if you are running 2.2 (I had to do this with my system as it would constantly randomly disconnect then reconnect itself but this went away after a firmware update).
My car s hands free its one of those with no settings, it's just there constantly on ready to pair mode and just adds any phone is in range if that phone is in discovery mode. Its just always like that so it never has a settings section, you just do it on the phone.
My two previous phones, an htc desire with 2.2 and a htc legend both connected flawlessly without any of the pairing issues.
I took the car to the dealer and he said there were no upgrades for it so it is really frustrating to think that the Streak is running the same software as the other phones but for some reason in its architecture it us not compatible with my car. The other annoying thing is that on my other car it works perfectly.
Sent from my Dell Streak using XDA App
Yeah bluetooth can be a major pain in the a55
Sorry to say, but as an extreme measure, hard reset might resolve..
Dell Streak + Tapatalk =
If I use titanium back up can I quickly restore everything as it is here after a heard reset? What is the best way to do this?
Sent from my Dell Streak using XDA App

Bluetooth question

I am coming from a long history of HTC use and so I apologise if this question has an obvious answer.
Previously, if I wanted to connect to my bluetooth in the car (previously paired with), I would just hit the bluetooth button in quick settings to turn it on and that was it, just like connecting to wifi.
If I do this on my S7E, I then get another screen popping up that tells me my device is visible to others and lists previously paired devices for me to select from, and then I have push the back button to leave that screen?
Is there a simpler way as I used to do on my HTC?
cheers
C.
PS - I am sure this will be the first of a number of questions as I get used to TouchWiz and Marshmallow......Sorry.....
crazyC said:
Previously, if I wanted to connect to my bluetooth in the car (previously paired with), I would just hit the bluetooth button in quick settings to turn it on and that was it, just like connecting to wifi.
Click to expand...
Click to collapse
Have you ever *paired* your new phone with your car?
I've only had two cars with BT in them, but in both cases the car and phone had to be paired before they would work together.
Once that was done then it would work as you expect.
Specifics of getting your *car* into pairing mode I can't help with, but once you do that you should be able to select it while scanning from the phone (as you've seen already the phone will list devices it finds) and you can finish walking through the pairing.
C0derbear said:
Have you ever *paired* your new phone with your car?
I've only had two cars with BT in them, but in both cases the car and phone had to be paired before they would work together.
Once that was done then it would work as you expect.
Specifics of getting your *car* into pairing mode I can't help with, but once you do that you should be able to select it while scanning from the phone (as you've seen already the phone will list devices it finds) and you can finish walking through the pairing.
Click to expand...
Click to collapse
Oh yes, it was paired with the bluetooth fine (its actually a visor BT device, not the car itself), and when I turn on the BT it shows up on the list of previously paired devices)
Don't have to make it a trusted device for it to auto-pair?
Why turn Bluetooth off at all?
Just leave it on.
Regards,
Dave
Sent from my Nexus 6P using Tapatalk
neezy13 said:
Don't have to make it a trusted device for it to auto-pair?
Click to expand...
Click to collapse
Nope, just had to be paired.
Trusted Device brings in the Smart Lock stuff, which enables the option of having your phone NOT authenticate you (pattern/pin/finger/passwd) when connected.
For example, I have my car bluetooth set as a trusted device so that when I'm driving I don't get any identity challenge to use the phone (like for navigation), the screen will just come on as requested.
Smart lock is blocked by my exchange administrator as I get my work emails on my phone.
I turn the Bluetooth on the phone off because I don't turn the one in the car off and it's just outside the house and will stay connected.
Sent from my S7 Edge

Categories

Resources