[Q] flash tool produces bad backup file - Android Q&A, Help & Troubleshooting

I have Android 4.0.4 device (Bluebo B3000) with MTK 6575.
I'm trying to backup my ROM.
I'm using the MTK Flash_Tool_v3.1206.01.
I do "read back" to create a backup ROM file:
- I select the "read back" tab.
- I select the scatter file
- I specify the file name
- I select the read method "read page" (I also tried the other methods. same result).
- I specify an address range to read. For example 0x0000 - 0x1000
- I press "read back" button.
- I put the battery into the device.
- I get a success message.
The backup file is created. But the file is full with zeros.
When I try to read the file for writing a ROM, the FlashTool tells me that the file is corrupted.
What I am doing wrong?

Related

Flash your Rom (kdz) from lgmdp

Afraid of kdz updater , here is an alternative to
FLASH STOCK ROM
Note: Donot use this method from emergency mode unless you already have a backup of your nv
Note: using this prodcedure there should be no disconnection of phone or power cut.
DO THIS ON YOUR OWN RISK, I WILL HAVE NO LIABILITY IF YOU BRICK YOUR PHONE !!!
download lgmdp : Download here
1. disable lg modem
( in right click mycomputer->manage->device manager->modems->right click on lg modem disable it)
2. now connect your phone to pc.
3. start lgdmp
4. click "select port"
Phone will be automatically detected press "connect"
(close the pop up window of image select generally you will get it on connect of lgmdp)
5. backup nv for safety (tools->nv backup)
6. After backup , store this nv file somewhere in computer (and remember where you stored lol..)
7. close lgmdp
Now you need
1. Firmware download application by crecked : (Check this url)
If above application doesnot work for you follow Original ROM : (Check this URL)
2. LG Utils 0.4.2 (Download Here)
Step 1: First we need to get a dz from the kdz (original firmware), extract LG Utils 0.4.2 and open KP500-Utils-EN.exe
(You need to run this as administrator, or else you are getting an empty .cab file)
Step 2: Select the I option (Extract files from KDZ file), and type the route to your .kdz file (Mine is C:\V10A_00.kdz).
Now, you must have a V10A_00.cab (Or another name, it depends on the stock rom you downloaded).
Step 3: Open .cab file with a extractor like 7zip or rar or similar and extract the file "LGP500AT-00-V10a-EUR-XX-SEP-25-2010+0.dz" from V10A_00.cab
(Or another name, it depends on the stock rom you downloaded).
Step 4: Start lgdmp
Step 5: Click "select port"
Phone will be automatically detected press "connect"
Step 6: Press "DZ" (in right corner of image selection window which poped up)
or (if no window poped up press "select image" in lgmdp then press "DZ" (in right corner))
Step 7: Browse for the dz file you extracted in step 1
Step 8: In the drop down box select "ERASE EFS APPS"
Step 8: Start
DONOT DISCONNECT YOUR MOBILE UNTILL IT SHOWS DOWNLOAD COMPLETE AT BOTTOM
it shows in middle trying to connect to phone etc. donot touch the phone it will be automatically connect everytime.
After download complete you are done with procedure.
----------------------------------------------------------------------------------------------------------------------------------------------
I'd like to thank:
janitux (Cook your custom rom for LG P500)
The_ERROR (for Original LG Firmware list)
crecked (for Application for download Original LG Firmware)
----------------------------------------------------------------------------------------------------------------------------------------------
Note : Creating nv with different imei is illegal.
For people who messed up with nv, lost their nv follow http://forum.xda-developers.com/showthread.php?t=534704 to create nv.
----------------------------------------------------------------------------------------------------------------------------------------------
NV will be automatically restored at the end before you see download complete.
If any error occured while restore of nv
follow below steps to restore nv
put the nv file which you backed up in first part of procedure in this order*
create new folder
- rename folder: <your_imei_(on_which_nv2_is_created)>
- create new folder in <your_imei_(on_which_nv2_is_created)>
named <port no.> on which your phone is connected
(ex:for com4 name folder as " _COM_4_" (without quotes), you can find
port number when you click on "select port" when connecting mobile to
lgmdp under port column.)
- now place nv2 file in this folder <port no.>
- so now u r nv2 file is in
" \<your_imei_(on_which_nv2_is_created)>\<port no.>\ "
- now place lgmdp.exe and <your_imei_(on_which_nv2_is_created)> in
new folder
- start lgmdp
- "select port"
- "connect"
- press "NV Restore"
----------------------------------------------------------------------------------------------------------------------------------------------
why did you open another thread on this? you already have one here:
http://forum.xda-developers.com/showthread.php?t=1324105
sweetnsour said:
why did you open another thread on this? you already have one here:
http://forum.xda-developers.com/showthread.php?t=1324105
Click to expand...
Click to collapse
The thread you mentioned is only for flashing v10e or v20c (indian versions)
In this thread we can see procedure to flash any version by using extracted dz file from kdz.
I thought this would be helpful for people who want to flash stock rom from different countries having different versions of rom.
I followed your instructions and it all went well. I have stock rom installed and all it's working fine.
One question though: before the install was finished lgmdp gave me an NV restore error!!
Should I worry or it's something normal?
dodialfaed said:
I followed your instructions and it all went well. I have stock rom installed and all it's working fine.
One question though: before the install was finished lgmdp gave me an NV restore error!!
Should I worry or it's something normal?
Click to expand...
Click to collapse
Did you back up nv as mentioned in first part ?
Are u able to use GSM and data (connected to your sim network) ?
Yes I can use gsm and data, all is working well.
Yes I backed-up the nv on my pc.
As far as I know everything went ok. It's just that it gave me that error...
dodialfaed said:
Yes I can use gsm and data, all is working well.
Yes I backed-up the nv on my pc.
As far as I know everything went ok. It's just that it gave me that error...
Click to expand...
Click to collapse
Store that nv file with you.
If you face any difficulty in gsm or data, then flash that nv.
I prefer you do restore your nv once, as you said it gave error
Thank you very much!
---------- Post added at 03:10 PM ---------- Previous post was at 03:01 PM ----------
mak.3736 said:
Store that nv file with you.
If you face any difficulty in gsm or data, then flash that nv.
I prefer you do restore your nv once, as you said it gave error
You can flash that nv file from lgmdp following same steps
-Start lgmdp
-Click "select port"
Phone will be automatically detected press "connect"
-select "original" in bottom right (u need this step if you have selected "DZ" before)
-Browse "NV Default" to your nv file
-check "nv default" and uncheck others
-Select "Erase EFS " in NV bacup/restore
-select "start" , if start is grayed out close the window, select "download" in main lgmdp window
Click to expand...
Click to collapse
When I select Erase EFS APPS it gives me the error: You cannot erase the efs without the partition table!
dodialfaed said:
Thank you very much!
---------- Post added at 03:10 PM ---------- Previous post was at 03:01 PM ----------
When I select Erase EFS APPS it gives me the error: You cannot erase the efs without the partition table!
Click to expand...
Click to collapse
Select "Erase EFS"
I selected Erase EFS and it's the same error.
****! I restarted the phone and I noticed that all the apps and settings I made dissapeared!
Something is definitelly wrong.
Any advice?
dodialfaed said:
I selected Erase EFS and it's the same error.
****! I restarted the phone and I noticed that all the apps and settings I made dissapeared!
Something is definitelly wrong.
Any advice?
Click to expand...
Click to collapse
are you able to boot into rom normally ?
yes
data is working
all is ok
just that my apps disapeared
dodialfaed said:
yes
data is working
all is ok
just that my apps disapeared
Click to expand...
Click to collapse
Sorry for inconvenience
did you try with selecting "none" ?
or
here is fool proof method but a little lengthy
put the nv file in this order
create new folder
- rename folder: <your_imei_(on_which_nv2_is_created)>
- create new folder in <your_imei_(on_which_nv2_is_created)>
named <port no.> on which your phone is connected
(ex:for com4 name folder as " _COM_4_" (without quotes), you can find
port number when you click on "select port" when connecting mobile to
lgmdp under port column.)
- now place nv2 file in this folder <port no.>
- so now u r nv2 file is in
" \<your_imei_(on_which_nv2_is_created)>\<port no.>\ "
- now place lgmdp.exe and <your_imei_(on_which_nv2_is_created)> in
new folder
- start lgmdp
- "select port"
- "connect"
- press "NV Restore"
I did all that and it started restoring the NV but in the end it gave me this error:
This is the same error I got after installing the stock firmware.
try changing baseband....i think nv didnt got backed up correctly but you have gsm signal right
Problem solved
I flashed using lgmd a 10E stock version and than I fired up lg mobile update tool and udated to v20H.
Now all is working well and after rebooting apps are still there, nothing gets deleted.
This is good news for me
Thank you very much for your help guys!
dodialfaed said:
I flashed using lgmd a 10E stock version and than I fired up lg mobile update tool and udated to v20H.
Now all is working well and after rebooting apps are still there, nothing gets deleted.
This is good news for me
Thank you very much for your help guys!
Click to expand...
Click to collapse
I think apps were deleted before becoz of selecting erase efs while restoring nv.
bump.. lgmdp is safer than kdz.. mod plz add this to a sticky thread.. pls
Hope people still use there P500, because this seems to work other then the fact that I get Error! Partiton Table in red under when I try to update via kz or do the recovery partition update.
Thank you very much, it gets my phone out of bootloop

