OSDN Git Service

Hold wake-lock during copy operations.
authorJeff Sharkey <jsharkey@android.com>
Thu, 1 Oct 2015 22:14:57 +0000 (15:14 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 2 Oct 2015 15:55:22 +0000 (08:55 -0700)
commit3c12a7c6d727fd5cd7cccbf999bdb380a95cde79
treee03101427507e757b3e526df75d045d684c3a086
parent6ffe9f05de81fab8e3cb4031a784e26c2c0acce1
Hold wake-lock during copy operations.

If the CPU goes to sleep during the copy, certain devices will
collapse the USB OTG power domain, which can cause user data loss.

Bug: 24574575
Change-Id: I8e26caac8784490d2dee324b38e6085cd55eb8bb
packages/DocumentsUI/AndroidManifest.xml
packages/DocumentsUI/src/com/android/documentsui/CopyService.java