mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-26 14:28:54 +00:00
Adds product name in iOS backup info module
This commit is contained in:
parent
f5abd0719c
commit
872d5d766e
|
@ -8,7 +8,7 @@ import os
|
|||
import plistlib
|
||||
|
||||
from mvt.common.module import DatabaseNotFoundError
|
||||
from mvt.ios.versions import latest_ios_version
|
||||
from mvt.ios.versions import latest_ios_version, get_device_desc_from_id
|
||||
|
||||
from ..base import IOSExtraction
|
||||
|
||||
|
@ -42,7 +42,15 @@ class BackupInfo(IOSExtraction):
|
|||
|
||||
for field in fields:
|
||||
value = info.get(field, None)
|
||||
self.log.info("%s: %s", field, value)
|
||||
# Converting the product type in product name
|
||||
if field == "Product Type" and value:
|
||||
product_name = get_device_desc_from_id(value)
|
||||
if product_name:
|
||||
self.log.info("%s: %s (%s)", field, value, product_name)
|
||||
else:
|
||||
self.log.info("%s: %s", field, value)
|
||||
else:
|
||||
self.log.info("%s: %s", field, value)
|
||||
self.results[field] = value
|
||||
|
||||
if "Product Version" in info:
|
||||
|
|
Loading…
Reference in New Issue
Block a user