yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] satsmagic:
not at all buddy i saw these were the few active people helping out guys like me here, You help can also be of great use. Well i read thru the whole procedure you had mentioned and have few doubts

I have 8 img files in my stock ROM folder, namely - boot.img, cache.img, ramdisk.img, ramdisk-recovery.img, recovery.img, secro.img, system.img, userdata.img

Is there any specific order / sequence in which i should go about it. And shud i flash all of them 8.

Further for linear addresses, just wanted to be sure that I am understanding it correctly, please see below the text of my ROMs scatter file

PRELOADER 0x0

{

}

MBR 0x600000

{

}

EBR1 0x680000

{

}

__NODL_PMT 0x700000

{

}

__NODL_PRO_INFO 0xb00000

{

}

__NODL_NVRAM 0xe00000

{

}

__NODL_PROTECT_F 0x1300000

{

}

__NODL_PROTECT_S 0x1d00000

{

}

__NODL_SECCFG 0x2700000

{

}

UBOOT 0x2720000

{

}

BOOTIMG 0x2780000

{

}

RECOVERY 0x2d80000

{

}

SEC_RO 0x3380000

{

}

__NODL_MISC 0x3980000

{

}

LOGO 0x39e0000

{

}

EBR2 0x3ce0000

{

}

__NODL_EXPDB 0x3d60000

{

}

ANDROID 0x3e20000

{

}

CACHE 0x68f20000

{

}

USRDATA 0x89020000

{

}

__NODL_FAT 0x129120000

{

}

__NODL_BMTPOOL 0xFFFF00a8

{

}

Now if u see, it mentions, BOOTIMG 0x2780000, does that mean the linear address is 0x2780000

Also, FYI , i am tryin this on SPFT ver 5.13.52.200, is that fine or shud i search a newer version. If u can post a link for tht newer version tht wud be really hlpful.

And for your PS note, if the memory test says, NAND FLASH not detected and as u say Phone uses EMMC memory, so is that error (NAND FLASH not detected) a problem or not :confused::confused::confused::confused:

I AM A NOOB........

---------- Post added at 07:11 PM ---------- Previous post was at 07:10 PM ----------

thanks for giving me those links, but if u see on those links the unbrick procedure talks of only flashing the stock ROM and my problem is my stock ROM flashing process stops after flashing of Preloader. Anyways thnks i will keep searchingmore and keep updated if anything works, u too can let me know if u find anything. Thanks agn for all the efforts.

BTW just wanted to check, since my device is detected by the SPFT and even flashing works till preloader step, do i need to open it up and try the testing point thing, the wire and resistor ???
[Upgrading, Modifying and Unlocking] CVAngelo:
Yup. Those are the partition names along with the linear start address of each. It doesn't matter in what order you flash them. USE THE WRITE MEMORY TAB. Note: You should never flash the preloader. Also, you should not flash the protected partitions (they begin with the "_NODL" in the scatter...typically, you may not even have those image files in the ROM, but just don't flash them unless they've been wiped for some reason). You really only need to flash boot, recovery and system images to unbrick a soft-bricked phone in most cases of bootloop.

You can get the latest version of SPFT simply by selecting About in the drop down menu of SPFT...there is an option there to update to latest version if you don't already have it.

NAND flash not detected is not an issue if you don't have a NAND to flash. Your EMMC is where your ROM resides and that is where the flash will go.

BTW, you can always flash the preloader...but you should NEVER do that even if that's as far as SPFT could flash from the Download tab. The fact that you can flash till preloader and then SPFT goes no further may be an indication that you've corrupted the preloader by flashing it previously.

Go ahead and use the Write Memory tab as I explained. If SPFT is properly communicating with your device, it will flash the images. If it refuses to flash, you may have corrupted the preloader in which case you can only recover by forcing the stock preloader.bin to repopulate via soldering points on the board.

Good luck and keep us posted.
[Upgrading, Modifying and Unlocking] satsmagic:
Thanks buddy for al ur detailed instructions, however i get an error when i try to flash any IMG files using the Write memory tab. The error is as below:

BROM ERROR: S_DA_SDMMC_WRITE_FAILED (3149)

screenshot attached, let me know if there's any solution. The error comes up while flashing all IMG file, although the screenshot atttached is only for flashing recovery.img
[Upgrading, Modifying and Unlocking] CVAngelo:
No problem. Regarding the error message which is actually a hopeful error (meaning that it can be resolved):

*The battery in the phone is more than 50% charged?

*Are you running SPFT as Administrator?

*You are connecting the USB cable to the phone with the battery inside the phone (and the phone is tuned off and remains off, correct)?

*Make sure that only the preloader line is checked on the Download tab and nothing else.

*Try a different USB port, different USB cable

*Reboot your computer; pull the battery from phone and hold down power button for a few seconds, then replace it in the phone...but do not attempt to turn the phone on

*If all else fails, go to the Format tab and format the phone (EXCEPT Bootloader). Again, do not format the bootloader...so check the box that says EXCEPT bootloader. Then go back to Write Memory tab and try again.

*Is the USB Vcom Preloader showing as connected in the status line in bottom portion of the SPFT window?

UPDATE: I'm looking at the screenshot, and it does NOT appear that the phone is connecting to the Vcom PRELOADER driver which should come up after the USB Vcom driver. Did you install the Preloader driver? You may have to FORCE the MTK USB Vcom Preloader driver via Add Legacy Hardware in the Windows' Device Manager.
[Upgrading, Modifying and Unlocking] satsmagic:
thanks for the instructions, there's a Yes for all the questions but i dont get the last question and also ur instruction on how to FORCE the MTK USB Vcom Preloader driver via Add Legacy Hardware in the Windows' Device Manager. Do you have some link which guides on this
[Upgrading, Modifying and Unlocking] CVAngelo:
You have to install the MTK USB VCOM Preloader driver by force. Download the driver (or if you already know where it is on your disk), then select the Legacy Hardware option in Device Manager and install the MTK USB Vcom Preloader driver. The driver will appear permanently in the Device Manager window (with yellow question mark when you don't have any device connected).

Follow this guide here>> http://www.yomitech.com/2015/04/how-to-install-mediatek-usb-preloader.html
[Upgrading, Modifying and Unlocking] satsmagic:
tried this guide, installed the VCOM driver and again used the Write Memory option, still error 3149

Then i tried formatting, i get the following error:

BROM ERROR: S_PART_NO_VALID_TABLE (1037)

No valid partition for NAND Flash!

Screenshot attached.

Awaiting the next step :o
[Upgrading, Modifying and Unlocking] CVAngelo:
Well it looks like you've got the Preloader driver up and running. Well done! That's 90% of the probkem solved. Now you just have to get the thing flashed.

Can you go to the Download tab and try to flash this way? Use Download Only option. Do NOT check the preloader.bin line. This mode of flashing, you have to start with battery out, then slip it in just after you connect the USB cable.

Plsase, take a screenshot before any error message dialog pops up. I'd like to see what your scatter layout looks like.
[Upgrading, Modifying and Unlocking] satsmagic:
done that, see the screenies i have attached , getting an error as below

BROM ERROR: S_DL_PMT_ERR_NO_SPACE (5069)
[Upgrading, Modifying and Unlocking] CVAngelo:
I noticed that you have the Cache an UserData partitions checked in the scatter layout. Please uncheck them. You don't need to flash those. And then try again.
[Upgrading, Modifying and Unlocking] satsmagic:
a new error code:

BROM ERROR: S_FT_DA_NO_RESPONSE (4001)
[Upgrading, Modifying and Unlocking] CVAngelo:
Some things to try:

*Make sure your battery is fully charged

*Run SPFT as Administrator

*Press and hold the volume down button when you connect the USB cable

*Start with Battery IN the phone when your connect USB cable

*Try a different USB port

*Try a different shorter USB cable

*Try a different computer

*Try to flash without the battery (keep the battery out of the phone the entire duration)

*Try again to flash via the Write Memory tab

In other words, keep trying.
[Upgrading, Modifying and Unlocking] satsmagic:
thnks for all the help and suggestions, have tried it multiple times, seems its dead :(:crying:
[Upgrading, Modifying and Unlocking] CVAngelo:
It may very well be beyond repair. Sorry to hear it.
[Upgrading, Modifying and Unlocking] warhead619:
sir in my htc 816g in flash tools it keeps saying error 4032 enable drm failed ..is there any solution to this
[Upgrading, Modifying and Unlocking] KrimsonHart:
I don't know if this works for your device, but it did for mine. Can you deselect the 'Preloader' and try?
[Upgrading, Modifying and Unlocking] CVAngelo:
Depends on what the problem is:

*Are you completely sure that it is the correct ROM for your phone? Where did you get the ROM from?

* Did you install the correct MTK USB Vcom Preloader driver?

* Are you using the latest version of SP Flash Tool?

* Is the phone OFF when you are going to flash and does it stay off?

* Are all the boxes (except Preloader) in scatter checked? And for each of the checked boxes, you have specified the file to be flashed?

TAKE A SCREENSHOT OF THE SCREEN WHEN YOU GET THE ERROR AND POST IT! Without a screenshot, it's difficult to understand what you are doing or seeing.
[Upgrading, Modifying and Unlocking] darki0xox:
what about non removable battery mobiles?
[Upgrading, Modifying and Unlocking] CVAngelo:
What about them? What specifically is your question???
[Upgrading, Modifying and Unlocking] darki0xox:
i want to know how to unbrick my non removable htc 816G

it's stuck in bootloop after trying to install a custom rom
[Upgrading, Modifying and Unlocking] CVAngelo:
Follow the tutorial but with the battery in. There is no absolute requirement that a battery be removed. The only reason they tell you to remove the battery is to ensure that the device is FULLY OFF when you start the flash. Even if a bricked device appears to be off, it may still be on but with the screen black, in which case it will not flash. To guarantee that the device is off, you're advised to remove the battery first. If it is off when you start the flash, the device will pickup the preloader driver and connect for a successful flash.

Long story shortened...do not worry about your battery.
[Upgrading, Modifying and Unlocking] darki0xox:
the problem is when i connect the cable - the mobile automaticlly turned on , into charging mode :/ SP tools doesnt do anything that time :/
[Upgrading, Modifying and Unlocking] CVAngelo:
Have you installed the MTK USB Vcom Preloader driver? Also what is the make and model of your phone..is it an MTK device?
[Upgrading, Modifying and Unlocking] darki0xox:
nope i didnt install it but MTK droid tools identified my phone - win 10 64bit

HTC 816G d816h 0PG200 mtk - [ well i checked it on IMEI gave me that my mtk is 82 but mtk droid tools says MTK 6592 ] then idk which to decide

i think i flashed MIUI7 and recovery for mtk6582 :/ i think this is a problem too
[Upgrading, Modifying and Unlocking] CVAngelo:
I take it that you flashed the MIUI custom ROM using the custom recovery and that's what bricked your device.

MTK Droid Tools works with your phone ON and uses one set of drivers. SP Flash Tool works with your phone OFF and uses a different set of drivers.

You will not be able to flash your device with SP Flash Tool until and unless you install the Vcom Preloader driver! The preloader connects with a turned off device, and if you're running SPFT, the preloader prevents the battery charger part of the bootloader program from running! You are required to install the MTK USB VCOM Preloader driver or else you will not be able to flash your MTK device with SPFT no matter how hard you try.

Notwithstanding, there are some circumstances under which your device may effectively become hard bricked and even with the Vcom Preloader installed, you will not be able to flash if the device is not recognized when it is OFF. These circumstances include cases where: you've improperly flashed the preloader partition in the phone; you attempt to flash a locked bootloader; you flash the wrong bootloader into the phone; other bone headed moves. Lol. In these cases, the flash will not occur or will fail.

Obviously, you made a backup of your stock ROM with the custom recovery before you flashed the MIUI ROM, right? Just restore your backup using the custom recovery and you're all set. No need to use SP Flash Tool.
[Upgrading, Modifying and Unlocking] darki0xox:
okay i done all the steps

my pc now recognize the device correctly , but sp tools doesnt move from 0% after purble sign

first it was giving 1013 error but when i changed the usb port , it doesnt move from 0%

idk what to do exactly
[Upgrading, Modifying and Unlocking] CVAngelo:
You are almost there. So I have some questions:

What is your device make and model?

What version of SPFT are you using and are you running it as administrator?

What ROM are you now trying to flash?

Where did you get the ROM?

Even if SPFT doesn't progress from 0%, it will eventually give you an error message...what error number does it show?

Can you please upload a screenshot of the SPFT when it hangs up at 0%.
[Upgrading, Modifying and Unlocking] darki0xox:
model : HTC 816G D186h - 0PGL200

spft ver. : SP_Flash_Tool_v5.1524.00.000 & SP_Flash_Tool_V3.1344 [ the same issue with 0% ]

ROM stock rom " named " : 0PGL20000_A5MGP_DUG_K44_SENSE53_htc_europe_1.13.401.001_Radio_MOLY.WR8.W1315.MD.WG.MP.V34.P21 by jamesjerss

link http://androidtechnics.blogspot.com.eg/2015/06/htc-desire-816g-htc-d816h-dual-sim.html

about the screenshot it's just 0% it kept it for like 45 mins

the errors : in the start i had the 3013 error - changed the usb port , now no errors !
[Upgrading, Modifying and Unlocking] CVAngelo:
I said I need to see the screenshot bro. Where is it? Without that I cannot tell if your SPFT is connected to the preloader driver!

And you didn't answer my question...are you running SPFT as administrator or not?
[Upgrading, Modifying and Unlocking] robterza:
[MENTION=637263]bovirus[/MENTION] i need a batch to automate "readback" of "recovery.img", "boot.img", "System.img".

Any ideas? :confused:
[Upgrading, Modifying and Unlocking] Gentleman_1:
PMT Error

While trying to flash a ROM to my device with 4.2.2 android, I got the message: PMT changed for ROM it must be downloaded. There is no error number. How can I handle this?
[Upgrading, Modifying and Unlocking] nick (ATYCD):
In download your data will be swiped away and in uograde its safe

---------- Post added at 03:11 PM ---------- Previous post was at 03:09 PM ----------

First stop the process oprn tge flsh tool with run as administator put your battrry in to phone hit the download button and then connect your phone

---------- Post added at 03:12 PM ---------- Previous post was at 03:11 PM ----------

Just format your phone first

From sp FT
[Upgrading, Modifying and Unlocking] CVAngelo:
SPFT is finicky like that. You need to use the Write Memory tab in SPFT (which is hidden because it's extremely powerful but very dangerous). To open the tab, first enter SPFT advanced mode using the Control-Alt-V combination. Then go to Window in the menu bar and you will see Write Memory. Click on that to access the tab.

Click on the tab. There are only TWO fields to fill out. The name and location of the image you wish to flash, and the starting linear address in the phone's memory (in hex) where you would like to flash the file to.

This way you will be able to flash an entire ROM dump (single file) usually starting at 0x0, or you can separately flash all of the partition images that are contained in a ROM that is normally flashed via the Download tab. But if you get the PMT changed for the ROM when you use the Download tab, the Write Memory tab is the only way around it.

There are just 5 things you need to know in order not to muck up your phone when you use the direct Write Memory tab:

1. BACKUP YOUR PHONE FIRST (use the Read Back tab in SPFT and simply dump the whole ROM). You have been warned!

2. In order for the Write Memory to function, you MUST check the Preloader line on the Download tab and indicate the location/name of the preloader.bin file for your phone. If you don't have a preloader.bin file, you can easily Read Back the Preloader partition from the phone.

3. You can tell the starting linear address of each image to be flashed by opening the scatter.txt file in a text editor. The starting linear address is indicated for each partition along with the filename of the image. Do NOT use the starting physical address.

4. Whatever you do, do NOT flash the preloader.bin into the phone as this may brick certain phones. Flashing the preloader.bin is a risky last resort if you flashed the wrong preloader and your phone did not hard brick...assuming your phone can even be recognized by the computer.

5. To flash when using the Write Memory tab, you ALWAYS start with the phone off and the battery INSIDE the phone. Just click on the Write Memory icon and then connect the USB cable from the computer to the phone. The flash will proceed without any other intervention.
[Upgrading, Modifying and Unlocking] bovirus:
[MENTION=6532230] Gentleman_1[/MENTION]

What type of mode are using in Falshtool?FIRMWARE UPGRADE?
[Upgrading, Modifying and Unlocking] CVAngelo:
Not sure what you're asking me. Are you sure you're responding to something I posted? My last post was information about how to use the Advanced Mode in SPFT to reveal the Write Memory tab. You can flash anything to anywhere in the phone's memory with this method and it's the only way to solve "PMT changed for the ROM".

You are talking about Firmware Upgrade which is an option on the Download tab. These are two completely different things.
[Upgrading, Modifying and Unlocking] Gentleman_1:
[MENTION=6532230]CVAngelo[/MENTION]

Ok thanks I will look into this and report
[Upgrading, Modifying and Unlocking] bovirus:
[MENTION=6532230]CVAngelo[/MENTION]

You are right. Fixed.
[Upgrading, Modifying and Unlocking] TigerBP:
Mobiistar LAI 504c

so useful tutorial

and this is my problem:

- i had downloaded a stock rom for my phone (Mobiistar LAI 504c), and did not notice that is was made for Recovery (flashing directly on phone), then flash it with SP Flash Tool.

- everything was done (successful) but i could not boot it up. there was just a black as hell screen. the hard buttons now are useless - cannot do anything.

- i had tried flashing one more time, with another official rom, and this was the error:

- now my phone is not recognized by my pc although there is still a sound of connecting and disconnecting

i am so bored when you wrote in the post that there is no way to recover if flashing a wrong preloader << i am not sure if i had flashed the wrong preloader but hope i would recover it.

i will be very grateful if anyone can help me. thanks
[Upgrading, Modifying and Unlocking] CVAngelo:
Well if you look at the bottom right hand corner of the screen shot, you will notice that your phone is connecting via the USB COM Port. This means you cannot flash. The only way to flash is if you are connected via the Preloader USB Vcom port.

I don't know what you meant when you said that you flashed a flashable stock zip file with SPFT. How is that even possible? What exactly did you do to flash that zip file? Please explain in detail because I need to know whether you flashed over your preloader.bin. If you did, you likely hard-bricked your phone. The only way to recover from that kind of brick is to jumper your motherboard (this reinstalls the preloader which is hard coded on the board)...but that is work for a professional tech.

Anyway, you need to give me details about how you did that earlier flash that bricked the phone. If you are lucky, and did not hard brick, you may be able to install the MTK USB VCOM Preloader driver by force on your computer (using the Legacy Hardware menu option in the Device Manager). If the preloader on the phone can connect to the driver when you use SPFT, then you will be able to flash. Keep your fingers crossed.

Please reply with a detailed description of how you used SPFT to flash the zip for flashing via recovery.
[Upgrading, Modifying and Unlocking] TigerBP:
yea sorry for my bad English.

first i downloaded a stock rom. but actually it is used for recovery mode ( i did not notice). then flashed it via SPFT << the reason is because i see there are things for flashing with SPFT, like this:

and the progress was successful, but i cannot boot the phone.

and it has died since then.

then i tried to flash it again, both with the rom which i had just flashed and a new rom - used for SPFT, and it showed this error:

i think i have successfully installed the driver for my phone (so the flashing progress succeeded)

now, when plugging the phone to my computer then there is nothing happens but sounds of connecting and disconnecting
[Upgrading, Modifying and Unlocking] CVAngelo:
Well, that is a ROM that you could unzip then flash via SPFT. So flashing with SPFT was not the problem. The problem was that this may not have been the proper stock ROM for your phone.

What is your phone make and model number? And this first stock ROM was for which phone...where did you get it and why did you think it was the stock ROM for your phone? Who suggested it? And did you actually flash the preloader.bin file that is in that first ROM?

This may be the reason you can no longer connect for flashing. Yes, you probably installed the MTK USB VCOM Preloader driver correctly on your computer. But now your phone is not seeing it. So, in order to solve the problem, you MUST now try to FORCE the MTK USB VCOM Preloader driver to remain open. You force the driver using the Legacy Hardware menu option in Device Manager on your computer. When you install it this way, it will always appear in Device Manager (with a yellow exclamation point) even if your phone is not connected to the computer. Then, after you force the installation of the driver, you can try to use SPFT to flash the phone.

Try it and see if the flash can proceed. If SPFT doesn't connect with your phone via the preloader driver and proceed with flashing, then it means you probably flashed the preloader with the wrong file. And your phone may be hard bricked.

The lesson here for the future is that you must NEVER flash your preloader. You should ALWAYS uncheck the preloader box on the Download page when you flash. There are some phones which allow you to flash the preloader with the correct preloader and without problems. But the general rule is don't flash preloader if you can help it.
[Upgrading, Modifying and Unlocking] TigerBP:
yea i got that.

i am from Vietnam and my phone is Mobiistar LAI 504c. the rom i had flashed was got from the official site of the phone, and that means it was tested by many members (i had read the comments about it). but the matter was that i had not noticed that it was used for Recovery mode not for SPFT.

many thanks for you help. now my "brick" is being serviced. hope people could save it

again, thank you :o
[Upgrading, Modifying and Unlocking] Msf107252:
Hey guys i recently flashed my Good One J3 with SP Flash Tool after a successful Flash i restarted my device now the problem is it Starts but the screen has Pink Blue Orage all kinda colour lines and haze althrough the system bootlogo boot animation recovery with all modes this display issues are there before flashing it was not there

Plz help me out

Iff my ROM has probs. plz provide me a way to to it plz guys i need your help

What i did was i firstly did the Format All expect Boot loader and then Format All+Download.

Because it was giving me an error

I took rom from here