mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 08:29:03 +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
|
import plistlib
|
||||||
|
|
||||||
from mvt.common.module import DatabaseNotFoundError
|
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
|
from ..base import IOSExtraction
|
||||||
|
|
||||||
|
@ -42,6 +42,14 @@ class BackupInfo(IOSExtraction):
|
||||||
|
|
||||||
for field in fields:
|
for field in fields:
|
||||||
value = info.get(field, None)
|
value = info.get(field, None)
|
||||||
|
# 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.log.info("%s: %s", field, value)
|
||||||
self.results[field] = value
|
self.results[field] = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user