Commit graph

7697 commits

Author SHA1 Message Date
Robb Glasser
3f56033179 Add hal_graphics_composer_default to sensors sepolicy. am: 990294708f am: 3bd74d90b2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17051308

Change-Id: I629dc58eaf6f9b09cb35f0eafc7b1878ecdf63da
2022-03-03 19:35:45 +00:00
Bob Badour
e3710a9f34 [LSC] Add LOCAL_LICENSE_KINDS
Added SPDX-license-identifier-Apache-2.0 to:
  usb/gadget/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Change-Id: Idea66093348d8c7e4a63b35e5f25a6d8bab9439a
2022-03-03 11:19:46 -08:00
Robb Glasser
44953b58b3 Add hal_graphics_composer_default to sensors sepolicy. am: 990294708f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17051308

Change-Id: Idf592c4d84da206ddc8cd6ed64d0f23c57d02717
2022-03-03 19:11:54 +00:00
Robb Glasser
3bd74d90b2 Add hal_graphics_composer_default to sensors sepolicy. am: 990294708f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17051308

Change-Id: I692867ec79753dbd0c4f3909d26549d51c5e8f7d
2022-03-03 19:11:41 +00:00
Robb Glasser
990294708f Add hal_graphics_composer_default to sensors sepolicy.
Bug: 221396170
Test: No avc denial.

Change-Id: I23299524dec50d8c589c6acc9da8b3c8c3399f97
2022-03-03 18:42:58 +00:00
Devin Moore
b3a10db9d6 Add the init_boot partition sepolicy
Tagging the partition as a boot_block_device so everything that had
permission to read/write to the boot partition now also has permissions
for this new init_boot partition.

This is required for update_engine to be able to write to init_boot on
builds that are enforcing sepolicy.

Bug: 222052598
Test: adb shell setenforce 1 && update_device.py ota.zip

Change-Id: Ic991fa314c8a6fdb848199a626852a68a57d1df5
2022-03-03 17:14:41 +00:00
SongFerngWang
fe15f7f7b1 copy the overlay from gs101 am: 00c06569c6 am: 8b12328808
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17066723

Change-Id: I393122c3506914270fd50d6181d043016475d26d
2022-03-03 13:17:14 +00:00
SongFerngWang
8b12328808 copy the overlay from gs101 am: 00c06569c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17066723

Change-Id: I63ce023ef1cd455fdab0bfb236dfb236efda3b95
2022-03-03 12:54:11 +00:00
SongFerngWang
28fb05362b copy the overlay from gs101 am: 00c06569c6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17066723

Change-Id: Ie0f26a25f980326aebb1fe98150f521914d0b652
2022-03-03 12:54:11 +00:00
SongFerngWang
00c06569c6 copy the overlay from gs101
Bug: 221846447
Test: build pass
Change-Id: Ia977d59492d00bb5499523ca17cde92fd932292e
(cherry picked from commit 9e3dae6628)
2022-03-03 09:29:38 +00:00
Nishok Kumar S
a8c8d9f1be Allow camera HAL and GCA to access Aurora GXP device. am: e95f5edafe am: dd3de4d24e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17035623

Change-Id: I566cbdca0bbe6aa0aa2936983534c4b076391fe4
2022-03-03 04:54:17 +00:00
Nishok Kumar S
dd3de4d24e Allow camera HAL and GCA to access Aurora GXP device. am: e95f5edafe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17035623

Change-Id: If5cbce0c7a2489272853813e915a58560e1cfe86
2022-03-03 04:30:16 +00:00
Nishok Kumar S
f91a98467c Allow camera HAL and GCA to access Aurora GXP device. am: e95f5edafe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17035623

Change-Id: Ie637dc2f227d20fcd7b82ae4d9bf45708e995dfa
2022-03-03 04:30:14 +00:00
Nishok Kumar S
e95f5edafe Allow camera HAL and GCA to access Aurora GXP device.
The camera HAL and Google Camera App
need selinux permission to run workloads on Aurora DSP. This
change adds the selinux rules too allow these clients to
access the GXP device and load firmware onto DSP cores
in order to execute workloads on DSP.

Bug: 220086991
Test: Verified that the camera HAL service and GCA app is able to access the GXP device and load GXP firmware.
Change-Id: I1bd327cfbe5b37c88154acda54bf6c396e939289
2022-03-03 04:02:33 +00:00
Android Build Coastguard Worker
7684405346 Snap for 8243542 from 198c735e40 to udc-release
Change-Id: Iae5479f0303acf51a9db467956789535d6154224
2022-03-03 04:01:39 +00:00
Robert Lee
fcd5a53861 Fix selinux error for aocd am: 129ef29bc8 am: fd043e784a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17050631

Change-Id: Id4fbde99b2a48ecb455edd7de6d0712e41dd3b39
2022-03-03 03:16:07 +00:00
Jenny Ho
17d30cfa49 device-common: set testing_battery_profile default 2 am: 60fde324e3 am: 480fc318e4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17045646

