Commit graph

203 commits

Author SHA1 Message Date
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Peiyong Lin
09dbd3df37 [ConfigStore] Slient log spam.
Previously ConfigStore keeps logging info of each function, this patch moves it
to verbose to avoid log spam.

BUG: 123312783
Test: Build, flash and boot. Verify with adb logcat
Change-Id: I8dce745122ca05d18cd899c536342521432f5325
2019-02-06 11:05:14 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Peiyong Lin
52a7c69abf [ConfigStore] Clarify hasHDRDisplay spec.
BUG: 111505327
Test: Build, flash and boot

Change-Id: Ie22d4c7b069a918f039a60317a213dc6a7efb205
Merged-In: Ie22d4c7b069a918f039a60317a213dc6a7efb205
2018-08-22 18:20:58 -07:00
Jeffrey Vander Stoep
1850703a5e Merge "Revert "configstore: include crash_dump seccomp policy""
am: aeb792be28

Change-Id: I636f1db4864b0c20a113f7a82e4ecda5ee253f40
2018-06-15 10:02:44 -07:00
Treehugger Robot
aeb792be28 Merge "Revert "configstore: include crash_dump seccomp policy"" 2018-06-15 16:55:17 +00:00
Jeffrey Vander Stoep
a057fd15a3 Revert "configstore: include crash_dump seccomp policy"
This reverts commit 1ca0e947a4.

Reason for revert: This change caused a configstore crash on Hikey

Change-Id: Ied327b331ac084349bf4d10c34f5702b4da7aab0
2018-06-15 14:21:11 +00:00
Jeff Vander Stoep
ca8d5c9250 Merge "configstore: include crash_dump seccomp policy"
am: 25080b1fff

Change-Id: I54535004faf8beebef7222989d025fa0b999f9a6
2018-06-13 11:16:58 -07:00
Treehugger Robot
25080b1fff Merge "configstore: include crash_dump seccomp policy" 2018-06-13 18:06:36 +00:00
Jeff Vander Stoep
1ca0e947a4 configstore: include crash_dump seccomp policy
Change-Id: I37ebd0da5747c7c475e9d2d63dc5f9fdc511f8e7
Fixes: 78776142
Test: Crash configstore, verify useful crash info in the logs.
2018-06-13 07:01:58 -07:00
Steven Moreland
f157c2c418 Add explicit README for configstore future goals. am: 31f5143c23
am: 3542341bbb

Change-Id: Icc3df703fc7ca9c79551ed7fc9ea47e40d3f0991
2018-06-07 08:22:46 -07:00
Steven Moreland
31f5143c23 Add explicit README for configstore future goals.
Previously, supposedly, each individual client of configstore
was supposed to add the add_hwservice attribute itself to get
ahold of the specific sub-interface of configstore relevant to
it. However, there is only one configstore interface,
ISurfaceFlingerConfigs.

From this point onward, the configstore hal is to be thought of
as specifically relating to surface flinger. Other properties
may be added as other attributes/packages.

For instance, if we want a configstore entry for 'IFooConfig',
then we would add the configuration to one of the following
packages:
- android.hardware.foo@X.Y (to the interface itself)
- android.hardware.foo.config@X.Y (to a configuration of the interface)
- android.hardware.configstore.foo@X.Y (as a sub-interface of configstore)

and then it could be associated with the sepolicy attributes
(respectively):
- hal_foo
- hal_foo_config (or just hal_foo if they are 1-1)
- hal_configstore_foo

