| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chromecast.shell; | 5 package org.chromium.chromecast.shell; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; |
| 7 import android.os.Build; | 8 import android.os.Build; |
| 8 | 9 |
| 9 import org.chromium.base.annotations.CalledByNative; | 10 import org.chromium.base.annotations.CalledByNative; |
| 10 import org.chromium.base.annotations.JNINamespace; | 11 import org.chromium.base.annotations.JNINamespace; |
| 11 | 12 |
| 12 /** | 13 /** |
| 13 * Java implementation of CastSysInfoAndroid methods. | 14 * Java implementation of CastSysInfoAndroid methods. |
| 14 */ | 15 */ |
| 15 @JNINamespace("chromecast") | 16 @JNINamespace("chromecast") |
| 16 public final class CastSysInfoAndroid { | 17 public final class CastSysInfoAndroid { |
| 17 private static final String TAG = "CastSysInfoAndroid"; | 18 private static final String TAG = "CastSysInfoAndroid"; |
| 18 | 19 |
| 20 @SuppressLint("HardwareIds") |
| 19 @CalledByNative | 21 @CalledByNative |
| 20 private static String getSerialNumber() { | 22 private static String getSerialNumber() { |
| 21 return Build.SERIAL; | 23 return Build.SERIAL; |
| 22 } | 24 } |
| 23 } | 25 } |
| OLD | NEW |