Skip to content

Commit

Permalink
Checkin: Use null serial instead of empty
Browse files Browse the repository at this point in the history
Server says >> "" is not a valid serial number <<, but null is fine 🤷
  • Loading branch information
mar-v-in committed Sep 15, 2023
1 parent 0f04df6 commit ae607f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static CheckinRequest makeRequest(Context context, DeviceConfiguration de
.loggingId(new Random().nextLong()) // TODO: static
.meid(deviceIdent.meid)
.otaCert(Collections.singletonList("71Q6Rn2DDZl1zPDVaaeEHItd"))
.serial(Build.SERIAL)
.serial(Build.SERIAL != null && !Build.SERIAL.isEmpty() ? Build.SERIAL : null)
.timeZone(TimeZone.getDefault().getID())
.userName((String) TODO)
.userSerialNumber((Integer) TODO)
Expand Down

0 comments on commit ae607f1

Please sign in to comment.