Commit graph

7697 commits

Author SHA1 Message Date
wenchangliu
318db1ac82 Allow mediacodec_samsung to access gpu device am: 28817da2a3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/16939013

Change-Id: I0fa6c765db711a277e356fbdadc6de1f526d5943
2022-02-21 03:34:00 +00:00
Adam Shih
2b6835e404 update error on ROM 8205122
Bug: 220636850
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: I201f9e84eca676b9f7aa5d09356bce384df1fa4b
2022-02-21 03:20:59 +00:00
Rick Chen
1fef1eca2d Remove sensor HAL 1.0 config
Bug: 202249887
Test: Verify basic sampling functions on C10.
      Run VtsHalSensorsV1_0TargetTest and see no test items.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: I7ce97e417ce5e8c4589845a5138010aa9288ccb3
2022-02-21 02:42:49 +00:00
Jinting Lin
e65363450c Adds logging related properties for logger app
Bug: 220073302
Change-Id: I3917ce13f51a5ccb3304eb2db860f4da8424438b
2022-02-21 01:45:27 +00:00
Android Build Coastguard Worker
fa57c603a6 Snap for 8203021 from 6b95566a55 to udc-release
Change-Id: I2dba07572c2e35cf08d42af42b7daaf84b90a211
2022-02-19 06:06:08 +00:00
Jack Diver
6b95566a55 gs201: Build UMD from source am: 4438b07c71 am: 3d88e357aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16936271

Change-Id: If94c209a7d01fbb4ee9c9b06a5c41f74711d7db2
2022-02-18 23:16:56 +00:00
Jack Diver
50a92671f3 gs201: Build UMD from source am: 4438b07c71
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16936271

Change-Id: I2177585fd23d277f9a291d5f91f4206b08684173
2022-02-18 22:32:33 +00:00
Jack Diver
3d88e357aa gs201: Build UMD from source am: 4438b07c71
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16936271

Change-Id: Ie7d53bcee846dc23e9bd56847a58f241428831ce
2022-02-18 22:31:03 +00:00
Jacqueline Wong
a31c0571d3 Add gxp coredumps to Android bug report
- Add gxp dump files to dumpstate_board.bin of Android bug report:
  /data/vendor/ssrdump/coredump/coredump_gxp_platform* and
  /data/vendor/ssrdump/crashinfo_gxp_platform*

Test: adb root; adb remount -R; adb bugreport
Bug: 218358165
Signed-off-by: Jacqueline Wong <jacqwong@google.com>
Change-Id: Ib73659e94d86932b97756f13a19b7f093e23dc63
2022-02-18 21:19:02 +00:00
Kyle Lin
0136600cd9 powerhint: align the LAUNCH Hint
Bug: 207573241
Test: build and Trace
Change-Id: I2a214e1c68f3eb92ef95c382665b0acb720917a3
Signed-off-by: Kyle Lin <kylelin@google.com>
2022-02-18 17:42:22 +00:00
Jack Diver
4438b07c71 gs201: Build UMD from source
Bug: 185349920
Test: Build gs201 UMD from source
Test: Boot to home
Signed-off-by: Jack Diver <diverj@google.com>
Change-Id: I34be0058ea1272966b0b848d9de365c23d28d5ec
2022-02-18 14:35:48 +00:00
wenchangliu
28817da2a3 Allow mediacodec_samsung to access gpu device
avc: denied { getattr } for path="/dev/mali0" dev="tmpfs" \
ino=1042 scontext=u:r:mediacodec_samsung:s0 \
tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1

avc: denied { read write } for name="mali0" dev="tmpfs" \
ino=1042 scontext=u:r:mediacodec_samsung:s0 \
tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1

avc: denied { open } for path="/dev/mali0" dev="tmpfs" \
ino=1042 scontext=u:r:mediacodec_samsung:s0 \
tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1

