summaryrefslogtreecommitdiffstats
path: root/libs/storage
Commit message (Collapse)AuthorAgeFilesLines
* Added 'EncryptWipeStorage' API to MountService APIAmit Blay2015-10-061-0/+18
| | | | | | | | | | | | | | | | | | | | | The EncryptWipeStorage API is used to create a new ext4 file system on the userdata partition, instead of the existing one, and encrypt it. This as opposed to the way EncryptStorage API works, which encrypts the existing file system as is ('inplace'). The 'wipe' option is already supported in the underlying Cryptfs implementation. Also in this change, new values that can be returned by 'getEncryptionState' API are declared. These values reflects the state of the MDTP activation, together with the general encryption state, in case that MDTP is activated. - ENCRYPTION_STATE_OK_MDTP_ACTIVATED - means that the crypto state is ok, and MDTP is activated. - ENCRYPTION_STATE_ERROR_MDTP_ACTIVATED - means that the crypto state is bad, and MDTP is activated. Change-Id: Ide628a8cf6499bc2216b08c22479a37133bebb03
* Update calls to IInterface::asBinder()Marco Nelissen2014-11-141-5/+5
| | | | | | to use the new static version. Change-Id: I88ee037c66aa254f466d3a51ddc358bd37cf44b5
* Merge "Frameworks/base: Wall Werror in libs/storage"Andreas Gampe2014-11-085-13/+23
|\
| * Frameworks/base: Wall Werror in libs/storageAndreas Gampe2014-10-225-13/+23
| | | | | | | | | | | | Turn on -Wall -Werror in libs/storage. Change-Id: I314cb32d0a917f9261488f7709d9a78a07b10fea
* | Installing splits into ASECs!Jeff Sharkey2014-08-221-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | Sessions can now zero-copy data directly into pre-allocated ASEC containers. Then at commit time, we compute the total size of the final app, including any inherited APKs and unpacked libraries, and resize the container in one step. This supports both brand new ASEC installs and inheriting from existing ASEC installs. To keep things simple, it currently requires copying any inherited ASEC contents, but this could be optimized in the future. Expose new vold resize command, and allow read-write mounting of ASEC containers. Move native library extraction into the installer flow, since it needs to happen before ASEC is sealed. Move multiArch flag into NativeLibraryHelper, instead of making everyone pass it around. Migrate size calculation to shared location. Separate "other" package name in public API, provide a path to a storage device when relevant, and add more docs. Bug: 16514385 Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
* Handle multi-user mountObb() requests.Jeff Sharkey2012-09-251-2/+3
| | | | | | | | | | | | | | | | | | | | | Since emulated external storage paths differ based on execution context, carefully fix up paths for various use-cases: 1. When sending paths to DefaultContainerService, always scope OBB paths as belonging to USER_OWNER. 2. When sending paths to vold, always build emulated storage paths visible to root. 3. Always use the original untouched path when talking with apps. Mount OBB containers using shared app GID, so that an app can read the mount point across users. Handle legacy paths like "/sdcard" by resolving the canonical path before sending to MountService. Move tests to servicestests, and add tests for new path generation logic. Bug: 7212801 Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
* You don't need LOCAL_STATIC_LIBRARIES when building static library.Ying Wang2012-04-061-4/+0
| | | | | | and there is no target static library with name libutils. Change-Id: Ifec34e1b484d749d3fcd11abe610f192a3213767
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-54/+54
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* Revert encryption mapping for device wipes.Ben Komalo2011-09-091-1/+2
| | | | | | | | | | | | External storage volumes that were emulated+encrypted needed to have their encryption mapping removed so that it doesn't try to encrypt the volume after formatting them. This just wires through an argument through vold, and assumes that vold will do the right thing even if there is no encryption mapping set. Bug: 5017638 Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-4/+0
| | | | | | Bug: 5010576 Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
* Add a method enable encryption.Jason parks2011-01-071-1/+19
| | | | | | This is for testing and needs to be cleaned up. Change-Id: I71cd5412f7096dc13d9ab61229ee9846c6f0006a
* Add decryption support to MountService.Jason parks2011-01-051-0/+18
| | | | | | | * Implement the decryptStorage() method on the Mount Service. This method makes the calls into vold to decrypt the encrypted volumes and mount them. Change-Id: I4f6e07a111cf0b36611d590debf9f6579c5ac5f7
* am c3041432: am de846ac6: Merge "Change to new binder implementation for ↵Kenny Root2010-10-131-1/+4
|\ | | | | | | | | | | | | | | | | OBB" into gingerbread Merge commit 'c30414329c381afba7bd23bdd0f1237fad0850a6' * commit 'c30414329c381afba7bd23bdd0f1237fad0850a6': Change to new binder implementation for OBB
| * Change to new binder implementation for OBBKenny Root2010-10-111-1/+4
| | | | | | | | Change-Id: I3282df361a11fc37e94bc5ba4bd5860ae62a10e4
* | resolved conflicts for merge of 8bb7a1df to masterKenny Root2010-10-132-5/+7
|\ \ | |/ | | | | Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
| * OBB: rearrange to be entirely asynchronousKenny Root2010-10-112-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Rearrange structure of MountService handling of OBBs to be entirely asynchronous so we don't rely on locking as much. We still need the locking to support dumpsys which has been improved to output all the data structures for OBBs. Added more tests to cover more of the error return codes. Oh and fix a logic inversion bug. Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
* | Add API to check for emulated external storageKenny Root2010-10-121-0/+1
|/ | | | | | | | | | When the storage is emulated, we don't want to install ASEC containers to it. This adds the API to check when the external storage is emulated and uses it to check whether or not to install packages to the external storage in an ASEC container. Bug: 3024387 Change-Id: Ia0318aca9e4938a4897deaada5603a4c7c1d0f48
* Update OBB API to include callbacksKenny Root2010-09-281-3/+3
| | | | | | | | | | | | Add a callback for users of the StorageManager API to be able to receive notifications when the requested operation completes for mountObb and unmountObb. Add NDK API to get to ObbInfo like the Java API has. Also update the docs for the API and remove the "STOPSHIP" comments. Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
* Reorganize MountService IPCKenny Root2010-08-207-0/+873
Remove auto-generated AIDL files and replace them with manually edited .java and .cpp/.h files so that binder calls can be made from either Java or C++. Update the makefiles to not attempt to generate the AIDL files and also remove the old auto-generated .java files. Put all the storage-related C++ things in libstorage so that we don't pollute other libraries. Change-Id: I82d1631295452709f12ff1270f36c3100e652806