summaryrefslogtreecommitdiffstats
path: root/libs/binder
Commit message (Collapse)AuthorAgeFilesLines
* am bb686c25: Disregard alleged binder entities beyond parcel boundsChristopher Tate2015-07-021-1/+1
|\ | | | | | | | | * commit 'bb686c25b214edadd1830abd056db2d570d716ff': Disregard alleged binder entities beyond parcel bounds
| * Disregard alleged binder entities beyond parcel boundsChristopher Tate2015-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | When appending one parcel's contents to another, ignore binder objects within the source Parcel that appear to lie beyond the formal bounds of that Parcel's data buffer. Bug 17312693 Change-Id: If592a260f3fcd9a56fc160e7feb2c8b44c73f514 (cherry picked from commit 27182be9f20f4f5b48316666429f09b9ecc1f22e)
* | am 4ff0cb44: Verify that the native handle was createdAdam Lesinski2015-05-281-0/+4
|\ \ | |/ | | | | | | * commit '4ff0cb4404db31576cd8a81ca5ef3b044d492904': Verify that the native handle was created
| * Verify that the native handle was createdAdam Lesinski2015-05-131-0/+4
| | | | | | | | | | | | | | | | | | | | The inputs to native_handle_create can cause an overflowed allocation, so check the return value of native_handle_create before accessing the memory it returns. Bug:19334482 Change-Id: I1f489382776c2a1390793a79dc27ea17baa9b2a2 (cherry picked from commit eaac99a7172da52a76ba48c26413778a74951b1a)
* | am 5b61ad2c: Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
|\ \ | |/ | | | | | | * commit '5b61ad2cda8ec8ab634ce02f388bb2d3c5ab048d': Check the padded size of the read byte array
| * Check the padded size of the read byte arrayKenny Root2014-03-171-2/+4
| | | | | | | | | | Bug: 13509200 Change-Id: Id93894fcc617ec1cd4ce66921c6e1f1c3cf40b09
* | am f0190bff: Add support for writing byte arrays to parcelsMarco Nelissen2014-03-141-0/+10
|\ \ | |/ | | | | | | * commit 'f0190bff38b6c29abbfc4a877442f71fc3d7dad8': Add support for writing byte arrays to parcels
| * Add support for writing byte arrays to parcelsMarco Nelissen2014-03-131-0/+10
| | | | | | | | | | | | b/13418320 Change-Id: I2285df9e9d3dc8a6a54055b13b352b81660bf45d
* | am 67903293: Fix "Binder: Make sure binder objects do not overlap" to work ↵Arve Hjønnevåg2014-02-201-4/+4
|\ \ | |/ | | | | | | | | | | old binder kernel interface * commit '6790329358d1c84af2fe9ba093bcfc1c6176e758': Fix "Binder: Make sure binder objects do not overlap" to work old binder kernel interface
| * Fix "Binder: Make sure binder objects do not overlap" to work old binder ↵Arve Hjønnevåg2014-02-191-4/+4
| | | | | | | | | | | | | | | | kernel interface DO NOT MERGE into any branch that uses the new interface Change-Id: Id54308a89327e69a389ac5916c052ad97f57cb28
* | am f50b9eaa: Binder: Make sure binder objects do not overlapArve Hjønnevåg2014-02-191-0/+12
|\ \ | |/ | | | | | | * commit 'f50b9eaaeeaeae16981f11b05d3f3a6fb0dea30d': Binder: Make sure binder objects do not overlap
| * Binder: Make sure binder objects do not overlapArve Hjønnevåg2014-02-151-0/+12
| | | | | | | | | | | | | | Fixes crashing part of bug 11355082. The driver still leaks references. Change-Id: Ibc6a63b151c1fc1f7666237f25255ba781e02071
* | am f2f74ca6: Merge "Remove references to obsolete pmem functionality."Elliott Hughes2013-11-211-17/+3
|\ \ | |/ |/| | | | | * commit 'f2f74ca65f34ae0cae6f0cca40f1c18aa771739d': Remove references to obsolete pmem functionality.
| * Remove references to obsolete pmem functionality.Elliott Hughes2013-11-211-17/+3
| | | | | | | | Change-Id: I5d3befd075e51614e6801115388a0a9f32fbb6ea
* | Native counterpart of new power manager methodMarco Nelissen2013-10-251-0/+10
| | | | | | | | | | | | | | | | Cherrypicked from master. b/9464621 Change-Id: I54c0ed50a57ac870da91db8589a73a2c792dbd8d
* | Make Flattenable not virtualMathias Agopian2013-07-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fallout from the Flattenable change, update all its uses. Additionnaly, fix/tighten size checks when (un)flatten()ing things. Removed the assumption by some flattenables (e.g.: Fence) that the size passed to them would be exact (it can and will be larger in some cases) The code in Parcel is a bit complicated so that we don't have to expose the full implementation (and also to keep the code smallish). Change-Id: I0bf1c8aca2a3128491b4f45510bc46667e566dde
* | defaultServiceManager wait for service manager readyTodd Poynor2013-07-242-1/+30
| | | | | | | | | | | | | | If the service manager is not ready when we attempt to create a local proxy, fail and retry. Change-Id: I7d7300bc07cd70608793479aa3da282d066da7f6
* | Merge "libbinder: add libutils dependency"Alex Ray2013-07-231-0/+1
|\ \
| * | libbinder: add libutils dependencyAlex Ray2013-07-231-0/+1
| | | | | | | | | | | | Change-Id: I30c7291b04788c98faa43843a51b026b8a01932c
* | | Fix AppOsManager missing mutex unlock.Zhijun He2013-07-221-0/+1
|/ / | | | | | | | | | | Need unlock the mutex after finish the getToken operation. Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1
* | Follow framework change to track started ops by proc.Dianne Hackborn2013-07-172-6/+42
| | | | | | | | Change-Id: Ibbce3bf6556f45751c74bab045b46377e56bff9b
* | Make getCallingUid/Pid const.Jeff Brown2013-07-151-2/+2
| | | | | | | | Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7
* | am 54d97c88: am 9da67a94: am 67481607: Merge "Revert "Second try at adding a ↵Elliott Hughes2013-07-111-9/+0
|\ \ | |/ | | | | | | | | | | compatibility symbol for the MemoryBase constructor."" * commit '54d97c88b57d2c341f0629c9648d4400a34e4f41': Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."
| * am 9da67a94: am 67481607: Merge "Revert "Second try at adding a ↵Elliott Hughes2013-07-091-9/+0
| |\ | | | | | | | | | | | | | | | | | | compatibility symbol for the MemoryBase constructor."" * commit '9da67a9427f695128b5da61c8f987fd9198a5e05': Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."
| | * am 67481607: Merge "Revert "Second try at adding a compatibility symbol for ↵Elliott Hughes2013-07-091-9/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | the MemoryBase constructor."" * commit '674816078588d0951c3c9bdaf26ecc9e9b3f2e0a': Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."
| | | * Merge "Revert "Second try at adding a compatibility symbol for the ↵Elliott Hughes2013-07-091-9/+0
| | | |\ | | | | | | | | | | | | | | | MemoryBase constructor.""
| | | | * Revert "Second try at adding a compatibility symbol for the MemoryBase ↵Elliott Hughes2013-07-091-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constructor." This reverts commit ddd286301b466b5cd10cfcdc0a5ee5729ef2e385, because the third-party library in question has now been fixed. Change-Id: Ic195a913f90b36268ed9d6e60be520decb4e198d
* | | | | binder: add polling / single-threaded operationTodd Poynor2013-07-041-51/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is currently safe to do only for processes that disallow any binder threads to be created: setThreadPoolMaxThreadCount(0). Change-Id: I8a27f3cf26f4d51edb7f222af487ac256cbcab65
* | | | | am de836890: am ef07386e: Prevent IPCThreadState::joinThreadPool from ↵Jeff Tinker2013-06-111-0/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | spinning on unexpected error * commit 'de836890abc7b5381e285833052375cbb85730cb': Prevent IPCThreadState::joinThreadPool from spinning on unexpected error
| * | | | am ef07386e: Prevent IPCThreadState::joinThreadPool from spinning on ↵Jeff Tinker2013-06-111-0/+4
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | unexpected error * commit 'ef07386e2fca73680214ececc3c9c0ecbb0f6d88': Prevent IPCThreadState::joinThreadPool from spinning on unexpected error
| | * | | Prevent IPCThreadState::joinThreadPool from spinning on unexpected errorJeff Tinker2013-06-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds logging to help determine what is happening to the /dev/binder fd and dump the process state when it happens. bug: 8912673 Change-Id: I2aa0c66fc499e91e0bf9ee4ae20404bec35adc82
* | | | | Merge "Bring back overloading to print String8/16."Jeff Sharkey2013-05-301-0/+15
|\ \ \ \ \
| * | | | | Bring back overloading to print String8/16.Jeff Sharkey2013-05-301-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iecab20db2b8574d5f1e6fdefdc2c8d4ce6c37121
* | | | | | am 255405eb: am 86b2ecdd: Merge "fix mem leak on error handling"Jeff Brown2013-05-301-1/+3
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | * commit '255405eb19e6a3fa7f7bb4de9b07beacdf65ece9': fix mem leak on error handling
| * | | | am 86b2ecdd: Merge "fix mem leak on error handling"Jeff Brown2013-05-291-1/+3
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | * commit '86b2ecdd311fca2e1e4a3504bf96bb23c5630492': fix mem leak on error handling
| | * | fix mem leak on error handlingHyejin Kim2013-05-281-1/+3
| | | | | | | | | | | | | | | | Change-Id: I40d8e371c46184aa701fa676246201a9d8f6e27d
* | | | libutils clean-upMathias Agopian2013-05-077-8/+796
|/ / / | | | | | | | | | Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386
* | | am 1cd763f1: am cd91024c: Merge "[MIPS] Avoid unaligned load/store for ↵Keun-young Park2013-03-261-1/+44
|\ \ \ | |/ / | | | | | | | | | | | | | | | 64-bit doubles." * commit '1cd763f123b9f1a2772ddff15ace81ec07b7660c': [MIPS] Avoid unaligned load/store for 64-bit doubles.
| * | Merge "[MIPS] Avoid unaligned load/store for 64-bit doubles."Keun-young Park2013-03-261-1/+44
| |\ \ | | |/ | |/|
| | * [MIPS] Avoid unaligned load/store for 64-bit doubles.Douglas Leung2013-01-171-1/+44
| | | | | | | | | | | | | | | Change-Id: Iefdcac8742f23fef31f63730b48698fc4205c3ad Signed-off-by: Douglas Leung <douglas@mips.com>
* | | improved CallStack a bitMathias Agopian2013-03-211-3/+1
| | | | | | | | | | | | | | | | | | | | | - added a ctor that updates and dumps the stack immediately - added a "logtag" parameter to dump() Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
* | | am 7212ff29: am 20e154f1: Merge "Second try at adding a compatibility symbol ↵Elliott Hughes2013-03-141-0/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | for the MemoryBase constructor." * commit '7212ff29c6f4e4cd192fee6f072e80b36d8a728b': Second try at adding a compatibility symbol for the MemoryBase constructor.
| * | Second try at adding a compatibility symbol for the MemoryBase constructor.Elliott Hughes2013-03-131-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Third-party libraries are currently trying to use the MemoryBase constructor but failing because we fixed the definition of ssize_t. This is a stop-gap for users of this private API until we can get them fixed. Bug: 8253769 Change-Id: Ie7c86f45fa39cb53539cab0ffe8585a585656714
| * | Revert "Add a compatibility symbol for the MemoryBase constructor."Elliott Hughes2013-03-142-12/+3
| | | | | | | | | | | | | | | | | | This reverts commit 7f974ff2f317ffbf9256579109f000ec876c3037 Change-Id: I28ebfc5ac88bd025471b613aa7958d23749e6991
* | | Revert "Add a compatibility symbol for the MemoryBase constructor."Elliott Hughes2013-03-142-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry pick from AOSP to fix the build. See https://android-review.googlesource.com/#/c/53690/ This reverts commit 7f974ff2f317ffbf9256579109f000ec876c3037 Change-Id: I1b123f446d0ff41e11ff81d4ef5f1472b59cac93
* | | am 9b57ad73: am 8facd1b2: Merge "Add a compatibility symbol for the ↵Elliott Hughes2013-03-132-3/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | MemoryBase constructor." * commit '9b57ad737bceba9f8d4f5be303c70fa72be00eaf': Add a compatibility symbol for the MemoryBase constructor.
| * | Add a compatibility symbol for the MemoryBase constructor.Elliott Hughes2013-03-132-3/+12
| |/ | | | | | | | | | | | | | | | | | | Third-party libraries are currently trying to use the MemoryBase constructor but failing because we fixed the definition of ssize_t. This is a stop-gap for users of this private API until we can get them fixed. Bug: 8253769 Change-Id: I8a19770f3252d88ee87023fde625cc6289924b0d
* | rename binder services main thread to Binder_*Mathias Agopian2013-03-071-5/+14
| | | | | | | | | | | | | | | | | | | | | | When a binder service's main thread joins the thread pool it retains its name (whatever the exec name was), which is very confusing in systrace. we now rename that thread just like its friends in the thread pool. Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
* | Fixes to native app ops servicesEino-Ville Talvala2013-02-192-22/+20
| | | | | | | | | | Bug: 8181262 Change-Id: I3d3f20453f6c6f2756c988363c5b5453ef309cb6
* | App ops: new native access API.Dianne Hackborn2013-02-124-0/+341
|/ | | | | | | | | | This is to help implementation of bug #8181262 and maybe bug #8181261 Note the current code has not yet been tested; it is only known to compile at this point. Change-Id: I489674c96d0d3fc0ddacc92611931a19a9ee5230