commit | e53e2d9576cbcf6fc2bd9c8674e162bef7297226 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Sat Mar 25 23:14:06 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Sat Mar 25 23:26:21 2017 -0600 |
tree | e53df1468009a650d8719220756b7feca63e6fa2 | |
parent | 20fd49d8c76fb93e721388f7e66761cb1c2d1c20 [diff] |
Add a new "virtual disk" feature. It's extremely difficult to test storage related logic on devices that don't have physical SD card slots. So to support better debugging and testing, add a new "virtual disk" feature which mounts a 512MB file through loop device. Also move ParcelFileDescriptor.open() over to using Os.open() so that it gets StrictMode treatment. Bug: 34903607 Test: builds, boots, virtual disk works Change-Id: I072a3a412cfcc8a2a3472919b7273a1ed794fd98