Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3065637pxb; Thu, 10 Feb 2022 11:23:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhKpcJfH5h1n9hdmNKn1TDMgtwv5cKCzf8ADW++LEN/LuSl7WR6qzhPDlLxowoxZZAp4b5 X-Received: by 2002:a50:bb0c:: with SMTP id y12mr10039323ede.421.1644521036733; Thu, 10 Feb 2022 11:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644521036; cv=none; d=google.com; s=arc-20160816; b=H5JmffgnjrxOXGllEeb8UdnNxi9UQChsN8zSoZ4F/XkWrPWYi9+5f6y9UfkRlGISfF OKvu5T1dyVZ/0dBgxTMB/mo47KGCLZTQNYgd5jeiR9n/6QTw5lhNdoHZEzMRjQdMl2PE Uk7RtzKcCzp1WlK9REnQ84w0PSj5VtC9VtrTgGP6IDVl8qvuA5fN+sN9H8JwI+MZ8pqC dYoM0D+Dctl5m1b5wQA55a5fmmfFpAP9lcHpNSBa/3sQeIApcCcXMcqTwi+u/HMVesk9 q02RzoZASy/WzsYfA0BITcr5mCRFqHE2kMUkQMTEXNEKdmSIlxzbYx+Rj/dgMWCmSl4V xBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fgRzixamvpR48amk1YiH/CSolWJUEMxdGnC43ZwS8mM=; b=YJkaYq7R1z4BIWC+k4eiIxpMdRZePtT7nAm691+XRqkLuBULx7DRAZXBTqWFbpbQMZ r/GsojZ/kD4tmsuNYFcGcwfkW3ZPCAw4pTId0br7x5LLLk/vI+zj0uF/+olDYsO5eLnz l7x1TqRS0fhXboW2zTQHsRB2nzAuaUs9/we8U/ue4fg1inBHMe3z14GOxBnMbenY5xb3 KeXS20k47rDo+2f6s0G2Hu9Oam5HXvj7EuQEGpx4yV+CEBeNOV8WO1UU7aNUlh2QkqsG tuzeNOQf0/9Gb+i3J1XzLOGAPb8zEH8CuOGigP5WRwD9qZ2S1MKcH7P4RQrPFEbX4pbh YrAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kF3/ei6P"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6si14313514ejj.98.2022.02.10.11.22.42; Thu, 10 Feb 2022 11:23:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kF3/ei6P"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233152AbiBJSk0 (ORCPT + 99 others); Thu, 10 Feb 2022 13:40:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:32846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbiBJSkZ (ORCPT ); Thu, 10 Feb 2022 13:40:25 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8514F10C2 for ; Thu, 10 Feb 2022 10:40:25 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id da4so12451433edb.4 for ; Thu, 10 Feb 2022 10:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=fgRzixamvpR48amk1YiH/CSolWJUEMxdGnC43ZwS8mM=; b=kF3/ei6POhmPwCUANnWEkJT12mJ3QSFYDB6nVxapvWe6vdvDw9jVO+lrtInFL/emIi 8ZlGA2KrfYIsVmZwOhNfwdfm/0K74uHwlACv11B2VFiL9BwOXqgyCZ1z9IXJtYDrBLdC vcxE5rtAqj12k11+diNoMPQ3T6KfKWR7GZ2Qg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=fgRzixamvpR48amk1YiH/CSolWJUEMxdGnC43ZwS8mM=; b=QuhhK5vFeI9a32oh/cHxoJeeOI/CvsNAru0cxqtCanf9E0wyr7NX7FiJkZKU//sW6s /iLuuoIyLSbrybbuMLpspU5XqPNEJi5UvWkpyGC3WM46YGNL/6WMiN7G8yqidoQhH4Q/ M4UVI+aJW1hP+LMbbTAns/o+ntXvNXHdxZhTz3qEWjpSvLgu0IYlWsE68toLMn+wYUgT KVGP+7X+wVeEbAoXX6z55rCZ97/C7uQINQi4Bqsmy6J092f7Hhk88Dgbjy5sX2HYNud/ eCx6qQB657eVU+D+s9YunMm/RKShf5Bvu0e6VMm+RPMVScnXRRO9F50sMY5KKO8lYORV aNtQ== X-Gm-Message-State: AOAM530rP4Jh0fOtuHAprY/loZ7HqGDjelLIEX6hFdAQRJJiqnIBccrW FawfGv0uT7q2BsUQKqr9p6CFtyzI8t+roA== X-Received: by 2002:a05:6402:50d1:: with SMTP id h17mr9498572edb.286.1644518423744; Thu, 10 Feb 2022 10:40:23 -0800 (PST) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com. [209.85.221.45]) by smtp.gmail.com with ESMTPSA id bm4sm8363656edb.21.2022.02.10.10.40.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 10:40:23 -0800 (PST) Received: by mail-wr1-f45.google.com with SMTP id d27so11181571wrc.6 for ; Thu, 10 Feb 2022 10:40:23 -0800 (PST) X-Received: by 2002:a05:6000:38e:: with SMTP id u14mr7255876wrf.638.1644518422579; Thu, 10 Feb 2022 10:40:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sonny Sasaka Date: Thu, 10 Feb 2022 10:40:12 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Question about Trusted property To: BlueZ Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear maintainers, Friendly ping on this question. Does adding "Bonded" property to org.bluez.Device1 make sense? On Fri, Feb 4, 2022 at 4:02 PM Sonny Sasaka wrote: > > Hi Luiz/BlueZ maintainers, > > What is the purpose of the Trusted property on org.bluez.Device1 > interface? Does it mean whether the device is bonded? My experiment > with BlueZ shows that sometimes a device with "Trusted" property set > is not bonded (does not have pairing key stored) and also vice versa, > so I am assuming that the Trusted property means something else. What > is an example use case of the Trusted property? > > Eventually, what I am trying to achieve is for BlueZ clients to find > out whether a device is Bonded or not. Using the Paired property is > not very accurate because it is set to true during connection although > the device is not bonded (pairing key does not persist after > disconnection). For this purpose, I am about to propose adding > "Bonded" property to org.bluez.Device1. Some use cases include when > there is a temporary pairing with a peer device we don't want UI to > show that the device is in the Bonded device list. What do you think > about exposing the Bonded state via D-Bus? I will do the > implementation if this idea makes sense. > > Thanks!