OSDN Git Service

android-x86/frameworks-native.git
9 years agoFix a null dereference.
Dan Albert [Tue, 23 Sep 2014 16:51:51 +0000 (09:51 -0700)]
Fix a null dereference.

Change-Id: I7224c3368ff414620062bc08b80a6a94d55d7931

9 years agoMerge "Clean cruft out of makefiles."
Dan Albert [Fri, 12 Sep 2014 01:57:53 +0000 (01:57 +0000)]
Merge "Clean cruft out of makefiles."

9 years agoClean cruft out of makefiles.
Dan Albert [Fri, 12 Sep 2014 01:45:33 +0000 (18:45 -0700)]
Clean cruft out of makefiles.

Cleans up manual uses of stlport and bionic (and removes uses of private
bionic headers).

Change-Id: I157309d702e59152adfa3450939082248ae4c043

9 years agoMerge "Fix warnings on unused variables and parameters."
Chih-Hung Hsieh [Fri, 12 Sep 2014 00:13:40 +0000 (00:13 +0000)]
Merge "Fix warnings on unused variables and parameters."

9 years agoFix warnings on unused variables and parameters.
Chih-Hung Hsieh [Thu, 11 Sep 2014 21:44:46 +0000 (14:44 -0700)]
Fix warnings on unused variables and parameters.

BUG: 17474723
Change-Id: If40f5e765090cfb970e4129b78b1e74cf8bad217

9 years agoMerge "Work around C11 const atomic restrictions."
Hans Boehm [Thu, 11 Sep 2014 22:52:53 +0000 (22:52 +0000)]
Merge "Work around C11 const atomic restrictions."

9 years agoWork around C11 const atomic restrictions.
Hans Boehm [Thu, 11 Sep 2014 21:49:09 +0000 (14:49 -0700)]
Work around C11 const atomic restrictions.

Cast away the const qualifier in BBinder::findObject.  C11, unlike C++11,
does not allow loads from const atomics.  This is widely regarded as
a bug (see WG14 DR 459).  This is a hack to work around it until it's
officially fixed in the spec.

load_const_atomic was adapted from commit
1e8587a479fd8b1ce9b594298a93f517816e8f15

I don't think we want to dignify this by putting it into a header file.

Bug:17067219
Change-Id: Icbfcbda2722e6f80d2bb065a0bb3ec7634bcacb2

9 years agoMerge "Silence warnings about unused parameters."
Dan Albert [Thu, 11 Sep 2014 02:32:23 +0000 (02:32 +0000)]
Merge "Silence warnings about unused parameters."

9 years agoMerge "Fix clang warnings about struct vs. class."
Dan Albert [Wed, 10 Sep 2014 00:40:03 +0000 (00:40 +0000)]
Merge "Fix clang warnings about struct vs. class."

9 years agoSilence warnings about unused parameters.
Dan Albert [Tue, 9 Sep 2014 22:09:07 +0000 (15:09 -0700)]
Silence warnings about unused parameters.

Change-Id: I503aafbdeaec3f53241872dc52af9f8b73a1416c

9 years agoMerge "Use time() instead of clock() for timeouts."
Christopher Ferris [Tue, 9 Sep 2014 22:39:44 +0000 (22:39 +0000)]
Merge "Use time() instead of clock() for timeouts."

9 years agoFix clang warnings about struct vs. class.
Dan Albert [Tue, 9 Sep 2014 22:07:07 +0000 (15:07 -0700)]
Fix clang warnings about struct vs. class.

Change-Id: I9f26cd01ac3153efa6d77a4133686842e2d63203

9 years agoUse time() instead of clock() for timeouts.
Christopher Ferris [Tue, 9 Sep 2014 20:10:49 +0000 (13:10 -0700)]
Use time() instead of clock() for timeouts.

The clock() function returns the processor time used by the process. This
is not a good timeout mechanism since the code is suspended most of the
time waiting for the forked process to finish. Replace with the time()
function.

Bug: 17154069

(cherry picked from commit 89d4949f86f4f7b6710e951afefad186c667fd6e)

Change-Id: I42f0f24ee53ef99955fd482a1089e39d491f3bd5

