Advertisement
chenshaoju

OnePlus 5T Firmware Backup/Erase/Flash Command

Apr 7th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. Backup Firmware:
  2. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/oem_stanvbk of=/cache/oem_stanvbk.bin bs=512
  3. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64 of=/cache/cmnlib64.bin bs=512
  4. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib of=/cache/cmnlib.bin bs=512
  5. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/hyp of=/cache/hyp.bin bs=512
  6. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/pmic of=/cache/pmic.bin bs=512
  7. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/tz of=/cache/tz.bin bs=512
  8. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/devcfg of=/cache/devcfg.bin bs=512
  9. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/keymaster of=/cache/keymaster.bin bs=512
  10. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/xbl of=/cache/xbl.bin bs=512
  11. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/rpm of=/cache/rpm.bin bs=512
  12. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/LOGO of=/cache/LOGO.bin bs=512
  13. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/modem of=/cache/modem.bin bs=512
  14. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/dsp of=/cache/dsp.bin bs=512
  15. dd if=/dev/block/platform/soc/1da4000.ufshc/by-name/bluetooth of=/cache/bluetooth.bin bs=512
  16.  
  17. Erase Firmware:
  18. Part 1:
  19. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/oem_stanvbk bs=512
  20. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64 bs=512
  21. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib bs=512
  22. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/hyp bs=512
  23. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/pmic bs=512
  24. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/tz bs=512
  25. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/devcfg bs=512
  26. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/keymaster bs=512
  27. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/xbl bs=512
  28. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/rpm bs=512
  29. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/LOGO bs=512
  30. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/modem bs=512
  31. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/dsp bs=512
  32. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/bluetooth bs=512
  33. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64bak bs=512
  34. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlibbak bs=512
  35. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/hypbak bs=512
  36. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/tzbak bs=512
  37. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/keymasterbak bs=512
  38. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/xblbak bs=512
  39. dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/rpmbak bs=512
  40.  
  41. Flash Firmware:
  42. dd if=/cache/static_nvbk.bin of=/dev/block/platform/soc/1da4000.ufshc/by-name/oem_stanvbk bs=512
  43. dd if=/cache/cmnlib64.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64 bs=512
  44. dd if=/cache/cmnlib.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib bs=512
  45. dd if=/cache/hyp.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/hyp bs=512
  46. dd if=/cache/pmic.elf of=/dev/block/platform/soc/1da4000.ufshc/by-name/pmic bs=512
  47. dd if=/cache/tz.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/tz bs=512
  48. dd if=/cache/devcfg.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/devcfg bs=512
  49. dd if=/cache/keymaster.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/keymaster bs=512
  50. dd if=/cache/xbl.elf of=/dev/block/platform/soc/1da4000.ufshc/by-name/xbl bs=512
  51. dd if=/cache/rpm.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/rpm bs=512
  52. dd if=/cache/logo.bin of=/dev/block/platform/soc/1da4000.ufshc/by-name/LOGO bs=512
  53. dd if=/cache/NON-HLOS.bin of=/dev/block/platform/soc/1da4000.ufshc/by-name/modem bs=512
  54. dd if=/cache/adspso.bin of=/dev/block/platform/soc/1da4000.ufshc/by-name/dsp bs=512
  55. dd if=/cache/BTFM.bin of=/dev/block/platform/soc/1da4000.ufshc/by-name/bluetooth bs=512
  56. dd if=/cache/cmnlib64.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64bak bs=512
  57. dd if=/cache/cmnlib.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlibbak bs=512
  58. dd if=/cache/hyp.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/hypbak bs=512
  59. dd if=/cache/tz.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/tzbak bs=512
  60. dd if=/cache/keymaster.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/keymasterbak bs=512
  61. dd if=/cache/xbl.elf of=/dev/block/platform/soc/1da4000.ufshc/by-name/xblbak bs=512
  62. dd if=/cache/rpm.mbn of=/dev/block/platform/soc/1da4000.ufshc/by-name/rpmbak bs=512
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement