Restore backup of smartphone with TWRP

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

If you have previously done a backup of a smartphone using the recovery TWRP, this documentation shows you how to restore it.

Requirements

  • Operating system: Ubuntu 18.04 bionic amd64
  • Packages: adb

In the documentation Unlock_Nexus_5X the creation of a usable backup is described.

Description

Upload backup

The downloaded backup should look like this

  $ tree BACKUPS                                                                                                                                                      
  BACKUPS
  └── ZY223WRD2C
      └── 2016-07-09--03-01-28
          ├── boot.emmc.win
          ├── boot.emmc.win.sha2
          ├── data.f2fs.win
          ├── data.f2fs.win.sha2
          ├── data.info
          ├── recovery.log
          ├── system.ext4.win000
          ├── system.ext4.win000.sha2
          ├── system.ext4.win001
          ├── system.ext4.win001.sha2
          └── system.info

Upload it to the smartphone

   $ adb push BACKUPS /data/media/TWRP/BACKUPS/                                                                                                                              
   BACKUPS/: 11 files pushed. 5.5 MB/s (2047191826 bytes in 355.858s)

Restore

Boot the smartphone into recovery and select Restore. It should show the folder with the date of the backup and beneath it a list of partitions. Select all of them and start the restore

Used Hardware

Courses

  • -

References

  • -