Where to enable a specific bt function in the code? - LG G6 Questions and Answers

Hi,
I have to know where to point my developer at.
When I connect my old ohone (moto g3/LineageOS) to my car, it recognize it as a phone and I can handle calls from my car.
but it seams on my current phone (LG G6/same LineageOS version&build date), this function is not enabled. The car connects but It sees just a media device, so I have no access to the phone functionality.
It must be a flag or something.... where in the code do I enable it?
thanks

odysseus84 said:
Hi,
I have to know where to point my developer at. When I connect my old ohone (moto g3/LineageOS) to my car, it recognize it as a phone and I can handle calls from my car. but it seams on my current phone (LG G6/same LineageOS version&build date), this function is not enabled. The car connects but It sees just a media device, so I have no access to the phone functionality. It must be a flag or something.... where in the code do I enable it? thanks
Click to expand...
Click to collapse
I don't have this device but, your best bet is to post this question within the following Official LineageOS thread for the LG G6.
https://forum.xda-developers.com/showthread.php?t=3657486
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.
PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Related

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.

Using an android device as a blutetooth "headset"

Hi!
I have a question regarding android devices in general. The main question is if this idea is possible with the right app or if you need special hardware?
I want to develop an app that let's you use any android device as a bluetooth headset connected to a cellphone. The setup is primarily for a car installation but other uses are also possible. This is how I want it to work:
I install an Android MID in my car and connect it to the stereo using a cable or bluetooth (depending on whats possible) to get the sound from the mid to the cars speakers. On this MID I'll have google maps and Spotify (or pandora) for navigation and music. So far this is nothing special, but I also want to be able to answer and make calls from a connected (bluetooth) phone (like on many dedicated gps).
By doing this I want the driver (any driver) to be able pair his/her phone with the MID. The calls to the connected phone will be displayed on the MID so their phones can stay in their pockets.
1. Is it possible to answer a telephone call to a cellphone by using an "answer" button on a bluetooth connected android device? Example "My Desire is connected by bluetooth to the android MID. When an external call is made to the Desire I can anser it from the MID".
2. If the answer to no 1 is Yes, is it at the same time possible to share internet via the same bluetooth connection?
Anyone have any idea if this is possible with the right app or if it need special hardware?
Sorry for bad english and long question..
- A
Bathyon said:
Hi!
I have a question regarding android devices in general. The main question is if this idea is possible with the right app or if you need special hardware?
I want to develop an app that let's you use any android device as a bluetooth headset connected to a cellphone. The setup is primarily for a car installation but other uses are also possible. This is how I want it to work:
I install an Android MID in my car and connect it to the stereo using a cable or bluetooth (depending on whats possible) to get the sound from the mid to the cars speakers. On this MID I'll have google maps and Spotify (or pandora) for navigation and music. So far this is nothing special, but I also want to be able to answer and make calls from a connected (bluetooth) phone (like on many dedicated gps).
By doing this I want the driver (any driver) to be able pair his/her phone with the MID. The calls to the connected phone will be displayed on the MID so their phones can stay in their pockets.
1. Is it possible to answer a telephone call to a cellphone by using an "answer" button on a bluetooth connected android device? Example "My Desire is connected by bluetooth to the android MID. When an external call is made to the Desire I can anser it from the MID".
2. If the answer to no 1 is Yes, is it at the same time possible to share internet via the same bluetooth connection?
Anyone have any idea if this is possible with the right app or if it need special hardware?
Sorry for bad english and long question..
- A
Click to expand...
Click to collapse
With the right app, sure. Not sure if you can do it over bluetooth tho, maybe get a SIM for the MID and have your phone forward calls to it while your in the car. But i bet someone could figure out the bluetooth thing.
First of all, there is a problem connecting to the phone wifi due to it being an "ad -hoc" network. But the phone through the tablet is a great idea and some of us are working with such a prototype called "FLEX" it will be a small unlocked cell phone device that connects via BT to the tablet and handles the phone function for the tablet as you have described. Send me a pm if you would like more info.
sent from divested Alltel hero help Root
He's talking about Bluetooth not WiFi
allus_drummer said:
sent from divested Alltel hero help Root
He's talking about Bluetooth not WiFi
Click to expand...
Click to collapse
I know he is talking about Bluetooth... but he also mentioned wanting to connect to 3g of the phone for data I believe.
I've actually had this idea as well! I don't know much about bluetooth programming, but there should be some way to spoof the phone bluetooth device ID or whatever to make the other device believe it's talking to a bt headset. I'm going to guess it might require root.
If you do decide to start coding something like this, let me know how i can help (ie, testing).
cheers,
q
Sent from my Nexus One
Thanks for all the answers. I don't think I'm able to program this myself but was interested in if the concept was possible. If it is I sure hope someone creates it. I would pay good money for a solution like that and I think others would to.
If you come across more information regarding projects in this area please let me know.
Thanks again.