9 years agoMerge "Make string literal concatenation play nice with C++11."
Dan Albert [Tue, 9 Sep 2014 04:02:10 +0000 (04:02 +0000)]
Merge "Make string literal concatenation play nice with C++11."

9 years agoMake string literal concatenation play nice with C++11.
Dan Albert [Tue, 9 Sep 2014 01:53:39 +0000 (18:53 -0700)]
Make string literal concatenation play nice with C++11.

In C++11 mode, "foo"MACRO_THAT_EXPANDS_TO_STRING gets lexed as a user
defined literal. Add space around the macro.

Change-Id: I2741f5be9c0b1562e0f413d1309ef9d687e89b41

9 years agoMerge "Fix relabeling of secondary user package directories."
Nick Kralevich [Mon, 8 Sep 2014 20:37:23 +0000 (20:37 +0000)]
Merge "Fix relabeling of secondary user package directories."

9 years agoFix relabeling of secondary user package directories.
Stephen Smalley [Mon, 8 Sep 2014 19:51:55 +0000 (15:51 -0400)]
Fix relabeling of secondary user package directories.

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>
9 years agoMerge "Remove obsolete prunedexcache"
Brian Carlstrom [Thu, 28 Aug 2014 23:45:11 +0000 (23:45 +0000)]
Merge "Remove obsolete prunedexcache"

9 years agoRemove obsolete prunedexcache
Alex Light [Thu, 28 Aug 2014 23:17:04 +0000 (16:17 -0700)]
Remove obsolete prunedexcache

Bug: 16875245

Change-Id: I06e14c405aa4af295795982c1d236be3cb00e893

9 years agoMerge "Add vm_safe_mode to dexopt."
Calin Juravle [Wed, 27 Aug 2014 15:50:16 +0000 (15:50 +0000)]
Merge "Add vm_safe_mode to dexopt."

9 years agoAdd vm_safe_mode to dexopt.
Calin Juravle [Thu, 21 Aug 2014 18:05:20 +0000 (19:05 +0100)]
Add vm_safe_mode to dexopt.

The flag enforces interpret-only flag for dex2oat.

Bug: 12457423

(cherry picked from commit b1efac103523efccbe671e76cc0eaaeab810415b)
(cherry picked from commit 97477d203eaf0c3235bbe2415356f20a0431cada)

Change-Id: I215339527e998b24e274c8df42a5024839e6a9fa

9 years agoMerge "Pass isa features flag to dex2oat."
Calin Juravle [Tue, 26 Aug 2014 17:52:26 +0000 (17:52 +0000)]
Merge "Pass isa features flag to dex2oat."

9 years agoPass isa features flag to dex2oat.
Calin Juravle [Tue, 19 Aug 2014 17:48:50 +0000 (18:48 +0100)]
Pass isa features flag to dex2oat.

Bug: 16716262

(cherry picked from commit 8fc7315a67fdbf9b56cc6fa061f0773be2223a81)

Change-Id: I3cb1d82604612bc7212bcbdeef685bc05b695b6a

9 years agoMerge "Fix validation of system paths in installd."
Calin Juravle [Fri, 22 Aug 2014 17:11:51 +0000 (17:11 +0000)]
Merge "Fix validation of system paths in installd."

9 years agoFix validation of system paths in installd.
Calin Juravle [Tue, 19 Aug 2014 16:43:05 +0000 (17:43 +0100)]
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

(cherry picked from commit c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c)

Change-Id: Ic5f15d1864c6af9f4c4b07dc27244ebbb521ad5e

9 years agoMerge "Allow apk path to contain one subdirectory."
Calin Juravle [Fri, 22 Aug 2014 13:40:49 +0000 (13:40 +0000)]
Merge "Allow apk path to contain one subdirectory."

9 years agoAllow apk path to contain one subdirectory.
Calin Juravle [Fri, 15 Aug 2014 14:45:51 +0000 (15:45 +0100)]
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

(cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3)

Change-Id: I1002529b0c35852c67540d3165d1444523460592

10 years agoMerge "Fix CAS argument type."
Hans Boehm [Tue, 19 Aug 2014 22:15:01 +0000 (22:15 +0000)]
Merge "Fix CAS argument type."

