mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Update settings file
This commit is contained in:
parent
dcbb7ed204
commit
4927b8839a
2 changed files with 8 additions and 4 deletions
|
@ -171,8 +171,9 @@ class emmcinfo:
|
|||
res += f"m_emmc_gp_size[2] = {hex(self.m_emmc_gp_size[2])}\n"
|
||||
res += f"m_emmc_gp_size[3] = {hex(self.m_emmc_gp_size[3])}\n"
|
||||
res += f"m_emmc_ua_size = {hex(self.m_emmc_ua_size)}\n"
|
||||
val = pack("<QQ", self.m_emmc_cid[0], self.m_emmc_cid[1])
|
||||
res += f"m_emmc_cid = {hexlify(val).decode('utf-8')}\n"
|
||||
cid = pack("<QQ", self.m_emmc_cid[0], self.m_emmc_cid[1])
|
||||
res += f"m_emmc_cid = {hexlify(cid).decode('utf-8')}\n"
|
||||
writesetting("cid", hexlify(cid).decode('utf-8'))
|
||||
res += f"m_emmc_fwver = {hexlify(self.m_emmc_fwver).decode('utf-8')}\n"
|
||||
return res
|
||||
|
||||
|
@ -193,8 +194,9 @@ class sdcinfo:
|
|||
def __repr__(self):
|
||||
print(f"m_sdmmc_info = {hex(self.m_sdmmc_info)}")
|
||||
print(f"m_sdmmc_ua_size = {hex(self.m_sdmmc_ua_size)}")
|
||||
val = pack("<QQ", self.m_sdmmc_cid[0], self.m_sdmmc_cid[1])
|
||||
print(f"m_sdmmc_cid = {hexlify(val).decode('utf-8')}")
|
||||
cid = pack("<QQ", self.m_sdmmc_cid[0], self.m_sdmmc_cid[1])
|
||||
writesetting("cid", hexlify(cid).decode('utf-8'))
|
||||
print(f"m_sdmmc_cid = {hexlify(cid).decode('utf-8')}")
|
||||
|
||||
|
||||
class configinfo:
|
||||
|
|
|
@ -543,6 +543,7 @@ class DAXFlash(metaclass=LogBase):
|
|||
except:
|
||||
pass
|
||||
self.info(f"EMMC CID: {hexlify(emmc.cid).decode('utf-8')}")
|
||||
writesetting("cid", hexlify(emmc.cid).decode('utf-8'))
|
||||
self.info(f"EMMC Boot1 Size: {hex(emmc.boot1_size)}")
|
||||
self.info(f"EMMC Boot2 Size: {hex(emmc.boot2_size)}")
|
||||
self.info(f"EMMC GP1 Size: {hex(emmc.gp1_size)}")
|
||||
|
@ -646,6 +647,7 @@ class DAXFlash(metaclass=LogBase):
|
|||
except:
|
||||
pass
|
||||
self.info(f"UFS CID: {hexlify(ufs.cid).decode('utf-8')}")
|
||||
writesetting("cid", hexlify(ufs.cid).decode('utf-8'))
|
||||
self.info(f"UFS LU0 Size: {hex(ufs.lu0_size)}")
|
||||
self.info(f"UFS LU1 Size: {hex(ufs.lu1_size)}")
|
||||
self.info(f"UFS LU2 Size: {hex(ufs.lu2_size)}")
|
||||
|
|
Loading…
Reference in a new issue