[Q] Bluetooth function

i'm sorry if this question is vague.
I'm working on a app for work that needs to be kept classified until done if it can be done.
I was wondering if there is way to use the bluetooth function on the phone within an app. without having to root your phone.
it's hard to ask this question with out giving away the classified information.
http://developer.android.com/guide/topics/wireless/bluetooth.html
?
You can write code that sends and receives data over bluetooth if thats what youre asking. One example is handling the NMEA messages from a bluetooth GPS
do you think it would be possible to use a android phone as bluetooh headset?
Really depends on the phone and what you're connecting with. I'm not sure if a phone can receive A2DP connections, but it could be possible. Phones definitely can recive data connections over bluetooth, I just don't know enough about A2DP to know if the phone could work as a server for it. Someone else who knows more about A2DP maybe will know though.
It also could be possible to use something like SPP or RFCOMM.
Really, there isn't a good way to answer such a vague question.
sorry i have to keep it classified due to work, if it was a personal project i would give the full details of it.
Totally understandable I just wish I had a better answer for you.
thanks for your help i will keep researching looking the google information and etc
I think that if the Android libraries don't provide what you need (and I suspect they don't), then you are stuck, without root/SU.
I've developed an FM radio app that speaks to the FM chip via HCI, and spent a few weeks trying, but was unable to get raw HCI access except via existing command line utilities on the phone.
mikereidis said:
I think that if the Android libraries don't provide what you need (and I suspect they don't), then you are stuck, without root/SU.
I've developed an FM radio app that speaks to the FM chip via HCI, and spent a few weeks trying, but was unable to get raw HCI access except via existing command line utilities on the phone.
Click to expand...
Click to collapse
yeah that's what i was affraid of ...

Read bluetooth device battery

Hey,
I already asked the question here but I thought I could not help to post it here anyway because maybe it's a bit better for a question which deals with custom ROM sources.
On my Tablet (with CyanogenMod 14.1) I can see the battery status of my connected bluetooth headset (no BLE device). On my phone (which runs on Stock 7.1) I can't see this information. Also iOS can display the battery status.
I would like to build an application which gives me this information also on my phone. For this I thought I could copy and modify the CM source code but I can't find anything where they read the battery status from connected bluetooth devices.
Has anyone found something like this in the massive source of CM and can give my the link to the source? Also a rooted solution or a system app which I have to flash would be okay.
Hope someone can help me here.
Greetings, Cilenco
If one device is correctly reading the battery data then the data is probably being sent over the connection. I would suggest reading the packets that are received from you headset. There is possibly a mic line, audio line, and battery/data line. your phone may only be reading the mic and audio.

Samsung S7e bluetooth loss of beginning of sound when sound starts

When I have a bluetooth headset connected, and am waiting for occasional sounds e.g. verbal satnav instructions that happen ad-hoc as the satnav needs to give you a new instruction, the start of the instruction is lost. This may be because the silence between satnav instructions puts bluetooth in sleep/standby mode, and the start of the instruction wakes it, but not fast enough to get full instruction. E.g. satnav wants to say
"At roundabout take first exit", but what you hear is "take first exit". This obviously seriously undermines following a route by just listening.
Is there anyway to get rid of this delay.. e.g. preventing bluetooth taking silence as sleep time?
Anyone else affected by this issue? Will this be cured in bluetooth 5?
Thanks!
Slo62Runner said:
When I have a bluetooth headset connected,.....
Click to expand...
Click to collapse
I don't have this device but, your best bet is to post this question within the following Q&A thread that's specific to your device and variants.
https://forum.xda-developers.com/showthread.php?t=3489011
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.

Categories

Resources