Commit Graph

103 Commits

Author SHA1 Message Date
Thierry Strudel
36d09bf13f move fstab and BOARD_AVB_ENABLE to wahoo
Change-Id: I057403bb22241cc756f714019f4c2d2efeb4cd3e
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-09 12:20:01 -07:00
Jiyong Park
59b2c5a0b9 wahoo: move vndk-sp libs to /system/lib/vndk-sp and RS libs
With this CL, wahoo devices have the same status with marlin/sailfish
in terms of vndk-sp libs.

Bug: 37550338
Bug: 37483222
Test: RenderScript apps work (e.g. CameraScript)
Test: boot successful without following message:
failed to load /vendor/lib64/egl/libEGL_adreno.so from sphal namespace:
dlopen failed: library "libcutils.so" not found

Change-Id: I4a2159395904c2597ed74785b00dca4487aea715
2017-05-07 03:13:04 +00:00
Jeff Vander Stoep
4adde24086 device.mk: SSRestartDetector is included elsewhere
Remove it from device.mk

Bug: 38020421
Test: build
Change-Id: Ie8446adfdaaf8cbeee5155bb71c5b8d89f3af2a1
2017-05-05 21:37:27 +00:00
Peng Xu
e95c2e5d4f Merge "Move multihal configuration file to /vendor" 2017-05-04 21:29:53 +00:00
Peng Xu
efb7f69d38 Move multihal configuration file to /vendor
Move hal configuration file to /vendor to satisfy treble requirement.

Test: wahoo sensor works
Bug: 35947802
Change-Id: I0ef5aff67653090791c1f11b79bc5f3420122aec
2017-05-03 17:53:14 -07:00
Steven Moreland
582d2b5f99 Remove redundant dependencies
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: Ie75f2af2a53c53cde3ebf5e76c7282261e3c7c74
2017-05-03 11:14:04 -07:00
TreeHugger Robot
e0d1021546 Merge changes from topic 'vndk_sp_in_muskie'
* changes:
  tag libdrm.so as same_proecess_hal_file
  muskie: copy vndk-sp libraries to /vendor/lib/vndk-sp
2017-05-03 15:16:26 +00:00
Jiyong Park
2c448274c6 muskie: copy vndk-sp libraries to /vendor/lib/vndk-sp
Note: this shouldn't be permanent solution. Anything that is installed
to /vendor partition must be compiled against the vndk build of the
system libraries, which might be different than the core build of the
libraries. However, since the number of such libraries are so many and
thus it takes considerable time to build them as vndk. So, in the mean
time, we just build vendor libraries against the core build as before
and copy the core builds to the vendor partition.

Bug: 37483222
Test: the listed files are in /vendor/lib(64?)/vndk-sp and their
contents are the same as those in /system/lib(64?).
Test: muskie/walleye boots

Change-Id: I143fb2cf8b6f3215a05582b23997150d75028adb
2017-05-02 13:00:54 +09:00
Kris Chen
1881a9c33b fingerprint: upgrade to sw23
integrate FPC SW23.1-ODR1.0 - use FPC HIDL implementation

Bug: 35443500
Change-Id: I4fb3c69dbc30d55ae5525c2b2f07f8855b74ed4f
2017-05-01 15:56:16 -07:00
Chris Forbes
b2055fb87a wahoo/muskie: advertise vulkan support
Adds vulkan support level and version to system/etc/permissions;
fixes sepolicy so the vulkan driver can load.

Fixes tests in android.graphics.cts.VulkanFeaturesTest:
	- testVulkanHardwareFeatures
	- testVulkanVersionForVrHighPerformance

sepolicy change mostly borrowed from equivalent marlin config

Test: CtsGraphicsTestCases/android.graphics.cts.VulkanFeaturesTest
Bug: b/37719307
Change-Id: Ia99d6dacc8d8353cb7ef0e1cfaca0636708c5067
2017-04-28 16:03:44 +00:00
TreeHugger Robot
8a93fbce52 Merge "Add PRODUCT_FULL_TREBLE_OVERRIDE" 2017-04-28 00:46:31 +00:00
Steven Moreland
974930931c Add PRODUCT_FULL_TREBLE_OVERRIDE
This way it applies to all wahoo devices.

