Ignoring Bluetooth Connection requests to the Inbox

Login to reply to this topic.
Tue, 2006-01-03 12:32
Joined: 2005-03-06
Forum posts: 183
Hi,

Does anyone know how to ignore ALL incoming bluetooth connection requests or at least know how to detect them, not based on a particular service but ANY service i.e how to detect a bluetooth connection to the inbox before the "Accept Incoming Connection" message appears on the phone?

Regards,
Isseyp

Sat, 2006-01-07 16:09
Joined: 2005-01-04
Forum posts: 226
Re: Ignoring Bluetooth Connection requests to the Inbox
This can be done if we can access the local database.AFAIK,we can acces the database but can't retrieve the records...

Correct me if i'm wrong....
Tue, 2006-01-10 06:15
Joined: 2005-03-06
Forum posts: 183
Re: Ignoring Bluetooth Connection requests to the Inbox
ok, sounds good, so can we access the local database? and if we can how do we do it? where should I be looking? Any basic code sample to point me in the right direction on what I should be looking at?

Regards,
Isseyp
Tue, 2006-01-10 10:46
Joined: 2005-01-04
Forum posts: 226
Re: Ignoring Bluetooth Connection requests to the Inbox
There is one class by name RSdpDatabase.. i'm not sure about the exact class name but search for a related one. Have a look at it and revert back if you find anything that fits ur requirement
Mon, 2006-01-16 08:11
Joined: 2005-03-06
Forum posts: 183
Re: Ignoring Bluetooth Connection requests to the Inbox
yes, im aware of RSdpDatabase but what are you suggesting? I was thinking about changing the security settings but I need to find all the relevent bluetooth services or at least the default inbox bluetooth service.

What is the service_ID for this service (ie the default bluetooth obex inbox)?
Maybe just set  secSettings.SetAuthorisation(EFalse); for everything , but this I think will just allow it to accept all incoming requests rather than auto-deny all of them.



  RBTSecuritySettings secDatabase;
    RBTSecuritySettings secDatabase;                  //comments
   TBTServiceSecurity secSettings;
   // connect to security manager
   User::LeaveIfError(secManager.Connect());
    CleanupClosePushL(secManager);
   User::LeaveIfError(secDatabase.Open(secManager));      //comments
    CleanupClosePushL(secDatabase);                  //comments
   // setup security
   TUid settingsUID;
   settingsUID.iUid = KBT_serviceID;
   secSettings.SetUid(settingsUID);
   secSettings.SetChannelID(aChannel);               //comments
   secSettings.SetProtocolID(KSolBtRFCOMM);         //comments
   secSettings.SetAuthentication(EFalse);
   secSettings.SetAuthorisation(EFalse);
   secSettings.SetEncryption(EFalse);
   // register settings with security
   secDatabase.RegisterService(secSettings, status);
Wed, 2006-02-15 03:26
Joined: 2005-03-06
Forum posts: 183
Re: Ignoring Bluetooth Connection requests to the Inbox
Hi,

I beleive I can deny bluetooth requests by using SetDenied(ETrue) something like below.

However, I dont know what  the Service ID for the default SMS service and Im not sure which protocol ID I should be setting - I beleive it should be OBEX File Transfer?

Is the ServiceID for the default SMS service - KMsvLocalServiceIndexEntryId ?? or is this something else?

Also, which Channel? Should it be Channel 0?? If not then what?

I have been playing around with various values, but no sucess yet.


settingsUID.iUid = HuhHuhHuh;  //What should this ID be?
   secSettings.SetUid(settingsUID);
   secSettings.SetChannelID(aChannel);               //comments
   secSettings.SetProtocolID(KSolBtRFCOMM);         //comments
   secSettings.SetDenied(ETrue);
   // register settings with security
   secDatabase.RegisterService(secSettings, status);

Regards,
Isseyp
  • Login to reply to this topic.