Bluetooth OPP, PBAP profile

642 views
Skip to first unread message

Jason

unread,
Jan 7, 2010, 6:56:29 AM1/7/10
to android-platform
Hi everyone:
I'm tracing the Android 2.0 source code which related to OPP and PBAP.
There are some questions bothered me a much.
In LocalBluetoothProfileManager.java The OppProfileManager didn't have
relationship with any service. How does this profile wok?
Besides that, the PBAP confused me more. I only noticed that both OPP
and PBAP register by sdptool. But where is the code implement those
profile? I can't find it.
It would be nice if someone gave me some suggestions. Thanks.

Jackson Fan

unread,
Jan 29, 2010, 12:51:58 AM1/29/10
to android-platform
Hi Jason,
The OppProfileManager will be triggered by
CachedBluetoothDevice.java to reflect a device's profile connected
status. The final purpose is to filter devices when to conduct OPP
sharing, along with the usage of BluetoothDevicePicker within
BluetoothSettings.java.
Both OPP and PBAP are services on top of OBEX library, and
code is now opened at http://android.git.kernel.org/?p=platform/packages/apps/Bluetooth.git;a=summary.

Sincerely,
Jackson

guru

unread,
Mar 7, 2010, 11:12:54 PM3/7/10
to android-platform
Hi Jason,

Whether PBAP profile is default enabled or we have to enable it before
building the code ? If we have to enable it, then how?

Regards
Gururaja B O

On Jan 29, 10:51 am, Jackson Fan <xy...@motorola.com> wrote:
> Hi Jason,
>           The OppProfileManager will be triggered by
> CachedBluetoothDevice.java to reflect a device's profile connected
> status. The final purpose is to filter devices when to conduct OPP
> sharing, along with the usage of BluetoothDevicePicker within
> BluetoothSettings.java.

>           Both OPP andPBAPare services on top of OBEX library, and
> code is now opened athttp://android.git.kernel.org/?p=platform/packages/apps/Bluetooth.git....


>
> Sincerely,
> Jackson
>
> On Jan 7, 7:56 pm, Jason <crow...@gmail.com> wrote:
>
> > Hi everyone:
> > I'm tracing the Android 2.0 source code which related to OPP andPBAP.
> > There are some questions bothered me a much.
> > In LocalBluetoothProfileManager.java The OppProfileManager didn't have
> > relationship with any service. How does this profile wok?

> > Besides that, thePBAPconfused me more. I only noticed that both OPP
> > andPBAPregister by sdptool. But where is the code implement those

Bheemsen

unread,
Mar 7, 2010, 11:19:40 PM3/7/10
to android-...@googlegroups.com
PBAP is enabled by default in Eclair 2.1, you need to add the PBAP service in the init.rc file.



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Regards
Bheemsen

guru

unread,
Mar 8, 2010, 3:46:50 AM3/8/10
to android-platform
Hi Bheemsen,

Where I have to check whether it is enabled , in which section of
code?
in this file ./external/bluetooth/bluez/tools/sdptool.c, they have
mentioned it as

{ "PBAP", PBAP_SVCLASS_ID, add_pbap, },

is it means enabled?

I saw below section of code in init.rc to add this service, this is
correct right?

service pbap /system/bin/sdptool add --channel=19 PBAP
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot

Thanks
Gururaja B O

> > android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>

Bheemsen

unread,
Mar 8, 2010, 4:08:19 AM3/8/10
to android-...@googlegroups.com
Yes and also check in "packages/apps/Bluetooth/src/com/android/bluetooth/" pbap

To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Regards
Bheemsen
Reply all
Reply to author
Forward
0 new messages