9 years agoFix CAS argument type.
Hans Boehm [Tue, 19 Aug 2014 20:42:54 +0000 (13:42 -0700)]
Fix CAS argument type.

Gcc apparently doesn't check; clang does.

Bug:17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76

10 years agoMerge "Use gettid directly in binder."
Elliott Hughes [Mon, 18 Aug 2014 17:45:48 +0000 (17:45 +0000)]
Merge "Use gettid directly in binder."

10 years agoUse gettid directly in binder.
Elliott Hughes [Mon, 18 Aug 2014 17:38:38 +0000 (10:38 -0700)]
Use gettid directly in binder.

Bug: 17048545
Change-Id: I1df378135961e085a52f6cc5694ad74cd73aac19

10 years agoMerge "Disable verification based on vold.decrypt. [frameworks/native]"
Brian Carlstrom [Fri, 15 Aug 2014 17:21:47 +0000 (17:21 +0000)]
Merge "Disable verification based on vold.decrypt. [frameworks/native]"

10 years agoDisable verification based on vold.decrypt. [frameworks/native]
Brian Carlstrom [Fri, 15 Aug 2014 16:55:50 +0000 (09:55 -0700)]
Disable verification based on vold.decrypt. [frameworks/native]

Bug: 15165413

(cherry picked from commit e18987efb5e39ca1bed15527b7b82bde55c99669)

Change-Id: Ie55ef400c9d1f231b3be64248c756ac798a11ffe

10 years agoMerge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use...
Hans Boehm [Wed, 13 Aug 2014 00:10:07 +0000 (00:10 +0000)]
Merge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""""

10 years agoRevert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
Hans Boehm [Tue, 12 Aug 2014 22:56:00 +0000 (22:56 +0000)]
Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

After fixing b/16874785.

This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e.

Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d

10 years agoMerge "Change an accidental ALOGE to an ALOGV"
Andreas Gampe [Mon, 11 Aug 2014 19:48:03 +0000 (19:48 +0000)]
Merge "Change an accidental ALOGE to an ALOGV"

10 years agoChange an accidental ALOGE to an ALOGV
Alex Light [Mon, 11 Aug 2014 17:07:02 +0000 (10:07 -0700)]
Change an accidental ALOGE to an ALOGV

Change-Id: If07bcef597dd9e531ce6d92c7780ba6ad5090f9a

10 years agoRevert "Revert "Revert "Remove incorrect android_atomic_...64 use."""
Hans Boehm [Sat, 9 Aug 2014 01:17:13 +0000 (01:17 +0000)]
Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""

This reverts commit 66629e0de532376fa3ef43175ad05eccd21114da.

Change-Id: Ic298b345d0e500d18e4297b00e755ce3340f13fb

10 years agoRevert "Revert "Remove incorrect android_atomic_...64 use.""
Hans Boehm [Fri, 8 Aug 2014 21:19:14 +0000 (14:19 -0700)]
Revert "Revert "Remove incorrect android_atomic_...64 use.""

This reverts commit 9dc5c269f74ac76f62515e3d9558e67c6e63067d.
Adds a stdint.h include in case stdatomic.h stops including that.

Change-Id: If3dd1db1f1132c0f2dc1efb0a44617d3f36d7cfb

10 years agoMerge "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
Hans Boehm [Sat, 9 Aug 2014 01:19:00 +0000 (01:19 +0000)]
Merge "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

10 years agoMerge "Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup"
Narayan Kamath [Mon, 11 Aug 2014 17:30:26 +0000 (17:30 +0000)]
Merge "Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup"

10 years agoUse set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup
Brian Carlstrom [Fri, 8 Aug 2014 07:52:22 +0000 (00:52 -0700)]
Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup

Bug: 15927194
Change-Id: Id8bc188de68d62fd5f91a99aaaa6c8f2dea06abd

10 years agoMerge "Revert "Revert "Remove incorrect android_atomic_...64 use."""
Hans Boehm [Sat, 9 Aug 2014 00:30:10 +0000 (00:30 +0000)]
Merge "Revert "Revert "Remove incorrect android_atomic_...64 use."""

10 years agoMerge "Revert "Remove incorrect android_atomic_...64 use.""
Hans Boehm [Wed, 6 Aug 2014 22:48:23 +0000 (22:48 +0000)]
Merge "Revert "Remove incorrect android_atomic_...64 use.""

