History log of /frameworks/native/cmds/installd/commands.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f68ce4de7fcfcc090af7985972b304eed7dbaf63 11-Dec-2014 Andreas Gampe <agampe@google.com> Installd: Swap file for dex2oat

Add swap file support for dex2oat to installd. Only use in low-memory
mode.

Bug: 18596910
Change-Id: I131448f3907115054a592af73db86d2b9257ea33
/frameworks/native/cmds/installd/commands.c
b1a6c2f95a455aa2829340fcc8d233493855f4d4 10-Nov-2014 Narayan Kamath <narayan@google.com> Add an installd command to mark the end of boot.

bug: 18280671

Change-Id: I6b3aeaf143ab3b78881f163ec5c17b9bf20172ed
/frameworks/native/cmds/installd/commands.c
9e87a8014055606b514b1c72b21915e17db7d513 06-Nov-2014 Igor Murashkin <iam@google.com> installd: Set priority to background for dexopting

This fixes jank caused by dex2oat while installing an application in the
background.

Bug: 17497551
Change-Id: I5a69b00c0fd76ae22a0d1adb242bef6c18a75743
/frameworks/native/cmds/installd/commands.c
770180a4dd86f8bda6af2e6db4676e99a5bb1548 09-Sep-2014 Jeff Sharkey <jsharkey@android.com> Add new system APK locations.

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
/frameworks/native/cmds/installd/commands.c
8b17ac6bd6b5114babac619cad3ff03fbf10a953 29-Aug-2014 Alex Light <allight@google.com> Remove obsolete prunedexcache

Bug: 16875245

(cherry picked from commit 5f727f86942a188354c028356f1167794fdc8655)

Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893
/frameworks/native/cmds/installd/commands.c
7903c6a263354506ace10fc32aa65c231b64f62b 27-Aug-2014 Jeff Sharkey <jsharkey@android.com> Merge "Make clear data stricter." into lmp-dev
3316fe472fd68377eba9983c43dfce4281209103 27-Aug-2014 Jeff Sharkey <jsharkey@android.com> Make clear data stricter.

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
/frameworks/native/cmds/installd/commands.c
97477d203eaf0c3235bbe2415356f20a0431cada 27-Aug-2014 Calin Juravle <calin@google.com> Set compiler filter flag to true when vmSafeMode is present.

Bug: 12457423
Change-Id: I33345c5cce76681d8a6592ebae8c9f96a9f0f8bd
/frameworks/native/cmds/installd/commands.c
b1efac103523efccbe671e76cc0eaaeab810415b 21-Aug-2014 Calin Juravle <calin@google.com> Add vm_safe_mode to dexopt.

The flag enforces interpret-only flag for dex2oat.

Bug: 12457423
Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac
/frameworks/native/cmds/installd/commands.c
8fc7315a67fdbf9b56cc6fa061f0773be2223a81 19-Aug-2014 Calin Juravle <calin@google.com> Pass isa features flag to dex2oat.

Bug: 16716262
Change-Id: Ifbc3a1520bc177aa87855edb60c36346f24c77cd
/frameworks/native/cmds/installd/commands.c
e18987efb5e39ca1bed15527b7b82bde55c99669 15-Aug-2014 Brian Carlstrom <bdc@google.com> Disable verification based on vold.decrypt. [frameworks/native]

Bug: 15165413
Change-Id: Ie70bf4e1348b7b8b2454cf9b498b272416d61c34
/frameworks/native/cmds/installd/commands.c
3b14e5b1f3fd1f3ef66696dc7ce4e53b6af3c309 08-Aug-2014 Brian Carlstrom <bdc@google.com> Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup

Bug: 15927194

(cherry picked from commit 0378aaf257aee92539d30543914a50c4481c6a18)

Change-Id: I462b5ac256c4d091ed4023cf4b97dd6a4abcaa5f
/frameworks/native/cmds/installd/commands.c
41cd9eb42471e99831fbbbb72b841202bbf33648 30-Jul-2014 Brian Carlstrom <bdc@google.com> Disable compilation based on vold.decrypt. [frameworks/native]

