I tried the tool using normal/admin but both returned the same error:
PS C:\Users\User\Latest ADB Fastboot Tool> xiaomi_flashable_firmware_creator -F .\miui_ALIOTHIDGlobal_V13.0.2.0.SKHIDXM_80a5a01aa6_12.0.zip
Unzipping MIUI ROM...
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Scripts\xiaomi_flashable_firmware_creator.exe\__main__.py", line 7, in <module>
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\xiaomi_flashable_firmware_creator\xiaomi_flashable_firmware_creator.py", line 41, in main
new_zip = firmware_creator.auto()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 366, in auto
self.extract()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 340, in extract
self.extractor.extract(files_to_extract)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\xiaomi_flashable_firmware_creator\extractors\zip_extractor.py", line 73, in extract
self.handler.extract(files_to_extract)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\xiaomi_flashable_firmware_creator\extractors\handlers\android_one_zip.py", line 41, in extract
Path(self._tmp_dir / 'payload.bin').unlink()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 1204, in unlink
self._accessor.unlink(self)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\Latest ADB Fastboot Tool\\tmp\\payload.bin'
Any clue what might the problem be? I'm using the recovery rom from
https://xiaomifirmwareupdater.com/miui/alioth/stable/V13.0.2.0.SKHIDXM/