in packages/@fbcmobile-signalscan/android/src/main/java/com/fbc/signalscan/CellScanResultsModule.java [365:384]
private static WritableMap setGSMInfo(CellInfoGsm cell) {
WritableMap fields = Arguments.createMap();
fields.putString(CELL_FIELD_TYPE, GSM);
final CellSignalStrengthGsm gsm = cell.getCellSignalStrength();
final CellIdentityGsm identityGsm = cell.getCellIdentity();
fields.putString(CELL_FIELD_ID, Integer.toString(identityGsm.getCid()));
fields.putInt(CELL_FIELD_DBM, gsm.getDbm() != Integer.MAX_VALUE ? gsm.getDbm() : 0);
fields.putString(CELL_FIELD_LAC, Integer.toString(identityGsm.getLac()));
fields.putString(CELL_FIELD_MCC, Integer.toString(identityGsm.getMcc()));
fields.putString(CELL_FIELD_MNC, Integer.toString(identityGsm.getMnc()));
if (Build.VERSION.SDK_INT >= 24) {
fields.putString(CELL_FIELD_BASE_STATION_ID, Integer.toString(identityGsm.getBsic()));
fields.putInt(CELL_FIELD_ARFCN, identityGsm.getArfcn());
}
if (Build.VERSION.SDK_INT >= 28) {
fields.putString(CELL_FIELD_MCC, identityGsm.getMccString());
fields.putString(CELL_FIELD_MNC, identityGsm.getMncString());
}
return fields;
}