IT之家 4 月 6 日消息,國外科技媒體 Android Authority 挖掘安卓 15 DP2 代碼,發(fā)現(xiàn)了“Bluetooth auto-on”新特性,就是幫助用戶自動打開藍(lán)牙功能。
IT之家翻譯谷歌代碼部分內(nèi)容如下,包括 Quick Share、Find My Device 已經(jīng)設(shè)備定位都需要藍(lán)牙,會在用戶關(guān)閉之后隔天自動拉開藍(lán)牙。
<string name="turn_on_bluetooth_auto_info">Features like Quick Share Find My Device and device location use Bluetooth</string> <string name="turn_on_bluetooth_auto_tomorrow">Automatically turn on again tomorrow</string>
目前相關(guān)代碼已經(jīng)發(fā)布到 AOSP 上。首先,只有系統(tǒng)應(yīng)用程序才能啟用該特性,因此第三方應(yīng)用程序無法在你不知情的情況下切換設(shè)備的藍(lán)牙無線功能。
<string name="bluetooth_empty_list_bluetooth_off_auto_on_available">When Bluetooth is on, your device can communicate with other nearby Bluetooth devices. Features like Quick Share, Find My Device, and device location use Bluetooth.</string> <string name="bluetooth_scanning_on_info_message_auto_on_available">"When Bluetooth is on, your device can communicate with other nearby Bluetooth devices. Features like Quick Share, Find My Device, and device location use Bluetooth.Apps and services can still scan for nearby devices at any time, even when Bluetooth is off. This can be used, for example, to improve location-based features and services. You can change this in Bluetooth scanning settings."</string> <string name="bluetooth_screen_auto_on_title">Automatically turn on again tomorrow</string>
其次,API 并不局限于安卓 15,這意味著它可以在此前安卓版本上使用。不過,設(shè)備必須使用 AOSP 的藍(lán)牙堆棧,無法調(diào)用自定義堆棧。即便如此,代碼注釋也指出并非所有設(shè)備都支持藍(lán)牙自動開啟功能。
廣告聲明:文內(nèi)含有的對外跳轉(zhuǎn)鏈接(包括不限于超鏈接、二維碼、口令等形式),用于傳遞更多信息,節(jié)省甄選時間,結(jié)果僅供參考,IT之家所有文章均包含本聲明。