Java Code Examples for android.os.Build#getRadioVersion()

The following examples show how to use android.os.Build#getRadioVersion() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: MobileInfo   File: BandInfo.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * BASEBAND-VER
 * 基带版本
 * return String
 */

@SuppressWarnings("unchecked")
private static String getBaseband() {
    String version = null;
    try {
        @SuppressLint("PrivateApi") Class cl = Class.forName("android.os.SystemProperties");
        Object invoker = cl.newInstance();
        //noinspection unchecked
        Method m = cl.getMethod("get", String.class, String.class);
        Object result = m.invoke(invoker, "gsm.version.baseband", "no message");
        version = (String) result;
    } catch (Exception e) {
        Log.i(TAG, e.toString());
    }
    return TextUtils.isEmpty(version) ? Build.getRadioVersion() : version;
}
 
Example 2
Source Project: easydeviceinfo   File: EasyDeviceMod.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Gets radio ver.
 *
 * @return the radio ver
 */
public final String getRadioVer() {
  String result = null;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
    result = Build.getRadioVersion();
  }
  return CheckValidityUtil.checkValidData(result);
}
 
Example 3
Source Project: Box   File: DeviceUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static String getRadioVersion() {
    return Build.getRadioVersion();
}
 
Example 4
Source Project: Box   File: DeviceUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static String getRadioVersion() {
    return Build.getRadioVersion();
}
 
Example 5
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 6
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 7
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 8
Source Project: Android-utils   File: DeviceUtils.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * 获取基带版本(无线电固件版本 Api14以上)
 *
 * @return 基带版本
 */
public static String getRadioVersion() {
    return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH ? Build.getRadioVersion() : "";
}