Commit graph

45456 commits

Author SHA1 Message Date
Greg Kaiser
57fd5a23c5 Merge "libprocessgroup: Disable file descriptor caching temporarily"
am: 54801442bd

Change-Id: I9a266067010f2eb69711c089dc70c58cdf481062
2019-02-06 05:59:32 -08:00
Greg Kaiser
54801442bd Merge "libprocessgroup: Disable file descriptor caching temporarily" 2019-02-06 13:48:03 +00:00
Wei Wang
6a74ce960f Merge "init: print property/value for wait_for_property"
am: 54f7e57bac

Change-Id: Ibf0b7d4d09f364fedd290436ca74405a4d32923e
2019-02-05 23:36:35 -08:00
Treehugger Robot
54f7e57bac Merge "init: print property/value for wait_for_property" 2019-02-06 07:28:00 +00:00
Tom Cherry
dd5a7a6547 Merge "fs_mgr: Remove fs_mgr_flags #define's"
am: c03169caea

Change-Id: Iefa67976c45df702b67cb420c6eb45ea50f30b9b
2019-02-05 19:08:46 -08:00
Treehugger Robot
c03169caea Merge "fs_mgr: Remove fs_mgr_flags #define's" 2019-02-06 02:53:32 +00:00
Suren Baghdasaryan
bee9f5718b libprocessgroup: Disable file descriptor caching temporarily
File descriptor caching breaks boot on Android Go and Svelte targets.
Disable it temporarily to fix the builds and investigate the root cause
further.

Bug: 123868658
Test: Android Go device boots after this change

Change-Id: Idd0209029cde8454ea99b9de030f7a317c2988d7
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-06 02:15:37 +00:00
Wei Wang
c9352bb383 init: print property/value for wait_for_property
Bug: 123772265
Bug: 123788098
Test: Build
Change-Id: Ice130d7efab1f227a2f9021136621ad08f84fd23
2019-02-06 01:03:53 +00:00
Tri Vo
6604befa2e Merge "libcutils: route to ashmemd"
am: 5bccd33e0b

Change-Id: I757d03ad69f9d36fa145352f903825c98fc8d548
2019-02-05 13:45:48 -08:00
Tri Vo
5bccd33e0b Merge "libcutils: route to ashmemd" 2019-02-05 21:38:50 +00:00
Tom Cherry
7dec4fdd38 fs_mgr: Remove fs_mgr_flags #define's
These are no longer used but I missed them in the last CL.

Test: treehugger
Change-Id: Iea5235cf2d105c80a406f0ef020080859c0d2ff7
2019-02-05 13:04:21 -08:00
Tom Cherry
23a18e62fc Merge "Remove old C fs_mgr interface"
am: 7303edd194

Change-Id: I01614f3bdbd5d7d142884d2da61cb56d25869987
2019-02-05 09:12:43 -08:00
Tom Cherry
7303edd194 Merge "Remove old C fs_mgr interface" 2019-02-05 17:06:03 +00:00
Anton Hansson
1464eebca3 Merge "Fix asan paths in ld.config"
am: a13b119c3d

Change-Id: Iebae1ad41aedaea66e97931d5abc7b6a5ab460e0
2019-02-05 08:48:50 -08:00
Anton Hansson
a13b119c3d Merge "Fix asan paths in ld.config" 2019-02-05 16:28:05 +00:00
Anton Hansson
38d914132d Merge "Remove product_services rules if it's merged away"
am: b40f72d0ba

Change-Id: I9ec3e3bc2619a716dea5b349c83947f750e33317
2019-02-05 08:09:20 -08:00
Anton Hansson
b40f72d0ba Merge "Remove product_services rules if it's merged away" 2019-02-05 16:00:44 +00:00
vichang
d04eb7adf5 Merge "Expose public libraries from runtime namepsace to classloader namespace"
am: 0b3848bec7

Change-Id: I5440b865af962ad0096877a95c3574238f5929d6
2019-02-05 04:46:47 -08:00
Anton Hansson
2dae6f035e Fix asan paths in ld.config
As of Id663c5f284e3b4fc65ed8cb8c2da6bcf6542e034, the asan libs
are in the TARGET_COPY_OUT_X subpath of the /data/asan/ dir, rather
than just 'x' unconditionally.

Test: presubmit
Change-Id: I3a515791e237ad10703415ea532c7a089660d8e9
2019-02-05 12:36:58 +00:00
vichang
0b3848bec7 Merge "Expose public libraries from runtime namepsace to classloader namespace" 2019-02-05 12:34:00 +00:00
Anton Hansson
74e8d18a0b Remove product_services rules if it's merged away
TARGET_COPY_OUT_PRODUCT_SERVICES can be equal to
TARGET_COPY_OUT_PRODUCT, in which case the ld.config
lines containing PRODUCT_SERVICES are redundant.

