yashsingh1/xdaforums huggingface dataset:
[Realme 6 Guides, News, & Discussion] DjPlaymysong14:
Hello have you made the Linux version?
[Realme 6 Guides, News, & Discussion] dpr_dev:
Thank you for this guide, I have encountered an error on Tecno spark 8C(kg5j) when trying either of the commands in ubuntu.

Here is an output of the error.

-----

DAXFlash - [LIB]: xread error: unpack requires a buffer of 12 bytes

DAXFlash

DAXFlash - [LIB]: Error jumping to DA: -1

-----
[Realme 6 Guides, News, & Discussion] dpr_dev:
Check this out: https://github.com/bkerler/mtkclient/issues/52
[Realme 6 Guides, News, & Discussion] shadow460:
Fair warning, there are a TON of multiple GB dependencies to make this work. I'm seriously starting to wonder if trying to un brick my $1,800 device is even worth the trouble.

I have an RFinder B1+ with a MTK 6765 chipset. It has external batteries only and boot loops when one is attached due to a bad lk.img flash. The device does show up brieflu in Windows task manager as a MediaTek COM port when I plug in a USB cable with no battery attached.

Should I plug in the battery first or try to run mtkclient without it?
[Realme 6 Guides, News, & Discussion] newboihere:
I was using "wl" command (write list: write partitions from directory to flash) and I had a very dumb issue:

I moved the partition images to the mtkclient folder and started the wl comand, but when the partitions were all copied, the comand continued checking all the subfolders looking for more partition files to write to the phone... and it "found" one: inside of the python lib folder there is a file called gpt and the command overwrited my pgpt partition with that file!

Now of course any command trying to read or write partitions crash because the pgpt partition is corrupt.

I can read sectors and indeed I have confirmed that the contents of the first sectors (that would correspond to pgpt partition) actually contains plain text from the pgt file at python lib folder.

Before this mistake, I saved the gpt table to a file and I also have gpt scatter information from my phone.

I would need help to restore the pgpt partition using the sgpt partition or using the pgt scatter information, or the gpt table copied from my phone before the deletion or any other way to restore the phone...

Someone can help me?
[Realme 6 Guides, News, & Discussion] Jaguar_90:
I Have a lg k61, I can use mtkclient but I have no fastboot. Im wondering if its posible to boot a bin without flashing it (like fastboot boot recovery.img) because I think that the only reazon I cant install a working twrp in my device is the way I flash it, directly to boot partition.

Maybe is it possible to flash the recovery to b slot, force boot from that slot, flash from twrp the zip to boot_a partition, then set a slot?
[Realme 6 Guides, News, & Discussion] darklight_69:
Hi, not quite sure with the terminologies in the commands part, if i want to root /give root access to my phone which command should i use?
[Realme 6 Guides, News, & Discussion] Jaguar_90:
You read to your pc from your phone vía mtkclient the boot_a.bin. You then rename it to boot_a.img, then you turn on your phone, move the img to it, install magisk, patch the boot.img, move it to your pc again, rename the patched to *.bin again and flash it to your boot_a partition vía mtkclient.
[Realme 6 Guides, News, & Discussion] darklight_69:
if it's not bothering, could you please make a detailed step by step or link a post for a detailed instruction on how to exactly do what youve said? sorry i am having a hard time comprehending the steps, dont want to mess the procedure, thank you

or can i pm u instead?
[Realme 6 Guides, News, & Discussion] magi44ken:
Here is a more detail steps.

You need to find out if the Phone is using AB slot or not. For AB slot partitions, you need to know which slot is active and flash accordingly.

Use Mtkclientand to copy the boot_a.bin.

For AB slot: python mtk r boot_a boot_a.bin

For AB slot: python mtk r boot_b boot_b.bin

For single slot: python mtk r boot boot.bin

You rename it to boot_a.img

Copy the boot_a.img to phone's internal storage.

Install Magisk on the phone.

Open Magisk app.

Click the Install button .

Select the patch the image file option.

