summaryrefslogtreecommitdiff
path: root/libs/storage/IMountService.cpp
AgeCommit message (Collapse)Author
2018-08-27Remove DefaultContainerService usage in StorageManagerService.Sudheer Shanka
StorageManagerService uses DefaultContainerService to obtain ObbInfo for files passed through mountObb() transaction. This change moves this logic to client side and so ObbInfo will be passed as part of mountObb() transaction. Bug: 111838160 Test: atest src/android/os/storage/cts/StorageManagerTest.java Test: atest core/tests/coretests/src/android/os/storage/StorageManagerIntegrationTest.java Test: atest services/tests/servicestests/src/com/android/server/MountServiceTests.java Change-Id: I29aee3aa54a45057df96aae289888161a3e3af71
2016-11-15Rename MountService to StorageManagerService.Sudheer Shanka
Bug: 30977067 Test: Existing tests pass Change-Id: Ieac0f11c2b249dcd60441b14c1f391e6f8131d42
2016-11-01Fix IMountService transaction ids.Sudheer Shanka
- (IBinder.FIRST_CALL_TRANSACTION=1) is added to the specified transaction codes during binder generation. Correct the IMountService transaction ids taking this into account. - Update interface descriptors in MountService related native code. - Add proxy implementations for IMountServiceListener and IMountShutdownObserver. Bug: 30977067 Test: Verified that calls from native code to IMountService system service are working and listeners in native code can get the callbacks correctly. Change-Id: I9bef9a8113e92d8b36e963bd961ac858acac3f2a
2016-04-27Fix google-explicit-constructor warnings.Chih-Hung Hsieh
Bug: 28341362 Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
2014-11-14Update calls to IInterface::asBinder()Marco Nelissen
to use the new static version. Change-Id: I88ee037c66aa254f466d3a51ddc358bd37cf44b5
2014-11-08Merge "Frameworks/base: Wall Werror in libs/storage"Andreas Gampe
2014-10-22Frameworks/base: Wall Werror in libs/storageAndreas Gampe
Turn on -Wall -Werror in libs/storage. Change-Id: I314cb32d0a917f9261488f7709d9a78a07b10fea
2014-08-22Installing splits into ASECs!Jeff Sharkey
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
2012-09-25Handle multi-user mountObb() requests.Jeff Sharkey
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
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
2011-09-09Revert encryption mapping for device wipes.Ben Komalo
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
2011-01-07Add a method enable encryption.Jason parks
This is for testing and needs to be cleaned up. Change-Id: I71cd5412f7096dc13d9ab61229ee9846c6f0006a
2011-01-05Add decryption support to MountService.Jason parks
* 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
2010-10-13am c3041432: am de846ac6: Merge "Change to new binder implementation for ↵Kenny Root
OBB" into gingerbread Merge commit 'c30414329c381afba7bd23bdd0f1237fad0850a6' * commit 'c30414329c381afba7bd23bdd0f1237fad0850a6': Change to new binder implementation for OBB
2010-10-13resolved conflicts for merge of 8bb7a1df to masterKenny Root
Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
2010-10-12Add API to check for emulated external storageKenny Root
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
2010-10-11Change to new binder implementation for OBBKenny Root
Change-Id: I3282df361a11fc37e94bc5ba4bd5860ae62a10e4
2010-10-11OBB: rearrange to be entirely asynchronousKenny Root
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
2010-09-28Update OBB API to include callbacksKenny Root
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
2010-08-20Reorganize MountService IPCKenny Root
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