Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4561b75 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Increase device name limit in the LE advertisement

The advertise data refactor:
https://android-review.git.corp.google.com/#/q/topic:btif-ad-data-refactor
introduced a change in behaviour. Previously, the device name was
included in full, or truncated if the device name was longer than the
advertisement. After the patch, name longer than 18 chars are truncated.

Increase the allowed device name length to 26 - the maximum size it can
get for legacy connectable advertisement.

Bug: 37870615
Test: none
Change-Id: I3464ffae32e73cefa10142c2f0509d9139475ddd
parent 27d28e6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class AdvertiseHelper {

  private static final String TAG = "AdvertiseHelper";

  private static final int DEVICE_NAME_MAX = 18;
  private static final int DEVICE_NAME_MAX = 26;

  private static final int COMPLETE_LIST_16_BIT_SERVICE_UUIDS = 0X03;
  private static final int COMPLETE_LIST_32_BIT_SERVICE_UUIDS = 0X05;