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

The following examples show how to use android.os.Build#getRadioVersion() . 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 File: BandInfo.java    From MobileInfo with 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 File: EasyDeviceMod.java    From easydeviceinfo with 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 File: DeviceUtils.java    From Box with Apache License 2.0 4 votes vote down vote up
public static String getRadioVersion() {
    return Build.getRadioVersion();
}
 
Example 4
Source File: DeviceUtils.java    From Box with Apache License 2.0 4 votes vote down vote up
public static String getRadioVersion() {
    return Build.getRadioVersion();
}
 
Example 5
Source File: Device.java    From SmartPack-Kernel-Manager with GNU General Public License v3.0 4 votes vote down vote up
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 6
Source File: Device.java    From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 4 votes vote down vote up
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 7
Source File: Device.java    From KernelAdiutor with GNU General Public License v3.0 4 votes vote down vote up
public static String getBaseBand() {
    return Build.getRadioVersion();
}
 
Example 8
Source File: DeviceUtils.java    From Android-utils with 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() : "";
}