After you patched boot_a.img, copy the patched boot_a.img to the PC.

Rename the patched boot_a.img to boot_a.bin.

Use MTKClient to flash it to the boot_a partition.

For AB slot: python mtk w boot boot.bin

For AB slot: python mtk w boot_a boot_a.bin

For single slot: python mtk w boot_b boot_b.bin
[Realme 6 Guides, News, & Discussion] darklight_69:
edited this instead sicne i cant delte this reply, please ignore this one
[Realme 6 Guides, News, & Discussion] darklight_69:
i want to ask some questions here in advance after reading the entire process so i can reduce the unnecessary replies from me lol

-my phone is using a/b slot and is currently on B slot

do i need to run all of them one by one?

and in 2nd command's case, sicne i'm currently in slot b should i rename "boot_a | boot_a.bin" to "boot_b | boot_b.bin"?

okay for this part its just changing the extension

you mean like the regular transfer when the phone is on right? XD

well, the earlier questions will clear the confusion in this part anyways but i still got the gist of it.

also on this post, it mentioned something about vbmeta.img, do i no longer need that?
[Realme 6 Guides, News, & Discussion] 55TT55:
Hello, if I have a bin file (Rom1) from another device, can I read the rpmb key with mtkclient this way?
[Realme 6 Guides, News, & Discussion] Medionato:
I do not understand these messages:

mtkclient-main\mtk_gui:557: DeprecationWarning: Enum value 'Qt::ApplicationAttribute.AA_EnableHighDpiScaling' is marked as deprecated, please check the documentation for more information.

QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)

...and...

\mtkclient-main\mtk_gui:118: DeprecationWarning: Function: 'QLibraryInfo.location(QLibraryInfo.LibraryPath location)' is marked as deprecated, please check the documentation for more information.

translations_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)

When trying to flash the preloader, the execution of the command started like this:

Device detected : )

Preloader - CPU: MT6771/MT8385/MT8183/MT8666(Helio P60/P70/G80)

Preloader - HW version: 0x0

Preloader - WDT: 0x10007000

Preloader - Uart: 0x11002000

Preloader - Brom payload addr: 0x100a00

Preloader - DA payload addr: 0x201000

Preloader - CQ_DMA addr: 0x10212000

Preloader - Var1: 0xa

Preloader - Disabling Watchdog...

Preloader - HW code: 0x788

Preloader - Target config: 0x0

Preloader - SBC enabled: False

Preloader - SLA enabled: False

Preloader - DAA enabled: False

Preloader - SWJTAG enabled: False

Preloader - EPP_PARAM at 0x600 after EMMC_BOOT/SDMMC_BOOT: False

Preloader - Root cert required: False

Preloader - Mem read auth: False

Preloader - Mem write auth: False

Preloader - Cmd 0xC8 blocked: False

Preloader - Get Target info

Preloader - BROM mode detected.

Preloader - HW subcode: 0x8a00

Preloader - HW Ver: 0xca00

Preloader - SW Ver: 0x0

Preloader - ME_ID: 5649224A4BD6F0263F7ABC130DCE05AA

Preloader - SOC_ID: 67EB8D8456F3D36A30C5801507195F549290F216EF032600F78136D5E0D540D5

Preloader - Status: Waiting for PreLoader VCOM, please connect mobile

It is a Unihertz Titanium (UFS) that stopped responding. The previous owner tried to prepare the bottles of Gargoyle-LOS20 by deleting user data, cache and system. I would like to help him and save the device for him.

I would like to use the graphical interface of mtkclient. But unfortunately the tool does not load the files from the unpacked stock ROM...where do I have to put the files in the mtkclient-main directory?
[Realme 6 Guides, News, & Discussion] darklight_69:
how come your preloader gets detected? mine only shows up for 1 sec in device manager
[Realme 6 Guides, News, & Discussion] Medionato:
I tried installing directly from here: https://github.com/bkerler/mtkclient. It works for the most part. But I would have liked to use the graphical interface, but that somehow fails. The files don't load into the selection windows and the command buttons don't respond either. Only the terminal control works. But I could not flash the preloader yet. The battery of the device doesn't seem to be charged either. I can't control this...is this possibly a hindering problem?
[Realme 6 Guides, News, & Discussion] mvikrant97:
Which device are you using?
[Realme 6 Guides, News, & Discussion] darklight_69:
anybody knows how to solve this problem? i get this whenever i try to extract boot.bin

