summaryrefslogtreecommitdiff
path: root/packages/DefaultContainerService
AgeCommit message (Collapse)Author
2019-04-23Remove DefaultContainerService and its references. Varun Shah
Pre-req for running tests marked with (*): adb shell setprop vold.has_adoptable 1 Bug: 111838160 Test: builds and flashes *Test: atest cts.AdoptableHostTest *Test: atest cts.StorageHostTest Change-Id: Iaa376a6bc984cc449239b7fe54a4a2708ad05a72
2019-02-08Convert Android.mk file to Android.bp Sasha Smundak
See build/soong/README.md for more information. Bug: 122332340 Test: treehugger Change-Id: I4ccc0a2e13fc49a0109e9823fbcb4077e11455d5
2019-02-02Import translations. DO NOT MERGE Bill Yi
Change-Id: I532c931f8b5eb095d88ad078f2ab1b0ec6cbd0e2 Auto-generated-cl: translation import
2018-09-08Import translations. DO NOT MERGE Bill Yi
Change-Id: Iffdeb95a7f885865aee4046e3f2556a675a1fe66 Auto-generated-cl: translation import
2018-08-27Clean/destroy app shared storage via installd. Jeff Sharkey
In P we moved destroying per-user shared storage into installd, where it can iterate quickly over large sets of files. This change now moves cleaning/destroying of per-app shared storage data down into installd, letting us greatly simplify the logic in PMS to no longer require spinning up DefaultContainerService. This also fixes an obscure bug where DCS (which always runs as USER_SYSTEM) wasn't able to clear shared storage for secondary users. This also gives us the ability to target specific storage devices by UUID, such as when the user has migrated their primary shared storage to an adopted device. We no longer distinguish between keeping or deleting OBB files during various operations, since upcoming changes in the Q release will mean OBB files are no longer shared between users, and they'll now live inside a sandbox that will be fully cleared when the user clears data. (Going forward, apps should be using splits instead of OBBs, so they're effectively deprecated.) Uses newer "const" feature of AIDL to ensure constant values remain consistent between native and Java code. Bug: 111854851, 111838160 Test: atest android.appsecurity.cts.StorageHostTest#testCache Change-Id: Ib90be155718a768da76110fbfcf010a471b37378
2018-05-15Merge "Convert to Soong" am: acbd94d76f Dan Willemsen
am: b1005a8a2a Change-Id: If5cb26e0669f79240d8fee1d40aaa2162d8e611f
2018-05-14Convert to Soong Dan Willemsen
See build/soong/README.md for more information. Test: m libframeworks_coretests_jni Test: m FrameworkCoreTests_install Test: m libshim_jni Test: m CtsShimPrivUpgrade Test: m libfilterfw Test: m PMTest_Java_dual Test: m libdefcontainer_jni Test: m libperftestscore_jni Test: m libpmtest32 libpmtest64 Test: m libprintspooler_jni Test: m libsmartcamera_jni Test: m idmap Test: m libdrmframework_jni Test: m libdvr_loader com.google.vr.platform com.google.vr.platform.xml Test: m libfilterpack_imageproc libfilterpack_base Test: m libwebviewchromium_loader Test: m shared_mem_test Test: m test-touchlag Change-Id: I868561dd237fa28647896d59049ab9260373ada1
2018-02-28frameworks/base: Set LOCAL_SDK_VERSION where possible. Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068 Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28frameworks/base: Set LOCAL_SDK_VERSION where possible. Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-22Import translations. DO NOT MERGE Bill Yi
Change-Id: I0fd90538d875dc100efdeed1eb21849c49bc2f0f Auto-generated-cl: translation import
2018-02-15Grant DCS storage access; better OBB errors. Jeff Sharkey
DCS had been relying on the WRITE_MEDIA_STORAGE permission to access OBBs on external storage, but that permission has been locked down, and we need to use the real WRITE_EXTERNAL_STORAGE permission now. Rework the OBB error reporting flow to bubble exact error codes up from internals, so that we can return expected CTS error codes. Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest Bug: 73424392 Change-Id: Iecbc4132745d56ebf081868ad2f9c3efe1e3735f
2018-01-31Use sendfile() and splice() to speed up copying. Jeff Sharkey
There are several places across the OS where Java code is simply copying data between two points, which requires bringing that data out into userspace before going back into the kernel. (That's pretty lame.) The patches for the recent Meltdown/Spectre security issues have made this overhead even worse, so it's finally time to move this copying directly into the kernel. This change adds a couple new FileUtils.copy() methods which inspect the given streams/FDs, and attempt to do as much optimization as possible before falling back to a slower userspace-based copy. Benchmarks are showing typical improvements of 44% for 32KB files, 50% for 32MB files, and 35% for 32MB pipes. Plenty of tests are included, and there's a simple kill-switch that can be used to enable/disable the feature if it starts causing any trouble. (A future CL will enable the optimizations.) Test: bit FrameworksCoreTests:android.os.FileUtilsTest Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java Bug: 71932978 Change-Id: I52518d529da5d961610998b9f61399064d8025cd
2017-12-04Add major version code to platform. Dianne Hackborn
It turns the version code into almost a 64-bit integer, with the new major part being the upper 32 bits. The only tricky part about this is the backup manager, since it stored 32-bit version codes in its backup data sets. This is dealt with by, when the major version code is not 0, writing MIN_INT as the version code and following that by the full long version code, which we can detect when reading. Note that this makes backup sets containing apps with major version codes incompatible with older versions of the platform. Bug: 64459786 Test: Added in Change-Id: Iab8a682b62103babd6c16a56b8dc1e97d7078658 Change-Id: Ibfffe235bbfcf358b3741abd3f7197fdb063d3f3
2017-11-14Merge commit '98e12851336b7db16e583f9afac63ecc97465980' from Xin Li
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master. Change-Id: Ia7b8da4a00d215160e4a4fa40f6044208d1297b7 Merged-In: I19846d2a3ee27aecbae2367a74ee49082eea154d
2017-10-31Change storage migration to use quota APIs. Jeff Sharkey
New quota APIs are much faster than trying to measure manually, and removing this last user of calculateDirectorySize() means we can remove it once and for all. (cherry picked from commit c8b29ac6f0340bd0c3c9eb388c4be2d446de9a59) Bug: 36056324 Test: builds, boots Merged-In: Ibdf1ee4e8885680e106df6a9269b6309ddc61af8 Change-Id: Ibdf1ee4e8885680e106df6a9269b6309ddc61af8
2017-10-19Import translations. DO NOT MERGE Bill Yi
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 68003463 Change-Id: I787ed0d86b47ab9e642185523d65cb722479fec0
2017-09-28Finish removing ASEC. Jeff Sharkey
Awhile back we explicitly blocked any new ASEC installs, with the expectation that we'd eventually remove the logic entirely. We've had them disabled for about a week now without incident, so let's rip out the remaining code. Test: bit FrameworksCoreTests:android.content.pm.PackageHelperTests Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests Bug: 32913676 Change-Id: I1ecc35487420731f5c4bdf03bca5751548ce51b3
2017-08-25Import translations. DO NOT MERGE Bill Yi
Change-Id: I53db748a3c15d105f7ad6fa4bfe1797736e21e94 Auto-generated-cl: translation import
2017-08-11Import translations. DO NOT MERGE Bill Yi
Change-Id: I338e3a976aad5ee4b31205a22ee579b584363b92 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-07-20Merge "frameworks/base: use proper nativehelper headers" am: 826eafd958 am: ↵ Steven Moreland
5c091dc944 am: c840945a78 am: 9f430b2782 Change-Id: Ibe321dd4a8aae9342c76da0780edf94b90e8cd3a
2017-07-20Merge "frameworks/base: use proper nativehelper headers" Steven Moreland
am: 826eafd958 Change-Id: I36f10ff4d963284a313f1cc5b368f82549a4adb2
2017-07-19frameworks/base: use proper nativehelper headers Steven Moreland
libnativehelper exports headers under nativehelper. These were available before incorrectly as global headers in order to give access to jni.h. Test: modules using frameworks/base find headers Bug: 63762847 Change-Id: I0f9f231acdebe460f279135462f43d3e32eff64d
2017-07-06Change storage migration to use quota APIs. Jeff Sharkey
New quota APIs are much faster than trying to measure manually, and removing this last user of calculateDirectorySize() means we can remove it once and for all. Bug: 36056324 Test: builds, boots Change-Id: Ibdf1ee4e8885680e106df6a9269b6309ddc61af8
2017-06-12Import translations. DO NOT MERGE Bill Yi
Change-Id: Ic9bdbdb26c3c04948374ee9aec9dd855d4d3e9ec Auto-generated-cl: translation import
2017-04-14Clear identity to handle ALLOCATE_AGGRESSIVE. Jeff Sharkey
We're not actually clearing any files, only deciding how much free space is available, so we're fine assuming the remote caller has the permission. Test: builds, boots Bug: 37169076 Change-Id: I6cd42f77c43e9d2de40e2b8b937c7f2145f1b869
2017-04-02We really want f_frsize and f_bavail. Jeff Sharkey
It's confusing, but f_bsize is not the value you're looking for; the real block size is f_frsize. Fix all those bugs. Also, the vast majority of clients are interested in the usable disk space, not including reserved space. Test: builds, boots Bug: 36840579 Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791
2017-04-01Import translations. DO NOT MERGE Bill Yi
Auto-generated-cl: translation import Bug: 36832302 Change-Id: I87e870cdcec90e173ab587cc65afb8841e9a6411
2017-01-10Rename language+country resources to just language Roozbeh Pournader
Bug: 26496609 Test: none Change-Id: I40b99a8728f1f324f4c1f8066a61c3d5f92b1ac6
2016-12-05Revert "Import translations. DO NOT MERGE" Bill Yi
This reverts commit 3703206a9c3792c19c759679fc1fb107a0451cbe. Change-Id: I4c56ddc60e7ebbf82d6d4a3ac792a2580f3ba261
2016-12-02Import translations. DO NOT MERGE Bill Yi
Change-Id: I62d4bb9e3e6b7bd3c066c5b0df84d6236dcf6f3c Auto-generated-cl: translation import
2016-04-18Import translations. DO NOT MERGE Baligh Uddin
Change-Id: Ie2bab11cade0176adb90234c5ad0d38220735e6c Auto-generated-cl: translation import
2016-03-18Import translations. DO NOT MERGE Geoff Mendal
Change-Id: I95a46e04f0b98c68a270560479187a1b1ae54849 Auto-generated-cl: translation import
2016-03-17Merge "Refactoring FBE APIs based on council feedback." into nyc-dev am: a0a58a2 Jeff Sharkey
am: 5a128c4 * commit '5a128c4f33aa38d3a35b5884519f6bd3a355512d': Refactoring FBE APIs based on council feedback.
2016-03-17Refactoring FBE APIs based on council feedback. Jeff Sharkey
Mostly consists of removing the word "encryption" from most APIs, since we can't actually make promises about the data being encrypted. Bug: 27531029 Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
2016-02-15Import translations. DO NOT MERGE Geoff Mendal
Change-Id: Ic6029b47a4b6b60432d75eb8fb2f6502afe38c83 Auto-generated-cl: translation import
2015-12-16Import translations. DO NOT MERGE Geoff Mendal
Change-Id: I1dbbcb24ebd0b50cdcd4248e8ed4bd2d439143be Auto-generated-cl: translation import
2015-11-11More file-based encryption work. Jeff Sharkey
Add granular StorageManager APIs for key creation/destruction and unlocking/locking. Start passing through an opaque token as part of the unlock command, but leave it empty for now. We now have a separate "prepare" method that sanity checks that user directories are correctly setup. Define a handful of system properties used for marking devices that should be operating in FBE mode, and if they're emulating FBE. Wire a command to "sm", but persisting will come later. Start using new "encryptionAware" flag on apps previously marked with coreApp flag, which were apps running in the legacy CryptKeeper model. Small tweaks to handle non-encryptionAware voice interaction services. Switch PackageManager to consult StorageManager about the unlocked state of a user. Bug: 22358539 Change-Id: Ic2865f9b81c10ea39369c441422f7427a3c3c3d6
2015-07-22Import translations. DO NOT MERGE Geoff Mendal
Change-Id: Ib8bed6df18ef9ce251be4d2dcdfc5ebb5de147aa Auto-generated-cl: translation import
2015-07-15am 87ef89a2: am 38611265: am 973e7227: am 6819696c: am 539f7ac7: Merge "Give ↵ Jeff Sharkey
DCS permission needed to measure all users." into mnc-dev * commit '87ef89a2e5e7163ee24e993c20e263d35bb0b109': Give DCS permission needed to measure all users.
2015-07-15am 973e7227: am 6819696c: am 539f7ac7: Merge "Give DCS permission needed to ↵ Jeff Sharkey
measure all users." into mnc-dev * commit '973e72270ccbbd44f6e83690ba32735465bb170d': Give DCS permission needed to measure all users.
2015-07-15am 6819696c: am 539f7ac7: Merge "Give DCS permission needed to measure all ↵ Jeff Sharkey
users." into mnc-dev * commit '6819696c0e00ce3805de66f13ec6deda2489fd32': Give DCS permission needed to measure all users.
2015-07-15am 539f7ac7: Merge "Give DCS permission needed to measure all users." into ↵ Jeff Sharkey
mnc-dev * commit '539f7ac7a195c405987057ef34e88cfbe8eab5e8': Give DCS permission needed to measure all users.
2015-07-15Give DCS permission needed to measure all users. Jeff Sharkey
DCS runs as owner user, but needs to measure details for other users on the device. Bug: 22503636 Change-Id: I6d6899fae90c4e92b94647676bda8b88bad412e6
2015-07-15Import translations. DO NOT MERGE Geoff Mendal
Change-Id: I048960b16ae88661802cedc4e2f3ae337072da74 Auto-generated-cl: translation import
2015-07-11Import translations. DO NOT MERGE Geoff Mendal
Change-Id: Ie294e23803870c2283b2002f260dc466294e4161 Auto-generated-cl: translation import
2015-07-07am 67804838: am ccde254c: am 0cae3e9e: am 7dfe0f83: am 7fd3c296: Merge ↵ Jeff Sharkey
"Permission to view shared storage for all users." into mnc-dev * commit '67804838150fc85efb1bd27cc68422197976fe3f': Permission to view shared storage for all users.
2015-07-06am 0cae3e9e: am 7dfe0f83: am 7fd3c296: Merge "Permission to view shared ↵ Jeff Sharkey
storage for all users." into mnc-dev * commit '0cae3e9ebfb5d1050e28f57542eaaaa56fb96a33': Permission to view shared storage for all users.
2015-07-06Permission to view shared storage for all users. Jeff Sharkey
Typical apps are restricted so they can only view shared storage belonging to the user they're running as. However, a handful of system components need access to shared storage across all users, such as DefaultContainerService and SystemUI. Since WRITE_MEDIA_STORAGE already offers this functionality by bypassing any FUSE emulation, reuse it to grant the "sdcard_rw" GID which is no longer handed out to third-party apps. Then we change the FUSE daemon to allow the "sdcard_rw" GID to see shared storage of all users. Bug: 19995822 Change-Id: I504c2a179ba74f142ed0d32da5baa69f4212cd82
2015-06-03Import translations. DO NOT MERGE Geoff Mendal
Change-Id: I252366b8b3f6bacf169fb745a9f0b126f3e108f2 Auto-generated-cl: translation import
2015-05-30Import translations. DO NOT MERGE Geoff Mendal
Change-Id: I2548176e1f01dd7955f765ce8ff6207fd92c9110 Auto-generated-cl: translation import