summaryrefslogtreecommitdiffstats
path: root/cmds/installd
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | am cde4b13a: Merge "Allow more than one dex2oat extra option"Narayan Kamath2014-10-011-5/+38
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cde4b13a12a0bc8a7bd031f5d5c1b2b2bdd13335': Allow more than one dex2oat extra option
* | | | | | | | | | Add missing <sys/file.h> include for flock.Elliott Hughes2015-02-161-0/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5c9bb4aa74d8a36d44e086bbcb5d60876727ce4c
* | | | | | | | | Installd: Disallow relocation for decryptionneo.chae2015-01-071-15/+24
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When decrypting a device, a tmpfs is temporarily mounted as /data, the size of which is usually small. When the zygote, system server and necessary apps are brought up, they will be compiled into the tmpfs. If the system image contains prebuilts, they will be relocated instead of compiled. This is unnecessary. In this special situation it is acceptable to run out of the prebuilt oat files without relocation, which can save space in the tmpfs. This patch ensures that apps are not being relocated. Change-Id: I42bfb7e3039574b7e4f2772e0d395f093d59ed1b Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
* | | | | | | | Installd: Swap file for dex2oatAndreas Gampe2014-12-181-3/+59
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add swap file support for dex2oat to installd. Only use in low-memory mode. Bug: 18596910 (cherry picked from commit f68ce4de7fcfcc090af7985972b304eed7dbaf63) Change-Id: I131448f3907115054a592af73db86d2b9257ea33
* | | | | | | Installd: Remove dalvik pathsAndreas Gampe2014-12-151-42/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dalvik is dead. Dexopt is dead. Change-Id: I9ff6b638a3e2c52ae7aec33d7b08a7bee012854f
* | | | | | | Mark 2 unused paramters as suchBernhard Rosenkränzer2014-11-231-2/+2
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark 2 unused paramters to prevent clang from erroring out Change-Id: Ifc9b4a5b820bd6318e9259e737e708d25fdb174b Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | | | | | Merge "Fix installd command line parser"Mike Lockwood2014-11-211-1/+3
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Fix installd command line parserSerguei Katkov2014-11-051-1/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parser does not take into account that the last argument can be empty. In this case it will skip end of line marker and continue parsing. Change-Id: I2d029a69ed22cef497893e592ff3275ced97f85f Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
* | | | | Merge "Kill INCLUDE_SYS_MOUNT_FOR_STATFS."Elliott Hughes2014-11-201-1/+1
|\ \ \ \ \
| * | | | | Kill INCLUDE_SYS_MOUNT_FOR_STATFS.Elliott Hughes2014-11-201-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | Change-Id: I692179cae9d476dd5a0b5fa92813b61934dd7c87
* | | | | Add an installd command to mark the end of boot.Narayan Kamath2014-11-193-1/+23
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 18280671 (cherry picked from commit b1a6c2f95a455aa2829340fcc8d233493855f4d4) Change-Id: I97542875ffff1b68ab324e9b04fb9266c82633cc
* | | | Add support for dalvik.vm.isa.<instruction set>.variantIan Rogers2014-11-081-0/+12
| | | | | | | | | | | | | | | | | | | | Bug: 18056890 Change-Id: Ia266fa9f2a79158ced82016106aa1cd2529259c9
* | | | am 60fd3fee: Migrate CA certificates to all usersRobin Lee2014-10-153-35/+144
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | * commit '60fd3feecab4336d964ca8e31c7c3220e1afb558': Migrate CA certificates to all users
| * | | Migrate CA certificates to all usersRobin Lee2014-10-153-35/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copies the /data/misc/keychain/cacert-* directories to all users on the device, whereas previously they were simply copied to user 0. This is a shallow copy so anything that wasn't supposed to be there will disappear. Bug: 17811821 Change-Id: Iae5909ab8d5efdb83c9c8fdf0e10ab7060d022cc
* | | | am cde4b13a: Merge "Allow more than one dex2oat extra option"Narayan Kamath2014-10-011-5/+38
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | * commit 'cde4b13a12a0bc8a7bd031f5d5c1b2b2bdd13335': Allow more than one dex2oat extra option
| * | Allow more than one dex2oat extra optionYevgeny Rouban2014-09-171-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | All extra options are provided as one argument to dex2oat. The patch splits all options to individual ones. Change-Id: Ied65bb9cf38b114611e88a8d5d86305021700d0b Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com> Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
* | | am e1e3d278: Merge "Clean cruft out of makefiles."Dan Albert2014-09-121-3/+1
|\ \ \ | |/ / | | | | | | | | | * commit 'e1e3d278549eb6389eb0b5fa3f13a4ac079a55a2': Clean cruft out of makefiles.
| * | Clean cruft out of makefiles.Dan Albert2014-09-111-3/+1
| | | | | | | | | | | | | | | | | | | | | Cleans up manual uses of stlport and bionic (and removes uses of private bionic headers). Change-Id: I157309d702e59152adfa3450939082248ae4c043
* | | resolved conflicts for merge of 07c9557f to lmp-dev-plus-aospDan Albert2014-09-123-28/+25
|\ \ \ | |/ / | | | | | | Change-Id: Ic212ab2ee90b1cc7db7203210b047c870bb5c476
| * | Fix warnings on unused variables and parameters.Chih-Hung Hsieh2014-09-113-28/+25
| | | | | | | | | | | | | | | BUG: 17474723 Change-Id: If40f5e765090cfb970e4129b78b1e74cf8bad217
* | | am 464e539c: Merge "Add new system APK locations." into lmp-devJeff Sharkey2014-09-094-16/+36
|\ \ \ | | |/ | |/| | | | | | | * commit '464e539cd3e931aaca99a67d0addc6d68bd96b3d': Add new system APK locations.
| * | Add new system APK locations.Jeff Sharkey2014-09-094-16/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add /system/priv-app and /oem/app paths to system paths. Also allow rmdex on system apps, and quietly ignore when it was already removed. Also relax logging when clearing code cache, since it's optional. Bug: 17205122 Change-Id: I4fc4d0f63a3596937c4defbd64e1f8a1c563f02d
| * | Remove obsolete prunedexcacheAlex Light2014-08-283-55/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 16875245 (cherry picked from commit 5f727f86942a188354c028356f1167794fdc8655) Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893
* | | am 51eec3b9: Merge "Fix relabeling of secondary user package directories."Nick Kralevich2014-09-081-1/+1
|\ \ \ | | |/ | |/| | | | | | | * commit '51eec3b98788039afc5fd7ffe76612c7f8d9b39c': Fix relabeling of secondary user package directories.
| * | Fix relabeling of secondary user package directories.Stephen Smalley2014-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When relabeling secondary user package directories, we need to use the uid of the directory rather than the primary package UID; otherwise, levelFrom=user will not work correctly. Change-Id: I0d76ec6ec6fe56a566023ca5e1398efdf28fc81e Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | | am 8c1642ad: Merge "Remove obsolete prunedexcache"Brian Carlstrom2014-08-293-55/+0
|\ \ \ | |/ / | | | | | | | | | * commit '8c1642ad4ea8fbeb7d03f30e5f50e03c28d40065': Remove obsolete prunedexcache
| * | Remove obsolete prunedexcacheAlex Light2014-08-283-55/+0
| | | | | | | | | | | | | | | Bug: 16875245 Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893
| * | Add vm_safe_mode to dexopt.Calin Juravle2014-08-273-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flag enforces interpret-only flag for dex2oat. Bug: 12457423 (cherry picked from commit b1efac103523efccbe671e76cc0eaaeab810415b) (cherry picked from commit 97477d203eaf0c3235bbe2415356f20a0431cada) Change-Id: I215339527e998b24e274c8df42a5024839e6a9fa
| * | Pass isa features flag to dex2oat.Calin Juravle2014-08-261-8/+21
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 16716262 (cherry picked from commit 8fc7315a67fdbf9b56cc6fa061f0773be2223a81) Change-Id: I3cb1d82604612bc7212bcbdeef685bc05b695b6a
| * | Fix validation of system paths in installd.Calin Juravle2014-08-222-27/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c) Change-Id: Ic5f15d1864c6af9f4c4b07dc27244ebbb521ad5e
| * | Allow apk path to contain one subdirectory.Calin Juravle2014-08-222-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3) Change-Id: I1002529b0c35852c67540d3165d1444523460592
| * | Disable verification based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 15165413 (cherry picked from commit e18987efb5e39ca1bed15527b7b82bde55c99669) Change-Id: Ie55ef400c9d1f231b3be64248c756ac798a11ffe
* | | am 7903c6a2: Merge "Make clear data stricter." into lmp-devJeff Sharkey2014-08-271-6/+1
|\ \ \ | | |/ | |/| | | | | | | * commit '7903c6a263354506ace10fc32aa65c231b64f62b': Make clear data stricter.
| * | Merge "Make clear data stricter." into lmp-devJeff Sharkey2014-08-271-6/+1
| |\ \
| | * | Make clear data stricter.Jeff Sharkey2014-08-271-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It should nuke everything under the data directory. PMS will come around and generate the lib symlink after we're finished. Bug: 16739202 Change-Id: Ib70af2e1450e3bed6781fb497b9cc67e1e594c49
* | | | am 97477d20: Set compiler filter flag to true when vmSafeMode is present.Calin Juravle2014-08-271-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '97477d203eaf0c3235bbe2415356f20a0431cada': Set compiler filter flag to true when vmSafeMode is present.
| * | | Set compiler filter flag to true when vmSafeMode is present.Calin Juravle2014-08-271-0/+1
| |/ / | | | | | | | | | | | | Bug: 12457423 Change-Id: I33345c5cce76681d8a6592ebae8c9f96a9f0f8bd
* | | am 7de2bde3: Merge "Add vm_safe_mode to dexopt." into lmp-devCalin Juravle2014-08-263-10/+15
|\ \ \ | |/ / | | | | | | | | | * commit '7de2bde3c4c3a6ecc7e6f21e3f3322688b718c4a': Add vm_safe_mode to dexopt.
| * | Add vm_safe_mode to dexopt.Calin Juravle2014-08-263-10/+15
| | | | | | | | | | | | | | | | | | | | | The flag enforces interpret-only flag for dex2oat. Bug: 12457423 Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac
* | | am 20558f11: Merge "Pass isa features flag to dex2oat." into lmp-devCalin Juravle2014-08-261-8/+21
|\ \ \ | |/ / | | | | | | | | | * commit '20558f1154abcf3360fd972f6d2c80bb80f78502': Pass isa features flag to dex2oat.
| * | Pass isa features flag to dex2oat.Calin Juravle2014-08-261-8/+21
| | | | | | | | | | | | | | | Bug: 16716262 Change-Id: Ifbc3a1520bc177aa87855edb60c36346f24c77cd
* | | am c597b6dd: Fix validation of system paths in installd.Calin Juravle2014-08-222-27/+67
|\ \ \ | |/ / | | | | | | | | | * commit 'c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c': Fix validation of system paths in installd.
| * | Fix validation of system paths in installd.Calin Juravle2014-08-222-27/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 67cfe0c0: Merge "Allow apk path to contain one subdirectory." into lmp-devCalin Juravle2014-08-222-26/+27
|\ \ \ | |/ / | | | | | | | | | * commit '67cfe0c0660c36ca385ad0eeb1352a2df721b49c': Allow apk path to contain one subdirectory.
| * | Allow apk path to contain one subdirectory.Calin Juravle2014-08-202-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am e18987ef: Disable verification based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-151-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit 'e18987efb5e39ca1bed15527b7b82bde55c99669': Disable verification based on vold.decrypt. [frameworks/native]
| * | Disable verification based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-151-1/+1
| | | | | | | | | | | | | | | Bug: 15165413 Change-Id: Ie70bf4e1348b7b8b2454cf9b498b272416d61c34
| * | Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroupBrian Carlstrom2014-08-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 15927194 (cherry picked from commit 0378aaf257aee92539d30543914a50c4481c6a18) Change-Id: I462b5ac256c4d091ed4023cf4b97dd6a4abcaa5f
| * | Disable compilation based on vold.decrypt. [frameworks/native]Brian Carlstrom2014-08-061-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 15165413 (cherry picked from commit 538998f204d1e542e235de9e7ce18ef4dc68c9cc) Change-Id: Idae36efa1cb3fb99b51fa0a79b6bb037981d1c71
| * | Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter ↵Brian Carlstrom2014-08-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [frameworks/native] This will allow us to conditionally change the compiler-filter based on other properties. Bug: 15165413 (cherry picked from commit cf51ba1360ee13459830a0502b0d454d0145544f) Change-Id: I6613c9710878d56ed8c121e0caded76a64430f76