Bug: 37306724
Test: Boots to UI on Taimen
Change-Id: I2f091757b027469088cb149cbeb19c6c621cdd8a
2017-04-27 19:38:20 +00:00
Mark Salyzyn
d44763e2b9 Revert "device: fs_config applies only to vendor partition"
out/target/product/muskie/system/etc/fs_config_dirs is not built.  The
build tool fixed in https://android-review.googlesource.com/#/c/382272
so this one can now be reverted.

This reverts commit fe01b01dbe.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 37721445
Bug: 36071012
Change-Id: If53ad9eeb676c9566553befbd51e2b336f46087b
2017-04-27 16:05:34 +00:00
Thierry Strudel
fe01b01dbe device: fs_config applies only to vendor partition
Bug: 37721445
Change-Id: Ic01d844e6d380662c5a1df98a4bcaec1b79cd39d
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-04-26 22:33:11 -07:00
Thierry Strudel
ee52563ef6 Merge "USB: HAL: update wahoo hal to V1_1" 2017-04-27 03:28:12 +00:00
Zhijun He
846ba1ccd3 camera: enable full mode face detection by default
Bug: 31979356
Change-Id: I528ff564f7626c5b87b81c5163f8b2ad33d9ad0c
2017-04-26 14:43:58 -07:00
Zhijun He
216b3bca6b Merge "camera: remove tnr prop for preview" 2017-04-26 21:40:10 +00:00
Badhri Jagan Sridharan
fc32e28be9 USB: HAL: update wahoo hal to V1_1
This CL adds support to notify frameworks when an audio
or debug accessory is attached.

Bug: 36604276
Test: Manually test inserting an Audio accessory.
Change-Id: I9ec0f88ed85ed593b31132ba58bfedb51a435cd8
2017-04-26 21:09:10 +00:00
Brian Duddie
39ccb7186f Merge "Add binderized sensors HAL" 2017-04-26 20:33:38 +00:00
Zhijun He
0669c424f6 camera: remove tnr prop for preview
Bug: 37478961
Change-Id: If748b6f3e58f8e70f719a05682b9a28bf31f3246
2017-04-26 19:39:06 +00:00
Brian Duddie
892c70989b Add binderized sensors HAL
Make the sensors HAL binderized, and add the necessary sepolicy entries
to grant it permissions for these denials:

type=1400 audit(5246168.379:61): avc: denied { search } for pid=7558
comm="android.hardwar" name="/" dev="sdd3" ino=2
scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:persist_file:s0
tclass=dir permissive=0

type=1400 audit(1493161320.949:152): avc: denied { search } for pid=7558
comm="android.hardwar" name="msm_subsys" dev="sysfs" ino=19027
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:153): avc: denied { read } for pid=7558
comm="android.hardwar" name="devices" dev="sysfs" ino=19029
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:154): avc: denied { open } for pid=7558
comm="android.hardwar" path="/sys/bus/msm_subsys/devices" dev="sysfs"
ino=19029 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:155): avc: denied { read } for pid=7558
comm="android.hardwar" name="subsys0" dev="sysfs" ino=34647
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file permissive=1
type=1400 audit(1493161320.949:156): avc: denied { read } for pid=7558
comm="android.hardwar" name="name" dev="sysfs" ino=34639
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file permissive=1
type=1400 audit(1493161320.949:157): avc: denied { open } for pid=7558
comm="android.hardwar"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=34639 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file permissive=1

type=1400 audit(1493161320.959:158): avc: denied { search } for pid=7558
comm="android.hardwar" name="sensors" dev="sdd3" ino=12
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=dir permissive=1
type=1400 audit(1493161320.959:159): avc: denied { read } for pid=7558
comm="android.hardwar" name="sensors_settings" dev="sdd3" ino=13
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=file permissive=1
type=1400 audit(1493161320.959:160): avc: denied { open } for pid=7558
comm="android.hardwar" path="/persist/sensors/sensors_settings"
dev="sdd3" ino=13 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=file permissive=1

