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; 12 13 import android.os.Build; 14 import org.webrtc.CalledByNative; 15 16 public final class BuildInfo { getDevice()17 public static String getDevice() { 18 return Build.DEVICE; 19 } 20 21 @CalledByNative getDeviceModel()22 public static String getDeviceModel() { 23 return Build.MODEL; 24 } 25 getProduct()26 public static String getProduct() { 27 return Build.PRODUCT; 28 } 29 30 @CalledByNative getBrand()31 public static String getBrand() { 32 return Build.BRAND; 33 } 34 35 @CalledByNative getDeviceManufacturer()36 public static String getDeviceManufacturer() { 37 return Build.MANUFACTURER; 38 } 39 40 @CalledByNative getAndroidBuildId()41 public static String getAndroidBuildId() { 42 return Build.ID; 43 } 44 45 @CalledByNative getBuildType()46 public static String getBuildType() { 47 return Build.TYPE; 48 } 49 50 @CalledByNative getBuildRelease()51 public static String getBuildRelease() { 52 return Build.VERSION.RELEASE; 53 } 54 55 @CalledByNative getSdkVersion()56 public static int getSdkVersion() { 57 return Build.VERSION.SDK_INT; 58 } 59 } 60