.DeviceClass
DeviceClass - [LIB]: ←[31mCouldn't get device configuration.←[0m
[Realme 6 Guides, News, & Discussion] mvikrant97:
Which device?

Please share the full log here.
[Realme 6 Guides, News, & Discussion] magi44ken:
Google search "how install magisk without twrp". Watch some of the video and you will get a better understanding of the steps.

I make a typo and it should be:

For AB slot: python mtk r boot_a boot_a.bin

For AB slot: python mtk r boot_b boot_b.bin

Usually you only need to flash to the active slot.

Copy is the same as transfer. You simply copy files between the PC and your phone. The internatl storage is the built-in storage and external storage is the SD card if you have one.

The vbmeta.img is use for unlocking bootloader. Magisk only needs the boot.img.

Good luck.
[Realme 6 Guides, News, & Discussion] darklight_69:
DEVICE: Infinix hot 20 x6826c

Microsoft Windows [Version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.

C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient>mtk r boot_b boot_b.bin
MTK Flash/Exploit Client V1.6.2 (c) B.Kerler 2018-2023

Preloader - Status: Waiting for PreLoader VCOM, please connect mobile

Port - Hint:

Power off the phone before connecting.
For brom mode, press and hold vol up, vol dwn, or all hw buttons and connect usb.
For preloader mode, don't press any hw button and connect usb.
If it is already connected and on, hold power for 10 seconds to reset.

...DeviceClass
DeviceClass - [LIB]: ←[31mCouldn't get device configuration.←[0m
........

Port - Hint:

Power off the phone before connecting.
For brom mode, press and hold vol up, vol dwn, or all hw buttons and connect usb.
For preloader mode, don't press any hw button and connect usb.
If it is already connected and on, hold power for 10 seconds to reset.

Traceback (most recent call last):
File "C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient\mtk", line 815, in <module>
mtk = Main(args).run(parser)
File "C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient\mtkclient\Library\mtk_main.py", line 619, in run
mtk = da_handler.configure_da(mtk, preloader)
File "C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient\mtkclient\Library\mtk_da_cmd.py", line 78, in configure_da
mtk.preloader.init()
File "C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient\mtkclient\Library\mtk_preloader.py", line 153, in init
res = self.mtk.port.handshake(maxtries=maxtries)
File "C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient\mtkclient\Library\Port.py", line 102, in handshake
time.sleep(0.3)
KeyboardInterrupt
^CTerminate batch job (Y/N)? y

C:\Users\hanzo\AppData\Local\Programs\Python\Python39\mtkclient>
[Realme 6 Guides, News, & Discussion] Zpec_01:
need help flashing a stock rom on infinis hot 20 x6826c
[Realme 6 Guides, News, & Discussion] mvikrant97:
Is it MTK CPU?
[Realme 6 Guides, News, & Discussion] 55TT55:
I have rom1 which is 16GB it work with MTK Cpu. Can someone help me read rpmb key from it using mtkclient program?
[Realme 6 Guides, News, & Discussion] mvikrant97:
Which phone?
[Realme 6 Guides, News, & Discussion] 55TT55:
Is there a possibility at all?

This is not software from the phone but from the Sony TV. Is it possible to find rpmb key from rom1 using phone and mtkclient? I can share the link for rom1.
[Realme 6 Guides, News, & Discussion] Zpec_01:
yeah
[Realme 6 Guides, News, & Discussion] darklight_69:
we both have the same device lol
[Realme 6 Guides, News, & Discussion] Zpec_01:
Did you manage to flash the stock rom?
[Realme 6 Guides, News, & Discussion] Zpec_01:
nvm i fixed mine using fastboot
[Realme 6 Guides, News, & Discussion] 8terloin:
It seems POCO X4 GT with MT6895(Dimensity 8100) can notunlock bootloader instantly via this method QQ, if anyone has other ways to skip 168 hrs?
[Realme 6 Guides, News, & Discussion] darklight_69:
so did you manage to root your device? can you tell me the exact steps to root it?
[Realme 6 Guides, News, & Discussion] darklight_69:
did you like nextract the boot.bin from the device using mtk client or you downloaded a spare firmware?
[Realme 6 Guides, News, & Discussion] Zpec_01:
I just downloaded the stock rom
[Realme 6 Guides, News, & Discussion] darklight_69:
where?
[Realme 6 Guides, News, & Discussion] darklight_69:
can you please provide your phone's build number as well as the download link for the stock rom? thank you

edit: im going to use the build number to compare it to mine. also is your cpu named "MT6769V/CZ"???
[Realme 6 Guides, News, & Discussion] Zpec_01:
Do we have the same device?
[Realme 6 Guides, News, & Discussion] Zpec_01:
Yep same cpu name.
[Realme 6 Guides, News, & Discussion] darklight_69:
same infinix model i also have hot 20 x6826c,

so where did you download the stock rom?
[Realme 6 Guides, News, & Discussion] darklight_69:
what about your phone's build number?
[Realme 6 Guides, News, & Discussion] Zpec_01:
i can just send you the stock rom
[Realme 6 Guides, News, & Discussion] Zpec_01:
here
[Realme 6 Guides, News, & Discussion] Zpec_01:
nvm i cant send it
[Realme 6 Guides, News, & Discussion] darklight_69:
unfortunately it looks liek you will need to use a file hosting service to do that
[Realme 6 Guides, News, & Discussion] Zpec_01:
done?
[Realme 6 Guides, News, & Discussion] oh00:
how to make a full dump of the phone and then upload it back to the same phone?

Spoiler content hidden.

then

Spoiler content hidden.

is it correct?
[Realme 6 Guides, News, & Discussion] Kireej:
how do i use this to boot phone to brom? or edl or whatever? what is the command if im in adb?
[Realme 6 Guides, News, & Discussion] darklight_69:
for me, i used "adb reboot fastboot" then on the next screen i was able to pick reboot to bootloader mode
[Realme 6 Guides, News, & Discussion] Alixbot:
Hey I tried

python mtk rl --skip userdata /tomyfolder

and I don't see a recovery.bin anywhere?

EDIT:

Just found out that A/B partition devices merged the Recovery into the boot partitions. Ugh I feel so old.
[Realme 6 Guides, News, & Discussion] Codename_Falcon:
Cannot run the pip3 install command...

'pip3' is not recognized as an internal or external command, operable program or batch file.

What am I missing? There is no "pip3" file in the mtkclient-main folder.

EDIT: Got past this step. You should add a step to indicate to add the path to the Python Scripts directory to the system environment variables (ie. C:\Program Files\Python311\Scripts).
[Realme 6 Guides, News, & Discussion] Codename_Falcon:
Do you know how to get the gui portion of mtk to work? When I try to launch it I receive an error

File "mtk_gui", line 15, in <module>

from PySide6.QtGui import QTextOption, QPixmap, QTransform, QIcon, QAction

ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.
[Realme 6 Guides, News, & Discussion] SubwayChamp:
Be sure that you installed successfully the requirements.txt
[Realme 6 Guides, News, & Discussion] Robin46:
Hello. I congratulate you for this brilliant and useful exposition that you do. I am particularly interested in knowing two things and I would be interested in you explaining it right here.

1. It is NOT a specific requirement that the device has already been unlocked, is it?

2. Specifically, I want to know how I can extract (if it is correct to say so) the c o m p l e t e ROM of my device with this procedure, since I cannot find it anywhere on the web. A good friend on XDA suggested that I do it with this same software, only I am completely unaware of it and would not like to damage my device. I will be very grateful to you. It would be even better if you included the procedure to reinstall the same ROM that was pulled before, on the same device.

Sincerely THANK YOU in advance!
[Realme 6 Guides, News, & Discussion] SubwayChamp:
In the first post you can see, that with this procedure, you can unlock bootloader, so not, it´s not a requirement.

Also in the first post you can see the commands used to achieve both, extract and flash back to the device.

python mtk r boot path-of-folder/boot.img is to read/extract/dump, for example the boot image, and python mtk w boot path-of-folder/boot.img, is to flash/write back that image. inside the mtk-main zip, you´ll find a README.md file, you can open it with any text editor/reader, I use Notepad++, in it you´ll find more instructions too.

Be aware that dumping the data partition, would take more than 100GB, so it´s not convenient to do this with this tool.

And there are other partitions which the backup are not practical, like the recovery, super images, for example.
[Realme 6 Guides, News, & Discussion] shintaro_iwata:
Hi,

I do not see a usbdkinstaller.exe in the zip file. How do I install usbdk? I think that is the problem to why I keep getting handshake failed error.
[Realme 6 Guides, News, & Discussion] SubwayChamp:
If you see carefully the mtk-client tool GitHub site, you´ll find the usbdk installer.
[Realme 6 Guides, News, & Discussion] MarkLev:
Hello @newboihere

I somehow got into similar problem here, I trashed my gpt partition.

How did you resolve your issue back then?
[Realme 6 Guides, News, & Discussion] Isaac™:
I did the whole procedure to unlock the bootloader, it said it had unlocked but I restarted and it was still blocked 😓

mediatek helio p22
[Realme 6 Guides, News, & Discussion] Isaac™:
I saw a lot of comments about restoring the rom. there is mtk client guide called mtk client gui 2.0 it is much easier to use

i recovered my device using it
[Realme 6 Guides, News, & Discussion] Isaac™:
put in mtk client detection mode and try to press all the buttons (except the power) then press the power and put the usb cable
[Realme 6 Guides, News, & Discussion] Kireej:
I have tried this with a blu view 3 and can never get mtk client to respond. And if it does come close it always gives handshake error. Same with spflash tool i have never been able to use it with any of my mediatek devices. Nothing happens ever except errors. I know i have correct drivers as i have rooted an alcatel 5032w with mtkclient and it has the exact chipset as the blu view 3.
[Realme 6 Guides, News, & Discussion] luridphantom:
check your security patch version, anything after jan 2022 is patched
[Realme 6 Guides, News, & Discussion] Isaac™:
my patches are from september 2021 😢
[Realme 6 Guides, News, & Discussion] luridphantom:
try different button combos?
[Realme 6 Guides, News, & Discussion] Ben Sip:
Fiddling around and I erased all the partition can this tool create partition if not do you know any to use in Linux?
[Realme 6 Guides, News, & Discussion] Ben Sip:
Nevermind got it.

./mtk payload

then flash with spflashtool.
[Realme 6 Guides, News, & Discussion] SubwayChamp:
how did you get SPFT working in Linux?, using Ubuntu 23.04, I can´t fix dependencies.
[Realme 6 Guides, News, & Discussion] htc-8925:
I have a Motorola G Power 2022 (MBM-2.1-tonga BL and MT6762_TC2.PR.SP.V56.2.P4.04.36.05R BB) and I can't even get the piece of excrement to be recognized by MTKC no matter what I do.
[Realme 6 Guides, News, & Discussion] luridphantom:
mtkclient doesnt work with moto phones at all
[Realme 6 Guides, News, & Discussion] Ben Sip:
Fixing SPFT dependencies a little bit out of context for this thread. However, I am using SPFT v5.2208 on Debian 12. Try sudo apt install the missing libs whatever the libs are. I think I was mostly getting libqtwebkit4 dependency error on older versions of SPFT.

Another method: In mtkclient you can use mtk_gui to flash to partition. If you have a backed up dump then select the folder -> open and click on write partition. You can also select the stock rom/firmware folder containing the *.img files if you don't have a backup. Atleast this should get you to fastboot or recovery mode then continue from there
[Realme 6 Guides, News, & Discussion] Ben Sip:
Seems like you didn't install mtkclient properly. If you use windows, make sure you have a valid port driver installed and usbdk working. Also make sure you've installed all needed pip packages as stated in the readme.
[Realme 6 Guides, News, & Discussion] htc-8925:
@Ben Sip is this credible?

What do I use to unlock this piece of ****'s bootloader then?
[Realme 6 Guides, News, & Discussion] SubwayChamp:
Thanks, maybe the issue is with Ubuntu, in Debian may work though.

I always use mtk-client too, just for reference, I couldn´t get it working with a previous device already fixed (R9a), for this reason I opted trying with SPFT.
[Realme 6 Guides, News, & Discussion] SubwayChamp:
Not, you have to try it anyway, mtk-client is irrelevant of the OEM, but the processor. Just keep in mind that some vendors, (I know of some Alcatel devices), not allowing the bootloader to be unlocked, may have an extra "punishment" to do so, IMEI/MAC/calibration lost.
[Realme 6 Guides, News, & Discussion] Ben Sip:
@htc-8925

Not all Motorola but MediaTek is or has been releasing massive security updates such as secure boot mechanisms, cryptographic operations, and hardware-based security modules to protect devices from unauthorized access and threats.

Honestly, if your MTK chip firmware is from around mid 2022 upward and you continuously see

Port - Hint:

Power off the phone before connecting.
For brom mode, press and hold vol up, vol dwn, or all hw buttons and connect usb.
For preloader mode, don't press any hw button and connect usb.
If it is already connected and on, hold power for 10 seconds to reset.

and after doing all still nothing just don't bother. I had a MT6757 SoC I could access brom/preloader using mtkclient but updating to a firmware of July 2022 I can't access the same phone. My only option is In-System Programming. I'd suggest you wait a while and don't try In-System Programming you might end up bricking your phone unless you absolutely know what you are doing. Some manufacturers are implementing the security update while some are not.
[Realme 6 Guides, News, & Discussion] luridphantom:
if you have good hacking skills you could probably crack the lk or something like that kinda like this guy @severagent007 did https://xdaforums.com/t/guide-how-to-unlock-bootloader-on-e6s.4444369/

moto has their own custom bootloader stack so without cracking their own security there is no way to use mtkclient to unlock bl
[Realme 6 Guides, News, & Discussion] htc-8925:
how would one manage to get mfastboot and mtkclient and such to play nice together just one FREAKING TIME to help me do what SO MANY people have claimed they can do? would I be better off trying using the FireISO (Amonet/Kamikiri linux environment)? Someone should go through and correct the title "PROBABALY NOT GONNA HAPPEN ON A MOTOROLA" in all their click-bait posts
[Realme 6 Guides, News, & Discussion] Ben Sip:
I am on the assumption that you can see your phone on your PC .Correct?

2. Is it a carrier-exclusive phone(sold to you by telco provider maybe with their logo on it ?) does it show telco provider logo when booting etc?

3. On the phone and boot i.e you can see the home page then connect to your PC run mtk payload then press and hold the power button keep holding for about a minute. Make sure you can see your phone if you are on Windows O/S check in device manager if linux lsusb.

Provide feedback with result of each step you followed.
[Realme 6 Guides, News, & Discussion] luridphantom:
mtkclient is flaky on windows, use linux
[Realme 6 Guides, News, & Discussion] jerian01:
hi so i have a samsung A 107m which i unlocked the bootloader and installed twrp. Somehow after doing so it now refuses to boot. I can get into download mode but odin gives an error. The device is now in a bootloop. how can i use mtkclient to flash the scatter file and revert it to stock?

any help would be appreciated