1 /* 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 package org.webrtc.voiceengine; 12 13 import android.os.Build; 14 import android.util.Log; 15 16 public final class BuildInfo { getDevice()17 public static String getDevice() { 18 return Build.DEVICE; 19 } 20 getDeviceModel()21 public static String getDeviceModel() { 22 return Build.MODEL; 23 } 24 getProduct()25 public static String getProduct() { 26 return Build.PRODUCT; 27 } 28 getBrand()29 public static String getBrand() { 30 return Build.BRAND; 31 } 32 getDeviceManufacturer()33 public static String getDeviceManufacturer() { 34 return Build.MANUFACTURER; 35 } 36 getAndroidBuildId()37 public static String getAndroidBuildId() { 38 return Build.ID; 39 } 40 getBuildType()41 public static String getBuildType() { 42 return Build.TYPE; 43 } 44 getBuildRelease()45 public static String getBuildRelease() { 46 return Build.VERSION.RELEASE; 47 } 48 getSdkVersion()49 public static String getSdkVersion() { 50 return Integer.toString(Build.VERSION.SDK_INT); 51 } 52 } 53