Commit graph

11223 commits

Author SHA1 Message Date
Greg Kaiser
d10bc2029c Merge "Revert "Add se-policy for new GRIL service and RadioExt hal APIs"" into sc-dev am: 9ec1be4eb9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13974086

Change-Id: Ie04f0e9e1d4df1d225a53da99d6b8b9a81710659
2021-03-23 19:49:49 +00:00
Greg Kaiser
9ec1be4eb9 Merge "Revert "Add se-policy for new GRIL service and RadioExt hal APIs"" into sc-dev 2021-03-23 19:12:13 +00:00
LABIB MD RASHID
97bfa35d4f Revert "Add se-policy for new GRIL service and RadioExt hal APIs"
Revert "BT SAR client implementation for GRIL"

Revert submission 13944227-gril-bt-sar

Reason for revert: TreeHugger builds failing due to changes requiring se-linux permissions for GRIL. Need to add permissions for more devices before attempting this change again.

Reverted Changes:
I556657928:Add se-policy for new GRIL service and RadioExt ha...
I96cf9176a:BT SAR client implementation for GRIL

Change-Id: Ib800962d07d305a5a42ee40f019535f663beacd1
2021-03-23 19:00:57 +00:00
Stephane Lee
33a1ce7421 Add UeventListener to pixelstats in gs101
Bug: 171793497
Test: Ensure that uevent listener reports data to statsd
Change-Id: I9e90f8483298934a78320f37dbf5eb1ac38e8f97
2021-03-23 17:23:03 +00:00
TreeHugger Robot
f87d5740f6 Merge "Add se-policy for new GRIL service and RadioExt hal APIs" into sc-dev am: 25e39f7d37
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13944227

Change-Id: If101de29d62c1fa07ba39c501c9954fbc2510630
2021-03-23 16:30:55 +00:00
TreeHugger Robot
25e39f7d37 Merge "Add se-policy for new GRIL service and RadioExt hal APIs" into sc-dev 2021-03-23 16:02:35 +00:00
TreeHugger Robot
fcf368d2dd Merge "modem_svc_sit: Fix avc errors" into sc-dev am: 3bf9cddeb7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13960255

Change-Id: Icf37a2009e9fe585e703d0492686643100ba35a5
2021-03-23 11:47:41 +00:00
TreeHugger Robot
6ba162f8c3 Merge "update error on ROM 7228492" into sc-dev am: 1cf98386f6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13960254

Change-Id: I7609764ad40566346526f40be15310492598bca3
2021-03-23 11:47:16 +00:00
TreeHugger Robot
3bf9cddeb7 Merge "modem_svc_sit: Fix avc errors" into sc-dev 2021-03-23 11:16:25 +00:00
TreeHugger Robot
1cf98386f6 Merge "update error on ROM 7228492" into sc-dev 2021-03-23 11:16:22 +00:00
Hongbo Zeng
4211025746 Fix denials for ril_config_service_app
- RilConfigService is a common google project in vendor/google/tools,
  sync related rules from the previous project(ag/6697240, ag/7153946)
  to allow it to:
  (1) receive intents
  (2) update database files under /data/vendor/radio
  (3) update RIL properties
- Two new denials found in this project only:
  avc: denied { search } for name="data" dev="dm-7" ino=93
      scontext=u:r:ril_config_service_app:s0
      tcontext=u:object_r:system_data_file:s0:c512,c768 tclass=dir permissive=1
  avc: denied { search } for name="0" dev="dm-7" ino=192
      scontext=u:r:ril_config_service_app:s0
      tcontext=u:object_r:user_profile_root_file:s0:c512,c768 tclass=dir permissive=1

Bug: 182715439
Test: apply these rules and check there is no denial for
      RilConfigService finally
Change-Id: Icfb0e121d0d11600bda900dff0511187518105ab
2021-03-23 17:22:33 +08:00
labib
6516f369ff Add se-policy for new GRIL service and RadioExt hal APIs
Bug: 172294179
Change-Id: I556657928caa441b3530bb371902d5f4ce0be257
2021-03-23 09:20:18 +00:00
linpeter
6112567189 init: set dimming_on node permission before start hwcompower am: d95bbb9740
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13782440

Change-Id: I6c8cb9898052b4363702aa673e96f696d95834d7
2021-03-23 09:05:00 +00:00
Adam Shih
b182a7166e permission required for adb sideload to work am: fd45b5ef27
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13960252

Change-Id: Ib93eae652d1e1c3cf636a3e53cd0593ade481c64
2021-03-23 08:40:29 +00:00
SalmaxChang
b4fbecb9fb modem_svc_sit: Fix avc errors
avc: denied { search } for comm="modem_svc_sit" name="vendor" dev="tmpfs" ino=2 scontext=u:r:modem_svc_sit:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir
avc: denied { write open } for path="/mnt/vendor/modem_userdata/replay/dds.bin" dev="sda7" ino=14 scontext=u:r:modem_svc_sit:s0 tcontext=u:object_r:modem_userdata_file:s0 tclass=file
avc: denied { remove_name } for name="dds.bin" dev="sda7" ino=14 scontext=u:r:modem_svc_sit:s0 tcontext=u:object_r:modem_userdata_file:s0 tclass=dir

Bug: 183467321
Change-Id: Ic5b8fcf324bb0a8b0f6312b3ae755d73a53f0e9c
2021-03-23 15:11:38 +08:00
Adam Shih
01376cbe06 update error on ROM 7228492
Bug: 183467306
Bug: 183467321
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: Ia8473c1a4e1f56cc52bc765dea56e3bc497c7cc9
2021-03-23 15:11:24 +08:00
Adam Shih
fd45b5ef27 permission required for adb sideload to work
Bug: 183174452
Test: do adb sideload under enforcing mode
Change-Id: I2ba05b22729894d2677859fd33a6370f2ff9d409
2021-03-23 14:23:44 +08:00
linpeter
d95bbb9740 init: set dimming_on node permission before start hwcompower
Give dimming_on node sutiable permission to allow
hwcomposer to set dimming_on to display driver.

Bug: 177141990
test: check file node permission
Change-Id: I1f78b77884d619f1e48a63ac11c4201089010a0d
2021-03-23 05:55:01 +00:00
Adam Shih
5462e092fb Align modem's DAC setting with other AB partitions am: 777c58e8ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13959270

Change-Id: If68d156b8c1e7447e680cd7f66387387af9ab372
2021-03-23 05:27:00 +00:00
TreeHugger Robot
22ab0cc731 Merge "permissions required for OTA" into sc-dev am: 9c46632091
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13960245

Change-Id: I2b125c5603680ecbea34ceb6ef0ccf89533540aa
2021-03-23 05:08:23 +00:00
Adam Shih
777c58e8ae Align modem's DAC setting with other AB partitions
Bug: 183174452
Test: Apply OTA locally under SELinux enforcing mode
Change-Id: I0cf4fdff565ded69cc342d7052aed990c6f55593
2021-03-23 04:54:57 +00:00
TreeHugger Robot
9c46632091 Merge "permissions required for OTA" into sc-dev 2021-03-23 04:45:37 +00:00
Krzysztof Kosiński
f6fddb20ad Merge "Add lazy service binary to hal_camera_default domain." into sc-dev am: 61e515e4ce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13957807

Change-Id: I10fa91098ff56ab9ef01409647f097ca484bc41f
2021-03-23 02:09:47 +00:00
Adam Shih
7314a7b522 permissions required for OTA
Bug: 183174452
Test: do OTA under enforcing mode
Change-Id: I0edf7703713e24351f57ef0e68096ca03c59e6f8
2021-03-23 09:49:02 +08:00
Krzysztof Kosiński
61e515e4ce Merge "Add lazy service binary to hal_camera_default domain." into sc-dev 2021-03-23 01:31:50 +00:00
Adam Shih
1389a5147d allow modem image to do OTA am: 435f68ed7b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13946185

Change-Id: Iace595e75182998f4eb2bac7347d6362db138a9a
2021-03-23 00:52:47 +00:00
Adam Shih
435f68ed7b allow modem image to do OTA
Bug: 183174452
Test: run ./system/update_engine/scripts/update_device.py path/to/oriole-ota-*.zip
exit with status 0

Change-Id: I21a1cfcdf29eae1e06ed922cc44c1ff5b2916144
2021-03-23 00:08:27 +00:00
Krzysztof Kosiński
d02e73b966 Add lazy service binary to hal_camera_default domain.
Avoids denial logs from init on service (re)start. See bug for
details.

Bug: 183441948
Test: Restarted the service
Change-Id: I9ee9b8099d2ffae4d6a115552800fa844c192132
2021-03-22 16:25:57 -07:00
Oleg Matcovschi
32246238bd gs101: migrate to bootimg v4 am: 9ef069c978
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13930924

Change-Id: I3bcf10a602f256c388080972119576ed8dbd67f7
2021-03-22 20:10:25 +00:00
Oleg Matcovschi
9ef069c978 gs101: migrate to bootimg v4
Bug: 183237066
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: If4ed53f3ea4964139b33ef691469a1dbbfa97e80
2021-03-22 19:28:26 +00:00
TreeHugger Robot
123411f826 Merge "allow bootctl to read devinfo" into sc-dev am: 8d9094345e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13946008

Change-Id: I079480b87535460a59f3eff2164e5f73f3b466d8
2021-03-22 14:25:43 +00:00
eddielan
25417326ed Move config_biometric_sensors to device/google am: 5ad06a0dc2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13881383

Change-Id: Ica2cecd8b8e0625765cc9b2cc08afdfbdb2780a3
2021-03-22 14:24:08 +00:00
TreeHugger Robot
b7322c9c6b Merge "update error on ROM 7225160" into sc-dev am: df64c08266
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13944228

Change-Id: I7f4fbec0c249cc02ceb8f853a1f309c1f5096dc0
2021-03-22 13:56:52 +00:00
David Li
dcd288f86d audio: add /dev/acd-audio_dcdoff_ref for audio effect visualizer am: 62903463d5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13921151

Change-Id: Iac507275b35b47a2dc3de63073c0b5f1b7e65914
2021-03-22 13:54:43 +00:00
David Li
da5e908d0f Merge "audio: add /dev/acd-audio_dcdoff_ref for audio effect visualizer" into sc-dev am: 6dce033807
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13921067

Change-Id: I16da30f8f4d31bcfcd1697a33bdb976d903ae684
2021-03-22 13:54:42 +00:00
Ilya Matyukhin
fc439c8818 Revert^2 "Include the Soong namespace of the UDFPS HAL" am: e9170d48ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13933987

Change-Id: I5af4e5191cda3c8497d7fc12aca034240fe7635f
2021-03-22 13:54:29 +00:00
Kris Chen
741cef0483 gs101: exclude udfps.mk am: 71020ad126
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13929862

Change-Id: Ia3a942b18dec3bfa37f8f5469b56ab10e836c917
2021-03-22 13:53:48 +00:00
TreeHugger Robot
8d9094345e Merge "allow bootctl to read devinfo" into sc-dev 2021-03-22 09:16:23 +00:00
Adam Shih
f05cdba220 allow bootctl to read devinfo
Bug: 182705986
Test: boot with no relevant log found
Change-Id: I6d4c699fe1492f8fbcd5b8a9ba98da2fade57bd7
2021-03-22 16:10:22 +08:00
eddielan
5ad06a0dc2 Move config_biometric_sensors to device/google
Bug: 182868067
Test: Build Pass
Change-Id: I03b2d310ad58d6fa0c1a739b0d8cbd4ca4e3c231
2021-03-22 07:59:39 +00:00
TreeHugger Robot
df64c08266 Merge "update error on ROM 7225160" into sc-dev 2021-03-22 02:52:56 +00:00
David Li
6dce033807 Merge "audio: add /dev/acd-audio_dcdoff_ref for audio effect visualizer" into sc-dev 2021-03-22 02:07:33 +00:00
David Li
62903463d5 audio: add /dev/acd-audio_dcdoff_ref for audio effect visualizer
Set /dev/acd-audio_dcdoff_ref as 0660 system audio
crw-rw---- 1 system audio u:object_r:aoc_device:s0  500,  29 2021-03-18 22:19 /dev/acd-audio_dcdoff_ref

Bug: 180984363
Bug: 165719427
Test: make -j128
Test: ls -alZ /dev/acd-audio_dcdoff_ref
Change-Id: I4720349eccd5e3b797ff8e964329fe6352d5bba0
2021-03-22 02:07:32 +00:00
Adam Shih
38e55f2331 update error on ROM 7225160
Bug: 183338483
Bug: 183338543
Bug: 183338421
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I16548c00f2a2c38b190664a5cc20ae67d04a8454
2021-03-22 09:52:45 +08:00
Ilya Matyukhin
e9170d48ab Revert^2 "Include the Soong namespace of the UDFPS HAL"
548f6b81c4

Change-Id: I68fd69e0a1aefad67da7b23f817462cb330d3c6d
2021-03-21 00:48:41 +00:00
Kris Chen
71020ad126 gs101: exclude udfps.mk
Bug: 183247684
Test: lunch oriole-userdebug; make -j$(nproc);
Test: lunch passport-userdebug; make -j$(nproc)
Change-Id: Iafcd1c9dad0861b0569b6a0350501952af83007d
2021-03-20 01:58:04 +00:00
Christine Franks
a334f079cc Add uhid access for exo
This is required to write input events to /dev/uinput.

Bug: 182854143
Test: n/a
Change-Id: Icd9714a61be62d40d1b3e5e9d7dcb33ce5f0bf6b
2021-03-19 23:31:08 +00:00
Ilya Matyukhin
b64b3c934a Revert "Include the Soong namespace of the UDFPS HAL" am: 548f6b81c4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13932414

Change-Id: Icba222eea07fbd236124edc12807d597cb594843
2021-03-19 20:35:49 +00:00
Ilya Matyukhin
548f6b81c4 Revert "Include the Soong namespace of the UDFPS HAL"
Revert submission 13892440-integrate-goodix-aidl

Reason for revert: b/183225087
Reverted Changes:
I928a7f4d6:Include the Soong namespace of the UDFPS HAL
I7acecd294:Transition to Android.bp
I91bdbceef:Merge the latest goodix AIDL drop

Change-Id: I8799dbcd629e74bd25e8b7d0026af432afc0a5b0
2021-03-19 19:58:07 +00:00
Ilya Matyukhin
b90ba07ace Include the Soong namespace of the UDFPS HAL am: 4ff707104c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13925729

Change-Id: Id8a0a61e28cb6e1a689bd4663884859a27a6691b
2021-03-19 19:16:13 +00:00