10 years agoRevert "Remove incorrect android_atomic_...64 use."
Hans Boehm [Wed, 6 Aug 2014 22:45:13 +0000 (22:45 +0000)]
Revert "Remove incorrect android_atomic_...64 use."

This reverts commit 88b7541d682a6ad402eff15e58c9c792497096d7.

Change-Id: Ie701c308451a3697bb167aff119318b932133f90

10 years agoMerge "Remove incorrect android_atomic_...64 use."
Hans Boehm [Wed, 6 Aug 2014 21:14:39 +0000 (21:14 +0000)]
Merge "Remove incorrect android_atomic_...64 use."

10 years agoMerge "GlES2: Add NULL check"
Jesse Hall [Wed, 6 Aug 2014 17:14:01 +0000 (17:14 +0000)]
Merge "GlES2: Add NULL check"

10 years agoGlES2: Add NULL check
Anshuman Dani [Tue, 5 Nov 2013 15:34:00 +0000 (21:04 +0530)]
GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82

10 years agoMerge "Make system use patchoat to relocate during runtime."
Brian Carlstrom [Tue, 5 Aug 2014 17:47:17 +0000 (17:47 +0000)]
Merge "Make system use patchoat to relocate during runtime."

10 years agoMake system use patchoat to relocate during runtime.
Alex Light [Mon, 21 Jul 2014 19:23:48 +0000 (12:23 -0700)]
Make system use patchoat to relocate during runtime.

Make installd understand a patchoat directive and carry it out.

Bug: 15358152

Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26

10 years agoMerge "Disable compilation based on vold.decrypt. [frameworks/native]"
Brian Carlstrom [Mon, 4 Aug 2014 18:27:44 +0000 (18:27 +0000)]
Merge "Disable compilation based on vold.decrypt. [frameworks/native]"

10 years agoDisable compilation based on vold.decrypt. [frameworks/native]
Brian Carlstrom [Wed, 30 Jul 2014 21:37:11 +0000 (14:37 -0700)]
Disable compilation based on vold.decrypt. [frameworks/native]

Bug: 15165413
Change-Id: Ibc39ab82e02e42345c6e2667ac45884f2e0cf7a4

10 years agoMerge "Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [framework...
Brian Carlstrom [Mon, 4 Aug 2014 18:27:41 +0000 (18:27 +0000)]
Merge "Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [frameworks/native]"

10 years agoMove from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [frameworks/native]
Brian Carlstrom [Tue, 29 Jul 2014 02:13:28 +0000 (19:13 -0700)]
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
Change-Id: Iff27dc2904f4f0d7c25a684cd6ba16a597f252fd

10 years agoMerge "Add dumping of tombstones to dumpstate."
Christopher Ferris [Thu, 24 Jul 2014 00:09:45 +0000 (00:09 +0000)]
Merge "Add dumping of tombstones to dumpstate."

10 years agoAdd dumping of tombstones to dumpstate.
Christopher Ferris [Tue, 22 Jul 2014 23:08:19 +0000 (16:08 -0700)]
Add dumping of tombstones to dumpstate.

Dump only those tombstones modified within the last half an hour.

Change-Id: I8ce836b2e19eba7a9c0c31a4f312f9a382526da7

10 years agoMerge "Install symlinks in multilib build."
Ying Wang [Wed, 23 Jul 2014 19:20:09 +0000 (19:20 +0000)]
Merge "Install symlinks in multilib build."

10 years agoInstall symlinks in multilib build.
Ying Wang [Wed, 23 Jul 2014 18:33:24 +0000 (11:33 -0700)]
Install symlinks in multilib build.

Change-Id: Ia8a4995de127c42beebb3fe603366ce29a6f94d3

10 years agoRemove incorrect android_atomic_...64 use.
Hans Boehm [Wed, 23 Jul 2014 18:35:13 +0000 (11:35 -0700)]
Remove incorrect android_atomic_...64 use.

Change the mExtras field in Binder.h to be a stdatomic.h atomic
value, and replace references to it with proper stdatomic.h calls.
This removes one of a small number of remaining 64 bit
android_atomic references.  It also replaces the erroneously
non-atomic read accesses to mExtras.

