Loading android/app/src/com/android/bluetooth/btservice/storage/DatabaseManager.java +4 −5 Original line number Diff line number Diff line Loading @@ -1254,19 +1254,18 @@ public class DatabaseManager { String modelName = ""; String hardwareVersion = ""; String softwareVersion = ""; String value = Utils.byteArrayToUtf8String(bytesValue); switch (key) { case BluetoothDevice.METADATA_MANUFACTURER_NAME: manufacturerName = value; manufacturerName = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_MODEL_NAME: modelName = value; modelName = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_HARDWARE_VERSION: hardwareVersion = value; hardwareVersion = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_SOFTWARE_VERSION: softwareVersion = value; softwareVersion = Utils.byteArrayToUtf8String(bytesValue); break; default: // Do not log anything if metadata doesn't fall into above categories Loading Loading
android/app/src/com/android/bluetooth/btservice/storage/DatabaseManager.java +4 −5 Original line number Diff line number Diff line Loading @@ -1254,19 +1254,18 @@ public class DatabaseManager { String modelName = ""; String hardwareVersion = ""; String softwareVersion = ""; String value = Utils.byteArrayToUtf8String(bytesValue); switch (key) { case BluetoothDevice.METADATA_MANUFACTURER_NAME: manufacturerName = value; manufacturerName = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_MODEL_NAME: modelName = value; modelName = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_HARDWARE_VERSION: hardwareVersion = value; hardwareVersion = Utils.byteArrayToUtf8String(bytesValue); break; case BluetoothDevice.METADATA_SOFTWARE_VERSION: softwareVersion = value; softwareVersion = Utils.byteArrayToUtf8String(bytesValue); break; default: // Do not log anything if metadata doesn't fall into above categories Loading