Test: make and diff
Change-Id: I1dc24eb49d37f1ab0faa6eecdb0ccc974321f4ac
2019-02-05 12:27:43 +00:00
Martin Stjernholm
fc2c45cc62 Merge "Some tests are run from /data/local/tmp, and they need proper namespaces."
am: 31fd0ba559

Change-Id: I93c8ec1d1a001803ec23ccfd0e18e61cf1945f60
2019-02-05 03:08:55 -08:00
Treehugger Robot
31fd0ba559 Merge "Some tests are run from /data/local/tmp, and they need proper namespaces." 2019-02-05 11:04:48 +00:00
Zimuzo Ezeozue
58386c1e6e Merge "Reland: "Identify post-apexd crashing processes""
am: 54ef09c88e

Change-Id: Ie34c9bcaa2e319294755707b4ae8f536b0d341b1
2019-02-04 19:28:22 -08:00
Treehugger Robot
54ef09c88e Merge "Reland: "Identify post-apexd crashing processes"" 2019-02-05 03:16:30 +00:00
Tom Cherry
685c2c7b1e Remove old C fs_mgr interface
Remove superfluous fs_mgr flags as well.

Bug: 62292478
Test: tree hugger, fs_mgr_unit_test
Change-Id: Ib307400941b46ca8bcb51d479668efd82fc3ed2d
2019-02-04 15:09:02 -08:00
Dan Shi
8493872c99 Merge "Move the tests to postsubmit group"
am: a42af36002

Change-Id: I51fef3f5f92c6eded2e107185ba4b840c8a0d745
2019-02-04 14:07:40 -08:00
Treehugger Robot
a42af36002 Merge "Move the tests to postsubmit group" 2019-02-04 21:58:41 +00:00
Zimuzo Ezeozue
23aa17ba42 Reland: "Identify post-apexd crashing processes"
This reverts commit 60b89aee4c.

Reason for revert: Blocking change merged, Icdfbdcc1efca540ac854d4df79e07ee61fca559f

Change-Id: Iec7f0b28ca3326d1dc1d86304751eee5e941235e
2019-02-04 21:41:12 +00:00
Greg Kaiser
164ea570b3 Merge "lmdk: Remove redundant 'if' check"
am: 6cb668b992

Change-Id: I119eac076221143d673867e2ed54e4c9cc0c2e73
2019-02-04 12:27:27 -08:00
Treehugger Robot
6cb668b992 Merge "lmdk: Remove redundant 'if' check" 2019-02-04 20:16:56 +00:00
Greg Kaiser
eb60946739 Merge "libprocessgroup: Fix return values"
am: 209070aecd

Change-Id: I680e68f78c1991d5f1d787206ef436bc4fae2eac
2019-02-04 10:33:58 -08:00
Dan Shi
5c937a3a5d Move the tests to postsubmit group
The tests are failing on ToT.

Bug: 123852953
Test: None
Change-Id: I2e75c99d913f6954290aa9d6aada8797bf931977
2019-02-04 10:31:32 -08:00
Tri Vo
2891ba09d5 libcutils: route to ashmemd
If libcutils is not a VNDK version and /dev/ashmem is not available,
then ask ashmemd for opened fd to /dev/ashmem.

We rely on SELinux policy to determine what's allowed to open
/dev/ashmem directly.

Bug: 113362644
Test: device boots (in selinux permissive mode)
Change-Id: I93c4fa6044b0bfa5282097c6c32139a8d8f67deb
2019-02-04 10:30:24 -08:00
Treehugger Robot
209070aecd Merge "libprocessgroup: Fix return values" 2019-02-04 18:27:32 +00:00
Victor Chang
7a20a907a5 Expose public libraries from runtime namepsace to classloader namespace
Bug: 121248172
Bug: 121372395
Test: DT_NEEDED libicuuc.so
Test: dlopen("libicuuc.so")
Test: dlopen("/system/lib64/libicuuc.so") for targetSdkVersion < Q
Test: dlopen("/apex/com.android.runtime/lib64/libicuuc.so")
Change-Id: Ib4a255696ed474b7993acc952a8d07e7d64604a5
2019-02-04 17:45:22 +00:00
dimitry
551fd08290 Merge "Add getExportedNamespace NB callback"
am: 3e4b2ec29d

