OSDN Git Service
(root)
/
android-x86
/
system-extras.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
verity: Let the tools ask for a password if needed
[android-x86/system-extras.git]
/
verity
/
build_verity_metadata.py
diff --git
a/verity/build_verity_metadata.py
b/verity/build_verity_metadata.py
index
51e629a
..
479caf8
100755
(executable)
--- a/
verity/build_verity_metadata.py
+++ b/
verity/build_verity_metadata.py
@@
-5,6
+5,7
@@
import sys
import struct
import tempfile
import commands
import struct
import tempfile
import commands
+import subprocess
VERSION = 0
MAGIC_NUMBER = 0xb001b001
VERSION = 0
MAGIC_NUMBER = 0xb001b001
@@
-34,7
+35,9
@@
def sign_verity_table(table, signer_path, key_path):
table_file.flush()
cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
print cmd
table_file.flush()
cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
print cmd
- run(cmd)
+ runcmd = [signer_path, table_file.name, key_path, signature_file.name];
+ sp = subprocess.Popen(runcmd)
+ sp.wait()
return signature_file.read()
def build_verity_table(block_device, data_blocks, root_hash, salt):
return signature_file.read()
def build_verity_table(block_device, data_blocks, root_hash, salt):