Commit Graph

3214 Commits

Author SHA1 Message Date
TreeHugger Robot
3455183d2e Merge "Expose USB-C thermistor in ThermalHAL for Wahoo." into pi-dev 2018-03-19 23:09:39 +00:00
Miguel de Dios
be2ed11266 Expose USB-C thermistor in ThermalHAL for Wahoo.
Expose USB-C to calls to getTemperatures() in ThermalHAL for wahoo.

Bug: 67749183
Test: VtsHalThermalV1_0TargetTest pass
Change-Id: Ic45dea1c990e0c71a6ac621145b93cb0f7aa9519
(cherry picked from commit 51872d4950)
2018-03-19 20:48:37 +00:00
Andrew Lehmer
5d2db97dd9 folio_daemon: start and stop with other services
If sensorservice goes down while folio_daemon is running, folio_daemon
will gracefully exit and restart. If sensorservice remains down while
folio_daemon is starting, it will eventually crash due to the way the
ASensorManager_getInstanceForPackage() API behaves (i.e., it will exit
with a SIGABRT after five minutes of waiting). We can reduce the
chance of this happening by ensuring folio_daemon is only started when
its dependent services are explicitly started as well.

Note that this cannot guarantee that folio_daemon will *never* crash due
to SIGABRT, since there is no variant of
ASensorManager_getInstanceForPackage() that allows for graceful handling
of the service timeout. Events that negatively affect the availability
of sensors are outside the control of folio_daemon.

Bug: 73555660
Test: loaded on walleye and tested with `stop` and `start` commands
Change-Id: I65e1b72745719f2540bff7cab8e556725486bcad
(cherry picked from commit 9ebb33ed13)
2018-03-19 20:43:54 +00:00
Jaegeuk Kim
d494591123 Remove hibern8 tweak
We disabled auto_hibern8 in kernel, so there's no sysfs entry for that.

Bug: 75004568
Bug: 66697973
Bug: 65535484
Change-Id: Iaa95c60435b74ffb97c103701515e9aa55946a91
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-03-17 18:07:19 +00:00
Yifan Hong
e848273f3d wahoo: target FCM version = 2
because it serves radio.deprecated.
Fixes: 75321688
Test: vts_treble_vintf_test

Change-Id: I79b03129414140fdc773797adca57135a048397c
2018-03-16 16:43:31 -07:00
TreeHugger Robot
2d0c3af8fc Merge "Remove audio V2 from manifest." into pi-dev 2018-03-16 23:25:17 +00:00
Yifan Hong
f276b19001 Remove audio V2 from manifest.
Test: build VINTF metadata
Test: change target-level to 2, build VINTF metadata
Test: vts_treble_vintf_test does not complain on
      audio V2.

Bug: 74341777
Change-Id: Id93c53914bbdaa02098e90912a38c3ba1c341a20
2018-03-16 14:02:44 -07:00
Wei Wang
11cb44a54d wahoo: power: change CPU min freq to 0 in config
cpufreq driver will pick up lowest freq if 0 is written.

Bug: 75018682
Test: Boot
Change-Id: I458fdc199908b334023c30617b77cc558827424e
2018-03-15 15:54:42 -07:00
Adam Seaton
5dfde03b2c Update SVN to 9 for May Release bug: 74345861
am: 294cd6b8d8

Change-Id: Ifc79b06c1d3a2943e4abc3da8e897d3913a94954
2018-03-14 01:24:46 +00:00
Adam Seaton
294cd6b8d8 Update SVN to 9 for May Release
bug: 74345861
2018-03-13 15:31:06 -07:00
Michael Butler
b22d5be33e Merge "Match NN manifest version with current HVX version" into pi-dev 2018-03-13 20:10:30 +00:00
TreeHugger Robot
d51fa2359f Merge "Enable BLE Hearing Aid on wahoo" into pi-dev 2018-03-13 18:21:58 +00:00
Michael Butler
fcdd5dd588 Match NN manifest version with current HVX version
Currently, HIDL manifests files only support a single version of a HIDL
interface. Even though the Neural Networks API has defined and
implemented a 1.1 HAL, the only real driver (HVX service driver) is
currently only 1.0.

This problem is similar to that in b/73556059. Soon, HIDL will be able
to support multiple interface versions in the device manifest. Until
then, or until the HVX service driver is upgraded to 1.1, the manifest
will be changed to 1.0.