Change-Id: Ie09684f3742a76d900716ce68e3997cdd98b34eb
2022-03-03 03:14:40 +00:00
Jenny Ho
98f75c69c0 device-common: set testing_battery_profile default 2 am: 60fde324e3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17045646

Change-Id: I998548d7d3e4403358f7b1d7f9c6e9d621492a2d
2022-03-03 02:53:41 +00:00
Robert Lee
f5fb96dd9d Fix selinux error for aocd am: 129ef29bc8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17050631

Change-Id: I0fa5066a5278676cb68ab2b53d7f60f03c7546c3
2022-03-03 02:53:34 +00:00
Jenny Ho
480fc318e4 device-common: set testing_battery_profile default 2 am: 60fde324e3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17045646

Change-Id: Ie8a1e1a482e652414d79c689e578751009d6ecd8
2022-03-03 02:52:50 +00:00
Robert Lee
fd043e784a Fix selinux error for aocd am: 129ef29bc8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17050631

Change-Id: I12907f22900800c745b69d263208dae82f0b4d4d
2022-03-03 02:52:11 +00:00
Robert Lee
129ef29bc8 Fix selinux error for aocd
allow write permission to fix following error
auditd  : type=1400 audit(0.0:4): avc: denied { write } for comm="aocd" name="aoc" dev="tmpfs" ino=497 scontext=u:r:aocd:s0 tcontext=u:object_r:aoc_device:s0 tclass=chr_file permissive=0

Bug: 198490099
Test: no avc deny when enable no_ap_restart
Change-Id: I06dc99f1a5859589b33f89ce435745d15e2e5749
Signed-off-by: Robert Lee <lerobert@google.com>
2022-03-03 02:22:53 +00:00
Siddharth Kapoor
c0e662dc27 Add libgpudataproducer as sphal am: 2d43200489 am: dbefffd54b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17052905

Change-Id: I8b89645d0ae235a1ca48be49f98dabbef737d4df
2022-03-03 01:59:27 +00:00
Jinting Lin
a7dc4f5973 Fix avc denied for slsi engineermode app am: 94d7f6cce6 am: b0cb6083a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17041066

Change-Id: Ia04f584defd026f8bf29b1cc8ad053b646452ee2
2022-03-03 01:58:51 +00:00
Siddharth Kapoor
1869966388 Add libgpudataproducer as sphal am: 2d43200489
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17052905

Change-Id: I95227f77d2c276dc630f21ada38efdc34d58cdb2
2022-03-03 01:26:48 +00:00
Siddharth Kapoor
dbefffd54b Add libgpudataproducer as sphal am: 2d43200489
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17052905

Change-Id: I92c4b3a7dee9578980ca4850e744921782ea16f8
2022-03-03 01:24:36 +00:00
Jinting Lin
b0cb6083a9 Fix avc denied for slsi engineermode app am: 94d7f6cce6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17041066

Change-Id: I300f01cc8f98c7b740f327ef655dfcd5648b13ca
2022-03-03 01:24:31 +00:00
Jinting Lin
1714417845 Fix avc denied for slsi engineermode app am: 94d7f6cce6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17041066

Change-Id: Ifa1e8c56273b69f8fbfcdb4be95fe3924e4df0aa
2022-03-03 01:23:20 +00:00
Siddharth Kapoor
2d43200489 Add libgpudataproducer as sphal
Bug: 222042714
Test: CtsGpuProfilingDataTestCases passes on User build

Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
Change-Id: I1997f3e66327486f15b1aa742aa8e82855b07e05
2022-03-03 01:08:52 +00:00
Jinting Lin
94d7f6cce6 Fix avc denied for slsi engineermode app
log:
avc: denied  { find } for interface=vendor.samsung_slsi.telephony.hardware.radioExternal::IOemSlsiRadioExternal sid=u:r:platform_app:s0:c512,c768 pid=5111 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:hal_exynos_rild_hwservice:s0 tclass=hwservice_manager permissive=0
avc: denied { call } for comm="si.engineermode" scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:rild:s0 tclass=binder permissive=0 app=com.samsung.slsi.engineermode
avc: denied { call } for comm="HwBinder:1016_1" scontext=u:r:rild:s0 tcontext=u:r:platform_app:s0:c512,c768 tclass=binder permissive=0
avc: denied { read } for name="u:object_r:default_prop:s0" dev="tmpfs" ino=154 scontext=u:r:vendor_engineermode_app:s0:c225,c256,c512,c768 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0 app=com.samsung.slsi.engineermode

Test: side load the trail build sepolicy, then check the app

Bug: 221482792
Change-Id: I84768ed128a2b8c57d6a3e0a0f0aa8c4d4b91857
2022-03-03 01:01:08 +00:00
Jenny Ho
60fde324e3 device-common: set testing_battery_profile default 2
set 2 to prevent limit battery level in unexpected testing situation

Bug: 180511460
Bug: 220679025
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9f0e66cf92b26c6946af162003378dcf0fd749f9
(cherry picked from commit f9ae6c981a)
2022-03-02 21:53:36 +00:00
Josh Wu
198c735e40 [automerger skipped] Switch BtAudio to AIDL am: e8aabb124f am: 49c9007fda -s ours
am skip reason: Merged-In I9668afb6549491c65ec193f707ef936c3bb519ae with SHA-1 e8aabb124f is already in history

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

Change-Id: Iad2898f6f7182b4effb9b9474ee41753e6a26782
2022-03-02 18:36:20 +00:00
Josh Wu
49c9007fda Switch BtAudio to AIDL am: e8aabb124f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17052848

Change-Id: I23d45215198a05ddd184651d9a005602ffae18d0
2022-03-02 18:15:18 +00:00
Josh Wu
ae84830afd [automerger skipped] Switch BtAudio to AIDL am: e8aabb124f -s ours
am skip reason: Merged-In I9668afb6549491c65ec193f707ef936c3bb519ae with SHA-1 78497675e4 is already in history

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

Change-Id: I55ff6942ff1ba5402722da8975ddcecd2ef70636
2022-03-02 18:14:38 +00:00
SongFerngWang
9e3dae6628 copy the overlay from gs101
Bug: 221846447
Test: build pass
Change-Id: Ia977d59492d00bb5499523ca17cde92fd932292e
2022-03-02 13:09:19 +00:00
Josh Wu
e8aabb124f Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I9668afb6549491c65ec193f707ef936c3bb519ae
Merged-In: I9668afb6549491c65ec193f707ef936c3bb519ae
2022-03-02 13:08:41 +00:00
Josh Wu
78497675e4 Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I9668afb6549491c65ec193f707ef936c3bb519ae
2022-03-02 12:36:48 +00:00
Tim Lin
bdb1d3f7c7 enable IRadio 2.0 am: 5357ce3a42 am: 4983b42f79
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16972919

Change-Id: I2e2a1ac3ae885201c70fd6c55f6a03a9e0787b74
2022-03-02 10:06:10 +00:00
Tim Lin
af64ca6d28 enable IRadio 2.0 am: 5357ce3a42
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16972919

Change-Id: I797f6821a1403823c83bbcba6ec10cd43b230248
2022-03-02 09:45:07 +00:00
Tim Lin
4983b42f79 enable IRadio 2.0 am: 5357ce3a42
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16972919

Change-Id: I083de0088a426f7db6736c815245ec7549aa9b7f
2022-03-02 09:44:27 +00:00
Tim Lin
5357ce3a42 enable IRadio 2.0
Bug: 206348419
Test: make
Change-Id: Iae1093aa6f7e9014fe47ae05e023922725885d03
2022-03-02 09:12:13 +00:00
sukiliu
431f4747cc update error on ROM 8223177 am: b1c5fcff3d am: d0afc4ccf5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005595

Change-Id: I1796687e67345c2e3ae7d52849d36e02a511e611
2022-03-02 07:11:09 +00:00
sukiliu
88653306ce update error on ROM 8223177 am: b1c5fcff3d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005595

Change-Id: I00cb31a95f1076bd185e71c09b85ca5cb563b367
2022-03-02 06:50:04 +00:00
sukiliu
d0afc4ccf5 update error on ROM 8223177 am: b1c5fcff3d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005595

Change-Id: I43a4d7d92ba5bb868d0e9167afbb5af5dac852c9
2022-03-02 06:49:10 +00:00
sukiliu
b1c5fcff3d update error on ROM 8223177
Bug: 221384981
Bug: 221384939
Bug: 221384996
Bug: 221384768
Bug: 221384770
Bug: 221384860
Test: PtsSELinuxTestCases
Change-Id: I50916dca7548bce0e77d90a36ad8f9ba1ca7c711
2022-03-02 06:30:05 +00:00
Android Build Coastguard Worker
3a213d5709 Snap for 8237959 from 314ea30a9f to udc-release
Change-Id: I8d480947c33d3d2706a341b8e3addb840c42032e
2022-03-02 04:01:10 +00:00
Ankit Goyal
aa68efc4cf Include allocator AIDL service in the build am: 9e4f342440 am: 8639b13253
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16982349

Change-Id: Icc10674c0af630720f05d819850fba93f7276cd6
2022-03-02 02:45:43 +00:00
Ankit Goyal
97498122c9 Remove stale gralloc3 configs am: 205a0a4851 am: 100b4b23b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16982348

Change-Id: Iffa1a86d0004f2be880b66fe95a6ba84704b1186
2022-03-02 02:45:38 +00:00
Ankit Goyal
1c9397a9b2 Include allocator AIDL service in the build am: 9e4f342440
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16982349

Change-Id: I6c72882ad0b7905a24b5c02ba813f11f0dd9f841
2022-03-02 02:25:45 +00:00
Ankit Goyal
741578ea35 Remove stale gralloc3 configs am: 205a0a4851
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16982348

Change-Id: Ifd733ee23cad218fc8c90cef73122849a8000986
2022-03-02 02:25:42 +00:00