OSDN Git Service

Fix a naming typo for source_build
authorTianjie Xu <xunchang@google.com>
Wed, 15 Jun 2016 19:31:53 +0000 (12:31 -0700)
committerTianjie Xu <xunchang@google.com>
Wed, 15 Jun 2016 19:34:04 +0000 (12:34 -0700)
When parsing the last_install, the variable name is supposed to be
*source_build* instead of *source_version*.

Bug: 28658632
Change-Id: I1e0ed7150e04885f904b6a3efa18bd5cfe17cc96

core/java/android/os/RecoverySystem.java

index 7ff01da..dd7be53 100644 (file)
@@ -730,7 +730,7 @@ public class RecoverySystem {
 
                 if (line.startsWith("time")) {
                     timeTotal = scaled;
-                } else if (line.startsWith("source_version")) {
+                } else if (line.startsWith("source_build")) {
                     sourceVersion = scaled;
                 } else if (line.startsWith("bytes_written")) {
                     bytesWrittenInMiB = (bytesWrittenInMiB == -1) ? scaled :