1.目錄變化
Android13磨淌,由frameworks/base/core/java/android/bluetooth 變?yōu)?packages/modules/Bluetooth/framework/java/android/bluetooth
public boolean setScanMode(@ScanMode int mode) {}
變?yōu)?br>
public int setScanMode(@ScanMode int mode) {}
方法變化:
從Android 11 開(kāi)始
Profile如:BluetoothA2dp增加了
public boolean setConnectionPolicy(@NonNull BluetoothDevice device, @ConnectionPolicy int connectionPolicy)
public @ConnectionPolicy int getConnectionPolicy(@NonNull BluetoothDevice device)
下面的setPriority與getPriority最終是通過(guò)setConnectionPolicy與getConnectionPolicy的數(shù)據(jù)轉(zhuǎn)換而來(lái)凿渊。
public boolean setPriority(BluetoothDevice device, int priority)
public int getPriority(BluetoothDevice device)
Android 9 開(kāi)始
BluetoothInputDevice.java 變?yōu)?BluetoothHidHost.java
BluetoothProfile.INPUT_DEVICE 變?yōu)?BluetoothProfile.HID_HOST