Arun,

Turning the BT adapter on and off will affect other apps as well.
That is not the aim.
You are right about the sockets. But I cannot find a suitable place.

Earlence

On Nov 12, 12:42 pm, "Arun K. Singh" <arun...@gmail.com> wrote:
> Earlence,
>
> Isn't it possible that no one tries to access BT but still BT sockets
> are created and used? for ex when bluetoothd is launched. Rather
> shouldnt you tap OFF to ON state of BT adapter or may be
> undiscoverable to discoverable mode change?
>
> Also you can address such question on Bluez forums ..
>
> thanks,
> Arun
>
> On Nov 12, 1:36 pm, Earlence <earlencefe...@gmail.com> wrote:
>
> > yes...I'll take the advice...now that I think about it more.
> > But this is not the whole story.
> > I want to be notified whenever and program on the device tries to
> > communicate via bluetooth.
> > (I dont know whether this is the best place to ask this question).
> > I have see the AF_BLUETOOTH module and there is a bt_sock_create
> > function.
> > I am wondering whether this is the correct place to hook in
> > notification code.
> > For starters, the notification could just be another kernel module.
>
> > On Nov 12, 8:24 am, Dianne Hackborn <hack...@android.com> wrote:
>
> > > On Thu, Nov 11, 2010 at 11:06 PM, Earlence <earlencefe...@gmail.com> 
> > > wrote:
> > > > I dont need the total functionality of a driver.
> > > > I need a small (almost miniscule) extension, thats it.
>
> > > It is probably easier to write, and far FAR easier to maintain, a small
> > > driver than a (!!) custom system call.  Seriously.  Just write a driver.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see 
> > > and
> > > answer them.

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to