Commit graph

11403 commits

Author SHA1 Message Date
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
Ilya Matyukhin
4ff707104c Include the Soong namespace of the UDFPS HAL
Bug: 183054007
Test: build
Change-Id: I928a7f4d695aa51ed917fa3cd2d76373029dc198
2021-03-19 18:39:47 +00:00
Roger Wang
0b1c567335 WiFi: Remove PixelWifiOverlayGs101 am: f4320ddc94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13874826

Change-Id: I069fdff9daa9a1225ed36d50f1724cc176973080
2021-03-19 17:20:37 +00:00
Roger Wang
f4320ddc94 WiFi: Remove PixelWifiOverlayGs101
New Overlay (PixelWifiOverlay2021) was definded for
2021 projects. Hence, remove PixelWifiOverlayGs101.

Bug: 182766776
Test: overlay config can be read correctly.
Change-Id: I6c020b7a3ff507eccb3309b3eac64f6a61a59e32
2021-03-19 16:53:20 +00:00
Alex Hong
b640326154 Add the sepolicy for UWB hal
Bug: 182727934
Test: $ make selinux_policy
      Push SELinux modules and check the denials during boot
Change-Id: I630e6e353897a85d1b90c7d8a4250703a4c3a245
2021-03-19 21:42:07 +08:00
TreeHugger Robot
8d7d184bcf Merge "remove workaround as vendor_init is ready" into sc-dev am: 9225f4e5d0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13921069

Change-Id: Ia0d7bf18a52ff1069fc692e270eb79837290af2e
2021-03-19 07:24:08 +00:00
TreeHugger Robot
9225f4e5d0 Merge "remove workaround as vendor_init is ready" into sc-dev 2021-03-19 06:43:54 +00:00
Adam Shih
42bd5867e8 Merge "label missing vibrator sys nodes" into sc-dev am: 3f6e2bba41
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13908553

Change-Id: I7f44920dd91712c201a8fc55d15ee89ab405dcbb
2021-03-19 06:05:41 +00:00
Adam Shih
3f6e2bba41 Merge "label missing vibrator sys nodes" into sc-dev 2021-03-19 05:32:27 +00:00
TreeHugger Robot
78976ea7e1 Merge "Add sepolicy rules for fingerprint hal" into sc-dev am: fc6b81d188
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13918107

Change-Id: Ib09464497cc1b3c366ff2939b5885d565069d15d
2021-03-19 05:01:34 +00:00
Peter Liu
4d1ae0c0e9 camera power hint: tune the streaming standard. am: 96268d3f51
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13908125

Change-Id: I4a4438c8ed0eb9a8346841876f0200791891c4e8
2021-03-19 04:41:38 +00:00
TreeHugger Robot
fc6b81d188 Merge "Add sepolicy rules for fingerprint hal" into sc-dev 2021-03-19 04:37:58 +00:00
TreeHugger Robot
c197961ab5 Merge "update error on ROM 7219510" into sc-dev am: 4eba688673
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13921068

Change-Id: Ia35cde269940c847ec6e064c845bad98c5c4d595
2021-03-19 04:23:51 +00:00
TreeHugger Robot
a5cfd7aaab Merge "power: Add policy to access sysfs_bcl" into sc-dev am: 46b51cd204
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13876026

Change-Id: I829fe7b028908f791e72fd551b1d24bd92c880c3
2021-03-19 04:23:17 +00:00
Peter Liu
96268d3f51 camera power hint: tune the streaming standard.
1. CPU power seems also high on streaming stadrd mode.
Limit it to a rate that has no obvious performance degradation.
2. Raise the CCI target load to avoid governor raising the mif clock.

Bug: 182944906

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I47654cf2558fa168545e036c6cb58388eb2e2f0a
2021-03-19 04:17:39 +00:00
Adam Shih
ac6b1273e4 remove workaround as vendor_init is ready
Bug: 171942789
Test: boot under enforcing ROM
Change-Id: If4bb070ecf2272dd927ceaeda1882d2fad62b4c3
2021-03-19 11:58:39 +08:00
TreeHugger Robot
4eba688673 Merge "update error on ROM 7219510" into sc-dev 2021-03-19 03:51:31 +00:00
Kris Chen
09996bc810 Add sepolicy rules for fingerprint hal
Fixes the following avc denials:
03-18 11:23:15.692   956   956 I android.hardwar: type=1400 audit(0.0:7): avc: denied { read write } for name="trusty-ipc-dev0" dev="tmpfs" ino=691 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:tee_device:s0 tclass=chr_file permissive=1
03-18 11:23:15.692   956   956 I android.hardwar: type=1400 audit(0.0:8): avc: denied { open } for path="/dev/trusty-ipc-dev0" dev="tmpfs" ino=691 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:tee_device:s0 tclass=chr_file permissive=1
03-18 11:23:15.692   956   956 I android.hardwar: type=1400 audit(0.0:9): avc: denied { ioctl } for path="/dev/trusty-ipc-dev0" dev="tmpfs" ino=691 ioctlcmd=0x7280 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:tee_device:s0 tclass=chr_file permissive=1
03-18 11:40:56.072   973   973 I fingerprint@2.1: type=1400 audit(0.0:39): avc: denied { search } for name="battery" dev="sysfs" ino=66502 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=1
03-18 11:40:56.072   973   973 I fingerprint@2.1: type=1400 audit(0.0:40): avc: denied { read } for name="temp" dev="sysfs" ino=66520 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1
03-18 11:40:56.072   973   973 I fingerprint@2.1: type=1400 audit(0.0:41): avc: denied { open } for path="/sys/devices/platform/google,battery/power_supply/battery/temp" dev="sysfs" ino=66520 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1
03-18 14:11:23.476   979   979 I fingerprint@2.1: type=1400 audit(0.0:13): avc: denied { search } for name="battery" dev="sysfs" ino=66502 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=1
03-18 12:03:08.248   978   978 I android.hardwar: type=1400 audit(0.0:9): avc: denied { create } for scontext=u:r:hal_fingerprint_default:s0 tcontext=u:r:hal_fingerprint_default:s0 tclass=netlink_socket permissive=1
03-18 12:03:08.248   978   978 I android.hardwar: type=1400 audit(0.0:10): avc: denied { bind } for scontext=u:r:hal_fingerprint_default:s0 tcontext=u:r:hal_fingerprint_default:s0 tclass=netlink_socket permissive=1
03-18 12:03:08.248   978   978 I android.hardwar: type=1400 audit(0.0:11): avc: denied { write } for scontext=u:r:hal_fingerprint_default:s0 tcontext=u:r:hal_fingerprint_default:s0 tclass=netlink_socket permissive=1
03-18 12:03:08.248   978   978 I android.hardwar: type=1400 audit(0.0:12): avc: denied { read } for scontext=u:r:hal_fingerprint_default:s0 tcontext=u:r:hal_fingerprint_default:s0 tclass=netlink_socket permissive=1
03-18 12:56:30.446   404   404 E SELinux : avc:  denied  { add } for interface=vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon sid=u:r:hal_fingerprint_default:s0 pid=967 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=1

Bug: 171943101
Test: No above avc denials in logcat.
Change-Id: I67b397f86c39625b77ebe6d32d37e42cd87b3f93
2021-03-19 03:41:18 +00:00
TreeHugger Robot
46b51cd204 Merge "power: Add policy to access sysfs_bcl" into sc-dev 2021-03-19 03:39:32 +00:00
Adam Shih
8d2feed7ed label missing vibrator sys nodes
Bug: 182954060
Test: boot with no avc error found
Change-Id: I1ffd97c6646d106c88efe36bfb4483ae44415eaa
2021-03-19 11:14:36 +08:00
TreeHugger Robot
71f0fd6e55 Merge "Allow fingerprint hal to access fingerprint device" into sc-dev am: 9a865e84c7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13918106

Change-Id: I7f56e90224fe24568d84bcdd4a6a91deed3194bb
2021-03-19 03:08:00 +00:00