Class ImeiRbiData

java.lang.Object
tools.pantheum.gaia.gs1.dataset.ImeiRbiData

public final class ImeiRbiData extends Object
Reference data for IMEI Reporting Body Identifiers (RBIs) — the leading 2 digits of a Type Allocation Code, naming the GSMA-appointed body that allocated it.

Three kinds of code appear in REPORTING_BODIES:

  • Currently allocating — 01 (CTIA/PTCRB), 35 (TÜV SÜD BABT), 86 (TAF), plus 99 (Global Hexadecimal Administrator) and 98 (reserved).
  • Test ranges — 00 and 02–09, which mark test IMEIs rather than a real allocation. See isTestCode(String).
  • No longer allocating — historic bodies such as 49 (BZT/BAPT, Germany) or 44 (BABT, UK). Handsets carrying them are ordinary and remain in service; only new allocation has ceased. See isNoLongerAllocating(String).

Source and staleness

Compiled from Wikipedia's Reporting Body Identifier listing, not from the GSMA directly, so it may lag the authoritative allocation list (GSMA TS.06 / the IMEI allocation process). Codes outside the ranges above are simply absent.

An unrecognised code therefore means "not in this table", never "invalid IMEI" — a handset may legitimately carry a prefix newer than this file. Callers must treat nameForCode(String) returning Optional.empty() as a non-event and must not derive any validation outcome from it. The RBI is not a check character and has no verifiable relationship to the rest of the IMEI.

See Also:
  • Field Details

    • REPORTING_BODIES

      public static final Map<String,String> REPORTING_BODIES
      Maps 2-digit Reporting Body Identifiers to the allocating body's name. Iteration order groups the codes as the class documentation lists them — test ranges, then currently allocating, then retired — rather than sorting by code. Source: Wikipedia's RBI listing — see the class documentation.
    • TEST_CODES

      public static final Set<String> TEST_CODES
      Codes denoting a test IMEI rather than a real allocation: 00, 02–09.
    • NO_LONGER_ALLOCATING

      public static final Set<String> NO_LONGER_ALLOCATING
      Codes whose bodies no longer allocate IMEIs. Existing devices remain valid.
  • Method Details

    • nameForCode

      public static Optional<String> nameForCode(String code)
      Returns the reporting body's name for the given 2-digit RBI, or Optional.empty() if the code is not present in this table.
      Parameters:
      code - two-digit string, e.g. "35" for TÜV SÜD BABT
      Returns:
      a new Optional<String>
    • isTestCode

      public static boolean isTestCode(String code)
      Whether the code marks a test IMEI (00, 02–09) rather than a real allocation.
      Parameters:
      code - the code
      Returns:
      a new boolean
    • isNoLongerAllocating

      public static boolean isNoLongerAllocating(String code)
      Whether the code belongs to a body that no longer allocates IMEIs. Reporting only: devices allocated under such a code remain valid and in service.
      Parameters:
      code - the code
      Returns:
      a new boolean