2f720f7ec5c9d0b91defc85878e7330b10f8e89a |
|
11-Apr-2016 |
Jeff Sharkey <jsharkey@android.com> |
Use inode numbers for CE storage, fix sizes. Certain operations, such as clearing/destroying app data, or just counting on-disk size, require us to know the CE storage directory of a particular app. To facilitate these operations, offer a method to get the inode of a CE directory, and accept that inode number for later operations. In previous releases, we started installing apps using a new directory-based layout, where all app code, unpacked native libraries, and optimized code is bundled together. So now we only have a single path to measure for code size. Start measuring both CE and DE storage data usage for apps, and tweak the reporting so that empty cache/data directories actually show up as "0 bytes". Fix bugs in disk usage counting, since st_blksize has no bearing on the allocated disk space. Also don't double-count "." and ".." directories when measuring storage. Bug: 27828915, 27197819 Change-Id: I350b951f5c24165edb253ac663c9aae020c24dc9
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
02d0de56c75347a0cb8d5a8565dc8c4ee7616057 |
|
12-Nov-2015 |
Andreas Gampe <agampe@google.com> |
Installd: Refactor in preparation for OTA Refactor installd code so reuse with a few key plugin functions is possible. Do a bit of code cleanup. Bug: 25612095 Change-Id: I544604f0a391583a4c07887a8234343a3a255942
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
d792118c493806eeb24a8203f508e6e18fe93bd7 |
|
01-May-2015 |
Jeff Sharkey <jsharkey@android.com> |
Offer to move both code and data together. We now move code under /data/app/com.example when a complete move is requested. This really only works for new cluster-style installs that also have native libraries and OAT contained inside. Teach measuring code about cluster-style installs when measuring app footprint. Also offer to measure private data space for all users. Bug: 19993667, 20275578 Change-Id: I6df7b947cb5cc8a4552f56f4b64a661e8512389f
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
41ea424413c0381ef2aa15fc5bd5d4b88abd23c4 |
|
09-Apr-2015 |
Jeff Sharkey <jsharkey@android.com> |
More volume UUID awareness. Teach free_cache() and restorecon_data() about building per-volume paths. Also clean up restorecon_data() by using std::string when building paths. Clearer names for path building utility methods, and tests to verify. Bug: 19993667 Change-Id: Iacfbcdaa5b901cc2490bc8eba366dfdeb44f1d93
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
c03de09173f98506e73e7cf7df21fe11795d4b24 |
|
08-Apr-2015 |
Jeff Sharkey <jsharkey@android.com> |
Plumb through volume UUID when building paths. Since app data paths can live on expanded storage devices, accept the target volume UUID when building paths. The null UUID indicates the default internal storage. To improve readability, start using std::string in several places, which throws when allocations fail. For now, perform last-second sanity checks on incoming path arguments, but we'll eventually want to check arguments as they come through installd.cpp, instead of crashing the entire daemon. Also remove "lib" symlink code from install() and make_user_data(), since we're no longer supporting /data/app-lib. The framework already uses linklib() to create the right symlink for the selected ISA-specific library dir. Bug: 19993667 Change-Id: Ib9343575ffb62bf3981e19375de8f3822fc31e28
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
19803807cd7ae01868fcfa50305f4a7dd13765e2 |
|
07-Apr-2015 |
Jeff Sharkey <jsharkey@android.com> |
Switch installd to compile as C++. This is the minimal change needed to switch it over to C++, which paves the way for using more robust utilities like std::string. Change-Id: I80ed6280146875eb6ddbbb340c05450388ca13f0
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c |
|
19-Aug-2014 |
Calin Juravle <calin@google.com> |
Fix validation of system paths in installd. System apps are now installed under their own directory (system_app_dir/app_dir/app.apk). The new path doesn't pass installd validation because of obsolete checks which verify that the path does not contain subdirectories past the system_app_dir. The CL fixes the validation to accept at most on subdirectory. Bug: 17109858 Change-Id: I13abb52c0016610ff436f6a26bb6b3b85dc4dfb0
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
fd88ff2edd954117e36372fb095b6f5f35aad0e3 |
|
15-Aug-2014 |
Calin Juravle <calin@google.com> |
Allow apk path to contain one subdirectory. In the current directory layout this prevented rm_dex and move_dex commands to validate the apk path and thus cleaning up resources. Bug: 16888084 Change-Id: Iba579d075a9c6d7de047e7ffef95441498257086
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
abe4fe5b46157ecd2a52d28abf938c816c3ce878 |
|
11-Jul-2013 |
Jeff Sharkey <jsharkey@android.com> |
Change legacy "persona" references to userid_t. Offers stronger typing with no functional change. Change-Id: I09f0262470feec5cfdf26658f998c20550af84d4
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|
94afecf4b6f437b3ee9a076242402e421c6c07a6 |
|
24-Oct-2012 |
Mike Lockwood <lockwood@google.com> |
Move non-Java commands over from frameworks/base Change-Id: I0571813c1cfcf66abd36eb9f178fc49b618e88a6 Signed-off-by: Mike Lockwood <lockwood@google.com>
/frameworks/native/cmds/installd/tests/installd_utils_test.cpp
|