Loading android/app/src/com/android/bluetooth/Utils.java +8 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,14 @@ public final class Utils { } } public static String getLoggableAddress(@Nullable BluetoothDevice device) { if (device == null) { return "00:00:00:00:00:00"; } else { return "xx:xx:xx:xx:" + device.toString().substring(12); } } public static String getAddressStringFromByte(byte[] address) { if (address == null || address.length != BD_ADDR_LEN) { return null; Loading Loading
android/app/src/com/android/bluetooth/Utils.java +8 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,14 @@ public final class Utils { } } public static String getLoggableAddress(@Nullable BluetoothDevice device) { if (device == null) { return "00:00:00:00:00:00"; } else { return "xx:xx:xx:xx:" + device.toString().substring(12); } } public static String getAddressStringFromByte(byte[] address) { if (address == null || address.length != BD_ADDR_LEN) { return null; Loading