[Q] Creating back up w/ TWRP

So i am trying to create a backup through recovery(twrp) -
i select backup
boot, data and system are checked (cache,recovery are unchecked, is that correct?)
i am unsure if i should be selecting enable compression or skip md5 generation
i swipe to backup and get the following message " E: Unable to locate storage device"

Lenovo Vibe X2 - invalid IMEI and MAC after flashing

Hi,
I'm new with this, and tried to update my Lenovo Vibe X2 to the most recent rom that I found... it is a custom rom, basicly the latest version without the chinese applications.
I read a little and saw some videos, to update it using the sp flash tool. And I made it... using the option Format+download :cyclops:
Now I have it updated, but my phone has invalid IMEI , MAC, etc... Reading a little more, I found some indications to restore the IMEI, but I would like some help to avoid be worst that it is.
I have an online Nandroid backup, that I make before the flash, I can see the files in Nandroid Manager...
boot.img, cache.ext4.tar, data.ext4.tar, nandroid.md5, recovery.img, recovery.log, system.ext4.tar
So, is it possible restore the original NVRAM from my backup and apply it using the sp flash tool?
Thank's in advance for any kind of help.
Regards,
Cristiano.
Any help?
solved
cocarvalho said:
Any help?
Click to expand...
Click to collapse
Thanks everyone! I found an solution. Regards.
Hi
Can you explain how you did or point me to the right direction?
Ihave the same problem
thanks
Tectudo8 said:
Hi
Can you explain how you did or point me to the right direction?
Ihave the same problem
thanks
Click to expand...
Click to collapse
Hi!
Let me try explain...
First of all, I install the FX explorer and the ROOT add on for it. I used it to explore my backups and copy the files to the root directories.
- Copy your backup to your phone (if you don't have yet)
- Enter in the FX explorer and navigate in the MAIN STORAGE and go to your backup directory (in my case the clockworkmod)
- In this directory, enter in the data.ext4.tar file
- And after that, go to DATA
- And access NVRAM directory
- MD directory
- NVRAM directory
- NVD_IMEI directory
- hold at MP0B_001 file, and select COPY option
- back into the first menu and select the option SYSTEM (ROOT)
- Go to /data/NVRAM/MD/NVRAM/NVD_IMEI directory and paste the file...
Now the IMEI was restored.
After that, you can do the same, going to /DATA/NVRAM/APCFG/APRDEB directory of you backup and copy all files
Go to the SYSTEM ROOT enter in the same directory /DATA/NVRAM/APCFG/APRDEB and paste all files.
Now you can reboot you phone and the magic comes true... The IMEI, MAC_Address was restored and NVRAM Wifi removed.
Good luck.
Let me know if you have any question.
Regards,
Hi again and thanks for asnwer
I have a problem
When I go to /data/NVRAM/MD/ with root and fx nothing appears...
Itried creating the next directories and paste the file but that way it didnt work
Do you know what could be the problem?
Do I have to make a phone call to do this?
cocarvalho said:
Hi!
Let me try explain...
First of all, I install the FX explorer and the ROOT add on for it. I used it to explore my backups and copy the files to the root directories.
- Copy your backup to your phone (if you don't have yet)
- Enter in the FX explorer and navigate in the MAIN STORAGE and go to your backup directory (in my case the clockworkmod)
- In this directory, enter in the data.ext4.tar file
- And after that, go to DATA
- And access NVRAM directory
- MD directory
- NVRAM directory
- NVD_IMEI directory
- hold at MP0B_001 file, and select COPY option
- back into the first menu and select the option SYSTEM (ROOT)
- Go to /data/NVRAM/MD/NVRAM/NVD_IMEI directory and paste the file...
Now the IMEI was restored.
After that, you can do the same, going to /DATA/NVRAM/APCFG/APRDEB directory of you backup and copy all files
Go to the SYSTEM ROOT enter in the same directory /DATA/NVRAM/APCFG/APRDEB and paste all files.
Now you can reboot you phone and the magic comes true... The IMEI, MAC_Address was restored and NVRAM Wifi removed.
Good luck.
Let me know if you have any question.
Regards,
Click to expand...
Click to collapse
Do I have to make a phone call to do this?

[Q] How to merge various system_*.img files?

Hello.
I have a Lenovo Vibe K5 (A6020L36 model), and as many people, I want root and, if possible, a custom recovery and custom ROM.
So, the first step was find and download a stock ROM and flashing program, this is already done. But the ROM comes with several "system.img" files (system_1.img, system_2.img, and so on until system_39.img), some of them have several megabytes in size, and others have only 8kb. I need to merge them to get one system.img to edit, but all process I tried failed.
First, I tried the command "copy /b system_1.img+system_2.img+etc", and get a system.img about 2Gb in size, but the file is somehow corrupt:
When I extract it with unyaffs, I only get the "app" and "lost+found" folders;
When I navigate the remaining folders with EXT2 Explorer, I can see the remaining folders, but they are empty;
When I try to open with EXT4 Unpacker, it gives an error about 'list index out of bounds';
The same happens if I use the command but ignoring the 8kb files.
When I open only system_1.img in EXT4 Unpacker, it comes with same error. With EXT2 Explorer, I again can see all the folders, but except for 'app' folder, all others are empty. The others system files appears blank in both programs.
Then, I tried to use this tool, but it gives the same error at post #8 (tried with Win10 64bits and Win7 32bits, both as administrator).
The stock recovery don't have an option to make a backup, then I tried to launch a TWRP recovery made by another user, but gives an error 'dtb not found'.
Tried also the adb 'dd' command, wich comes with a 'permission denied' error, because don't have root. The flashing programs (QFIL and others Qualcomm programs) appears to don't have a backup option for system partition, only for nvram stuff.
I stucked now, I can't find a way to generate a single and valid system.img. Any ideas to get it? Attached are some usefull files to look at, I think. I also have the stock boot.img and recovery.img.
Any help will be appreciated. Thanks in advice.
No ideas?
Deleted.

Mecool KM8 P 2GB/16GB S912 Amlogic TV Box Android 7.1, TWRP Root Instructions Russian

Hi all recently purchased the Mecool KM8 P 2GB/16GB S912 Amlogic, updated the firmware to 7.1 but lost root access. I have managed to find some instructions on a Russian website to root the stock firmware but can't make head nor tale of it and don't want to brick the device.
The google translate version of the instructions reads as follows:
To get root 7 Androide did:
1.Nado SuperSu create a text file without an ending .txt textBOOTIMAGE = / dev / block / boot
2. Flash card throw Recovery for 7 Androyd created Fail SuperSu and SuperSU.zip (5,63 MB)
3. Boot into Recovery with USB there "Advanced" ==> "File Manager" find the file on a flash drive that put his name it .SuperSu in and copy it into the folder / system
3. Without leaving the Recovery go to "Set" and set SuperSU.zip (5,63 MB)
Can someone please help to decipher the above?
Here's the link to the instructions website. The downloads are pinned to the top of the page. Please let me know if you have any success...
http://4pda.ru/forum/index.php?showtopic=807465&st=1100#entry62380504
1. Create a texfile with this content:
BOOTIMAGE = /dev/block/boot
If I am not mistaken then this file should be saved wit the name .SuperSU and no extension.
2. Copy this file and the Supersu.zip onto a SD with a working TWRP recovery.
3. The file .SuperSu is now to be copied into the system folder - it does not specify if the one from the box or the one from the recovery is used - I assume the one on the box. But needs to be tested to be sure.
4. Without ending the recovery session go back and install install SuperSu.
Thing is you need a recovery that works with Nougat to do any of this.
But then again translators suck and someone capable of reading russing could bring some light on it....
Managed to get it to work. Steps in common English are as follows:
To get root on Android 7.1:
1. Create a text file (eg in Notepad) and name it Supersu without an ending .txt with the folowing text BOOTIMAGE = / dev / block / boot
2. On a microsd card copy Recovery.img (TWRP 7), the created SuperSu file (from step 1) and SuperSU.zip (5.63 MB)
3. Insert the card into Boax and boot into Recovery.
4. Using theTWRP recovery got to Advanced" then "File Manager" find the created Supersu file (from step 1) and copy it into the folder / system.
5. Without leaving the Recovery go to "Install" and flash SuperSU.zip (5.63 MB) from the Microsd card
can you post the required Files here?
i dont understand russian so i dont know what they wrote on 4pda.ru
I have found all file and attached at end of the Post
1. decompress km8p.zip to the root of your TF-Card so you have 3 Files on the root of your TF-Card (.SuperSU, SuperSU.zip and recovery.img)
2. power off your KM8P
3. Press Reset and hold it
4. Power your Box on and hold Reset
5. If you see the TWRP-Logo you can stop press Reset
6. On the Screen accept write and modifying Systemfiles
7. go to Advanced" then "File Manager" copy .Supersu file from TF-Card in/ system of your Box
8. then go to "Install" and flash SuperSU.zip (5.63 MB) from the TF-Card
9. Reboot and now you have root installed
MetaIIica said:
I have found all file and attached at end of the Post
Click to expand...
Click to collapse
I think you uploaded the wrong file, as the zip file you uploaded only contain one file (km8p), which has no file extension (it is probably a .zip file).
However it is missing the other files you are talking about, so could you upload the right files?
Thanks for the effort!
afehst said:
I think you uploaded the wrong file, as the zip file you uploaded only contain one file (km8p), which has no file extension (it is probably a .zip file).
However it is missing the other files you are talking about, so could you upload the right files?
Thanks for the effort!
Click to expand...
Click to collapse
I attached the TWRP for Android 7 here, if you still need it.
I have also started a thread on how to root with Magisk instead of supersu, as supersu wouldn't work for me.
https://forum.xda-developers.com/android-stick--console-computers/amlogic/howto-km8-p-2gb-8gb-s912-amlogic-tv-box-t3745937

Categories

Resources