Change-Id: I465eb7a23cfd01cfeccee0a6313f88c833316000
2019-02-04 09:38:39 -08:00
Treehugger Robot
3e4b2ec29d Merge "Add getExportedNamespace NB callback" 2019-02-04 17:27:37 +00:00
Greg Kaiser
a523fd6035 lmdk: Remove redundant 'if' check
We already know that "polling" must be non-zero at this point,
because it hasn't been modified since our check on line 1960.
So we remove this check for code clarity.

Test: TreeHugger
Change-Id: I069d9fd0eef70748a5333733dd0518d1ac8021b7
2019-02-04 08:50:10 -08:00
Greg Kaiser
5c5ed9c856 libprocessgroup: Fix return values
We want our default implementations to fail, but '-1' is implicitly
cast to 'true', since it's non-zero.  We explicitly use 'false' to
fix this.

Test: TreeHugger
Change-Id: I369897b519601ce1a887cf6acd5f2cb9a6113a9a
2019-02-04 06:33:26 -08:00
Martin Stjernholm
4a7138fe37 Some tests are run from /data/local/tmp, and they need proper namespaces.
Bug: 123700170
Test: atest cameraservice_test libcompositionengine_test librenderengine_test libsurfaceflinger_arc_test libsurfaceflinger_unittest perfprofd_test inputflinger_tests
Change-Id: Id3c628175c0037944ccc0d53a2d5327e688ef99e
2019-02-04 14:10:31 +00:00
dimitry
d2ace387f5 Add getExportedNamespace NB callback
This callback replaces getVendorNamespace(). Fix nativeloader
to use NativeBridgeGetExportedNamespace instead of
NativeBridgeGetVendorNamespace.

Bug: http://b/121248172
Bug: http://b/121372395
Test: make
Change-Id: I8fa2081e37815f6f65490c9536bed0687b7f1e77
2019-02-04 15:06:43 +01:00
Suren Baghdasaryan
e419456f89 Merge changes from topic "cgroup abstraction layer"
am: faa6c4894d

Change-Id: I0d545daaaa0a20dd2e605f1a4be9a1ae9e3f02d6
2019-02-03 20:19:26 -08:00
Suren Baghdasaryan
b5f684bc91 Fix non-Android build targets
am: eca87cb9ca

Change-Id: I4b0305619c91041bf7b844201f23437df06864b9
2019-02-03 20:18:21 -08:00
Suren Baghdasaryan
67fe58e044 init: Replace cgroup hardcoded path with detected one
am: e01ae8deca

Change-Id: I224866a82e31d20aa415b65ea08bf8639ea6cc7b
2019-02-03 20:17:07 -08:00
Suren Baghdasaryan
953472f577 libprocessgroup: Add support for task profiles
am: 82b72a5667

Change-Id: If702ad510ae31619d53f82844d7beeff5ee56682
2019-02-03 20:15:41 -08:00
Suren Baghdasaryan
5ed586fd12 rootdir: Add cgroups and task profiles description files
am: 503cf84f76

Change-Id: Ic7eed97ab887bf2ba4e736a3e3226eef9f2e31ff
2019-02-03 20:13:57 -08:00
Suren Baghdasaryan
faa6c4894d Merge changes from topic "cgroup abstraction layer"
* changes:
  Disable SetupCgroup for non-Android targets
  Fix non-Android build targets
  init: Replace cgroup hardcoded path with detected one
  libprocessgroup: Add support for task profiles
  rootdir: Add cgroups and task profiles description files
2019-02-03 22:28:23 +00:00
Suren Baghdasaryan
ff25a5f584 Disable SetupCgroup for non-Android targets
Non-android targets should not mount cgroups described in cgroup map
file. When used on non-Android targets SetupCgroup will fail. When
SetupCgroup is called via SetupCgroups a warning will be generated for
each cgroup that fails to mount.

Bug: 111307099
Change-Id: I213a5f9b02f312ba1dd7dc91c89b67334fb939b9
Merged-In: I213a5f9b02f312ba1dd7dc91c89b67334fb939b9
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-03 17:55:59 +00:00
Suren Baghdasaryan
eca87cb9ca Fix non-Android build targets
Non-Android build targets are missing sys/prctl.h header and functionality
should be disabled for them like it was done previously inside
sched_policy.cpp. Also make the set_sched_policy/get_sched_policy
functionality backward compatible by creating stubs for non-Android
targets.

Bug: 111307099
Test: built sdk_gphone_x86-sdk_addon_mac target using forrest

Change-Id: I1c195267e287a84a21c588bd61d7c452bff6cfbe
Merged-In: I1c195267e287a84a21c588bd61d7c452bff6cfbe
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-03 16:49:28 +00:00