It would be better if this used the C++11 <atomic> facility,
but we don't quite have that yet.

Bug: 16513433
Change-Id: Ibabb88d05025187ee1ce6c7f1aa670b133a547f8

10 years agoMerge "Always #include <sys/...>, not <linux/...>."
Elliott Hughes [Sat, 19 Jul 2014 00:54:52 +0000 (00:54 +0000)]
Merge "Always #include <sys/...>, not <linux/...>."

10 years agoAlways #include <sys/...>, not <linux/...>.
Elliott Hughes [Sat, 19 Jul 2014 00:54:09 +0000 (17:54 -0700)]
Always #include <sys/...>, not <linux/...>.

Change-Id: I9a3f574e0dd1d3ba39312254513b8b193b610c09

10 years agoFix implicit declaration of function 'prctl' in installd.
Elliott Hughes [Sat, 19 Jul 2014 00:29:15 +0000 (17:29 -0700)]
Fix implicit declaration of function 'prctl' in installd.

Change-Id: I469ee15a0a8a79d005b15aad5097b6c13c20ab7e

10 years agoMerge "Fix implicit declaration of function 'prctl' in installd."
Elliott Hughes [Sat, 19 Jul 2014 00:30:04 +0000 (00:30 +0000)]
Merge "Fix implicit declaration of function 'prctl' in installd."

10 years agoMerge "dumpstate: fix dumping traces for vm processes on 64-bit"
Colin Cross [Thu, 17 Jul 2014 16:25:06 +0000 (16:25 +0000)]
Merge "dumpstate: fix dumping traces for vm processes on 64-bit"

10 years agodumpstate: fix dumping traces for vm processes on 64-bit
Colin Cross [Thu, 17 Jul 2014 02:00:46 +0000 (19:00 -0700)]
dumpstate: fix dumping traces for vm processes on 64-bit

dumpstate was not dumping any stack traces for vm processes because
it was failing the string compare for /system/bin/app_process.
64-bit devices use app_process32 and app_process64 instead of
app_process, and zygote64 alongside zygote.  Change the string
matching to be prefix matching.

Change-Id: I6970e1b1fedfcd601f8db6af62852422fcb71d59

10 years agoMerge "Add MAC for remaining service_manager functionality."
Nick Kralevich [Mon, 14 Jul 2014 20:38:32 +0000 (20:38 +0000)]
Merge "Add MAC for remaining service_manager functionality."

10 years agoAdd MAC for remaining service_manager functionality.
Riley Spahn [Tue, 8 Jul 2014 16:03:00 +0000 (09:03 -0700)]
Add MAC for remaining service_manager functionality.

Add SELinux MAC for the list and find functionality
to service_manager. By default the list action uses
the service_manager_type attribute as its target
object.

Change-Id: I7630f21a9f3232ae3d6d8b9a1119230b40899aef

10 years agoMerge "service_manager: check binder passed lengths"
Nick Kralevich [Mon, 14 Jul 2014 17:18:42 +0000 (17:18 +0000)]
Merge "service_manager: check binder passed lengths"

10 years agoservice_manager: check binder passed lengths
Nick Kralevich [Sat, 12 Jul 2014 23:34:01 +0000 (16:34 -0700)]
service_manager: check binder passed lengths

1) Pass length through to str8 function.
2) Fix implicit function definition warning.
3) Check for NULL from bio_get_string16 functions.

Bug: 15886919
Bug: 15888753
Change-Id: I78a401d55b84f382ab83911be32b8d501998aa82

10 years agoMerge "Rename 'mkuser' command to 'mkuserconfig'"
Robin Lee [Wed, 9 Jul 2014 17:27:09 +0000 (17:27 +0000)]
Merge "Rename 'mkuser' command to 'mkuserconfig'"

10 years agoMerge "Make dex2oat heap size product configurable [frameworks/native]"
Brian Carlstrom [Wed, 9 Jul 2014 04:07:54 +0000 (04:07 +0000)]
Merge "Make dex2oat heap size product configurable [frameworks/native]"

