Commit Graph

52474 Commits

Author SHA1 Message Date
Richard Uhler 19db8c884b am ab91d03b: Merge "installd: Add support for SELF_PATCHOAT_NEEDED."
* commit 'ab91d03b0dfebf40e98034670892c278ae0a46e5':
  installd: Add support for SELF_PATCHOAT_NEEDED.
2015-04-09 14:20:53 +00:00
Richard Uhler ab91d03b0d Merge "installd: Add support for SELF_PATCHOAT_NEEDED." 2015-04-09 14:13:27 +00:00
Erik Kline e06cba20f3 multinetwork API: native header
Bug: 19537384
Change-Id: I7bb2f4310755e0c2ea2f32288000e54d671aebbe
2015-04-09 10:53:43 +09:00
Mark Salyzyn 82f393aad6 am d029e95a: am 1b0a8702: am ad436ab5: Merge "dumpstate: scrub APANIC"
* commit 'd029e95a58ea0927ebd3431d9991cd316e568002':
  dumpstate: scrub APANIC
2015-04-08 22:07:20 +00:00
Mark Salyzyn d029e95a58 am 1b0a8702: am ad436ab5: Merge "dumpstate: scrub APANIC"
* commit '1b0a8702322b2b6ed2fa245cf92e87a1e5feea6c':
  dumpstate: scrub APANIC
2015-04-08 21:37:14 +00:00
Mark Salyzyn 1b0a870232 am ad436ab5: Merge "dumpstate: scrub APANIC"
* commit 'ad436ab54a649075b25ab755344fd011bd0c9262':
  dumpstate: scrub APANIC
2015-04-08 18:11:30 +00:00
Mark Salyzyn ad436ab54a Merge "dumpstate: scrub APANIC" 2015-04-08 18:03:35 +00:00
Mark Salyzyn f423b57dd9 dumpstate: scrub APANIC
Bug: 19525200
Change-Id: Ia2d2857cac953fb4ceafb66ddf775d89d7a777b1
2015-04-08 10:51:51 -07:00
Jeff Sharkey c03de09173 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
2015-04-07 20:13:27 -07:00
Richard Uhler c92fb6247d installd: Add support for SELF_PATCHOAT_NEEDED.
Change-Id: Ib9a6373f98474f1242367b5285086251a9d580e5
2015-04-07 16:39:29 -07:00
Dan Stoza 668285721b am 172ff24c: am 5977851b: am 00afb817: Merge "libgui: Plumb detachBuffer through ConsumerBase"
* commit '172ff24ccbc232cdf244a2bcbbb51df754929521':
  libgui: Plumb detachBuffer through ConsumerBase
2015-04-07 23:18:48 +00:00
Dan Stoza 172ff24ccb am 5977851b: am 00afb817: Merge "libgui: Plumb detachBuffer through ConsumerBase"
* commit '5977851b80549f24cd9164ec075b79c6c6291fa5':
  libgui: Plumb detachBuffer through ConsumerBase
2015-04-07 22:58:47 +00:00
Dan Stoza 5977851b80 am 00afb817: Merge "libgui: Plumb detachBuffer through ConsumerBase"
* commit '00afb8177fdbf144c75c00e9eacc915589807d35':
  libgui: Plumb detachBuffer through ConsumerBase
2015-04-07 22:47:50 +00:00
Dan Stoza 00afb8177f Merge "libgui: Plumb detachBuffer through ConsumerBase" 2015-04-07 22:38:00 +00:00
Dan Stoza 3b025f1302 am 6b4f28a7: am a53e955a: Merge "libgui: Plumb attach/detach through Surface" into stage-aosp-master
* commit '6b4f28a7930c115f4b9e0d4fdfcd41b3bb58bf58':
  libgui: Plumb attach/detach through Surface
2015-04-07 22:33:07 +00:00
Dan Stoza 6b4f28a793 am a53e955a: Merge "libgui: Plumb attach/detach through Surface" into stage-aosp-master
* commit 'a53e955ad882793bb6fea00d4d110a3d8878ab57':
  libgui: Plumb attach/detach through Surface
2015-04-07 22:12:33 +00:00
Dan Stoza 634f5ee6a7 libgui: Plumb detachBuffer through ConsumerBase
Exposes IGraphicBufferConsumer::detachBuffer as a ConsumerBase
method. attachBuffer is not currently exposed, because all current
clients will be recycling buffers through the allocator.