type=1400 audit(1493161320.959:161): avc: denied { create } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.959:162): avc: denied { ioctl } for pid=7558
comm="android.hardwar" path="socket:[85874]" dev="sockfs" ino=85874
ioctlcmd=c304 scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.959:163): avc: denied { write } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.979:164): avc: denied { read } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161346.039:168): avc: denied { ioctl } for pid=7558
comm="sensors@1.0-ser" path="socket:[85876]" dev="sockfs" ino=85876
ioctlcmd=c302 scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1

Bug: 36097227
Test: load on device, confirm sensors stack comes up, perform screen
  orientation sanity test, check no selinux denials in kernel log, run
  VTS using:
    vts-tradefed run commandAndExit vts --module VtsHalSensorsV1_0Target
  Note that there are known VTS failures tracked under bug 37710268.
  This change does not introduce any new failures.
Change-Id: I8f6017f3d080cde7ec009182f0f5fbb90980d424
2017-04-26 10:39:13 -07:00
Etan Cohen
7cef570f79 Revert "[AWARE] Enable Wi-Fi Aware feature support."
This reverts commit 5232d40757.
2017-04-26 09:21:09 -07:00
Miao Wang
9898d9d468 Bring-up RenderScript HAL for Muskie / Walleye
Bug: 36097673
Test: mm && tested on Walleye to make sure QCOM driver load.
Test: RS CTS tests pass
Test: Imageprocessing tests pass, and confirming running on GPU.

Change-Id: Iaca74a8e90d9fd10e4327bd55d982e95b700ca0f
2017-04-25 14:11:06 -07:00
Siddharth Ray
036084830d Merge "Location overlay refactoring 2/3" 2017-04-24 17:23:58 +00:00
Thierry Strudel
0b19015b63 Merge changes from topic 'avb'
* changes:
  init.hardware.rc: start qseecomd on fs
  manifest.xml: add gatekeeper and keymaster definitions
  Add sepolicies for binderized QCOM KM 3.0 and GK 1.0 HAL
  device: don't use generic GK and KM HALs
  device: add frp prop
2017-04-22 01:34:07 +00:00
TreeHugger Robot
9d112b2c4f Merge "wahoo: move fluence config to common code" 2017-04-21 23:45:32 +00:00
Thierry Strudel
cb0d612923 device: don't use generic GK and KM HALs
Change-Id: I2f862dcc0639a96d1cb0f4c613d0d18d4847ca95
2017-04-21 16:37:22 -07:00
alvin_liang
e06ff3db58 device: add frp prop
Bug: 37455788
Change-Id: I9410ba17530a16812d86627e69f95122615a82c4
2017-04-21 16:37:22 -07:00
Jayachandran C
580fb6a4a8 Set RIL_DATA_REG_STATE_CONDITIONAL_REPORT to true
persist.radio.data_con_rprt=true

This will enable RIL to report DATA_REGISTRATION_STATE RAT IWLAN
if device is IMS registered for voice over Wifi. Reporting IWLAN
in this use case is needed for telephony to use IWLAN RAT for APN
selection for data call (ex. MMS) over IWLAN use cases.

Bug: 37326164

Change-Id: I5d102a70b67aa098de015fb72038edccb5c3fd67
2017-04-21 21:51:15 +00:00
Patrick Tjin
467792aa44 wahoo: move fluence config to common code
Test: build
Change-Id: Iee60dddfc7f018a6545cda2b34e3b621b49bbd39
2017-04-21 08:51:22 -07:00
Brian Duddie
16394512f1 Merge "Enable SLPI SSR" 2017-04-20 22:14:03 +00:00
Etan Cohen
1f9b70eda2 Merge changes from topic 'bringup_aware'
* changes:
  [AWARE] Enable Wi-Fi Aware feature support.
  Enable NAN data path
2017-04-20 21:54:08 +00:00
Siddharth Ray
cecfd23b11 Location overlay refactoring 2/3
Removed redundant settings from gps.conf
Removed default framework settings from devices folder

Change-Id: Id8d786410fd1bf3d54f458781afcd4fe127de117
2017-04-19 18:29:26 -07:00
Etan Cohen
5232d40757 [AWARE] Enable Wi-Fi Aware feature support.
Enable the Wi-Fi Aware feature on:
- Add feature to framework
- Device HAL feature

