aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/BuildInfo.java
blob: fc236b310d3485bf5fb3da3fb76dcb49e9493acc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 *  Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

package org.webrtc.voiceengine;

import android.os.Build;
import android.util.Log;

public final class BuildInfo {
  public static String getDevice() {
    return Build.DEVICE;
  }

  public static String getDeviceModel() {
    return Build.MODEL;
  }

  public static String getProduct() {
    return Build.PRODUCT;
  }

  public static String getBrand() {
    return Build.BRAND;
  }

  public static String getDeviceManufacturer() {
    return Build.MANUFACTURER;
  }

  public static String getAndroidBuildId() {
    return Build.ID;
  }

  public static String getBuildType() {
    return Build.TYPE;
  }

  public static String getBuildRelease() {
    return Build.VERSION.RELEASE_OR_CODENAME;
  }

  public static String getSdkVersion() {
    return Integer.toString(Build.VERSION.SDK_INT);
  }
}