Index: base/android/java/src/org/chromium/base/BuildInfo.java |
diff --git a/base/android/java/src/org/chromium/base/BuildInfo.java b/base/android/java/src/org/chromium/base/BuildInfo.java |
index f00c4c6231ff0800bd4faeda9ca3b41416e91710..f1f60520db20b789fa29ffe02ddd07be52d667e8 100644 |
--- a/base/android/java/src/org/chromium/base/BuildInfo.java |
+++ b/base/android/java/src/org/chromium/base/BuildInfo.java |
@@ -5,6 +5,7 @@ |
package org.chromium.base; |
import android.annotation.TargetApi; |
+import android.app.ActivityManager; |
import android.content.Context; |
import android.content.pm.ApplicationInfo; |
import android.content.pm.PackageInfo; |
@@ -43,7 +44,7 @@ public class BuildInfo { |
} |
@CalledByNative |
- public static String getAndroidBuildId() { |
+ public static String getBuildId() { |
return Build.ID; |
} |
@@ -53,7 +54,7 @@ public class BuildInfo { |
* strings. |
*/ |
@CalledByNative |
- public static String getAndroidBuildFingerprint() { |
+ public static String getBuildFingerprint() { |
return Build.FINGERPRINT.substring( |
0, Math.min(Build.FINGERPRINT.length(), MAX_FINGERPRINT_LENGTH)); |
} |
@@ -118,11 +119,27 @@ public class BuildInfo { |
} |
@CalledByNative |
+ public static int getLargeMemoryClass(Context context) { |
+ ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
+ return am.getLargeMemoryClass(); |
+ } |
+ |
+ @CalledByNative |
public static String getBuildType() { |
return Build.TYPE; |
} |
@CalledByNative |
+ public static String getBuildVersionCodename() { |
+ return Build.VERSION.CODENAME; |
+ } |
+ |
+ @CalledByNative |
+ public static String getBuildVersionRelease() { |
+ return Build.VERSION.RELEASE; |
+ } |
+ |
+ @CalledByNative |
public static int getSdkInt() { |
return Build.VERSION.SDK_INT; |
} |