Commit Graph

131 Commits

Author SHA1 Message Date
SzuWei Lin
b4e345f78c Move sec_config to vendor
Bug: 37927875
Test: check the files in folder /vendor/etc
Change-Id: I7cd478315961e00f88c99cae309d51ca7b1daeb7
2017-05-19 15:54:28 +08:00
Ahmed ElArabawy
ea9e809ba7 Merge "Revert "power hal: Add power HAL API 1.1 impl for Wahoo"" 2017-05-18 23:57:27 +00:00
Youhan Wang
fe8ca0668e Merge "Set data roaming default false for Wahoo." 2017-05-18 17:37:17 +00:00
Youhan Wang
cfa36ccf9c Set data roaming default false for Wahoo.
Test: make

Bug:37973320
Change-Id: Ic36c8de8ba87149dfa9ada6660ee893d2beb340b
2017-05-17 16:55:23 -07:00
Ahmed ElArabawy
e9e903f222 Revert "power hal: Add power HAL API 1.1 impl for Wahoo"
This reverts commit c043816b3c.
The reason of the revert is to check for the application start time
regression that may have been caused by the CL

Bug: 38317397
Test: None

Change-Id: I7edaf75eeebcecb848b38a9b7eff2bdb1f233cdb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-17 15:21:36 -07:00
Stefanot
8db7a09938 Add external storage and contact permissions to 2017 google phones.
Test: manual
BUG:37635903
Change-Id: I6257943e380d6fa90ce042e143a065bb64d51a3c
2017-05-17 11:22:43 +01:00
TreeHugger Robot
925c0c5c1c Merge changes I6765befe,Iaebed412
* changes:
  Move etc/wifi/* to vendor for build split
  Move permissions to vendor
2017-05-16 04:29:35 +00:00
Ray Essick
d587c5a4ab Merge "add preliminary codec performance characteristics" 2017-05-15 21:42:26 +00:00
SzuWei Lin
1956321915 Move etc/wifi/* to vendor for build split
Bug: 37927875
Test: check these files in folder vendor/etc/wifi
Test: check wifi trun on/off
Change-Id: I6765befe6333aa7c15d91a2086e4eb96aee7071e
2017-05-15 17:12:15 +08:00
SzuWei Lin
314aea5bc9 Move permissions to vendor
Move all permission XML files form:

  system/etc/permissions/*

to

  vendor/etc/permissions/*

Bug: 37927875
Test: check these files in folder vendor/etc/permissions
Change-Id: Iaebed412a99c26bb89f7024618e3c2c4bf63ca4b
2017-05-15 17:12:08 +08:00
Isaac Chen
b635787205 Move configuration files to vendor for build split
The following configuration files need to reside in vendor
partition to work with generic AOSP system image.

Move uevent.*.rc to /vendor
Move fstab.* to /vendor/etc
Move init.*.rc and init.wahoo.usb.rc to /vendor/etc/init.

Also the following two make file variables need to be set:
  - BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
  - PRODUCT_ENFORCE_RRO_TARGETS := framework-res

Change path (to /vendor/bin) for init.*.sh, and add
path (to /vendor/etc) for fstab.* in init.hardware.rc.

Bug: 37927875
Test: These files are under /vendor instead of / or /system,
paths (in rc files) are changed to vendor accordingly,
and the resulted system/vendor images work on the device.

Change-Id: I64c8a899ab1c6837d51853e289160e35910b5b9a
2017-05-12 11:16:45 +08:00
Wei Wang
35257586fb Merge changes Ibd89d8c1,I01610bd3
* changes:
  Enable ZRAM on wahoo
  Override heap growth limit to 256M
2017-05-12 01:09:32 +00:00
Ray Essick
fd33ab5147 add preliminary codec performance characteristics
CtsVideoTestCases were failing on video encode/decode performance
tests for the wahoo-family devices because there is no no performance
characteristic file in the build.  This adds an initial set of
performance characteristics, taken verbatim from the marlin devices.

The numbers will need updating before the device is released.

Bug: 38134584
Test: successful run of affected CTS tests
Change-Id: Idd37095a2883ee1e00a2f774da23ce3202c07b04
2017-05-11 16:44:39 -07:00
Zhijun He
fc8a9ad390 Merge "device.mk: disable default perf mode for encoder" 2017-05-11 22:33:49 +00:00
Ecco Park
dfe38fa8d7 Merge "Wifi: remove the WCNSS_qcom_cf.ini from wahoo" 2017-05-11 22:33:23 +00:00
Ecco Park
1e280464e2 Wifi: remove the WCNSS_qcom_cf.ini from wahoo
The ini file will be picked up from device directory.

Bug: 38198219

Change-Id: Ie05de71da68169487da93372a9a19a12913fa468
Signed-off-by: Ecco Park <eccopark@google.com>
2017-05-11 21:28:56 +00:00
Wei Wang
5b02be8da5 Override heap growth limit to 256M
This is for high display density on device

Bug: 37765310
Bug: 38241506
Test: muskie boot
Change-Id: I01610bd309e532448c67c51c89a168fe441888e6
2017-05-11 14:12:26 -07:00
Glenn Kasten
0e6b7ed9b2 Merge "Temporary workaround to reduce audio glitches" 2017-05-11 20:50:23 +00:00
Glenn Kasten
699cac9518 Temporary workaround to reduce audio glitches
Test: see test case at bug
Bug: 37532694
Bug: 38234822
Change-Id: I27ce231272959e372589ada988173de4aa274d75
2017-05-11 11:23:22 -07:00
Praveen Chavan
7d7606a2fe device.mk: disable default perf mode for encoder
Bug: 36696901
Change-Id: I99d5947801dbbbba34623c0b3e7ce905c0ebd55f
2017-05-11 16:01:47 +00:00
Zhijun He
cec3f91526 Revert "camera: enable full mode face detection by default"
This reverts commit 846ba1ccd3.

Change-Id: I566124516d8212d97b4ce97024ab217280443e16
2017-05-10 23:35:24 +00:00
Ahmed ElArabawy
910a77479e Merge "power hal: Add power HAL API 1.1 impl for Wahoo" 2017-05-10 20:37:49 +00:00
Pawin Vongmasa
3122f21f85 Merge "Update media_profiles.xml, add version, and move to vendor/etc" 2017-05-10 11:58:54 +00:00
Thierry Strudel
a36f7d963e Merge changes from topic 'fstab-wahoo'
* changes:
  fstab.hardware: disable metadata encryption
  move fstab and BOARD_AVB_ENABLE to wahoo
2017-05-09 22:02:53 +00:00
Ahmed ElArabawy
c043816b3c power hal: Add power HAL API 1.1 impl for Wahoo
Add a full binderized implementation for Power hal

Many subsystems (e.g.wifi) could be living on an
independent power island (sourced from VBatt directly)
and might even have their own dedicated XTAL to source
their clocks. Since these SOCs are capable of
autonomously operating (while the platform is in one
of the sleep states), they are still drawing power
from the VBatt. Hence it is critical to understand
the  (SOC) level low power statistics as well when
the battery level changes and be able to find any
correlation in event of unexpected battery drain.

This commit adds the support of the Power Hal 1.1
to wahoo based devices(that includes Muskie/walleye).
This includes the new api for wlan specific power stats

Bug: 29339696
Test: Manual
Change-Id: Iee4e38f2d9ced31f8b6a333b535fa1d9a302ec26
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-09 14:19:49 -07:00
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
TreeHugger Robot
658dd78713 Merge "Use hardware feature definition to indicate Passpoint support" 2017-05-09 17:21:36 +00: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
Pawin Vongmasa
b8baad990f Update media_profiles.xml, add version, and move to vendor/etc
- Replace the dtd part of media_profiles.xml with a reference to
/system/etc/media_profiles_V1_0.dtd
- Rename media_profiles.xml to media_profiles_V1_0.xml
- Change the target output directory from system/etc to vendor/etc

Test: Small CtsMediaTestCases

Bug: 36430270
Change-Id: Ife191ed2efdff5db7af589d4700a1c6665e95873
2017-05-05 20:20:56 -07:00
Peter Qiu
dc878246fe Use hardware feature definition to indicate Passpoint support
Bug: 36886243
Test: Manual test
Change-Id: I92ffbe929c8ba971de5b090ddec679bd343bcb62
2017-05-05 15:35:14 -07: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