Bug: 19628705
Change-Id: I3e519767fa43d5d880c1d5695e31b60f6ad588af
2015-04-07 15:05:40 -07:00
Dan Stoza a53e955ad8 Merge "libgui: Plumb attach/detach through Surface" into stage-aosp-master 2015-04-07 22:03:29 +00:00
Dan Stoza d1fe6bba78 am 6d9e3dc5: am e55cae86: Merge "libgui: Remove IGBC::BufferItem" into stage-aosp-master
* commit '6d9e3dc5ca8e519218053f3f2f0e5068c835aba9':
  libgui: Remove IGBC::BufferItem
2015-04-07 21:53:20 +00:00
Jeff Sharkey 580e51458e am eb3704a5: am 9e99fce8: am 1cd030be: Merge "Switch installd to compile as C++."
* commit 'eb3704a58e62c0f85cfea776df1040b677263c80':
  Switch installd to compile as C++.
2015-04-07 21:53:19 +00:00
Jeff Sharkey db92057129 am f3529d9a: am dc10342d: am 2d42dc74: Merge "Valid APK paths now include expanded storage."
* commit 'f3529d9aba9030ed4f3b7ac9570db0f401d9c1fb':
  Valid APK paths now include expanded storage.
2015-04-07 21:53:18 +00:00
Dan Stoza 6d9e3dc5ca am e55cae86: Merge "libgui: Remove IGBC::BufferItem" into stage-aosp-master
* commit 'e55cae86e6217a86d94bf280c6c8442bef2dd908':
  libgui: Remove IGBC::BufferItem
2015-04-07 21:24:02 +00:00
Jeff Sharkey eb3704a58e am 9e99fce8: am 1cd030be: Merge "Switch installd to compile as C++."
* commit '9e99fce820c2d520f5618cb620cc1e37aed57b9d':
  Switch installd to compile as C++.
2015-04-07 21:24:01 +00:00
Jeff Sharkey f3529d9aba am dc10342d: am 2d42dc74: Merge "Valid APK paths now include expanded storage."
* commit 'dc10342dc9031883046b4b44d009a4422545e7e2':
  Valid APK paths now include expanded storage.
2015-04-07 21:24:00 +00:00
Dan Stoza e55cae86e6 Merge "libgui: Remove IGBC::BufferItem" into stage-aosp-master 2015-04-07 21:16:33 +00:00
Jeff Sharkey 9e99fce820 am 1cd030be: Merge "Switch installd to compile as C++."
* commit '1cd030be59c108cde25234f0d2da83a68a7cdd26':
  Switch installd to compile as C++.
2015-04-07 21:13:43 +00:00
Jeff Sharkey dc10342dc9 am 2d42dc74: Merge "Valid APK paths now include expanded storage."
* commit '2d42dc74e9b647345a5d4ba79bcdadbf700002e2':
  Valid APK paths now include expanded storage.
2015-04-07 21:13:42 +00:00
Jeff Sharkey 1cd030be59 Merge "Switch installd to compile as C++." 2015-04-07 21:04:29 +00:00
Jeff Sharkey 2d42dc74e9 Merge "Valid APK paths now include expanded storage." 2015-04-07 21:03:42 +00:00
Jeff Sharkey 19803807cd 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
2015-04-07 14:01:43 -07:00
Jeff Sharkey e23a13299a Valid APK paths now include expanded storage.
Apps on expanded storage live at /mnt/expand/<uuid>/app/com.example,
so we need to relax one more directory level.

Bug: 19993667
Change-Id: I347ec7b92435ea69e632ed5d5fdfabe38ce0b56e
2015-04-07 14:01:12 -07:00
Dan Stoza 8ed8182756 libgui: Plumb attach/detach through Surface
Exposes the attachBuffer and detachNextBuffer calls from
IGraphicBufferProducer to the public Surface interface. Also moves
the version of connect that takes a producer callback from protected
to public.

Bug: 19628705
Change-Id: I9ebc3013c4d9c84c4e8ef150c00e03f8af80319e
(cherry picked from commit 231832eb27)
2015-04-07 13:50:03 -07:00
Dan Stoza 955c897482 libgui: Remove IGBC::BufferItem
Removes IGraphicBufferConsumer::BufferItem. Depends on the
following changes:
    I187b3a7d05196b6289596afac8fb9a9d4aebff76
    I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc

Change-Id: I3edf0db8fba656fd78e18a5a7f1137f0fb6b237d
(cherry picked from commit 1c87e474d8)
2015-04-07 13:49:25 -07:00
Fyodor Kupolov 7897031f3e am b58e6cbf: am 4914f85f: am 8f43f77d: Merge "Use AID_SYSTEM as uid when creating oat dir"
* commit 'b58e6cbfa726add05bbe5e31e8ca13815ccf2049':
  Use AID_SYSTEM as uid when creating oat dir
