Ruslan Tkhakokhov 57263a6c34 Fix runtime restart: at com.android.server.backup.restore.FullRestoreEngine
When a full backup operation times out, resources are cleaned up
including closing and nullifying pipes. However FullRestoreEngine.restoreOneFile()
doesn't stop execution and can access the pipes causing RuntimeException.

This CL adds a flag to show whether the operation has timed out and
checks it before accessing the pipes.

Bug: 126244736
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases
      6) Manual: Test full backup/restore flow using Flipboard app

Change-Id: If400142a6fceaa4065409774bbff1cad8b4c6163
2019-03-15 11:37:43 +00:00
..
2017-12-08 21:00:15 +00:00
2018-11-29 15:55:12 +00:00