OSDN Git Service

releasetools: don't attempt to read fingerprint on unified devices
authorDan Pasanen <dan.pasanen@gmail.com>
Thu, 15 Oct 2015 14:10:50 +0000 (09:10 -0500)
committerSteve Kondik <steve@cyngn.com>
Sun, 4 Sep 2016 04:47:36 +0000 (21:47 -0700)
* You wont find this in the build.prop on these devices and this is
  how we handled them in previous versions

Change-Id: I56332c87916da1a1206980df0e7a6ca8a55f0e8e

tools/releasetools/ota_from_target_files.py

index d1bd71e..008f687 100755 (executable)
@@ -492,6 +492,8 @@ def GetOemProperty(name, oem_props, oem_dict, info_dict):
 
 
 def CalculateFingerprint(oem_props, oem_dict, info_dict):
+  if OPTIONS.override_prop:
+    return GetBuildProp("ro.build.date.utc", info_dict)
   if oem_props is None:
     return GetBuildProp("ro.build.fingerprint", info_dict)
   return "%s/%s/%s:%s" % (