avc: denied { ioctl } for path="/dev/mali0" dev="tmpfs" \
ino=1042 ioctlcmd=0x8034 scontext=u:r:mediacodec_samsung:s0 \
tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1

avc: denied { map } for path="/dev/mali0" dev="tmpfs" \
ino=1042 scontext=u:r:mediacodec_samsung:s0 \
tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1

Bug: 205772037
Test: demo-transformer HDR editing
Change-Id: Ib5d075bfd1247112c803f01db430d93259fd9e7f
2022-02-18 13:50:13 +00:00
Alex Hong
453b37ebdc Remove the sepolicy for tetheroffload service
Test: m checkvintf
      run vts -m VtsHalTetheroffloadControlV1_0TargetTest
Bug: 207076973
Bug: 214494717
Change-Id: I5ecec46512ff4e1ae6c52147cfa0179e5fc93420
2022-02-18 07:55:02 +00:00
Alex Hong
6bcf8bcf9a Upgrade PRODUCT_SHIPPING_API_LEVEL for gs201 devices
Update the Target FCM level from 5 to 6
Update the product FCM xml

Bug: 207076973
Test: m checkvintf
Change-Id: Ifa9c7e103671e1072496f6f76dd0c3233fb46a6e
2022-02-18 07:55:02 +00:00
Alex Hong
ea7fe5242e Remove tetheroffload service
Test: m checkvintf
      run vts -m VtsHalTetheroffloadControlV1_0TargetTest
Bug: 207076973
Bug: 214494717
Change-Id: Idd33fbd5e9750e16fb4e2339953bd8d9007b88fb
2022-02-18 07:55:02 +00:00
Ray Chi
e4796c373c modify the path of shell binary
Currently, we should use the vendor shell to run irq script.
This patch will modify the shell path.

Bug: 202103325
Test: switch functions and check the value of smp_affinity_list
Change-Id: Iae572bb1ee218eb205c5e65d20ba6dfa583b9ad6
2022-02-18 04:23:15 +00:00
Android Build Coastguard Worker
3dbe918995 Snap for 8195043 from 7c11dd7d0e to udc-release
Change-Id: Ifa717cb3d466fc305c0eb71290428b7dee336472
2022-02-18 04:01:16 +00:00
neoyu
0d22c86fef Fix SELinux errors for ims
avc: denied { write } for name="property_service" dev="tmpfs" ino=362 scontext=u:r:vendor_ims_app:s0:c208,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.shannon.imsservice
avc: denied { set } for property=persist.radio.call.audio.output pid=1920 uid=10216 gid=10216 scontext=u:r:vendor_ims_app:s0:c216,c256,c512,c768 tcontext=u:object_r:radio_prop:s0 tclass=property_service permissive=0'

Bug: 219954530
Test: manual
Change-Id: I3e7f6781718c3967f7842b074b0ef91818508af2
2022-02-18 02:39:23 +00:00
Lais Andrade
0ef3bb4c8a Add default alarm and media vibration intensity settings
Change-Id: Ib5cbda371672dde8cbcd17692ecf777a3c3c95e1
Fix: 219692498
Test: manual
2022-02-17 21:36:25 +00:00
Peter Csaszar
4041f814be pixel-selinux: add SJTAG policies
These are the SELinux policies for the sysfs files of the SJTAG
kernel interface. The files are in the following directories:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Bug: 207571417
Signed-off-by: Peter Csaszar <pcsaszar@google.com>
Change-Id: I5ec50d9ff7cd0e08ade7acce21e73751e93a0aff
2022-02-17 12:31:09 -08:00
diverj
7c11dd7d0e gs201: Add pixel_mali_soc config var
* Add gs201 soc soong_config_variable
* Remove unused mali soong namespaces