Bug: 74443090
Test: mma
Change-Id: I46811231dff92e136dfccb88e85b8ce70b89ac1d
2018-03-12 14:07:37 -07:00
TreeHugger Robot
9309dd42af Merge changes from topic "bugreport-zero-denials-pi-dev" into pi-dev
* changes:
  Remove regex and label the whole directory.
  Remove unnecessary permissions.
  Grant hal_bootctl permissions for new type.
  Ensure taking a bugreport generates no denials.
2018-03-12 20:19:01 +00:00
Eric Laurent
a6bb5dd866 Enable BLE Hearing Aid on wahoo
Bug: 69623109
Change-Id: Id138c157dd508a4c42167095f30d68fad1013ac5
2018-03-12 16:42:12 +00:00
Amruth Ramachandran
1e824c7904 Merge "ConnectivityMonitor sepolicy update: Add audio_server permission" into pi-dev 2018-03-10 03:18:14 +00:00
Sooraj Sasindran
9361747cc9 Make sure network scan results get SPN name
Make sure network scan results get SPN name
so that it is same as OPERATOR NAME

Bug: 72360640
Change-Id: I3e7bdfcef5f1c402faa137f211ed2f59f61d0b48
2018-03-09 22:30:12 +00:00
Ruchi Kandoi
a4a5db5772 Remove system and vendor image dependency
libnfc-nci.conf shouldn't be a part of vendor image, since it is
accessed by libnfc-nci and Nfc application, both are part of system
image.

Test: Nfc enable/disable
Bug: 72080121
Change-Id: I686ba234c7d2aa923070c3fa980c56b73b18e574
(cherry picked from commit 3197b56882ed9997043d87e6582f6ebaa0fdbace)
2018-03-09 22:05:48 +00:00
Petri Gynther
e176b1e9d1 Walleye/Taimen: switch to QCOM BT HAL
The flag definition:
BOARD_USES_SDM845_BLUETOOTH_HAL := true

adds SDM845 Bluetooth components to the build:
vendor/qcom/sdm845/proprietary/bluetooth/hidl_transport/Android.mk
vendor/qcom/sdm845/proprietary/bt/hci_qcomm_init/Android.mk

and removes MSM8998 Bluetooth components from the build:
vendor/qcom/msm8998/prebuilts/grease/target/product/msm8998/Android.mk
vendor/qcom/msm8998/proprietary/proprietary/bt/hci_qcomm_init/Android.mk

Effectively, Walleye/Taimen switch to the same QCOM BT HAL as B1/C1.

Bug: 73968979
Test: Manual build and test with BT A2DP headphones

(cherry picked from commit 7c2dc1679d)

Change-Id: I4d6444932a807e573f6e8d88c6ad4ba4de8f277a
2018-03-09 13:07:02 -08:00
TreeHugger Robot
07d6b294fa Merge "Disable modules that can't be built in PDK" into pi-dev 2018-03-09 19:48:30 +00:00
Amruth Ramachandran
43e4bf7ab7 ConnectivityMonitor sepolicy update: Add audio_server permission
ConnectivityMonitor requires the current audio route for voice calls.
  Error fixed:
  auditd  : avc:  denied  { find } for service=media.audio_policy pid=4056
  uid=1001 scontext=u:r:con_monitor_app:s0:c233,c259,c512,c768
  tcontext=u:object_r:audioserver_service:s0 tclass=service_manager
  permissive=0

Bug: 3619416

Change-Id: I6f5c1512a554b2db21768aa36277ada7e57fdf8a
2018-03-09 15:33:39 +00:00
Joel Galenson
c10e253c27 Remove regex and label the whole directory.
This is cleaner, as it allows us to remove a regex and label the
entire directory, and it will hopefully improve performance.

Bug: 74209458
Bug: 74366296
Test: Boot device, verify file labels, and test wifi and camera.
Test: Locally flashed OTA by following go/manual-ab-ota.
Test: Locally tested updated_verifier by following b/74366296#comment8.
Merged-In: I003dc949cf109cc63d75cee9515ef72cb9d0f055
Change-Id: I85f07b2fc8bfb472f25a66e32d3c7d746886535e
(cherry picked from commit 8a70f7ef1d)
2018-03-08 15:32:39 -08:00
Yifan Hong
6a644c872b WORKAROUND: add audio 2.0 to manifest
... to fix the mixed build. Wahoo doesn't have audio 2.0
so this is expected to break VtsTrebleVintfTest, but this allows
the GSI + wahoo vendor image to build (because GSI falsely requires
audio 2.0 but wahoo only provides 4.0).

Test: checkvintf manifest.xml compatibility_matrix.legacy.xml
Bug: 74341777
Change-Id: I3403127ae13bb12d9266d9f467391a51b135e73d
2018-03-08 11:08:17 -08:00
Jiyong Park
56c0900c11 Disable modules that can't be built in PDK
Modules that can't be built in PDK are disabled when TARGET_BUILD_PDK is
true

Bug: 71361051
Test: lunch aosp_walleye-userdebug
PDK_FUSION_PLATFORM_ZIP=vendor/pdk/walleye/walleye-userdebug/platform/platform.zip m -j

Change-Id: I2cc7ab6d667daab7d3566baf8a9b473cafc4e452
2018-03-08 17:50:19 +09:00
Joel Galenson
fd5a749d3b Remove unnecessary permissions.
Remove sysfs file permissions and use the generic type for
directories.

Bug:74213358
Test: Flash OTA.
Merged-In: I27a27972f01a273b4eb65d72dd8f2827c1a374af
Change-Id: I27a27972f01a273b4eb65d72dd8f2827c1a374af
(cherry picked from commit 278cab5f37)
2018-03-07 18:30:46 -08:00
Joel Galenson
1b7e98f600 Grant hal_bootctl permissions for new type.
Bug: 74213358
Test: Built policy.
Merged-In: Icf523468e06b65095755594a8de68f42c789751c
Change-Id: Icf523468e06b65095755594a8de68f42c789751c
(cherry picked from commit 84e961164e)
2018-03-07 18:30:36 -08:00
Joel Galenson
f39d286782 Ensure taking a bugreport generates no denials.
This commit adds new SELinux permissions and neverallow rules so that
taking a bugreport does not produce any denials.

Bug: 73256908
Test: Captured bugreports and verified that there were no denials.
Merged-In: I84ed2be7438a4202d37ff91cb3846f491de29d70
Change-Id: I84ed2be7438a4202d37ff91cb3846f491de29d70
(cherry picked from commit d7854eb513)
2018-03-07 18:30:25 -08:00
TreeHugger Robot
9dc4b0c1a9 Merge "Migrate pixel 2 to audio V4" into pi-dev 2018-03-07 03:23:51 +00:00
TreeHugger Robot
d6e8ad9695 Merge "Rename rild.libpath to vendor.rild.libpath" into pi-dev 2018-03-06 22:39:01 +00:00
TreeHugger Robot
0b5d6034de Merge "sepolicy: allow vendor_init to write to /proc/sysrq-trigger" into pi-dev 2018-03-06 19:44:11 +00:00
Kevin Rocard
2697312928 Migrate pixel 2 to audio V4
Test: regression test on the board
Bug: 38184704
Change-Id: Ife559125850277865451f92ea862e7ec47fc9da7
Merged-In: Ife559125850277865451f92ea862e7ec47fc9da7
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:47 -08:00
Siqi Lin
ba1439d10a sepolicy: allow vendor_init to write to /proc/sysrq-trigger
Bug: 73088609
Test: manual - trigger crash from app
Change-Id: I045169d7ea6a38d681dc6826117e505cd20aadd0
2018-03-06 09:47:19 -08:00
Zhijun He
a7b1f6be9c add back nfc_notify for both walleye and taimen
Taimen also has the nfc issue.

Bug: 69482513
Change-Id: I1cff9b02df04c060c98a8baa6378c5bb6f95030b
2018-03-06 15:40:28 +00:00
Jaekyun Seok
d3ecc04db8 Rename rild.libpath to vendor.rild.libpath
Bug: 36796459
Test: succeeded building and tested on a taimen device
Change-Id: Iaf77c0b2fb15bf75c48f7cbe5d5bb96bdd6417fe
Merged-In: Iaf77c0b2fb15bf75c48f7cbe5d5bb96bdd6417fe
(cherry picked from commit 4e66b11f93)
2018-03-06 06:32:08 +00:00
Steven Moreland
aa948d8357 Only include bitness of hal impls that is used.
Bug: 73829928
Test: boot walleye, check directories, no errors during boot
Change-Id: Ia1272b2bcc5006fa75a50631861fbaccdeed7bee
2018-03-02 17:27:31 +00:00
Meng Wang
d62bbdfe6c Merge "sepolicy: add domain for WfcActivation app" 2018-03-02 16:29:45 +00:00
Meng Wang
0f10edb1dc sepolicy: add domain for WfcActivation app
... and allow access qchook_service via servicemanager.

Bug: 73974808
Test: basic sanity
Change-Id: If8ea19701c9e8258a06afbde4b39c197afedf302
2018-03-02 16:29:31 +00:00
Michael Butler
d597df7370 Merge "Mark NNAPI HAL as 1.1" 2018-03-01 20:50:02 +00:00
Mathieu Chartier
374af6bfa5 Merge "Fix shared vdex name" 2018-03-01 02:13:49 +00:00
Jeff Vander Stoep
e21d70c4c2 Merge "Remove vendor_firmware_file type" am: 372ca940fa am: 40e63f8870
am: 6288f2168a

Change-Id: I1bbdb6dce6bc92e9927467ee5eb211197bbfab43
2018-03-01 02:01:36 +00:00
Jeff Vander Stoep
6288f2168a Merge "Remove vendor_firmware_file type" am: 372ca940fa
am: 40e63f8870

Change-Id: Ic96bfa59c1bad09bedf9e52b6609c72e4377c723
2018-03-01 01:57:04 +00:00
Jeff Vander Stoep
40e63f8870 Merge "Remove vendor_firmware_file type"
am: 372ca940fa

Change-Id: I356475e25b2ef66768a5ce7355e116b5f1e27501
2018-03-01 01:52:31 +00:00
Treehugger Robot
372ca940fa Merge "Remove vendor_firmware_file type" 2018-03-01 01:43:36 +00:00
Michael Butler
b5cdf6175a Mark NNAPI HAL as 1.1
Bug: 63911257
Test: mm
Test: cts binaries for sample drivers on walleye
Test: vts binaries for sample drivers on walleye
Change-Id: Ifc1f0381e5ac8d63152ad18635dafced10aadfe8
2018-02-28 16:44:30 -08:00
Mathieu Chartier
847ee61ebb Fix shared vdex name
The files in arm/arm64 are symlinks and pinning symlinks is not
supported. Pin the target vdex file intead.

Bug: 73990433
Test: manual
Change-Id: I1edadcc3be6d88cc07c599cba024babc5abe0633
2018-02-28 16:13:51 -08:00
Jeffrey Vander Stoep
4ebfe92d37 Merge "Revert "Remove vendor_firmware_file type"" am: 1f81b8e744 am: b5000a0215
am: 055997d543

Change-Id: I565e6ec33659b1cc4e47c96e94bafd18f5b33011
2018-02-28 23:52:25 +00:00
Jeffrey Vander Stoep
055997d543 Merge "Revert "Remove vendor_firmware_file type"" am: 1f81b8e744
am: b5000a0215

Change-Id: Iceb151d7550645925fb7b122dfff883f974fbd17
2018-02-28 23:47:51 +00:00
Jeff Vander Stoep
9df9ad04d4 Remove vendor_firmware_file type
It's causing surfaceflinger denials and does not exist on other
devices. Grant kernel read access to vendor/firmware's new type.

denied { search } for comm="surfaceflinger" name="firmware"
scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0
tclass=dir

denied { read } for comm="surfaceflinger" name="a530_pm4.fw"
scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_file:s0
tclass=file permissive=0

Test: boot Taimen without denials.
Bug: 68213100
Change-Id: I8b070a0aae59e12391c881cec8a46b6b4dbe1c67
2018-02-28 15:45:28 -08:00
Jeffrey Vander Stoep
b5000a0215 Merge "Revert "Remove vendor_firmware_file type""
am: 1f81b8e744

Change-Id: Ifb8189756c229c542170a1a77ede49fbed769717
2018-02-28 23:43:20 +00:00
Jeffrey Vander Stoep
1f81b8e744 Merge "Revert "Remove vendor_firmware_file type"" 2018-02-28 23:39:29 +00:00