Tuesday, November 21, 2017

Qualcomm Snapdragon partition backup/restore tool set

Qualcomm Snapdragon partition backup/restore tool set
======================================================================

Created by: Eugene Muzychenko (software@muzychenko.net)

Version: 1.1





Caution
======================================================================

Not for beginners! You must clearly understand what you are doing.

Improper usage may damage your device.

Use it at your own risk.

I take no resposibility for any malfunction.





Purpose
======================================================================

This tool set simplifies partition backup/restore on Qualcomm
Snapdragon devices supporting Sahara protocol (serial interface with
VID_05C6&PID_9008).

Initially created and tested on Xiaomi Redmi Note 3 Pro (Snapdragon
650, MSM8952/MSM8956) with both locked and unlocked bootloader.

Selected partition list includes non-volatile, non-zero partitions
containing individual device parameters (IMEI, MAC addresses,
calibration values etc.).

Device's eMMC access is gained by the "emmcdl" utility.

Tool set consists of several Windows command files:

getparttable - reads partition table from the device and writes it to a
file.

readselparts - reads selected partitions from the device and saves them
to .img files.

makerawprog - creates XML Raw Program script in Qualcomm format.

writeselparts - writes image files described by Raw Program to the
device.

params - sets working parameters, called indirectly.





Usage
======================================================================

Charge device battery.

Connect device to USB port and boot it in Emergency Download mode
(9008/EDL). A serial (COM) port should appear in Device Manager.

Check/edit "params.cmd" file. You should set the following parameters:

SaharaComPort - device interface port (for example, com11).

FirehoseFile - full path to the "Firehose" interface file. For Xiaomi
devices, this file is included in "fastboot" firmware package. For some
other devices, this file is not provided by a vendor and should be
obtained somewhere.



Execute "getparttable" command file. It will read partition table from
the device and save it to "parttable.txt" file.



Check/edit "selparts.txt" file containing a list of partitions to read
from or write to the device. By default, Xiaomi Redmi Note 3 Pro
non-volatile partition list is provided. If you don't know which
partitions to backup, put to this list all partitions that are not
flashed by vendor's flashing script (flash_all.bat, rawprogram0.xml
etc.).



Execute "readselparts.cmd". It will read partitions in accordance with
the list and save them to .img files. Now you can copy them to a safe
place together with partition table file.



To restore selected partitions, execute "makerawprog.cmd". It will
create an XML Raw Program script in Qualcomm format (named
rawprogram0.xml by default).

Now you can restore selected partitions two ways:

- By using MiFlash or a Qualcomm utility (for example, from QPST).

- By executing "writeselparts.cmd" - via emmcdl utility. This way is
simpler but more dangerous because emmcdl sometimes loses device
connection.

For MiFlash or Qualcomm tools, an empty patch script (patch0.xml), is
included.





Error handling
======================================================================

Sometimes, emmcdl loses device connection and exits with an error. In
such case, reboot the device in 9008/EDL mode and try again.





Credits
======================================================================

emmcdl.exe can be found here:

http://forum.xda-developers.com/attachment.php?attachmentid=3760575&d=1464071604


Another compiled binary can be found here:

http://github.com/kiddlu/android-host-knife

5X_unbrick.zip, Size 1.02 MB...
https://openload.co/f/H7Z3yQyYbtA/5X_unbrick.zip
http://uptobox.com/4lzhyeok4dxk

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

online shop registration

 မှတ်ပုံတင်ပုံ အဆင့်ဆင့်ကို ပုံများဖြင့် မျှဝေပေးလိုက်ပါတယ်နော် အသေးစိတ်ကတော့ Live လေးမှာ နားထောင်ကြည့်ပါရှင် ☺️ Live Link : https://fb.watc...

Popular

Contact Form

Name

Email *

Message *

Labels