Test: Build UMD from source for gs101, gs201 and zuma
Test: checkbuild
Bug: 185349920
Bug: 174232579
Change-Id: Ie175e70a4a61a14e93225522735e1b789c28f6fa
Signed-off-by: Jack Diver <diverj@google.com>
2022-02-17 12:53:42 +00:00
Midas Chien
c8c1f766d2 Allow composer to read panel_idle sysfs node
Change panel_idle selinux type to sysfs_display to allow composer can
access it.

Bug: 198808492
Test: ls -Z to check selinux type
Test: make sure composer can access it
Change-Id: Ic2bd697c79b398b8093dd00598b1076e3ea3aec2
2022-02-17 09:17:42 +00:00
Midas Chien
e542e25078 display: allow composer to access panel idle node
Change panel idle node ownership to allow composer to access.

Bug: 198808492
Test: init and composer can write to panel idle node
Change-Id: I9fd7fe752cfe0694216d608765c4647dd3c00b95
2022-02-17 09:17:42 +00:00
Denny cy Lee
efbd9fa0b2 sepolicy: hwinfo: Add battery fuel gauge permission
Bug: 208909060
Bug: 219660742
Bug: 219660741
Test: check dmeg and search "avc: denied { search } for
comm="id.hardwareinfo" vendor_maxfg_debugfs avc gone after apply patch

Change-Id: I3399e696b59218e62c4d1adcc2a12f5d6ee5c8cc
Signed-off-by: Denny cy Lee <dennycylee@google.com>
2022-02-17 09:04:23 +00:00
Ted Lin
805826c2cc fix the avc denied for maxfg/registers
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2022-02-17 09:04:23 +00:00
Android Build Coastguard Worker
b58479559a Snap for 8191477 from ae8e17631b to udc-release
Change-Id: I7a028fe3dec82508641ddc350b3c000123d507a8
2022-02-17 04:01:48 +00:00
Darren Hsu
8c4f8807fd powerstats: disable AoC power stats reporting
This is a workaround for the AoC long latency issue. Re-enable
AoC power stats reporting when the latency issue is fixed or
the timeout mechanism is merged.

Bug: 210045267
Test: Dump power stats while video streaming and see no timeout
Test: from dumpsys
Change-Id: I83545d45bb1bbb5bb18ca4bff4bd261f332a4570
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-17 10:26:50 +08:00
TeYuan Wang
ae8e17631b thermal: provide gxp-cooling user_vote permission for thermalHAL
Bug: 219869479
Test: ls -al dev/thermal/cdev-by-name/gxp-cooling/user_vote
Change-Id: Id11ad3cb6b1770cbaffb760feaad571c678a22df
2022-02-16 19:34:39 +00:00
Robin Hsu
200d13758a config.xml: enable zram writeback
Bug: 207572250
Test: cmd jobscheduler run -f android 812
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: If956c912325d820ad37c160d2d1d80d3e646a76c
2022-02-16 14:49:28 +00:00
Junkyu Kang
064c6a86e0 Add persist.vendor.gps to sepolicy
Bug: 196002632
Test: PixelLogger can modify persist.vendor.gps.*
Change-Id: I17f16d1f147287abf86b18452743842594be7531
2022-02-16 08:16:03 +00:00
Wei Wang
2b064d7831 Change restricted cpuset dynamically
Currently framework put tasks into restricted cpuset group when display
is off. However, when unlocking screen, SystemUI still runs in
restricted cpuset group leading to jank and delayed UDFPS action. This
CL mitigates problem by dynamically changing restricted cpuset group to
all cpus when display is back on.

Bug: 217481359
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I1a7d49c69c02f97d70cbb4d2d716ec68cf0b8701
2022-02-16 05:39:49 +00:00
Adam Shih
b2c284177a label sysfs_fabric to target_load
[   11.149987] type=1400 audit(1644984050.124:9): avc: denied { open } for comm="NodeLooperThrea" path="/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/interactive/target_load" dev="sysfs" ino=48615 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
Bug: 218500026
Test: boot with no error loop under enforcing mode

Change-Id: Ie2f78f8ee39233e0c1f83fc2ba654f4a116e12a4
2022-02-16 13:01:30 +08:00
Android Build Coastguard Worker
95ed87d913 Snap for 8188455 from 010d787802 to udc-release
Change-Id: I137e705fcfae02492c2c8aef37e6c540d07586f5
2022-02-16 04:01:23 +00:00
chungkai
2d7c980fa6 Fix avc denials for powerhal
selinux policy is already added by other commit "9cc7041",
so remove the previous setting.

Test: boot to home screen
Bug: 218934377
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Id11ee7b4ae216a54e7051190f8ca382e97a76ade
2022-02-16 02:21:04 +00:00
SalmaxChang
c5f0e9723f cbd: fix avc errors
avc: denied { search } for comm="cbd" name="/" dev="sda1" ino=3 scontext=u:r:cbd:s0 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=1
avc: denied { setuid } for comm="cbd" capability=7 scontext=u:r:cbd:s0 tcontext=u:r:cbd:s0 tclass=capability permissive=1

Bug: 205779872
Bug: 205904432
Change-Id: I09f1ac5473b728d5e6f38b01dc83f4b9c4c8fbcc
2022-02-16 01:55:39 +00:00
SalmaxChang
1420e3d5d7 rfsd: fix avc errors
[    8.024353] type=1400 audit(1636594727.560:42): avc: denied { chown } for comm="rfsd" capability=0 scontext=u:r:rfsd:s0 tcontext=u:r:rfsd:s0 tclass=capability permissive=1
[    8.027666] type=1400 audit(1636594727.564:43): avc: denied { setuid } for comm="rfsd" capability=7 scontext=u:r:rfsd:s0 tcontext=u:r:rfsd:s0 tclass=capability permissive=1

Bug: 205904361
Change-Id: I6e30a9622b930273fbc524e6bc84f2112f79f11c
2022-02-16 01:55:31 +00:00
Mars Lin
a320d9b575 Add required sepolicy rules for CatEngine
Fix:
02-15 11:55:44.005   431   431 E SELinux : avc:  denied  { find } for pid=3009 uid=1000 name=activity scontext=u:r:cat_engine_service_app:s0:c232,c259,c512,c768 tcontext=u:object_r:activity_service:s0 tclass=service_manager permissive=1
02-15 11:55:44.082   431   431 E SELinux : avc:  denied  { find } for pid=3009 uid=1000 name=game scontext=u:r:cat_engine_service_app:s0:c232,c259,c512,c768 tcontext=u:object_r:game_service:s0 tclass=service_manager permissive=1
02-15 11:55:44.087   431   431 E SELinux : avc:  denied  { find } for pid=3009 uid=1000 name=netstats scontext=u:r:cat_engine_service_app:s0:c232,c259,c512,c768 tcontext=u:object_r:netstats_service:s0 tclass=service_manager permissive=1
02-15 11:55:44.092   431   431 E SELinux : avc:  denied  { find } for pid=3009 uid=1000 name=content_capture scontext=u:r:cat_engine_service_app:s0:c232,c259,c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=1