2015-04-07 20:49:09 +00:00
Fyodor Kupolov b58e6cbfa7 am 4914f85f: am 8f43f77d: Merge "Use AID_SYSTEM as uid when creating oat dir"
* commit '4914f85f8073073194da5a88c557220456777eda':
  Use AID_SYSTEM as uid when creating oat dir
2015-04-07 20:27:49 +00:00
Fyodor Kupolov 4914f85f80 am 8f43f77d: Merge "Use AID_SYSTEM as uid when creating oat dir"
* commit '8f43f77de89df935e7dc2fdeddee132580bb5705':
  Use AID_SYSTEM as uid when creating oat dir
2015-04-07 20:18:23 +00:00
Fyodor Kupolov 8f43f77de8 Merge "Use AID_SYSTEM as uid when creating oat dir" 2015-04-07 20:09:43 +00:00
Ronghua Wu a39c205f87 openmax: add OMX_IndexConfigOperatingRate.
Bug: 19620911
Change-Id: I4458705414ab0087bbfd60dee201973045cd711b
2015-04-07 12:25:30 -07:00
Dan Stoza c9a737b526 am 11da530a: (-s ours) Merge "Cherry-pick dataSpace and BufferItem changes" into lmp-mr1-dev-plus-aosp
* commit '11da530a704fc9406d6779c5b985d3394c6a8474':
  Cherry-pick dataSpace and BufferItem changes
2015-04-07 18:50:47 +00:00
Fyodor Kupolov 8eed7e6a9b Use AID_SYSTEM as uid when creating oat dir
Previously AID_INSTALL was used, which was causing permission denied errors
when PackageManager was trying to recursively rename staging directory

Bug: 19550105
Bug: 20087446
Change-Id: I3a9e3056c1fbc1ce0077a3ce52cf77ea6b5085ee
2015-04-07 11:22:00 -07:00
Dan Stoza 11da530a70 Merge "Cherry-pick dataSpace and BufferItem changes" into lmp-mr1-dev-plus-aosp 2015-04-07 18:14:50 +00:00
Eino-Ville Talvala 1c2001efcf Cherry-pick dataSpace and BufferItem changes
Add dataSpace to buffer queues; remove old format enums.
(cherry picked from commit 82c6bcc970)

libgui: Prepare for IGBC::BufferItem removal
(cherry picked from commit cf3834db10)

SurfaceFlinger: Stop using IGBC::BufferItem
(cherry picked from commit 11611f9be5)

Change-Id: Ic2e4770b916d2d1477e5ce98c4b49a0072ea03ff
(cherry picked from commit 6c45010175)
2015-04-07 11:11:43 -07:00
Jeff Sharkey c0bae30131 Merge "Valid APK paths now include expanded storage." 2015-04-07 04:24:27 +00:00
Jeff Brown 969baf52d9 Merge "Add support for int64, float, double types to service command." 2015-04-07 03:50:29 +00:00
Erik Kline 1a4b21e039 multinetwork API: native header
Bug: 19537384
Change-Id: I7bb2f4310755e0c2ea2f32288000e54d671aebbe
2015-04-07 12:18:25 +09:00
Jeff Brown d46898fed0 Add support for int64, float, double types to service command.
Comes in handy for invoking transactions that require these types.

Change-Id: I8f14519a2531ab2ec7f3218ecda6d1868f6dd7b3
2015-04-06 19:42:43 -07:00
Jeff Sharkey 7d78005a27 Valid APK paths now include expanded storage.
Apps on expanded storage live at /mnt/expand/<uuid>/app/com.example,
so we need to relax one more directory level.

Bug: 19993667
Change-Id: I347ec7b92435ea69e632ed5d5fdfabe38ce0b56e
2015-04-06 17:44:27 -07:00
Elliott Hughes 62b58afc21 am 7b5f82d8: am 46072d58: am a60ff367: Merge "Remove useless \'svcmgr_handle\' (which had wrong type)."
* commit '7b5f82d8d726e4bcd21c19340c0743a728bc0253':
  Remove useless 'svcmgr_handle' (which had wrong type).
2015-04-06 23:53:49 +00:00
Elliott Hughes 7b5f82d8d7 am 46072d58: am a60ff367: Merge "Remove useless \'svcmgr_handle\' (which had wrong type)."
* commit '46072d5834aaef51922667972f02241a220333b8':
  Remove useless 'svcmgr_handle' (which had wrong type).
2015-04-06 23:30:25 +00:00
Eino-Ville Talvala 32f0b5b804 am 40191799: (-s ours) am 6c450101: (-s ours) DO NOT MERGE Cherry-pick dataSpace and BufferItem changes
* commit '4019179991bae66f72bae8e81c0f2399da4ee85e':
  DO NOT MERGE Cherry-pick dataSpace and BufferItem changes
2015-04-06 23:28:16 +00:00