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)
committerMichael Bestas <mikeioannina@gmail.com>
Fri, 6 Jan 2017 23:37:40 +0000 (01:37 +0200)
* 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 8fbf868..b322611 100755 (executable)
@@ -503,6 +503,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" % (