Ensure len and hdr_size fields are valid and match the return value.
Truncate or zero content as necessary, but do not drop the message.
Bug: 28610769
Change-Id: I10785fa5b03aa3da7d07b368188e3f7c36a84b4f
This change allows applications to share RTLD_GLOBAL
native libraries between namespaces associated with
different classloaders.
The rule is - if a library is GLOBAL within namespace
associated with parent classloader, it is shared
with namespace associated with this classloader
Note that the sharing happens on create_namespace
event, which is tied to createClassloader in case of
application classloaders created by the framework, for
custom application classloaders it is tied to first
loadLibrary() event.
Bug: http://b/28560538
Bug: https://code.google.com/p/android/issues/detail?id=208458
Change-Id: I7ee701166f8ec5eff033b7acc0f80c7aa4ec5bda
am: a214a769f9
* commit 'a214a769f9a98b0962e62bd716575a05cf6f9f59':
Pass permitted_path to the linker as is.
Change-Id: Ic4d8e6a67ca069319d872e6f3dcb76e857162093
Now that we have the fixed list of whitelisted libraries
there is no longer need to check if java_permitted_path is nullptr.
In fact checking it prevents custom classloaders created by apps
from loading libraries using absolute path.
Bug: http://b/28659864
Change-Id: I1bfc16a573b090f70f078ecccd0e4016939a5dc0
am: 2a26c2a836
* commit '2a26c2a836af9109ce4aa6cf8128a385d14878d3':
init: usb: disable usb function switch until adbd is ready
Change-Id: I406d35a4c6a18e2d84d49450a72a1bc3be7233ee
am: e3ff256228
* commit 'e3ff25622840e8b79e30f7f8bda4715a103afb67':
SystemClock: elapsedRealtimeNano() should use clock_gettime() on Linux
Change-Id: Id5a10854412308fb096a037977eea5e80931e1f8
The dm-verity metadata contains the block device path that is given to
the dm-android-verity driver. If the device is using slot A/B, this
path is missing the slot suffix.
This patch makes fs_mgr replace all the block device path reference
with the one including the active slot suffix.
Change-Id: Ib624d0d18b12a8a287cac7f15605a2e0fb7c97c6
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
This makes it possible to get a core dump from adbd when it decides to
exit.
Bug: http://b/28347842
Change-Id: I4cfe5f273f62b2c32e61232d3c39881ecdd6b582
adb implements its own file descriptor emulation layer on Windows,
which requires the use of adb_close instead of close throughout the
codebase. Add a template argument to unique_fd that allows for this.
Bug: http://b/28347842
Change-Id: I6397261f4973d49f2f8e04257bf67b348585bb63
am: faa14b94d5
* commit 'faa14b94d5a6d0c3d429516bf226b9836f65da91':
init: support matching sysfs class paths in ueventd.rc
Change-Id: Icb642a52ec834d450b2f7357b63370021986a06e
Currently, ueventd.rc files only support /sys/devices/... paths
and don't support symlinked paths, specifically /sys/class/...
Supporting the class paths is necessary to have non-hardware
dependent paths. Some subsystems like IIO use /sys/bus/iio/, so
support that as well.
Change-Id: I29f3bf67b41664d1d75ac1820c46e13afe336d56
Signed-off-by: Rob Herring <robh@kernel.org>
It's no longer specific to make_ext4fs, will be used for mksquashfs as
well.
BUG: 27467028
Change-Id: I41b8c2b168ada45c8378dee522391edfb8f6b9a6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
BUG: 28704419
am: 422492c506
* commit '422492c5063956e4f69bdbe01a30b0bc54a5fb2c':
init.rc: Remove cpu weight set on the root cgroup
Change-Id: I23bf6dda65cc795efc0babb5a8806e74fd0e7ed1
Going too fast can result in the property not being set
and causing an extreme corner case failure being reported
and blamed on is_loggable functionality.
Bug: 25792367
Change-Id: Idda6f67d655d8a84d2809daf695394d5293e7431
am: 8c5384e50b
* commit '8c5384e50bfbc97e4b4ea74e52391879a09b68fa':
Report errno more often in fastboot.
Change-Id: I19a33597f29c1974063d4308eeccea60bbb350f5