Device / Emulator Backup and Restore

Allows a user to backup and restore a device or an emulator, in order to be able to return to a known state chosen by the analyst. The Backup and Restore user interface, which can be found in the Device Manager, will guide you through this process.

This feature is currently only available with select Android devices and the Android emulator. Support of iOS devices is coming soon.

USE AT YOUR OWN RISK. On Android devices (physical only), the Backup and Restore functionality requires a TWRP recovery image be installed on the device. The installation of the recovery image is the responsibility of the user. A custom recovery installation should only be performed on test devices you own because it could lead to data loss and a voided warranty.

More information can be found here: http://teamw.in/project/twrp2 or in the section below.

NO WARRANTY: The Backup and Restore functionality is provided as-is and without warranty. NowSecure is not responsible for any lost data, file corruption, or device operation including, but not limited to, problems caused by backing-up or restoring data, or installing recoveries or performing modification to the device.

Please contact NowSecure Support at [email protected] for more information on backup and restore.

Installing a TWRP Recovery

This only applies to an Android physical device. You do not need to run these steps if you are using the emulator.

We will explain how to install a TWRP recovery on a Nexus device. If you own another device, you can refer to the link above to find additional information and specific images compatible with your device.

To install a TWRP recovery on your Android device (connected to USB, and with USB debugging enabled) you can perform the following actions:

  • Download the latest TWRP recovery image for your device (the images are device specific) from the TWRP website

  • Open a shell terminal and navigate to the folder where you saved your TWRP recovery image.

Shell Terminal

  • Reboot into Bootloader mode by issuing the command adb reboot bootloader in the terminal. You will see a screen similar to the one below on your device:

Bootloader

  • Now you can flash your TWRP recovery by typing the command fastboot flash recovery my_TWRP_image.img where “my_TWRP_image.img” must be replaced with the filename of the image you downloaded in the first step.

  • Once this operation is successful, you can reboot your phone with the command fastboot reboot. Once rebooted you can use the backup functionality in NowSecure Lab.

Overview

The Backup and Restore functionality aims to provide to the user the following capabilities:

Backup - The user will be able to save the state of the device or emulator, and restore it later to that exact same state with the “Restore” functionality. This is particularly useful before testing a malicious or unstable application.

Restore - The user will be able to restore the state of the device or emulator, from a previously taken backup with the “Backup” functionality.

Remember that you need a TWRP recovery image installed on your device to use this feature. Please refer to the section above or contact Support if you are not sure about that process.

Using the Backup or Restore functionality

In order to use the Backup and Restore functionality, please follow the following steps:

  1. Click on the “Device Manager” button in the bottom-left of NowSecure Lab. Then, from within the Device Manager window, you will find in the “Device Backup and Restore” section and two buttons labeled “Backup” and “Restore”.

Backup

  1. Click “Backup” to backup your emulator or device, or click “Restore” if available, in order to restore a previously saved backup. If a backup is available for restore, the date of when the backup was last made will also be displayed.

Restore