ADS (417) Alcatel (3) All winner (3) Androd Xiaomi (255) Android Antivirus (6) Android application (15) Android Command (3) Android Coolpad (39) Android Font (61) Android Game (2) Android Google Application (13) Android Huawei Imei Repair (1) Android Huawei Y series (6) Android kingo root (4) Android MTK Driver (6) Android Samsung (17) Android Samsung A series (26) Android Samsung C series (5) Android Samsung E series (5) Android Samsung G series (82) Android Samsung Hard reset (7) Android Samsung I series (7) Android Samsung Imei repair (6) Android Samsung J series (66) Android Samsung Multi file (1) Android Samsung N series (34) Android Samsung P series (2) Android Samsung Root (8) Android Samsung S series (10) Android Samsung SC series (6) Android Samsung Solutions (3) Android Samsung T series (3) Android Tool (238) Antivirus (7) AOTO (6) AOVO (8) Aplus (6) Archos (1) Asus (6) Attila (14) BenWee (2) BLU (1) Bluemix (2) Book (5) book eng (1) book med (11) Boss style (1) box (2) Bravo (2) browser (3) Browser Adobe Flash Player (1) Browser Firefox (1) CAZSH (1) Cherry (5) China Phone (73) CircleTech (2) CKTEL (1) Ding Ding (2) Download best (17) Education Make up (5) emmc (1) Entertainment (5) Facebook (2) films (1) Finance (2) Firmware Collection (23) FRP (62) Funny (3) GFIVE (3) Gionee (4) Grand (1) HAIWEI (3) Hardware (16) Hello (40) Hisense (17) Hiway (2) Hopo (22) HTC (7) Huawei A series (25) Huawei B series (13) Huawei board software collection (14) Huawei C series (43) Huawei Clone (18) Huawei D series (3) Huawei Driver (1) Huawei E series (17) Huawei emmc data (1) Huawei F series (7) Huawei Flashtool (45) Huawei G series (51) Huawei H Series (8) Huawei J series (1) Huawei K series (3) Huawei L series (18) Huawei M series (5) Huawei N series (3) Huawei P series (10) Huawei R series (5) Huawei region code (3) Huawei S series (10) Huawei T series (10) Huawei U series (8) Huawei Update (104) Huawei V series (11) Huawei W series (3) Huawei Y series (56) I Mobile (1) ILOVFA (11) IMEI repair (13) imobile (1) Infinix (1) Infone (1) Inovo (38) ios firmware (3) ios icloud (4) IOS itune (8) IOS Itune Error (1) ios news (10) IOS Tool (10) IPhone Clone (22) K Touch (3) Kenbo (10) Kimfly (47) Kismo (3) KKP (19) knowledge (38) Lava (8) Leagoo (1) Leagool (2) LeEco (1) Leegoog (19) Lenovo (12) LG (5) Liven (23) LoLo love (14) M-Horse (11) magic (2) MAI (11) Marconi-W50E (1) MBO (97) MCT (2) medical knowledge (5) Meizu (58) MFT (4) MGT (33) mi account remove (55) Micro Art (2) mine (1) Momo (7) movies (12) MP3 (2) MPT (5) MyPhone (22) Newings (3) Nipda (3) Nokia (10) Nova (7) Open (1) Oppo (162) Oppo Clone (1) ORRO (7) OSE (3) PC (2) PHICOMM (5) photoshop (1) pinpaternpassword (1) player (1) Power (3) Prestigio (1) Professional (4) QBZ (1) Ramos (5) rapidleech (1) Recovery software (1) Red Star (1) Samsung B seires (1) Samsung Clone (204) Samsung combination (360) Samsung Full (45) Science (13) Server (2) SINGTECH (90) SKG (4) SM-J530F full (1) Sony (73) Speed (7) SYH (94) tayar (1) TCL (1) Teaching (2) tecno (92) Teeno (1) Telenor (7) TIMMY (4) titan (20) True Smart (51) trueme (1) TWZ (34) uneed (1) uptobox (2) VG (9) Video (12) Vinovo (8) VIOVO (3) Virtual card (1) Vital (15) Vitu (3) Vivo (190) Vivo Clone (1) Voto (1) vps (8) WainFord (1) Wave (33) web (2) Wiko (5) Window (82) window font (1) X-BO (76) XDU (8) ZTE (25)