Specify public key for PythonRSASigner

This commit is contained in:
vin01
2021-10-08 21:36:49 +02:00
parent 94a8d9dd91
commit 40b0da9885
+4 -1
View File
@@ -56,7 +56,10 @@ class AndroidExtraction(MVTModule):
with open(ADB_KEY_PATH, "rb") as handle:
priv_key = handle.read()
signer = PythonRSASigner("", priv_key)
with open(ADB_PUB_KEY_PATH, "rb") as handle:
pub_key = handle.read()
signer = PythonRSASigner(pub_key, priv_key)
# If no serial was specified or if the serial does not seem to be
# a HOST:PORT definition, we use the USB transport.