Commit Graph

3369 Commits

Author SHA1 Message Date
Justin Yun
4d865e6af8 Remove PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE for test
Setting PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE to true blocks
System-only-OTA from OMR1 devices because it does not allow some
propertis set by the OMR1 vendor partition.

Only if we include the VNDK snapshot v27 to wahoo devices, remove
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE from wahoo as well as ag/3694012
for rild.

Bug: 74505580
Test: Check if Bluetooth could be turned on in P-OMR1 walleye device.
Change-Id: I5113988b10f0cdde394ed2fc31ebc9d1ea811e1c
2018-05-14 15:33:41 +09:00
Joel Galenson
9cafa9a191 Track nfc SELinux denial.
This should help fix presubmit tests.

Bug: 79617173
Test: Built policy.
Change-Id: Ia6b55c7aa329366bde2390939883fb8f4770eff1
2018-05-12 09:05:43 -07:00
TreeHugger Robot
aa3901b33e Merge "Remove keymaster4" into pi-dev 2018-05-12 06:30:38 +00:00
Sean Callanan
55e9c926f4 Merge "wahoo: Update sepolicy for LA.UM.6.4.9.C2.07.00.00.386.031" into pi-dev 2018-05-12 05:47:31 +00:00
Sean Callanan
6a43e6cee4 Merge "Advertise Vulkan 1.1 system feature" into pi-dev 2018-05-12 05:47:31 +00:00
Sean Callanan
3550ada6f7 wahoo: add bug_map for b/79617173
AU031 graphics drivers introduce SELinux denials for
"vendor_default_prop".

Pending a proper fix, tracking this bug so the new graphics driver
can be merged.

Test: Check that presubmit succeeds.
Bug: 79426077
Change-Id: I775de870c6fae32f35acaa7017192ef12254dd7f
2018-05-11 20:35:26 -07:00
Shawn Willden
2f1fec3c6f Remove keymaster4
Wahoo devices don't have keymaster4 hardware, just a software
implementation that was used for testing.

Bug: 77307896
Test: Check that the KM4 binary and RC are no longer on the device
Change-Id: I607937921c09bf24bb971bb7ef089aab2346debd
2018-05-11 17:00:57 -06:00
Sean Callanan
84f819c57f wahoo: Update sepolicy for LA.UM.6.4.9.C2.07.00.00.386.031
Bug: 79426077
Test: CTS, PTS pending
Change-Id: Ic5b7c473deec50a8e48c8db0130666093e5562b8
2018-05-11 15:22:24 -07:00
Joel Galenson
28607db79b Track per_proxy SELinux denial.
This should help fix presubmit tests.

Bug: 79541095
Test: Built policy.
Change-Id: Ide4401527cce5473288092a6c44fc446e9c1fc27
(cherry picked from commit 703a55c3a9)
2018-05-11 09:21:27 -07:00
TreeHugger Robot
a545e9053f Merge "p2p: enable VHT mode when operating as GO" into pi-dev 2018-05-11 03:24:57 +00:00
TreeHugger Robot
33241a7f53 Merge "Move ro.adb.secure declaration into device/* (1/2)" into pi-dev 2018-05-10 20:00:24 +00:00
Przemyslaw Szczepaniak
fe6d0320d8 Merge "Disable hvx NN service for pi-dev" into pi-dev 2018-05-10 16:44:57 +00:00
Jack Wu
2fa48ee4fe battery learned capacity: backup/restore to/from persist data
Test:
    - delete file /persist/battery/qcom_charge_full
    - adb logcat to check code flow related health@2.0
    - adb bugreport
    - no "avc: denied" on health vendor service
    - check learned capacity in both
      /sys/class/power_supply/bms/charge_full
      /persist/battery/qcom_charge_full
      -- decrease /sys/class/power_supply/bms/charge_full
         to check backup to /persist/battery/qcom_charge_full
      -- increase /sys/class/power_supply/bms/charge_full
         to check restore from /persist/battery/qcom_charge_full
         (simluate the reset condition)

