last day (23 days later) » 

6:52 PM
-1
Q: how to backup my internal memory data from soft bricked phone

anonymoussiam using lenovo k8 note, suddenly my mobile stucks at logo screen. so now i need to backup my data from phone.please guide me, how to get those data from internal memory. NOte: i have not rooted my phone.

 
find scatter file and backup recovery, then flash TWRP with MediaTek SP Flash Tool. Do not unlock bootloader for this. reboot into recovery directly after flashing. TWRP will decrypt /data and you can copy your Internal Storage from MTP USB (and create a backup of /data if required)
 
thanks for ur reply,iam newbie, can u guide me procedure so that i can follow steps. so first of all which software should i need to install. here my first priority is to backup my data from my phone storage.
 
readback is not mandatory but recommended. in case something goes wrong you can flash this area of rom back with same scatter
the size is not 4 KB it is 1000000 (hex) = 16777216 bytes = 16 MB and start address is 8000 (hex). do a readback of recovery until the size is 16 MB. rename the file recovery.img and keep it safe somewhere
"PMT changed for the ROM" means you use a wrong scatter file. In this case delete the non-matching partition entries inside scatter file. just keep the entry for recovery partition (see answer). if you still get this warning, enlarge the twrp.img to 16 MB (fill with zero bytes with HxD) or consider creating your own scatter file with WwR MTK 2.51
 
i have done readback again , the size of the file is 4 kb. followed above comments so removed all entries in scatter file, just added recovery only which i got from your answer., after that again i clicked download , once again iam getting pmt changed for the rom errro. next step what can i do. i didint understand fill with zero byteswith HxD or create own scatter file iwth wwr mtk2.51
 
you should focus on how to use SP Flash Tool. start with 1) install preloader VCOM drivers youtu.be/O2XWTAYmNUo
 
6:52 PM
i understood, i asked lot of questions, now i understand the steps upto flash twrp. but here i got one error, so that i downloaed and opened WWr MTk 2.51. so here how should i proceed to next step. thanks for your replies
 
you got two errors exactly, the 4 KB is the first error. re-read and repeat the readback until you get the 16 MB file. you probably did not install the drivers, or you did not remove the battery, or you just made a typo in start address/partition size. if readback is not working, flashing will not work. for WwR MTK readback is required and careful reading forum.hovatek.com/thread-21970.html (but i don't believe the recovery partition scatter differs, so you make yourself a lot of work)
 
now i got it, i have given physical_start_addr: 0x8000 partition_size: 0x1000000 in readback , then i got 16 mb size file.
downloaded enlarged twrp.img file also, and tried to flash, but still getting error ie pmt changed rom
 
double check if you can unpack recovery.img with AIK ramdisk tool (just to make sure the readback is okay) forum.xda-developers.com/showthread.php?t=2073775
please check this out you need to find Secure Boot Download Agent for Lenovo getdroidtips.com/lenovo-mtk-secure-boot-da-files
 
downloaded aik ramdisk tool and ran unpackingimg.bat then i got results like Image type: AOSP Splitting image to "split_img/" . . . BOARD_KERNEL_CMDLINE bootopt=64S3,32N2,64N2 buildvariant=user BOARD_KERNEL_BASE 40078000 BOARD_NAME BOARD_PAGE_SIZE 2048 BOARD_HASH_TYPE sha1 BOARD_KERNEL_OFFSET 00008000 BOARD_RAMDISK_OFFSET 04f88000 BOARD_SECOND_OFFSET 00e88000 BOARD_TAGS_OFFSET 03f88000 BOARD_OS_VERSION 8.0.0 BOARD_OS_PATCH_LEVEL 2019-03 BOARD_HEADER_VERSION 0 Unpacking ramdisk to "ramdisk/" . . . Compression used: gzip 21098 blocks Done! Press any key to continue . . .
i have gone through the WwR MTK readback(forum.hovatek.com/thread-21970.html), waiting for ur reply for further steps
 
this looks right, this mean this scatter seems to be the right area of memory. at this point i am little lost. try the SP Flash Tool included in this ROM maybe there is something different. try with each DA*.bin you can find or maybe from the K8 Plus blogthetech.com/…
 
6:52 PM
iam not getting you, what can i try now, previously i done one flash ie iam getting dll image error so i flash cache.img file, is that makes any thing wrong
 
please confirm you have a backup of all these partitions and created corresponding WwR MTK scatter file forum.xda-developers.com/…
 
you are asking about full rom backup using wwr mtk tool?
 
yes (combination of WwR MTK and SP Flash Tool with end result of splitted ROM dump and self made scatter file)
 
i need to take preloader rom dump and full rom dump am i right? Please clarify below doubt which makes me understand well 1)createing entire phone memory rom dump means, let assume my phone internal memory is 64 gb , so it will creat rom size as 64 gb? 2)if i take full rom dump can i unpack full rom dump , if possible can i take my internal phone storage file like photos,documents etc.
 
yes see steps 9. and 18. from the above tutorial 1) yes (more or less) 2) after splitting into separate partitions, this would be the easiest way, but unfortunately your userdata partition is encrypted. you can double check with HxD if userdata is encrypted or not
 
6:52 PM
thanks for confirmation, how should i check whether userdata partition is encrypte or not,if encrypted how should i get data , if not can i directly copy those files from unpacking folder (because i have lot of personal data stored in internal memory that why iam trying hard to get those data)
 
after step 30. from above tutorial, look for userdata.img and open with Hexeditor mh-nexus.de/en/hxd if you can read any text inside then it is not encrypted. if it is not encrypted you will find "53 ef" at offset 0x438 this indicate it is a ext4 image, which can easily mounted from linux and contains your pictures inside /data/media/0
 
today i will follow the steps and will take entire backup rom, after that i will check with you for further info. 1.if the file is encrypted then how should we get data 2.what about twrp , any ways to flash in my phone
 
encrypted userdata can only decrypted on the device itself. decryption key is stored in metadata partition, masterkey is stored in Arm TrustZone and hardware bound. TWRP is able to decrypt userdata as long as the decryption key is not wiped, for this you must boot into TWRP. best option is to flash TWRP. for this you need to read about the MTK Secure Boot Download Agent (one of the links above). another (risky) option is to unlock bootloader (which will wipe metadata + userdata), then flash back metadata + userdata from fastboot and boot TWRP from fastboot
on step 26. please select all partitions (differing from tutorial)
 
7:40 PM
@user300217 i wonder if you can flash the original recovery.img with one of these Download Agents
MTK_AllInOne_DA.bin
DA_PL.bin
DA_PL_CRYPTO20.bin
DA_SWSEC.bin
DA_SWSEC_CRYPTO20.bin

and please have a look into logs maybe you can find some reason error code you can google for
C:\ProgramData\SP_FT_Logs\SP_FT_Dump\BROM_DLL_V5.log
@user300217 i don't have knowledge for Lenovo MTK Secure Boot so i can not really help you, but maybe you can request Download Agent for Lenovo K8 Note on this site
https://forum.hovatek.com/thread-23383.html
"Important Notice
- Do not format devices with secure boot or flash using firmware upgrade
- Some DA files are tool-specific (i.e will only work with a specific Mediatek tool) so try them on as many Mediatek Flash tools as you can"
 
8:07 PM
@user300217 there is a (third) completely another backup method from original recovery
you can boot into recovery mode and check if there is option "backup user data"
https://www.patchworkoftips.com/backup-restore-data-stock-android-system-recovery/5904
but there is a pitfall:
this is just another raw dump of (encrypted) userdata partition. afaik "restore user data" will NOT work because the forgot to backup metadata partition. maybe they have fixed this meanwhile, maybe not (at least, it never worked for me).
@anonymouss
 

  last day (23 days later) »