Bug: 219632839
Test: pts-tradefed run pts -m PtsSELinuxTest -t com.google.android.selinux.pts.SELinuxTest#scanAvcDeniedLogRightAfterReboot
Change-Id: I1db9b29e3a3c7dae782bced3427e7c24c5dee945
2022-02-16 01:34:11 +00:00
Nate Myren
010d787802 Add notification pregrants to gs201
Test: build
Bug: 218409412
Change-Id: I6cfabcb5a54852f75384b2abd8aada898aa64006
2022-02-15 17:18:16 +00:00
Carter Hsu
dd48757095 audio: update AudioExt to 3.0
Bug: 206065000
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia8decc9cb0962330cb0321b747929efe53f323ba
2022-02-15 09:13:54 +00:00
Adam Shih
501767b174 remove bt obsolete sepolicy
Bug: 207062775
Bug: 208721525
Test: do bt connection under enforcing mode
Change-Id: I787bfcffdb8cfcff7276d8d183c04d985296ff1c
2022-02-15 07:45:58 +00:00
Gary Jian
9286e0a99f Support 5G on both stacks
Bug: 218650003
Test: manual
Change-Id: I6cd66c1db1c826934008949d7a6007541480d3f9
2022-02-15 07:44:31 +00:00
Adam Shih
027e04ab2b update error on ROM 8184037
Bug: 219632839
Test: pts-tradefed run pts -m PtsSELinuxTest
Change-Id: Ie3a2325f2e80aea94d7ca79257f5bf3db8578259
2022-02-15 06:59:08 +00:00
Sayanna Chandula
589318e5c4 thermal: enable cooling devices cur state permissions
Enable permissions for wcl_fcc and dc_icl cooling devices
current state for charging throttling.

Bug: 204523879
Test: build and boot on device. Check charging throttling
Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-02-15 05:10:46 +00:00
Ken Huang
ff3ce560fa Set 120Hz frame rate multiple threshold for gs201
Bug: 215043570
Test: play 24fps video and check refresh rate
Change-Id: Ie638f9dcf11e25bdd903d6cde2d0eeb794668e52
2022-02-15 04:07:54 +00:00
Android Build Coastguard Worker
10d6e795e4 Snap for 8183730 from 7fca68cdd9 to udc-release
Change-Id: Ied21f56b767a099e19a334f4141c4f0a591f9a7b
2022-02-15 04:02:20 +00:00
Taeju Park
7fca68cdd9 Port missing hints from powerhint.json of gs101
Bug: 207573395
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: Ia9289b674c988666c1e7cdd10756a0509ec97b39
2022-02-14 23:25:33 +00:00
Robin Hsu
59615c9496 config.xml: pin /system/bin/surfaceflinger
Add /system/bin/surfaceflinger to the pinner service default pin list

Bug: 207573339
Test: by 'dumpsys pinner' command
Change-Id: If29333eb06f2aaaf88fdfbad27fe9de4258c5b27
2022-02-14 11:36:35 +00:00
Alex Hong
58b6e68d51 Add required sepolicy rules for Sensor function
Bug: 210067282
Bug: 214473093
Bug: 218930975
Bug: 218499995
Test: run pts -m PtsSELinuxTest -t com.google.android.selinux.pts.SELinuxTest#checkSensors
Change-Id: I21bbbe35b8c487e9de46b03c508a483134c0b1b8
2022-02-14 19:31:08 +08:00
Rick Yiu
13a4cde946 Dumpstate: Dump vendor group value
Dump attributes and tasks for each vendor group.

Bug: 216844247
Test: build pass
Change-Id: I001efa93fb1ea2fc283daaa28363a0cfc1eefbe8
2022-02-14 06:05:03 +00:00
Rick Yiu
76b772519a Allow dumping vendor groups values
Fix:
I dumpstate@1.1-s: type=1400 audit(0.0:37): avc: denied { search } for name="vendor_sched" dev="proc" ino=4026532870 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:proc_vendor_sched:s0 tclass=dir permissive=1
I dumpstate@1.1-s: type=1400 audit(0.0:38): avc: denied { read } for name="dump_task" dev="proc" ino=4026532871 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:proc_vendor_sched:s0 tclass=file permissive=1
I dumpstate@1.1-s: type=1400 audit(0.0:39): avc: denied { open } for path="/proc/vendor_sched/dump_task" dev="proc" ino=4026532871 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:proc_vendor_sched:s0 tclass=file permissive=1

Bug: 216844247
Test: build pass
Change-Id: Icfecf373aa7b49d504d9ed4e15dcbfe2a53d47d3
2022-02-14 06:05:03 +00:00