Bug: 78883741
Change-Id: Ib17bc0938d3a4b78376140a8a1008b4fc82220af
Signed-off-by: Jack Wu <wjack@google.com>
2018-05-10 09:13:50 -07:00
Przemyslaw Szczepaniak
04cfd2ae4f Disable hvx NN service for pi-dev
Bug: 78249699
Test: manual, cts
Change-Id: Ic0b7a8ab8e1ca854069544e35f5e4139d800c4f3
2018-05-10 12:50:54 +01:00
Jaekyun Seok
977eefd711 Move ro.adb.secure declaration into device/* (1/2)
Bug: 79115842
Test: succeeded building and tested with taimen
Change-Id: I963a68b1b53ca3412027b357e25fffd6391ef9ff
2018-05-10 13:22:37 +09:00
Andrew Chant
4eb8b24b07 Change USB autosuspend delay to 7s by commandline.
b/71936484 has audio accessories failing to connect
when there's a transition to suspend when they're attempting
to enumerate.

Avoid this problem by increasing autosuspend delay
from the default 2s to 7s.

The longest I've seen a device take to enumerate after
vbus is ~3 seconds, this gives a 2x margin.

Test: booted on Walleye, saw no more messages:
[  472.412555] c0   5675 msm-dwc3 a800000.ssusb: DWC3 in low power mode
between device connection and enumeration.

Bug: 71936484
Change-Id: Ic655f2ce6dec429510cc7c00452da4d49f2392b0
2018-05-09 11:28:00 -07:00
hsuvictor
ef265d934f p2p: enable VHT mode when operating as GO
After disabling vendor driver override, supplicant needs to specify
the max channel width and pass it to driver.

Bug: 79236591
Test: manually check channel width is HT80 when operating as GO on walleye
      add p2p_go_vht=1, ch_width should be 80MHz
Note: need HIDL wpas_p2p_connect argument fix

Change-Id: I14d04556470c5efa66287f2327d7c6324885e822
2018-05-09 19:21:40 +08:00
android-build-team Robot
5ed087b0e1 Merge "Try to fix thermal-engine dac_override denial." into pi-dev 2018-05-03 16:35:50 +00:00
Kevin Rocard
ed36ecb6ec Merge "Whitelist audio vendor property" into pi-dev 2018-05-02 22:40:34 +00:00
Joel Galenson
e3c5c6ef31 Try to fix thermal-engine dac_override denial.
We saw a similar denial on Marlin where thermal_engine was trying to
access /dev/diag.  This ports that fix to Wahoo to try to fix its
denial.

Bug: 78019417
Test: Build policy.
Change-Id: I3702e705ea4f99a58f4b96008d236d33ecd8045c
(cherry picked from commit 200ded4ed8)
2018-05-02 10:26:03 -07:00
Kevin Rocard
a9c681f94f Whitelist audio vendor property
audio.usb.enable.debug is used to dump information of the
audio usb device connected in the vendor implementation.

Bug: 77926553
Test: atest VtsHalAudioV4_0TargetTest
      without sepolicy errors
Signed-off-by: Kevin Rocard <krocard@google.com>

Change-Id: Ia36823fab7087c3dd77eade28fe14dc6805a1551
2018-05-01 18:07:51 -07:00
Jerry Zhang
a89515255a Merge "Add audio_source combinations to usb hal" into pi-dev 2018-05-01 23:25:46 +00:00
android-build-team Robot
24982f59c6 Merge "Namespace ssrdump properties with vendor prefix" into pi-dev 2018-05-01 22:34:43 +00:00
Jerry Zhang
9515673027 Add audio_source combinations to usb hal
This allows android auto and accessory hid
to both work, and matches functionality
on other device in O.

Bug: 74172000
Test: auto starts
Change-Id: I786cd66bed015c5ad2a4ca668f0d0fbc9c8af507
2018-05-01 21:34:14 +00:00
Stanley Tng
9436e08093 Merge "Disable Hearing Aid Profile for all platforms except Pixel" into pi-dev 2018-04-27 18:27:38 +00:00
android-build-team Robot
22920ab479 Merge "Hide denials caused by race with labeling." into pi-dev 2018-04-27 18:15:20 +00:00
Chia-I Wu
4a7f4180aa Merge "Override config_availableColorModes" into pi-dev 2018-04-27 15:47:41 +00:00
Yifan Hong
d7036a5d7f Merge "Revert "health HAL: overrides healthd."" into pi-dev 2018-04-26 19:38:59 +00:00
Joel Galenson
2c67552cfd Hide denials caused by race with labeling.
These denials seem to be caused by a race with the process that labels
the files.

Bug: 77635294
Test: Build policy.
Change-Id: Ieed9c2be18a092e92ec90fc8a07fa17c8ec19308
2018-04-26 10:01:51 -07:00
Yifan Hong
fb257f8c76 Revert "health HAL: overrides healthd."
This reverts commit 6c41af4807.
This is a partial revert; CleanSpec.mk is not reverted.

Reason for revert: prevents boot with O-MR1 vendor + P system

Test: boots

Change-Id: Ib573f525da836f12201fd0f9793441a9fed31969
Fixes: 78550051
2018-04-25 14:18:57 -07:00
Chia-I Wu
b4e0bb3e5a Override config_availableColorModes
List NATURAL, BOOSTED, and SATURATED.

Bug: 73824924
Test: atest PtsConfigTestCases
Change-Id: I5e57c4940b5fc32dc43684bb6e58b7af1097a4df
2018-04-25 11:42:20 -07:00
Stanley Tng
accc78a8c0 Disable Hearing Aid Profile for all platforms except Pixel
Enable the Hearing Aid Profile for Taimen and Wally.

Bug: 78142728
Test: Manual Pairing on various Pixel phones
Change-Id: I1323387592bbedf69b4fc9185b121d616c96fd9e
2018-04-25 09:23:22 -07:00
Joel Galenson
6c9599d865 Allow access to sysfs_timestamp_switch.
We've seen these processes trying to access this file, so allow it.

Note that this is likely why they needed the sysfs_diag permission we
granted earlier.

Bug: 77908806
Test: Build
Change-Id: I60a2dae5a0635156070397242f13695678f1d00e
(cherry picked from commit 2e41f0e3f0)
2018-04-25 08:52:31 -07:00
TreeHugger Robot
09e056efe1 Merge "Handle radio diag-related denials." into pi-dev 2018-04-24 19:35:39 +00:00
Wei Wang
096cd1d444 Merge "dumpstate: add interface into rc file" into pi-dev 2018-04-24 04:24:04 +00:00
TreeHugger Robot
64f3848f9e Merge "sepolicy: Fix denial when dump powerhal" into pi-dev 2018-04-24 00:52:36 +00:00
Wei Wang
15730af3e9 dumpstate: add interface into rc file
Bug: 77489941
Test: Build
Change-Id: I614014b31e1f5301a42bf85573f9f7495626ac33
2018-04-23 17:24:10 -07:00
Joel Galenson
731a3272ad Handle radio diag-related denials.
This allows the behavior on userdebug and eng builds and hides it on
user builds.

Bug: 77908806
Test: Build policy.
Change-Id: I0d858a94bb1bab6069107209494536a62019788f
(cherry picked from commit e7e22f5e82)
2018-04-23 16:10:16 -07:00
Adam Seaton
28bed0f4ea Update SVN to 12 for June RoW Walleye/Taimen build Bug:78240102
am: 7c3e60f1fd

Change-Id: I4fa576c48d08db2464bba00bcbdaafe6876df551
2018-04-20 13:44:21 -07:00
Adam Seaton
7c3e60f1fd Update SVN to 12 for June RoW Walleye/Taimen build
Bug:78240102
2018-04-20 18:09:50 +00:00
Wei Wang
688db87524 Merge "powerhint.json: change to use Value directly" into pi-dev 2018-04-20 03:14:21 +00:00
Adam Seaton
de384a156d Update SVN to 11 for June Tmo Walleye/Taimen build Bug: 78240102
am: 8f67a32328

Change-Id: I6010b2a456346a7efff0cf97fe09decf3fdf2cbe
2018-04-19 15:23:40 -07:00
TreeHugger Robot
1e27aacd27 Merge "Increased GPS debug" into pi-dev 2018-04-19 21:16:29 +00:00
Kelly Rossmoyer
b296bbf7f0 Add temp workaround Easel power stats on 2017
While snapshot Easel power data is captured in bugreports via dumpstate,
Easel does not provide low power stats on a recurring basis via
PowerHAL, which is the type of data need to detect the presence and
scope of power drain issues in the field.  As a temporary workaround,
this set of changes keeps cumulative counts of the number of times
PowerHAL saw Easel's state (an existing sysfs node) as "on" (state 1)
or "not on" (state 0 or 2), and logs the "on" count as cumulative count
and the "not on" count as cumulative duration.

This does not sufficiently address the long term need for cumulative
stats, since this will just be comprised of essentially random snapshots
of Easel's current state.  However, for the known issue already being
investigated, this should be enough to gauge the scope of the issue.

sepolicy updates allow hal_power to search/read the directory/file
containing Easel's current state: /sys/devices/virtual/misc/mnh_sm/state

Bug: 77208137
Bug: 36576572
Test: Installed on taimen, used camera for various functions, used
easel debug commands and properties to force it into different states,
captured a bugreport and verified the content against observed "current
state" values from monitoring the state file while performing similar
camera functions.

Change-Id: Ib1ee92db477d2a6c9d6f293fb4fcc2f753b8335a
2018-04-19 17:36:21 +00:00
Tim Murray
e794fdd39f Merge "wahoo: add restricted cpuset" into pi-dev 2018-04-18 23:43:54 +00:00
Adam Seaton
8f67a32328 Update SVN to 11 for June Tmo Walleye/Taimen build
Bug: 78240102
2018-04-18 21:44:49 +00:00
Tom Cherry
b11f26963a Merge "vendor_init permissions for unencrypted_data_file are now global" into pi-dev 2018-04-18 17:37:22 +00:00
TreeHugger Robot
e998016833 Merge "Apply whitelist of bluetooth_prop and wifi_prop (2/2)" into pi-dev 2018-04-18 02:00:39 +00:00
Tim Murray
bd8b3857d0 wahoo: add restricted cpuset
bug 78197570
Test: CTS

Change-Id: I29b20c99500c009049a7d229a3325b299738385c
2018-04-17 18:02:21 -07:00
TreeHugger Robot
b7f5c29f5f Merge "haptics: Implement constant effect for heavy click" into pi-dev 2018-04-17 22:25:24 +00:00