Bug: 36088628
Test: integration (non-data-path) sl4a tests pass
Change-Id: I3e2dca6477b27b466e2b074c70595813fe365973
2017-04-19 16:04:24 -07:00
Michael Schwartz
db0322a532 Declare location of device manifest
Bug: 36810913
Bug: 36983271
Test: make and inspect $OUT/vendor/manifest.xml
Change-Id: I2a3a6adc7193d95875729e93a987cb7c11aab7aa
2017-04-19 14:50:10 -07:00
Brian Duddie
d33c00d082 Enable SLPI SSR
Allow SLPI to crash and restart without bringing down the system.

Bug: 37503415
Test: load, confirm SSR entry gets set
Change-Id: I87fa72f557bf37add17f3a908e589dbc6f0c722e
2017-04-19 13:46:41 -07:00
TreeHugger Robot
9e627ea90b Merge "power_profile: Fix overlays for wahoo" 2017-04-19 00:40:04 +00:00
TreeHugger Robot
7da32ac2d6 Merge "camera: enable TNR for preview and video" 2017-04-17 23:02:11 +00:00
Zhijun He
a19299f015 camera: enable TNR for preview and video
Bug: 36564404
Change-Id: I49d6653a659649ea5a8bbb722ad0e8bd65ecfef5
2017-04-17 14:15:23 -07:00
TreeHugger Robot
642c6681aa Merge "wahoo: enable audio rotation feature" 2017-04-17 18:35:04 +00:00
TreeHugger Robot
63df0e8632 Merge "soundfx: add audio effects to product package" 2017-04-17 17:24:23 +00:00
Jesse Hall
52e963c176 Set graphics driver package name
This has the side effect of disabling preloading of the EGL/GLES drivers
in Zygote.

Bug: 37323602
Test: confirm driver not loaded in zygote, run gles3jni + vulkanGears
Change-Id: I4231ada91ba7dda7f7d6f8cff1de7957c24f2d99
2017-04-14 14:55:51 -07:00
Vinay Kalia
d61b2c2cee power_profile: Fix overlays for wahoo
Muskie and Wallye overlays should override the overlays defined
in wahoo. Also, resources outside of the "values" directory are
overlayed by the file so there is no need of power_profile.xml
for wahoo since muskie and walleye will always override it completely.

BUG: 36796913
Test: Verified "App usage since last charge" under Settings->Battery
Change-Id: Idc0bbe8920bf209d7cd721ea2b7fb32647d30ec2
2017-04-14 13:29:45 -07:00
David Lin
f7d8d86b8e wahoo: enable audio rotation feature
Bug: 34897462

Signed-off-by: David Lin <dtwlin@google.com>
2017-04-12 19:25:44 -07:00
David Lin
ae092d8920 soundfx: add audio effects to product package
Test Done: dumpsys to check effects are loaded
Bug: 36865903

Change-Id: I10efc6921a95e96bfc29337b95275788b9780524
Signed-off-by: David Lin <dtwlin@google.com>
2017-04-12 12:44:41 -07:00
Andrew Scull
fdd3c83a20 Merge "Add eSE daemon." 2017-04-12 12:38:03 +00:00
Andrew Scull
2e50fd967f Add eSE daemon.
It managed the eSE by accessing the driver through the /dev/pn81a node.

Test: Boot brings up esed which connects to the eSE.
Bug: 35628284
Change-Id: I6fa3384169adb60095585856accd53bc61d06cf4
2017-04-11 14:32:10 +01:00
Ramanan Rajeswaran
702f9f4f44 Remove aosp bits.
Test: built muskie.
Change-Id: I30e09d990bb3d4e96f769075f0fb995f71fd35a0
2017-04-10 14:14:11 -07:00
TreeHugger Robot
f622c29a28 Merge "Add drm hal to wahoo" 2017-04-05 23:19:16 +00:00
Jeff Tinker
ea51adeb28 Add drm hal to wahoo
bug:35808472

Test: compiles, I don't have a device to test
Change-Id: I3839a5335f4fd976a6d668f037756bca00676bb8
2017-04-05 14:56:50 -07:00