10 years agoMake dex2oat heap size product configurable [frameworks/native]
Brian Carlstrom [Fri, 27 Jun 2014 23:03:06 +0000 (16:03 -0700)]
Make dex2oat heap size product configurable [frameworks/native]

Bug: 15919420
Change-Id: I0e629ff4f7541f0dde7380e0dbc8dab1c13df7bd

10 years agoMerge "Dump all the correct routing tables."
Sreeram Ramachandran [Wed, 9 Jul 2014 00:03:35 +0000 (00:03 +0000)]
Merge "Dump all the correct routing tables."

10 years agoDump all the correct routing tables.
Sreeram Ramachandran [Tue, 8 Jul 2014 22:40:55 +0000 (15:40 -0700)]
Dump all the correct routing tables.

The list of tables is maintained in /data/misc/net/rt_tables by netd.

Change-Id: I55475c08c5e43bcf61af916210e680c47480ac32

10 years agoMerge "Remove inline access control in service_manager."
Nick Kralevich [Mon, 7 Jul 2014 22:59:00 +0000 (22:59 +0000)]
Merge "Remove inline access control in service_manager."

10 years agoRemove inline access control in service_manager.
Riley Spahn [Wed, 25 Jun 2014 22:15:21 +0000 (15:15 -0700)]
Remove inline access control in service_manager.

Remove the hardcoded tuples of UIDs and the services that
each is allowed to register. We will rely only on permissions
from SELinux.

Change-Id: I1c44555a6e274814282398865b30ee938f40dabb

10 years agoMerge "Use current max product dalvik.vm.heapsize as default dex2oat heap size"
Brian Carlstrom [Fri, 27 Jun 2014 22:50:18 +0000 (22:50 +0000)]
Merge "Use current max product dalvik.vm.heapsize as default dex2oat heap size"

10 years agoUse current max product dalvik.vm.heapsize as default dex2oat heap size
Brian Carlstrom [Fri, 27 Jun 2014 21:15:19 +0000 (14:15 -0700)]
Use current max product dalvik.vm.heapsize as default dex2oat heap size

Bug: 15919420

(cherry picked from commit 3aa138617b42b87069dbac0b441bd14dca2d8609)

Change-Id: I569ba111c6163e94dd1b09b21ef374f05d263e72

10 years agoMerge "Exclude subdirectories when pruning the dex cache."
Narayan Kamath [Tue, 24 Jun 2014 12:07:36 +0000 (12:07 +0000)]
Merge "Exclude subdirectories when pruning the dex cache."

10 years agoExclude subdirectories when pruning the dex cache.
Narayan Kamath [Tue, 17 Jun 2014 11:54:16 +0000 (12:54 +0100)]
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

10 years agoMerge "Fix obsolete argument name"
Brian Carlstrom [Tue, 17 Jun 2014 19:51:37 +0000 (19:51 +0000)]
Merge "Fix obsolete argument name"

10 years agoFix obsolete argument name
Brian Carlstrom [Mon, 16 Jun 2014 20:28:03 +0000 (13:28 -0700)]
Fix obsolete argument name

Change-Id: I8030f055ee49dc86d4592f36791edddfc0d60a31

10 years agoMerge "Add an installd command to prune dex files."
Narayan Kamath [Mon, 16 Jun 2014 13:19:11 +0000 (13:19 +0000)]
Merge "Add an installd command to prune dex files."

10 years agoMerge "Remove Parcel::writeIntPtr."
Narayan Kamath [Fri, 13 Jun 2014 09:29:23 +0000 (09:29 +0000)]
Merge "Remove Parcel::writeIntPtr."

10 years agoRemove Parcel::writeIntPtr.
Narayan Kamath [Thu, 12 Jun 2014 14:24:06 +0000 (15:24 +0100)]
Remove Parcel::writeIntPtr.

All uses of this API have been removed. It should
never have been made public in the first place.

bug: 15424960

(cherry picked from commit 7da40c0a84dd89e92201448dd5ed3387dc94df2b)

Change-Id: I8d89f62dbdaee7149ef908e0c97417b85e0c48a2

10 years agoMerge "installd: change profile files to 0660"
Nick Kralevich [Thu, 12 Jun 2014 23:05:09 +0000 (23:05 +0000)]
Merge "installd: change profile files to 0660"