Bug: 15165413

(cherry picked from commit 538998f204d1e542e235de9e7ce18ef4dc68c9cc)

Change-Id: Idae36efa1cb3fb99b51fa0a79b6bb037981d1c71
/frameworks/native/cmds/installd/commands.c
9a87db6e1f48fb58398ac186968b08d000342098 29-Jul-2014 Brian Carlstrom <bdc@google.com> Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [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
/frameworks/native/cmds/installd/commands.c
43c5d30795faf08ab639b8d88c2eceaf2b648c93 21-Jul-2014 Alex Light <allight@google.com> Make system use patchoat to relocate during runtime.

Make installd understand a patchoat directive and carry it out.

Bug: 15358152

(cherry picked from commit 7365a10689df23334d245b211ce272502ad20669)

Change-Id: Id84a15e626ddde63876914068d3d9aa037abc65b
/frameworks/native/cmds/installd/commands.c
c796b681e52fbb792da9a5b4f30e935cc927c1d7 16-Jul-2014 Jeff Sharkey <jsharkey@android.com> Offer to delete code cache directories.

Bug: 16187224
Change-Id: Ia860b051a34ffdfb4f6e0ea19f90cb73509c4eee
/frameworks/native/cmds/installd/commands.c
7c5be65f2819bf0328715bc405483788dd7a81f2 09-Jul-2014 Robin Lee <rgl@google.com> Merge "Rename 'mkuser' command to 'mkuserconfig'"
e46a75a0f6007967cd0d161959af844772cdc330 28-Jun-2014 Brian Carlstrom <bdc@google.com> Make dex2oat heap size product configurable [frameworks/native]

Bug: 15919420
Change-Id: I0e629ff4f7541f0dde7380e0dbc8dab1c13df7bd
/frameworks/native/cmds/installd/commands.c
53e0776d967324e2908e3be56b80cddb2c9d9e03 27-Jun-2014 Brian Carlstrom <bdc@google.com> Use current max product dalvik.vm.heapsize as default dex2oat heap size

Bug: 15919420

(cherry picked from commit 3aa138617b42b87069dbac0b441bd14dca2d8609)

Change-Id: I569ba111c6163e94dd1b09b21ef374f05d263e72
/frameworks/native/cmds/installd/commands.c
357df19b14b8387a480ed68dd6ea92eeb1aa4edc 24-Jun-2014 Narayan Kamath <narayan@google.com> Merge "Exclude subdirectories when pruning the dex cache."
1e57e4af8afb5a3b8b657e1c9ca3f9810e266083 17-Jun-2014 Narayan Kamath <narayan@google.com> Exclude subdirectories when pruning the dex cache.

This requires a companion package manager change to prune
each instruction specific dex cache individually.

bug: 15677279

Change-Id: I5891981512bde20e49bff65b1842c28886f2b177
/frameworks/native/cmds/installd/commands.c
71f9956a23885e64626828a1afa8c512e29be8cc 17-Jun-2014 Brian Carlstrom <bdc@google.com> Merge "Fix obsolete argument name"
7195fcc2185c35b45a8f28c79fde4999b38850e8 16-Jun-2014 Brian Carlstrom <bdc@google.com> Fix obsolete argument name

Change-Id: I8030f055ee49dc86d4592f36791edddfc0d60a31
/frameworks/native/cmds/installd/commands.c
8c9bcff892ae30897a971c3b97305e70db5b5bd3 16-Jun-2014 Narayan Kamath <narayan@google.com> Merge "Add an installd command to prune dex files."
7c8bec01790087748ec7afa69a31789828b751f9 10-Jun-2014 Robin Lee <rgl@google.com> Rename 'mkuser' command to 'mkuserconfig'

Brings the name more in line with what it actually does.

Change-Id: I0adb14deb1a035abdbe51714356bd0c94ccf04c5
/frameworks/native/cmds/installd/commands.c
3aee2c5c749dc2589f001b26fae1ec958ec89524 10-Jun-2014 Narayan Kamath <narayan@google.com> Add an installd command to prune dex files.

This is a straightforward port of logic from
PackageManagerService#pruneDexFiles.

bug: 14407732

Change-Id: I892cff027ddcbb1a4fb37a7af5ecf1697049a188
/frameworks/native/cmds/installd/commands.c
4fdff4616699708e58d875273c3c1a85ba4c63bd 06-Jun-2014 Calin Juravle <calin@google.com> Pass --top-k-profile-threshold to dex2oat if available.

Also, don't pass --profile-file if the file is empty.
Bug: 12877748

Change-Id: I587d198e64da709930e2cea50a87fed1525281e5
/frameworks/native/cmds/installd/commands.c
57c69c39640a7d6a08b3afb56361d76f7ecf1250 06-Jun-2014 Calin Juravle <calin@google.com> Don't always add profile-file option to dex2oat

Add profile-file option to dex2oat only if the profiler is active and
the file exists.

Bug: 12877748
Bug: 15275634
Change-Id: Icef76514c912c88311ed108f2be7a6329131f741
/frameworks/native/cmds/installd/commands.c
095c763dd9aa26a206d10ab7c1d7e1c569298fb3 25-Apr-2014 Robin Lee <rgl@google.com> Add installd command to create /data/misc user dir

New command 'mkuser <id>' sets up a user directory in /data/misc/user/,
readable by all apps within that user and writeable by the local system
process.

Change-Id: I5ddde8c4a80f606e723bb41aa64581a0720842d5
/frameworks/native/cmds/installd/commands.c
856bc78efcda3d1584ba7d6f8f4b041d5f640de0 28-May-2014 Brian Carlstrom <bdc@google.com> Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175

(cherry picked from commit c4ac3124ffb51f13bb4206e9f8452a3712eb09cb)

Change-Id: I97cc3ff7a269e671b315afa8673dae43d1f86bf1
/frameworks/native/cmds/installd/commands.c
3a98389263ea0bf9656bcc6869855099194f498c 13-May-2014 Stephen Smalley <sds@tycho.nsa.gov> Ensure that app lib symlinks are correctly labeled when created.

At present, the app lib symlinks are created before setting
the package directory security context, and therefore default
to system_data_file. Upon a later restorecon_recursive,
they are relabeled to the same type as the package directory,
e.g. app_data_file. Avoid this inconsistency by setting the
package directory security context before creating the symlink
so that it inherits the same security context.

Change-Id: I1ee6ccd8a2aa63a4d2efda67f313c97932235911
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/frameworks/native/cmds/installd/commands.c
1b4003207750ea8fe8c7b03eb32d80f1df83979e 11-Apr-2014 Narayan Kamath <narayan@google.com> Add instruction-set arguments to installd commands.

The instruction-set is used to construct the dalvik cache
path and is also passed down to dex2oat.

(cherry picked from commit 791781bfb8cdcdf90e32968159603e2fe5098d94)

Change-Id: I43396b16f6eaecacf0fb7d052526fc5a239167ac
/frameworks/native/cmds/installd/commands.c
0e8ae16f084e3d4772ea6dd33a9b72925d7b40d5 28-Apr-2014 Chih-Wei Huang <cwhuang@linux.org.tw> Fix incorrect odex path handling

It's wrong to just concatenate the apk_path and .odex.
The bug prevents the prebuilt odex being used since Kitkat.

The patch is copied from the code of JellyBean.

Change-Id: I0ce8a877e3df8ae1ab9a0e3aeeef2d5253efc223
/frameworks/native/cmds/installd/commands.c
da30dc7336f03ca629fe173db1425fdce989119c 27-Mar-2014 Robert Craig <rpcraig@tycho.ncsc.mil> Modify installd's restorecon function.

Changes above with PMS and below with libselinux
have resulted in a few changes to the restorecon data
api. This change is needed in order to support the new
way to issue a recursive restorecon of certain
/data/data directories.

The restorecondata function has also been modified to
find all users on the device for a given package name
(argument to the function) and to issue a separate
recursive restorecon call for each.

Change-Id: Ie440cba2c96f0907458086348197e1506d31c1b6
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/native/cmds/installd/commands.c
e9887e46cea4a095e4219927eadbe4c57bb1a5ee 20-Feb-2014 Robert Craig <rpcraig@tycho.ncsc.mil> Extend installd to support SELinux restorecon function.

Implement new restorecondata function which will allow
the relabeling of /data/data and /data/user directories.
This is needed in the case of certain OTAs. Not every
boot will apply this relabeling however. Consult change
I77bf2a0c4c34b1feef6fdf4d6c3bd92dbf32f4a1 for
clarification on this issue.

Change-Id: I05e8b438950ddb908e46c9168ea6ee601e6d674f
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/native/cmds/installd/commands.c
92dc3fc52cf097bd105460cf377779bdcf146d62 12-Mar-2014 Mark Salyzyn <salyzyn@google.com> native frameworks: 64-bit compile issues

- Fix format (print/scanf)
- Suppress unused argument warning messages (bonus)

Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
/frameworks/native/cmds/installd/commands.c
4bc054019d148444e0d0308e21ee26db53e43b72 11-Mar-2014 Anwar Ghuloum <anwarg@google.com> Fix parameter ordering for installd's dex2oat execl.

Change-Id: Ibd6fd46c6ec3137874f9a3d5eea134bc804e039a
/frameworks/native/cmds/installd/commands.c
d93707342a61e66bc3eb2145628158452f577f42 30-Jan-2014 Dave Allison <dallison@google.com> ART profiler

Add args to the installd commands for profiler usage.
Make installd create the profile files and allow apps
to write to them.

The profile files are in /data/dalvik-cache/profiles. This
central location is needed due to permissions issues with
dex2oat reading from an app's data directory. The solution
is to put the profile file in a directory owned by the
install user and make the file writeable by the shared group
id of for the app. The app can read and write to these files
only in the profiles directory. The 'system' user also needs
to be able to read the files in order to determine the amount
of change to the file over time.

Bug: 12877748
Change-Id: I9b8e59e3bd7df8a1bf60fa7ffd376a24ba0eb42f

Conflicts:
cmds/installd/commands.c
/frameworks/native/cmds/installd/commands.c
f53dbfeda39c290ed67b0682d559a80cb42ceb79 06-Mar-2014 Mathieu Chartier <mathieuc@google.com> Don't pass in empty arg to dex2oat.

We would occassionally pass in an empty arg "" instead of a NULL.
This caused problems since dex2oat isn't made to handle empty args.

Change-Id: Ibb1aed64a4aa17459b2a75a5a2abcf13c7fa8ac7
/frameworks/native/cmds/installd/commands.c
0ae8e39ebcc26836ba55a5ee4481825a0f473a9e 11-Feb-2014 Brian Carlstrom <bdc@google.com> Add dalvik.vm.dex2oat-flags to mimic dalvik.vm.dexopt-flags

Change-Id: Ic048ed654ea0ae38c9684e5fa5b14742b6b83305
/frameworks/native/cmds/installd/commands.c
2044ac43e53b517526b3c70dc4fbc60ffc01693f 13-Feb-2014 Nick Kralevich <nnk@google.com> Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
26288202e7bdf2e897a11bf31a15685d7c20945f 07-Feb-2014 Stephen Smalley <sds@tycho.nsa.gov> Convert all selinux_android_restorecon and _setfilecon calls to new API.

libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.

Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.

Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/frameworks/native/cmds/installd/commands.c
63568b1430d741f40ca008391c854ef1cc880138 31-Jan-2014 MÃ¥rten Kongstad <marten.kongstad@sonymobile.com> Runtime resource overlay, iteration 2

Support any number of overlay packages. Support any target package.

UPDATED PACKAGE MATCHING
------------------------
In Runtime resource overlay, iteration 1, only a single overlay package
was considered. Package matching was based on file paths:
/vendor/overlay/system/framework-res.apk corresponded to
/system/framework-res.apk. Introduce a more flexible matching scheme
where any package is an overlay package if its manifest includes

<overlay targetPackage="com.target.package"/>

For security reasons, an overlay package must fulfill certain criteria
to take effect: see below.

THE IDMAP TOOL AND IDMAP FILES
------------------------------
Idmap files are created by the 'idmap' binary; idmap files must be
present when loading packages. For the Android system, Zygote calls
'idmap' as part of the resource pre-loading. For application packages,
'idmap' is invoked via 'installd' during package installation (similar
to 'dexopt').

UPDATED FLOW
------------
The following is an outline of the start-up sequences for the Android
system and Android apps. Steps marked with '+' are introduced by this
commit.

Zygote initialization
Initial AssetManager object created
+ idmap --scan creates idmaps for overlays targeting 'android', \
stores list of overlays in /data/resource-cache/overlays.list
AssetManager caches framework-res.apk
+ AssetManager caches overlay packages listed in overlays.list

Android boot
New AssetManager's ResTable acquired
AssetManager re-uses cached framework-res.apk
+ AssetManager re-uses cached 'android' overlays (if any)

App boot
ActivityThread prepares AssetManager to load app.apk
+ ActivityThread prepares AssetManager to load app overlays (if any)
New AssetManager's ResTable acquired as per Android boot

SECURITY
--------
Overlay packages are required to be pre-loaded (in /vendor/overlay).
These packages are trusted by definition. A future iteration of runtime
resource overlay may add support for downloaded overlays, which would
likely require target and overlay signatures match for the overlay to
be trusted.

LOOKUP PRIORITY
---------------
During resource lookup, packages are sequentially queried to provide a
best match, given the constraints of the current configuration. If any
package provide a better match than what has been found so far, it
replaces the previous match. The target package is always queried last.

When loading a package with more than one overlay, the order in which
the overlays are added become significant if several packages overlay
the same resource.

Had downloaded overlays been supported, the install time could have been
used to determine the load order. Regardless, for pre-installed
overlays, the install time is randomly determined by the order in which
the Package Manager locates the packages during initial boot. To support
a well-defined order, pre-installed overlay packages are expected to
define an additional 'priority' attribute in their <overlay> tags:

<overlay targetPackage="com.target.package" priority="1234"/>

Pre-installed overlays are loaded in order of their priority attributes,
sorted in ascending order.

Assigning the same priority to several overlays targeting the same base
package leads to undefined behaviour. It is the responsibility of the
vendor to avoid this.

The following example shows the ResTable and PackageGroups after loading
an application and two overlays. The resource lookup framework will
query the packages in the order C, B, A.

+------+------+- -+------+------+
| 0x01 | | ... | | 0x7f |
+------+------+- -+------+------+
| |
"android" Target package A
|
Pre-installed overlay B (priority 1)
|
Pre-installed overlay C (priority 2)

Change-Id: If49c963149369b1957f7d2303b3dd27f669ed24e
/frameworks/native/cmds/installd/commands.c
0c05d3aca6d63625513d5f42706e81c2d7834fd9 30-Jan-2014 Brian Carlstrom <bdc@google.com> frameworks/native: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: I6b40317eceb3d89b0acff88238a9a9ab423c4d78
/frameworks/native/cmds/installd/commands.c
e4e91c4ead821afb5aced2e33ee39d8878eb4d1e 20-Sep-2013 Nick Kralevich <nnk@google.com> resolved conflicts for merge of e678897f to klp-dev-plus-aosp

Change-Id: Ie2a5e7a917ab7f5a0ee98300b880d22c7a10bf70
880d1a957ebcb63fb9d3724e2f91c58b7ff0cd54 29-Jul-2013 Robert Craig <rpcraig@tycho.ncsc.mil> Proper security labeling of multi-user data directories.

Add seinfo paramater to appropriate make directory
functions. This allows proper labeling for multi-user
scenarios.

Change-Id: Iaba7c40645bc7b6cc823d613da0c3782acf6ddd5
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/native/cmds/installd/commands.c
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/commands.c
e7a8b17e37ef359567fbbd9beb8c2445494f6402 30-Jun-2013 Brian Carlstrom <bdc@google.com> Renaming dalvik.vm.lib to persist.sys.dalvik.vm.lib

Change-Id: If31695e04bb813eb75b2fdd00e5d70ced4fbb0e9
/frameworks/native/cmds/installd/commands.c
1705fc44fb85c4232637f9f7189c3bdca98a63d5 22-Mar-2013 Brian Carlstrom <bdc@google.com> Moving dex2oat installd patches from frameworks/base

(cherry picked from commit 3fa3a652ba9a7c5b23b6f2bc7c1851d4e23e430f)

Change-Id: I2f9bb66e1b0463bef41805f2d220160880121813
/frameworks/native/cmds/installd/commands.c
8b41780d73930b37b6254cc1dac5607c843839c0 02-May-2013 Dianne Hackborn <hackbod@google.com> Fix issue #8768456: Settings > App Info under reports...

...app storage size for apps w/ .so files

The lib directories are tagged with the apk install number,
so must be explicitly passed down to installd.

Change-Id: Iae8815afd6ba964f5b2ed86a0d04a91827391ed6
/frameworks/native/cmds/installd/commands.c
4d3fd4e9988c0eb284dd5104c4dea757f723c716 25-Mar-2013 Robert Craig <rpcraig@tycho.ncsc.mil> Add seinfo parsing to PackageManagerService.

This patch set allows the PMS to parse the
mac_permissions.xml file which contains the
seinfo values. Each package that is installed
on the device will be assigned an seinfo value
based on policy. This seinfo value will help label
the app process and data directory. Modifications
include adjustments to ApplicationInfo.java
to store the seinfo tag per package as well as
adjustments to installd to communicate the seinfo
tag to libselinux.

Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/native/cmds/installd/commands.c
d747129e1e8876f5a50f47156ec50b6969a638e4 01-Mar-2013 Nick Kralevich <nnk@google.com> installd: use correct header file.

This is a port of https://android-review.googlesource.com/52540 ,
which doesn't apply cleanly to master.

Change-Id: I2824bb7afd4e343b5dc8bed9f24002ec1dcbf07f
/frameworks/native/cmds/installd/commands.c
a2d838a542c34d2887a0ec1fafa5f47566d595e9 10-Jan-2013 Nick Kralevich <nnk@google.com> Revert "App home directories are now 0700 for targetSdkVersion > 17"

This reverts commit 7f5c84a0b25706746a92ad1233cbbb8923eda54d.

Bug: 7966399
Bug: 7208882
Change-Id: I9fb13cf06c0f6605f3d992525346b14fe3259c66
/frameworks/native/cmds/installd/commands.c
7f5c84a0b25706746a92ad1233cbbb8923eda54d 13-Dec-2012 Nick Kralevich <nnk@google.com> App home directories are now 0700 for targetSdkVersion > 17

Have installd set an app's home directory permissions to
0700 if the app has targetSdkVersion > 17.

Bug: 7208882
Change-Id: Iaa4fc42fec69bc1abdfae53704d6264dd6fa965f
/frameworks/native/cmds/installd/commands.c
f62d2851a83f6976e22932e09c35013a6bb0c3f3 12-Dec-2012 Nick Kralevich <nnk@google.com> remove unused code.

Change-Id: Iacc8b2664a0e404dfa554f223a44126c41581ae4
/frameworks/native/cmds/installd/commands.c
f1c3ffe5f0cbf33041cfa9c3d6333ee08fbf2802 14-Nov-2012 rpcraig <rpcraig@tycho.ncsc.mil> Bug fix on installd with SELinux enabled kernel.

setfilecon is not required on libsymlinks when target
doesn't exist. A bootloop is caused without this
change.

Change-Id: Ia895d9063f42885a3db6e8ca30cee5dceb8c1bac
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/native/cmds/installd/commands.c
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/commands.c