The specific pattern to be followed irrelevant to this CL
and subject to future discussion, the point being that we're going
to have a separate sepolicy attribute (and package, although this
isn't strictly necessary) for each separate domain's configuration.

Bug: 109806245
Test: N/A
Change-Id: I837e0bdd11e028265756a905c234e087924c1d6b
2018-06-06 13:03:13 -07:00
Jaesoo Lee
ff866b9b0d Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev
am: ce7d394935

Change-Id: I610b46eb5a8d959e7ebacbc2beecb953b9e5383c
2018-05-23 18:20:47 -07:00
Jaesoo Lee
712ee82162 configstore: configstore HAL uprev'ed to 1.1
This change provides a reference implementation of the configstore HAL
v1.1.

Bug: 69691076
Test: tested on walleye-userdebug
Change-Id: I68ee224bcbda64f6fef91e8a0f95adb32d504aad
2018-05-23 15:48:36 -07:00
Steven Moreland
f7c33b81c3 configstore: remove references to board platforms am: 3f221a835b
am: 03464d7674

Change-Id: I61827f9a18337accb46f1f71d91cc29f6451dba9
2018-05-07 17:23:31 -07:00
Steven Moreland
3f221a835b configstore: remove references to board platforms
These platforms should set TARGET_USE_CONTEXT_PRIORITY.

Change-Id: I9cd1984437996405c057246f383d6cf5327667e6
Fixes: 74082983
Test: m only (sanity, these boards aren't in tree for me)
2018-05-07 15:34:23 -07:00
Jiyong Park
216d1f775c Merge "Mark configstore-utils as double_loadable" am: a7b9291b82
am: eba42a4d6b

Change-Id: I02a99829a260941216c7365b350d159ae83fd79d
2018-04-20 21:01:57 -07:00
Jiyong Park
0d257d5f7e Mark configstore-utils as double_loadable
configstore-utils is explicitly marked as double_loadable since it is one of the
(indirect) dependencies of the LLNDK library libvulkan
and at the same time the lib itself is marked as VNDK. Such lib can be
double loaded inside a vendor process.

Note: even without this change, the library is already capable of being
double loaded due to the dependency graph around it. This change is to
make it explicit so that double loading of a library is carefully
tracked and signed-off by the owner of the lib.

Bug: 77155589
Test: m -j
Merged-In: Ibece0476b819e3387836305ee3b1c9dbf614920b
Change-Id: Ibece0476b819e3387836305ee3b1c9dbf614920b
(cherry picked from commit 9fb3c20bc6)
2018-04-18 11:46:52 +09:00
Steven Moreland
80ece2df25 Merge "configstore policy: add dgetdents64" into pi-dev
am: a484609378

Change-Id: Id704b57924206c73cc12103790aba37c8cbc0b90
2018-04-09 11:18:07 -07:00
Steven Moreland
1564ea3fe9 configstore policy: add dgetdents64
Required for libhidltransport to be able to update
process name.

Bug: 77696368
Bug: 77654200
Test: boot device and configstore doesn't crash
Change-Id: I6574cf1c21465c5eae901015da2564b64b6a40d2
2018-04-06 13:16:11 -07:00
Jeff Vander Stoep
da6a30dea3 configstore: whitelist getpid call for arm64 am: 0979cc5dd9
am: e3804803d4

Change-Id: Ic68c63ce824cdb024dde673015f1f23f8b1703cc
2018-03-19 20:36:18 +00:00
Jeff Vander Stoep
0979cc5dd9 configstore: whitelist getpid call for arm64
Addresses:
01-01 00:00:03.416   964   964 E /vendor/bin/hw/android.hardware.configstore@1.0-service:
libminijail[964]: blocked syscall: getpid

Bug: 74394073
Test: weipingliao@ to test
Change-Id: Iaa836d1f0b3595a66dfb6af2dd78fdddb9d7272e
2018-03-19 18:12:21 +00:00
chenhg
f33265ec58 Merge "configstore: allow to USE_CONTEXT_PRIORITY by device." am: cd712b0e8f am: 301951f8a4
am: f6f9837522

Change-Id: I830441c02b1cfba9a3f61f1510d3bca307a2b233
2018-03-02 02:49:24 +00:00
chenhg
f6f9837522 Merge "configstore: allow to USE_CONTEXT_PRIORITY by device." am: cd712b0e8f
am: 301951f8a4

Change-Id: I92ff43ccecfc8e87e670181d45de1ffa2fa279af
2018-03-02 02:39:04 +00:00
chenhg
a491908fe9 configstore: allow to USE_CONTEXT_PRIORITY by device.
Fixes: 72007412
Test: manual

Change-Id: Id6135347ef699b27ab708d387261bc031996a476
2018-03-01 22:51:02 +00:00
Zhuoyao Zhang
22b413bdd8 Merge "Convert configstore hal test to use VtsHalHidlTargetTestEnvBase" am: 42749f8863 am: 8857a90053
am: f28f18c0e7

Change-Id: I2ce9d4ab9273b81c2ab48d2a870cce675568adb6
2018-02-10 19:39:02 +00:00
Zhuoyao Zhang
f28f18c0e7 Merge "Convert configstore hal test to use VtsHalHidlTargetTestEnvBase" am: 42749f8863
am: 8857a90053

Change-Id: Ifa94c66094f72913b13d0d29647f281d53ac9fd1
2018-02-10 19:34:53 +00:00
Zhuoyao Zhang
d198ea4c09 Convert configstore hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalConfigstoreV1_0Target

Change-Id: I4ba993d41e285df790c267e84b484f1564047e1e
2018-02-08 21:31:57 -08:00
Zhuoyao Zhang
ce386b10e9 Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735 am: 23b5ae4553
am: 40ffc6130a

Change-Id: I09d4a2f53156de34f80bb66e0970ebbe4c7e40ec
2018-01-09 21:43:19 +00:00
Zhuoyao Zhang
40ffc6130a Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735
am: 23b5ae4553

Change-Id: Id042a38e3e25fde309f5cf5922f7f1c24923ed9a
2018-01-09 19:59:15 +00:00
Zhuoyao Zhang
207e97c735 Disable seccomp policy for configstore hal on coverage builds.
Test: lunch walleye_coverage-userdebug && make
      verify configstore@1.0.policy is not generated.

Change-Id: Iad1f55fe10c2c77a3ca56418ec315e10ab71753f
2018-01-08 12:06:22 -08:00
Sundong Ahn
b162f3f8dd Configstore HAL is down-revisioned to 1.0
Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in master will be down
revisioned to 1.0.

Bug: 71555815
Test: lshal | grep configsotre
Test: "cat proc/<configstore pid>/status | grep Seccomp " return:
    Seccomp: 2

Change-Id: I65d2dc06fbe12d0c0ccc020bbd287e0b14320f2f
2018-01-04 16:15:56 +09:00
Steven Moreland
e5c6548346 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:23:43 -08:00
Steven Moreland
8b76a6b90d Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:55 -08:00
Steven Moreland
fcca4e23b7 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:43 -08:00
Xin Li
bb9e38fef9 Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' from
oc-mr1-dev-plus-aosp into stage-aosp-master

Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
2017-11-14 12:08:38 -08:00
TreeHugger Robot
75b8428b4c Merge "resolve merge conflicts of 32ba3eaa to oc-mr1-dev-plus-aosp" into oc-mr1-dev-plus-aosp 2017-11-14 11:00:56 +00:00
Martijn Coenen
3092f98101 resolve merge conflicts of 32ba3eaa to oc-mr1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I731eba80656edbf87a5d5ba3af63a2c607ac61a6
Merged-In: Id71e2348eabf5101d1fd286bbc0076154703d159
2017-11-14 08:37:32 +00:00
Martijn Coenen
cf426f0fea Fix library loading order in .mk files.
Test: angler boots again
Bug: 69180318
Change-Id: Id71e2348eabf5101d1fd286bbc0076154703d159
Merged-In: Id71e2348eabf5101d1fd286bbc0076154703d159
2017-11-13 20:42:40 +00:00
TreeHugger Robot
91d263d6a9 Merge "Fix library loading order in .mk files." 2017-11-13 20:40:38 +00:00
Steven Moreland
c2f829a1d2 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 11:39:07 -08:00
Martijn Coenen
b6fa3ae638 Fix library loading order in .mk files.
Test: angler boots again
Bug: 69180318
Change-Id: Id71e2348eabf5101d1fd286bbc0076154703d159
2017-11-13 19:59:54 +01:00
Steven Moreland
8db261bc99 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 10:00:18 -08:00
Steven Moreland
a1169dd600 Update makefiles for hidl_interface.
Bug: 35570956
Test: manual
Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
2017-11-10 09:06:55 -08:00
Jeff Gaston
0498aefcfc Remove unused Android.bp
Now that the build system searches for and includes every file
named Android.bp, this one causes errors

Bug: 64363847
Test: m -j
Change-Id: I786efcc23a39de488265a11046a3660fd4526a1a
Merged-In: Ia68993a22b975d9a5dd19175988077481ded7559
2017-11-08 22:06:04 -08:00
Steven Moreland
726af41e68 resolve merge conflicts of dd5206c57 to oc-mr1-dev-plus-aosp
This version of configstore was removed internally.

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I589addff6aec7bb7a8a7938d75c51dcc56116a42
2017-11-02 20:59:39 +00:00
Steven Moreland
c5bc4c7cbb Update makefiles after AOSP push.
Test: none
Change-Id: If3ce74f4d2250d33820cbd864ff56bba6f9e6b67
2017-11-01 16:42:15 -07:00
TreeHugger Robot
448beed214 Merge "configstore: reduce restrictions in prctl()" 2017-10-24 23:04:02 +00:00
Jeff Vander Stoep
41534729e5 configstore: reduce restrictions in prctl()
Prevent configstore from crash-looping due to:
/vendor/bin/hw/android.hardware.configstore@1.0-service:
libminijail[22988]: blocked syscall: prctl

Bug: 68162846
Test: Launch photos.
Change-Id: I1593ea1e03ec5f688ec7311e586178f2f952fed9
2017-10-24 10:34:46 -07:00