10 years agoinstalld: change profile files to 0660
Nick Kralevich [Thu, 12 Jun 2014 01:23:59 +0000 (18:23 -0700)]
installd: change profile files to 0660

Profiling information leaks data about how people interact
with apps, so we don't want the data to be available
to other apps. Only the app and system_server need access.

Don't create the /data/dalvik-cache/profiles directory. init.rc
does it for us now.

Change-Id: Ic1b44009faa30d704855e97631006c4b990a4ad3

10 years agoMerge "Add SELinux checks when adding a service."
Nick Kralevich [Thu, 12 Jun 2014 21:00:42 +0000 (21:00 +0000)]
Merge "Add SELinux checks when adding a service."

10 years agoAdd SELinux checks when adding a service.
Riley Spahn [Thu, 5 Jun 2014 18:07:18 +0000 (11:07 -0700)]
Add SELinux checks when adding a service.

Add a MAC check to the svc_can_register function in
service_manager. The types are defined in
external/sepolicy/service.te and the mapping from service
names is defined in external/sepolicy/service_contexts.
Currently uses the property context backend to parse the
contexts file.

Bug: 12909011
Change-Id: I5d90a614263c60571c7c70c2882e6fa929911ca5

10 years agoMerge "sensorservice: 64-bit compile issues"
Mark Salyzyn [Thu, 12 Jun 2014 16:03:00 +0000 (16:03 +0000)]
Merge "sensorservice: 64-bit compile issues"

10 years agosensorservice: 64-bit compile issues
Mark Salyzyn [Tue, 10 Jun 2014 21:50:02 +0000 (14:50 -0700)]
sensorservice: 64-bit compile issues

Change-Id: Ied7b779f39e71d041791729f7355b052b63903c5

10 years agoMerge "Pass --top-k-profile-threshold to dex2oat if available."
Calin Juravle [Wed, 11 Jun 2014 08:45:16 +0000 (08:45 +0000)]
Merge "Pass --top-k-profile-threshold to dex2oat if available."

10 years agoRename 'mkuser' command to 'mkuserconfig'
Robin Lee [Tue, 10 Jun 2014 17:46:26 +0000 (18:46 +0100)]
Rename 'mkuser' command to 'mkuserconfig'

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

Change-Id: I0adb14deb1a035abdbe51714356bd0c94ccf04c5

10 years agoAdd an installd command to prune dex files.
Narayan Kamath [Tue, 10 Jun 2014 12:16:47 +0000 (13:16 +0100)]
Add an installd command to prune dex files.

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

bug: 14407732

Change-Id: I892cff027ddcbb1a4fb37a7af5ecf1697049a188

10 years agoPass --top-k-profile-threshold to dex2oat if available.
Calin Juravle [Fri, 6 Jun 2014 15:58:43 +0000 (16:58 +0100)]
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

10 years agoMerge "Don't set LOCAL_MODULE_PATH for native tests."
Ying Wang [Mon, 9 Jun 2014 22:52:48 +0000 (22:52 +0000)]
Merge "Don't set LOCAL_MODULE_PATH for native tests."

10 years agoDon't set LOCAL_MODULE_PATH for native tests.
Ying Wang [Mon, 9 Jun 2014 22:23:46 +0000 (15:23 -0700)]
Don't set LOCAL_MODULE_PATH for native tests.

The build system will set it up automatically.

Change-Id: Id5ed9eff88dab2349c3b357ee09f7da9479d7d2d

10 years agoMerge "libgui: 64-bit compile issues"
Mark Salyzyn [Mon, 9 Jun 2014 21:38:00 +0000 (21:38 +0000)]
Merge "libgui: 64-bit compile issues"

10 years agolibgui: 64-bit compile issues
Mark Salyzyn [Mon, 9 Jun 2014 21:27:45 +0000 (14:27 -0700)]
libgui: 64-bit compile issues

Change-Id: I29961c1567b8431518a7d032ea43385e23b7bb37

10 years agoMerge "Migrate keychain directories to /data/misc/user/0"
Robin Lee [Mon, 9 Jun 2014 12:44:33 +0000 (12:44 +0000)]
Merge "Migrate keychain directories to /data/misc/user/0"