Loading tools/releasetools/sign_target_files_apks +3 −2 Original line number Diff line number Diff line Loading @@ -235,8 +235,9 @@ def RewriteProps(data): elif key == "ro.build.display.id": # change, eg, "JWR66N dev-keys" to "JWR66N" value = value.split() if len(value) == 2 and value[1].endswith("-keys"): value = value[0] if len(value) > 1 and value[-1].endswith("-keys"): value.pop() value = " ".join(value) line = key + "=" + value if line != original_line: print " replace: ", original_line Loading Loading
tools/releasetools/sign_target_files_apks +3 −2 Original line number Diff line number Diff line Loading @@ -235,8 +235,9 @@ def RewriteProps(data): elif key == "ro.build.display.id": # change, eg, "JWR66N dev-keys" to "JWR66N" value = value.split() if len(value) == 2 and value[1].endswith("-keys"): value = value[0] if len(value) > 1 and value[-1].endswith("-keys"): value.pop() value = " ".join(value) line = key + "=" + value if line != original_line: print " replace: ", original_line Loading