1b9d9a6006f4159e2cc2c41330f316b1fdc53fe1 |
|
21-Sep-2017 |
Jeff Sharkey <jsharkey@android.com> |
Enable clang-tidy for sensitive domain. Since installd has broad access to lots of sensitive data, enable as many security-related tidy checks as possible to help avoid bugs. This change provides a default implementation of create_cache_path(), calculate_odex_file_path(), and calculate_oat_file_path(), along with tests to verify behavior against old code. Replace "dir_rec_t" with std::string, since that's really what it's been all along. Increase paranoia of path checking to reject any paths containing "..", regardless of where it occurs in path string. Stricter checking of instruction set values. Remove now-unused char* manipulation utility methods; people should be using std::string instead. Test: adb shell /data/nativetest/installd_cache_test/installd_cache_test Test: adb shell /data/nativetest/installd_service_test/installd_service_test Test: adb shell /data/nativetest/installd_utils_test/installd_utils_test Bug: 36655947 Change-Id: Ib706f0b8c1878be64710c00f56dccdfbe215570f
/frameworks/native/cmds/installd/globals.cpp
|
7823e124e00576e20e47ec717cbe8bc89f0f2bf2 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if possible - add system includes that are assumed as side effects - define LOG_TAG first Test: compile Bug: 31289077 Bug: 30465923 Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd
/frameworks/native/cmds/installd/globals.cpp
|
a5e161b1207ef447a51e99856097d69d4a6111e1 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
Replace cutils/log.h and rationalize log/log.h and android/log.h - cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if required - add system includes that are assumed as side effects of log.h - modules that use SLOG should use SLOG for all logging (installd) - define LOG_TAG first - remove logging infrastructure if not used Test: build Bug: 31289077 Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7
/frameworks/native/cmds/installd/globals.cpp
|
d089ca1703769854356a263ca640d3e07ab8548d |
|
27-Jun-2016 |
Andreas Gampe <agampe@google.com> |
Otapreopt: Implement new A/B OTA path Refactor otapreopt_script, otapreopt_chroot and otapreopt such that the actual work will be done as a child of the script driven by update_engine. The script now uses the new OtaDexoptService command to get the right parameters for a dexopt call in otapreopt. As we reach otapreopt_chroot and otapreopt directly, we can add parameters without tainting the regular installd path. Use this to add the target slot suffix, and make naming of the A/B artifacts include the suffix instead of the generic "b." Otapreopt_chroot startup is slightly complicated because all file descriptors must be closed. Otherwise, dex2oat needs selinux permissions to inherit the descriptors from update_engine. Bug: 25612095 Bug: 28069686 Change-Id: I9d7b86ac8ecfdf91af3800f7e96f41534c0afc0f (cherry picked from commit 0354bd0eaf24de533e86885b811f816f1e4d15c8)
/frameworks/native/cmds/installd/globals.cpp
|
6a1648e2f161cb1d7c46aa9d27e8062521a9f314 |
|
01-Feb-2016 |
Calin Juravle <calin@google.com> |
Extract profile files in their dedicated folder Current profiles (the ones which have not been used for compilation) are stored in /data/misc/profiles/cur/0/pkgname/. Reference profiles (the merged of all user profiles, used for compilation) are stored in /data/misc/profiles/ref/pkgname. The profile analysis flow has been changed to use profman before calling dex2oat. profman decides if there is a need for compilation and does the merging. Bug: 26719109 Bug: 26563023 Bug: 26881016 Change-Id: I5a86ed5fd07a28e2e580f9c108428527ba7993b6
/frameworks/native/cmds/installd/globals.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/globals.cpp
|