Commit efebf60a authored by Thoren Paulson's avatar Thoren Paulson Committed by Commit Bot

[Chromecast] Get board name in CastSysInfoAndroid.

Need a board name for Widevine's CDM.

BUG=internal 62721854
TEST=

Change-Id: I79850985dd11f29dc60f911f7bb5070d47e8efa5
Reviewed-on: https://chromium-review.googlesource.com/572225
Commit-Queue: Thoren Paulson <thoren@chromium.org>
Reviewed-by: default avatarLuke Halliwell <halliwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487132}
parent 60430141
......@@ -82,7 +82,9 @@ std::string CastSysInfoAndroid::GetSystemReleaseChannel() {
}
std::string CastSysInfoAndroid::GetBoardName() {
return "";
JNIEnv* env = base::android::AttachCurrentThread();
return base::android::ConvertJavaStringToUTF8(
Java_CastSysInfoAndroid_getBoard(env));
}
std::string CastSysInfoAndroid::GetBoardRevision() {
......
......@@ -22,4 +22,10 @@ public final class CastSysInfoAndroid {
private static String getSerialNumber() {
return Build.SERIAL;
}
@SuppressLint("HardwareIds")
@CalledByNative
private static String getBoard() {
return Build.BOARD;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment