Commit graph

11223 commits

Author SHA1 Message Date
Benjamin Schwartz
ecd3ee1897 [automerger skipped] Move power stats service to device specific folders am: 3c712491cf -s ours
am skip reason: skip tag Change-Id I4d4881e227982aa17b88af8844c82dc448ef5b6f with SHA-1 822443a2e2 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13925266

Change-Id: I46fe7af7ce22aae88cd50cf2dcfd48093ff78b77
2021-04-06 04:20:10 +00:00
Adam Shih
53270ad90e remove obsolete system property operations am: 1a1a12cd55
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14098350

Change-Id: I18cf6fe5a288e266175ef0d4a9c190722d41d119
2021-04-06 04:19:26 +00:00
Benjamin Schwartz
3c712491cf Move power stats service to device specific folders
Bug: 183052760
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4d4881e227982aa17b88af8844c82dc448ef5b6f
Merged-In: I4d4881e227982aa17b88af8844c82dc448ef5b6f
2021-04-06 04:08:17 +00:00
Adam Shih
fc69c665ee update error on ROM 7260355
Bug: 184593993
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I49fb702a81f2fcd17e395954f24cd69ab2d272fc
2021-04-06 11:08:59 +08:00
Adam Shih
1a1a12cd55 remove obsolete system property operations
Bug: 184213723
Test: The following error logs were gone
03-25 17:03:04.317 E init    : Do not have permissions to set 'ro.debug_level' to '0x494d' in property file '/vendor/build.prop': SELinux permission check failed
03-25 17:03:04.317 E init    : Do not have permissions to set 'ro.arch' to 'gs101' in property file '/vendor/build.prop': SELinux permission check failed

Change-Id: I1326752935665568285971944366e9e977ef9013
2021-04-06 02:42:05 +00:00
Adam Shih
91c7813ea8 remove obsolete mobicore operations
Bug: 183935443
Test: boot to home with no related avc error
Change-Id: Ief907a7a77f721e58820670e9f37570fd640b473
2021-04-06 10:31:16 +08:00
raylinhsu
870a563ee3 Remove unused persist.demo.hdmirotationlock from device.mk am: 00548302f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14059881

Change-Id: I1a3aa9b8614d082ed13ae431770fbfcc1a625fde
2021-04-06 02:30:31 +00:00
raylinhsu
00548302f3 Remove unused persist.demo.hdmirotationlock from device.mk
In pixel phone, we did not have the HDMI interface so we should remove
the persist.demo.hdmirotationlock from device.mk

Bug: 184104675
Test: There is no failed selinux log regarding
persist.demo.hdmirotationlock

Change-Id: I97299a941fe8b30b0397e8c181b02a435e4642b8
2021-04-06 01:51:51 +00:00
Benjamin Schwartz
08d14e0621 Move power stats service to device specific folders
Bug: 183052760
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4d4881e227982aa17b88af8844c82dc448ef5b6f
2021-04-06 01:25:57 +00:00
Grace Chen
63bf6d5ea6 Merge "Add selinux permissions for NFC/eSIM fw upgrade" into sc-dev am: 404937b03b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14015608

Change-Id: Ib0b584200641b8b14150c64e5a783515124fe1d9
2021-04-06 01:05:34 +00:00
Vova Sharaienko
153de8ba1f Merge "exo: updated sepolicy" into sc-dev am: 25f19371aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14065696

Change-Id: I3ea11a6661f28a4b3c56d9b6045b4334bf1c5985
2021-04-06 01:05:11 +00:00
Grace Chen
404937b03b Merge "Add selinux permissions for NFC/eSIM fw upgrade" into sc-dev 2021-04-06 00:28:22 +00:00
Vova Sharaienko
25f19371aa Merge "exo: updated sepolicy" into sc-dev 2021-04-06 00:27:04 +00:00
Adrian Salido
a8b927dd68 Decouple auto-suspend and interactive from display on/off am: 2aaf5916ce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14093324

Change-Id: I0469d72209bcaf367033940df99626e6a85a4b16
2021-04-06 00:17:14 +00:00
Adrian Salido
2aaf5916ce Decouple auto-suspend and interactive from display on/off
Without decoupling, PowerManagerService prevents system from going to
suspend when display is in AOD.

Bug: 180896425
Change-Id: If2eeaaebb3137bbfe9ba71f47e8b1efdcff14197
2021-04-05 23:44:15 +00:00
Zhijun He
60872ac2e9 camera: allow the camera hal to set fatp prop
Test: camera tests
Bug: 184572956
Change-Id: Ie8bc386aa60cf2e46732f2f68c8cb7e86733cb53
2021-04-05 16:37:20 -07:00
Grace Chen
a4b253476c Add selinux permissions for NFC/eSIM fw upgrade
Bug: 183709811
Test: Confirm no selinux permissions errors.
Change-Id: Ibd98558a2446567d4beb1f6b88acafc05c3c1951
2021-04-05 15:38:59 -07:00
Cheng Gu
5ddabea73a Merge "gs101-sepolicy: Allow rlsservice to access range sensor" into sc-dev am: ce42ee4660
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14077743

Change-Id: Iac5f745c35fcdcf77169d77660e538ed52639b75
2021-04-05 21:35:12 +00:00
Cheng Gu
ce42ee4660 Merge "gs101-sepolicy: Allow rlsservice to access range sensor" into sc-dev 2021-04-05 20:45:08 +00:00
TreeHugger Robot
46dac40fc2 Merge "Grant GPU and Fabric node access" into sc-dev am: 71e96842ca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14078302

Change-Id: I004916c1aace1af25a5a110d01350f6de774dd9b
2021-04-03 00:01:54 +00:00
TreeHugger Robot
71e96842ca Merge "Grant GPU and Fabric node access" into sc-dev 2021-04-02 22:59:18 +00:00
Wei Wang
c98adf0eaf Set uclamp nodes to root am: aeaf942d49
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14078088

Change-Id: I9f03c516f99d3a2555b4c83b61bcaad1568249f1
2021-04-02 22:51:23 +00:00
Cheng Gu
72011a8a87 gs101-sepolicy: Allow rlsservice to access range sensor
Fix: 184295618
Test: rlsservice_test
Change-Id: Iee4cc5376e0eb67e75ae94cd15b5211a7ec819ef
2021-04-02 22:27:48 +00:00
Wei Wang
aeaf942d49 Set uclamp nodes to root
Test: boot
Bug: 183626384
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Idebf93e6354810d19c40d5b6d364ed073a564a77
2021-04-02 21:23:53 +00:00
Wei Wang
852d1dc3c1 Grant GPU and Fabric node access
Bug: 183626384
Test: boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ibb700110795f81a2da4358352111f61ef987c29b
2021-04-02 14:22:37 -07:00
Long Ling
316f25d9d9 display: update adaptive color data am: eed3cc22bb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14057468

Change-Id: I882900798b6075e58ea1e39377017517962f8089
2021-04-02 19:45:15 +00:00
Vova Sharaienko
ceafb82c02 exo: updated sepolicy
This allows the Exo to access AIDL Stats service

Bug: 181892307
Test: Build, flash, boot & and logcat | grep "IStats"
Change-Id: I6ae1c37505b312617376bc3c954720c8a1f223d2
2021-04-02 19:13:12 +00:00
Long Ling
eed3cc22bb display: update adaptive color data
Bug: 173287712
Test: read back via 'displaycolor_service 553 0 10 100'
Change-Id: Ib430ddae3e3e55a3ceb7f69d70fb129668fb68cb
2021-04-02 19:08:32 +00:00
Steve Pfetsch
ec75ec5676 Merge "Add new ITouchContextService interface to twoshay" into sc-dev am: 48f88fb26b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/13959947

Change-Id: I78f7639e542b60c68deb2651dc43c26a2da6eb98
2021-04-02 18:18:07 +00:00
Steve Pfetsch
9e830fd177 gs101: add twoshay's ITouchContextService to manifest am: 8da4ee4195
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14038493

Change-Id: I8526906eb5d0ea88772a36d7b551e218b5933a78
2021-04-02 18:18:07 +00:00
Steve Pfetsch
48f88fb26b Merge "Add new ITouchContextService interface to twoshay" into sc-dev 2021-04-02 18:01:02 +00:00
Steve Pfetsch
8da4ee4195 gs101: add twoshay's ITouchContextService to manifest
Bug: 174626987
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
Change-Id: I22ee4bf604d807f2a0c64612d1f1a7f9025a43f9
2021-04-02 18:01:01 +00:00
Krzysztof Kosiński
3feab91f9a Mark libGralloc4Wrapper.so as same-process HAL. am: 8a1f0bed01
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14065699

Change-Id: I8bbfefe1a144c621dc963e8e84d305c02f7e3a3d
2021-04-02 17:31:59 +00:00
Krzysztof Kosiński
8a1f0bed01 Mark libGralloc4Wrapper.so as same-process HAL.
Updating the library name after upgrade to gralloc version 4.

Bug: 178656396
Test: GCA on oriole
Change-Id: I638b3cd0d7f4759f89a62a1d102cc98d9a3db622
2021-04-01 22:21:44 -07:00
Ricky Niu
4d5a6712df gs101: usb: remove flag "OLDER_GADGET" am: 88313cf20b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13988832

Change-Id: I96f2d0b42e89c3a159b274befac732f8dce11b7c
2021-04-02 04:58:35 +00:00
Ricky Niu
88313cf20b gs101: usb: remove flag "OLDER_GADGET"
The flag "OLDER_GADGET" is no need.
Using "11110000.dwc3" be the udc name.

Test: Build Pass and boot to home
Bug: 177879761
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I43c9e2815a6384c4dffdc47312fa0f372b34d9e9
2021-04-02 04:42:53 +00:00
SalmaxChang
977d5bc22a e2fs: Fix avc errors am: e277259f08
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14057402

Change-Id: If45de2ed7b5537fdff112867048c33ec1ced880b
2021-04-02 03:39:03 +00:00
SalmaxChang
83a67e30f3 init: restorecon efs partitions before chown am: f2eb39f4d6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14065272

Change-Id: I377745dde5a1e707b7e2b87bcb16eb9636a7482e
2021-04-02 03:39:03 +00:00
SalmaxChang
f2eb39f4d6 init: restorecon efs partitions before chown
For the 1st boot with efs erased, we need to relabel efs first to chown
for rfsd and cbd to access.

Bug: 184221482
Test: Check rfsd and cbd could access efs w/wo erasing.

Change-Id: Ib186cf5c9375ebef177081a612d5486c35fc20f4
2021-04-02 01:13:30 +00:00
SalmaxChang
e277259f08 e2fs: Fix avc errors
avc: denied { read } for comm="mke2fs" name="sda5" dev="tmpfs" ino=574 scontext=u:r:e2fs:s0 tcontext=u:object_r:efs_block_device:s0 tclass=blk_file
avc: denied { ioctl } for comm="mke2fs" path="/dev/block/sda5" dev="tmpfs" ino=510 ioctlcmd=0x127b scontext=u:r:e2fs:s0 tcontext=u:object_r:efs_block_device:s0 tclass=blk_file

Bug: 184221482
Change-Id: Ic0c697bb591135d9830cd9e32e110cb5b5eb1504
2021-04-02 01:13:27 +00:00
Ilya Matyukhin
0798ad2853 Enable both AIDL and HIDL UDFPS HALs am: e98d76c98e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14065078

Change-Id: Ica789bba941a1f388fc877ba8f9c3e90a528ef53
2021-04-02 00:53:37 +00:00
Ilya Matyukhin
e98d76c98e Enable both AIDL and HIDL UDFPS HALs
Bug: 175070939
Bug: 183054007
Test: Both binaries are installed on device
Change-Id: I8d791ba117c472a3388f301d78d088dc96eb4255
2021-04-02 00:22:00 +00:00
Michael Wright
98c223e862 Add new ITouchContextService interface to twoshay
Bug: 174626987
Test: boot, see no denials

Change-Id: I963d5b77969571182b94c4265653c5d22e124247
2021-04-01 23:32:19 +00:00
TreeHugger Robot
72e640e63d Merge "gs101-sepolicy: Allow binder call rlsservice from camera" into sc-dev am: 8948e498c8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14065690

Change-Id: I6a641820adbdbbf5a6e488dd1fc55b82538f53c2
2021-04-01 21:34:20 +00:00
TreeHugger Robot
8948e498c8 Merge "gs101-sepolicy: Allow binder call rlsservice from camera" into sc-dev 2021-04-01 21:04:11 +00:00
Cheng Gu
765e8e2374 gs101-sepolicy: Allow binder call rlsservice from camera
This is to fix below avc denial:
  E SELinux : avc:  denied  { find } for pid=28954 uid=1000
  name=rlsservice scontext=u:r:hal_camera_default:s0
  tcontext=u:object_r:rls_service:s0 tclass=service_manager permissive=0

The solution is similar to ag/7253836 (coral) and ag/10232101 (redbull).

Fix: 183620858
Test: adb shell setprop persist.vendor.camera.dump_range_data 1 &&
      adb shell pkill -f camera, then retest camera
Change-Id: I6bb743c15ee64e3c4ecb8359126b238554aa649e
2021-04-01 21:03:02 +00:00
Sahil Goel
91d2c174d3 Add pregrant permissions for Voice Access am: b360446e82
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13999045

Change-Id: I19eb2e752b9c6fa810e13ae3197008da475acc9e
2021-04-01 19:29:28 +00:00
Sahil Goel
b360446e82 Add pregrant permissions for Voice Access
Approved android bug: b/182307492

Test: manual
Bug: 181901515
Change-Id: I8af4562a24d9b555c33c1110ae49f86c5ca4db2d
2021-04-01 18:54:19 +00:00
Yu-Chi Cheng
f27370db65 Allowed EdgeTPU service to read system properties related to vendor.
The EdgeTPU service will read properties including
"vendor.edgetpu.service.allow_unlisted_app". This change added the
related SELinux rule for it.

Bug: 182209462
Test: tested on local Oriole + GCA
Change-Id: I8e7f7975bf144593d00a305554d75a5e0200a428
2021-04-01 11:40:36 -07:00
Midas Chien
a0c8eb407d gs101: display: update 90hz denylist am: 2b88831a1d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14047909

Change-Id: Ie46534b10fbb9d5cb557bfca9c9b3e2d3e232a2c
2021-04-01 16:03:31 +00:00