Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Szymon Janc <szymon.janc@tieto.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [RFC 0/6] android: Configuration command
Date: Tue, 13 May 2014 22:32:54 +0200	[thread overview]
Message-ID: <2033637.5yzdKDHhAh@athlon> (raw)
In-Reply-To: <92E59A56-9A08-481D-971C-FD3362FD9208@holtmann.org>

Hi Marcel,

On Tuesday 13 May 2014 11:54:55 Marcel Holtmann wrote:
> Hi Szymon,
> 
> > This will allow to pass Android properties over IPC and use them
> > in daemon for customization eg. Device Information or default adapter
> > name.
> > 
> > Open points:
> > - what properties should be read, currently I use ro.product.* as those
> > 
> >   are present on AOSP Nexus devices, but eg. on Xperia phones there
> >   seem to be ro.semc.product.* with more userfriendly name, so this
> >   may vary upon devices. (eg ST18i vs Xperia Ray in model property).
> >   Or maybe just use ro.bluetooth.* and require integrator to set those
> >   accrodingly?
> 
> I think we should take ro.bluetooth.* and fallback to ro.product.*. If some
> manufactures want to do something different, they can either set
> ro.bluetooth.* or hack the code.
>
> Nexus devices should default to something useful. We have to take that as
> standard location for product information.
> 
> Since non of the DID details are mandatory, I prefer also that they are just
> not present if they are not configured in any property. Maybe BlueZ
> defaults for manufacturer and systemd id.

Sounds good.

> > - should we also use this instead of 'Mode' passed on service init?
> > 
> >   This would keep handling of all properities consistent but I'm fine
> >   if we decide to keep Modes special.
> 
> Do not understand the question. What do you mean.

I mean that we could pass all properties this way, including ones used to 
configure HALs (persist.sys.bluetooth.handsfree, persist.sys.bluetooth.mode) 
that currently are passed as "Mode" while registering service.

I also wonder if we could change our customization properties from 
persist.sys.bluetooth.* to ro.bluetooth.*. I'm not sure why we choose to use 
sys.persist.bluetooth in first place... do we really want this to be runtime 
configurable?

-- 
Szymon K. Janc
szymon.janc@gmail.com

  reply	other threads:[~2014-05-13 20:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13 17:09 [RFC 0/6] android: Configuration command Szymon Janc
2014-05-13 17:09 ` [RFC 1/6] android/hal-msg: Add configuration command Szymon Janc
2014-05-13 17:09 ` [RFC 2/6] android: Add support for " Szymon Janc
2014-05-13 17:09 ` [RFC 3/6] android: Add functions for getting configuration options Szymon Janc
2014-05-13 17:09 ` [RFC 4/6] android/hal-bluetooth: Add support for sending configuration Szymon Janc
2014-05-13 17:09 ` [RFC 5/6] android/bluetooth: Use system id for default adapter name Szymon Janc
2014-05-13 17:09 ` [RFC 6/6] android/gatt: Use configuration data for device information profile Szymon Janc
2014-05-13 18:54 ` [RFC 0/6] android: Configuration command Marcel Holtmann
2014-05-13 20:32   ` Szymon Janc [this message]
2014-05-13 23:13     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2033637.5yzdKDHhAh@athlon \
    --to=szymon.janc@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=szymon.janc@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox