Commit graph

7697 commits

Author SHA1 Message Date
Ankit Goyal
8639b13253 Include allocator AIDL service in the build am: 9e4f342440
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16982349

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

Change-Id: I2600406998cbc6dc093d7ff7e9f59fea61cae1c0
2022-03-02 02:24:25 +00:00
Ankit Goyal
9e4f342440 Include allocator AIDL service in the build
Bug: 220910504
Test: Boots to home
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: Ie169b059d401ce58b217765dbac76b4de9eb2c96
2022-03-02 01:56:58 +00:00
Ankit Goyal
205a0a4851 Remove stale gralloc3 configs
Bug: 220910504
Test: Boots to home
Change-Id: I30a68849413b6927365773a52f543e3a032f18fa
2022-03-02 01:56:58 +00:00
Roshan Pius
2fe3313727 gs-sepolicy: Fix legacy UWB stack sepolicy rules am: a1f0d2aa9a am: a492dff7cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17045928

Change-Id: Ie9b49694ff62287867606d6e8f31f05c85501765
2022-03-01 19:18:41 +00:00
Roshan Pius
8dd3e0b971 gs-sepolicy: Fix legacy UWB stack sepolicy rules am: a1f0d2aa9a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17045928

Change-Id: Ibf58b9ef905da9b1c8fd94beb2603f0ea7dc79b5
2022-03-01 18:54:19 +00:00
Roshan Pius
a492dff7cc gs-sepolicy: Fix legacy UWB stack sepolicy rules am: a1f0d2aa9a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17045928

Change-Id: I4e5377239bc0ebddb388ae4de486e2e87ccea0d1
2022-03-01 18:52:42 +00:00
Roshan Pius
a1f0d2aa9a gs-sepolicy: Fix legacy UWB stack sepolicy rules
This rule was present on previous devices.

Denial logs:
02-24 09:22:08.214   427   427 E SELinux : avc:  denied  { find } for
pid=1479 uid=1000 name=uwb_vendor scontext=u:r:system_server:s0
tcontext=u:object_r:uwb_vendor_service:s0 tclass=service_manager permissive=0

Bug: 221292100
Test: Compiles
Change-Id: I6de4000a9cebf46a0d94032aade7b2d40b94ca16
2022-03-01 18:25:00 +00:00
Ray Chi
314ea30a9f Revert "usb: modify the permission of USB gadget hal" am: ef1c863453 am: cf7e9d5784
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040828

Change-Id: I006e99fb015d33d172243f21d0a995c1fdcc744a
2022-03-01 16:31:28 +00:00
Ray Chi
cf7e9d5784 Revert "usb: modify the permission of USB gadget hal" am: ef1c863453
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040828

Change-Id: Id9b9080694bf607ca7cb96dde401baf750094102
2022-03-01 16:10:08 +00:00
Ray Chi
bf4705d0e5 Revert "usb: modify the permission of USB gadget hal" am: ef1c863453
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040828

Change-Id: I7d14323d15096ff7d904f1fffe7b3c33cbd1b0fb
2022-03-01 16:10:01 +00:00
Ray Chi
ef1c863453 Revert "usb: modify the permission of USB gadget hal"
This reverts commit bdd4728a17.

Reason for revert: original issue is fixed.

Bug: 206902205
Test: adb work without the error of gadget hal.
Change-Id: I3b7ab36f93e8bb7d6c23d53d4a12ed95d441fede
2022-03-01 18:33:17 +08:00
Rick Yiu
deef929635 Support SetProcessProfiles for vendor groups am: 34cad67219 am: 6d2ee75a12
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040824

Change-Id: Ie19371c38df8be67dcaacd49d4e333e70a59169d
2022-03-01 09:39:53 +00:00
Rick Yiu
aa5e4f11ef Support SetProcessProfiles for vendor groups am: 34cad67219
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040824

Change-Id: Ifa8ddb264cdf2394bc36fd3448641722bb5e351e
2022-03-01 09:07:07 +00:00
Rick Yiu
6d2ee75a12 Support SetProcessProfiles for vendor groups am: 34cad67219
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17040824

Change-Id: If1049cdc096e825339d287e126a480f0de7a6c3c
2022-03-01 09:05:44 +00:00
Rick Yiu
7157f770d7 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
2022-03-01 08:36:00 +00:00
Tommy Chiu
024f58cc54 RKP: Add IRemotelyProvisionedComponent service am: b7790aa7a8 am: c94ef875af
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17034406

Change-Id: Iecf2ba97b2f4c99d2d52be40f36babe3ab773937
2022-03-01 07:02:37 +00:00
Tommy Chiu
7845870ddd RKP: Add IRemotelyProvisionedComponent service am: b7790aa7a8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17034406

Change-Id: Ie8a7f246dbbc26d9e64a18a831326d3aee5ed1f9
2022-03-01 06:42:23 +00:00
Tommy Chiu
c94ef875af RKP: Add IRemotelyProvisionedComponent service am: b7790aa7a8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17034406

Change-Id: I19740f1d8d82c0ff1227709aa639bd8c2b0938db
2022-03-01 06:39:43 +00:00
Tommy Chiu
b7790aa7a8 RKP: Add IRemotelyProvisionedComponent service
Bug: 212643050
Bug: 221503025
Change-Id: I7932ba96d0d7dd603d360cd7319997a7c108500a
2022-03-01 06:10:23 +00:00
Wayne Lin
ccbd45c0e1 gps: update gps driver 129.20.23.528102 am: ec6aba8e3f am: 8732a0ea7a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16966271

Change-Id: I598c9376a7baeea1472e0977c97ce3321c988bc2
2022-03-01 05:11:51 +00:00
Wayne Lin
efb4c90a12 gps: update gps driver 129.20.23.528102 am: ec6aba8e3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16966271

Change-Id: Ia91cb8cdebf00b76604b8883d94422efa9502982
2022-03-01 04:50:29 +00:00
Wayne Lin
8732a0ea7a gps: update gps driver 129.20.23.528102 am: ec6aba8e3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/16966271

Change-Id: Ib13a472adde4412e9fc3a5a0a09f8d311105a50a
2022-03-01 04:49:27 +00:00
Rick Yiu
34cad67219 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
2022-03-01 04:32:22 +00:00
Wayne Lin
ec6aba8e3f gps: update gps driver 129.20.23.528102
- Rescale DBH accuracy and add timestamp
 - Enable runtime LTE filter control feature
 - Pick newest FLP location for LPPe DBH
 - Not to request DBH location for the non-emergency NI
 - Keep reqporting PPS in duty-cycle
 - Release SUPL wakelock while framework restart
 - Fix NI AGPS accuracy and hot start accuracy issue
 - Fix cts testRequestFlush issue
 - Fix gps crash issue
 - Fix re-calibration on the fly issue
 - Fix OnChip mode TTFF issue
 - Fix OnChip mode GnssStatus no el/az issue

Bug: 214399728
Bug: 211171235
Bug: 218586958
Bug: 215660420
Bug: 207804509
Bug: 208178903
Bug: 214551540
Bug: 213792299
Bug: 205770623
Bug: 205776935
Bug: 213009701
Bug: 218457536
Bug: 215660420
Bug: 213388910
Bug: 218608516

Verify test: 220724315
Test: build pass and GPS verify test pass

Change-Id: Id5f1680c9b935e8955991f87ee8c317b0a4d17aa
2022-03-01 04:20:23 +00:00
Badhri Jagan Sridharan
b9268781da [automerger skipped] android.hardware.usb.IUsb AIDL migration am: fc08341bd6 am: b68d5b153c -s ours
am skip reason: Merged-In Ia8c24610244856490c8271433710afb57d3da157 with SHA-1 fc08341bd6 is already in history

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

Change-Id: Id6b50ba2b3860238fa6adebad6dc974aa3b2352a
2022-03-01 04:17:17 +00:00
Badhri Jagan Sridharan
a8c5da9e89 [automerger skipped] Migrate IUsb implementation to AIDL am: a1deb18dfb am: 7f749bc736 -s ours
am skip reason: Merged-In I02753af4a41916b77ce110f9531504bf8c6a4691 with SHA-1 a1deb18dfb is already in history

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

Change-Id: Ie2393f59df9e535ef7617c1a0d981d1458137f47
2022-03-01 04:17:17 +00:00
Badhri Jagan Sridharan
98d92876de [automerger skipped] android.hardware.usb.IUsb AIDL migration am: fc08341bd6 -s ours
am skip reason: Merged-In Ia8c24610244856490c8271433710afb57d3da157 with SHA-1 775523d1eb is already in history

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

Change-Id: I107a850c88f445e4b91253a46a00e4197e806bf1
2022-03-01 03:55:58 +00:00
Badhri Jagan Sridharan
0a73ca37de [automerger skipped] Migrate IUsb implementation to AIDL am: a1deb18dfb -s ours
am skip reason: Merged-In I02753af4a41916b77ce110f9531504bf8c6a4691 with SHA-1 e975471475 is already in history

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

Change-Id: I83132b7089e78aa5f194ee0ac0685c46d3a315e6
2022-03-01 03:55:58 +00:00
Badhri Jagan Sridharan
b68d5b153c android.hardware.usb.IUsb AIDL migration am: fc08341bd6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17009127

Change-Id: Ib469d2785c355195621edc4a509f3db07d11ea54
2022-03-01 03:55:10 +00:00
Badhri Jagan Sridharan
7f749bc736 Migrate IUsb implementation to AIDL am: a1deb18dfb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17008872

Change-Id: Idb543fc1c1093368f2807532a33cbe769ff104bc
2022-03-01 03:55:10 +00:00
Badhri Jagan Sridharan
fc08341bd6 android.hardware.usb.IUsb AIDL migration
Cherry-pick of <775523d1eb>

android.hardware.usb.IUsb is migrated to AIDL and runs in
its own process. android.hardware.usb.gadget.IUsbGadget
is now published in its own exclusive process
(android.hardware.usb.gadget-service). Creating
file_context and moving the selinux linux rules
for IUsbGadget implementation.

[   37.177042] type=1400 audit(1645536157.528:3): avc: denied { wake_alarm } for comm="android.hardwar" capability=35 scontext=u:r:hal_usb_impl:s0 tcontext=u:r:hal_usb_impl:s0 tclass=capability2 permissive=1
[   37.177139] type=1400 audit(1645536157.528:4): avc: denied { block_suspend } for comm="android.hardwar" capability=36 scontext=u:r:hal_usb_impl:s0 tcontext=u:r:hal_usb_impl:s0 tclass=capability2 permissive=1
[   39.936357] type=1400 audit(1645536160.292:5): avc: denied { call } for comm="HwBinder:875_1" scontext=u:r:hal_usb_impl:s0 tcontext=u:r:hal_thermal_default:s0 tclass=binder permissive=1
[   39.936403] type=1400 audit(1645536160.292:6): avc: denied { transfer } for comm="HwBinder:875_1" scontext=u:r:hal_usb_impl:s0 tcontext=u:r:hal_thermal_default:s0 tclass=binder permissive=1
...
[   42.845054] type=1400 audit(1645550991.268:8): avc: denied { read } for comm="HwBinder:860_1" name="u:object_r:vendor_usb_config_prop:s0" dev="tmpfs" ino=351 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=file permissive=1
[   42.877781] type=1400 audit(1645550991.268:9): avc: denied { open } for comm="HwBinder:860_1" path="/dev/__properties__/u:object_r:vendor_usb_config_prop:s0" dev="tmpfs" ino=351 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=file permissive=1
[   42.915532] type=1400 audit(1645550991.268:10): avc: denied { getattr } for comm="HwBinder:860_1" path="/dev/__properties__/u:object_r:vendor_usb_config_prop:s0" dev="tmpfs" ino=351 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=file permissive=1
[   42.962130] type=1400 audit(1645550991.268:11): avc: denied { map } for comm="HwBinder:860_1" path="/dev/__properties__/u:object_r:vendor_usb_config_prop:s0" dev="tmpfs" ino=351 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=file permissive=1
[   43.003097] type=1400 audit(1645550991.268:12): avc: denied { watch watch_reads } for comm="HwBinder:860_1" path="/dev/usb-ffs/adb" dev="functionfs" ino=40814 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:functionfs:s0 tclass=dir permissive=1
[   43.024529] type=1400 audit(1645550991.268:13): avc: denied { write } for comm="HwBinder:860_1" name="property_service" dev="tmpfs" ino=376 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
[   43.057605] type=1400 audit(1645550991.268:14): avc: denied { connectto } for comm="HwBinder:860_1" path="/dev/socket/property_service" scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
[   43.084549] type=1107 audit(1645550991.268:15): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.usb.dwc3_irq pid=860 uid=0 gid=0 scontext=u:r:hal_usb_gadget_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=property_service permissive=1'

Bug: 200993386
Change-Id: Ia8c24610244856490c8271433710afb57d3da157
Merged-In: Ia8c24610244856490c8271433710afb57d3da157
2022-03-01 03:32:23 +00:00
Badhri Jagan Sridharan
a1deb18dfb Migrate IUsb implementation to AIDL
Cherry-pick of <775523d1eb>

This change migrates IUsb implementation to AIDL.
Also, IUsb and IUsbGadget now run in its own processes
to improve stability and isolation.

Bug: 200993386
Change-Id: I02753af4a41916b77ce110f9531504bf8c6a4691
Merged-In: I02753af4a41916b77ce110f9531504bf8c6a4691
2022-03-01 03:32:23 +00:00
YiHo Cheng
5b27c53dd7 thermal: Label tmu register dump sysfs am: be92764669 am: 3a13f5708b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005600

Change-Id: Iee1567b0c9563388b270f99f29dc62efdc2ae2a7
2022-03-01 02:15:46 +00:00
YiHo Cheng
0f6631f52b dumpstate: Add tmu register dump am: 1f04eb4aa6 am: baa169f3a0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17005133

Change-Id: I7e701716ec2d5e108542252ac05ac205910ed7ff
2022-03-01 02:14:19 +00:00
YiHo Cheng
baa169f3a0 dumpstate: Add tmu register dump am: 1f04eb4aa6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17005133

Change-Id: I87e63c862b36094f973ef9c5fe9f60e3ab462cff
2022-03-01 01:54:00 +00:00
YiHo Cheng
31eeaa3a61 dumpstate: Add tmu register dump am: 1f04eb4aa6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17005133

Change-Id: I22ead37de5d68e71fc69f93937498161719174db
2022-03-01 01:52:40 +00:00
YiHo Cheng
6a1e7e3340 thermal: Label tmu register dump sysfs am: be92764669
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005600

Change-Id: I5d714128eacd3e64dc44baff1e6ad295a6bf61fe
2022-03-01 01:51:51 +00:00
YiHo Cheng
3a13f5708b thermal: Label tmu register dump sysfs am: be92764669
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17005600

Change-Id: I3b54fe773cedef0087cd9f3733b23b0dcdeb1da9
2022-03-01 01:50:45 +00:00
YiHo Cheng
be92764669 thermal: Label tmu register dump sysfs
Allow dumpstate to access tmu register dump sysfs

[  174.114566] type=1400 audit(1645790696.920:13): avc: denied { read }
for comm="dumpstate@1.1-s" name="tmu_reg_dump_state" dev="sysfs"
ino=65178
 scontext=u:r:hal_dumpstate_default:s0 tcontext=u:object_r:sysfs:s0
 tclass=file permissive=0
 [  174.115092] type=1400 audit(1645790696.920:14): avc: denied { read }
 for comm="dumpstate@1.1-s" name="tmu_reg_dump_current_temp" dev="sysfs"
 in
 o=65179 scontext=u:r:hal_dumpstate_default:s0
 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
 [  174.115208] type=1400 audit(1645790696.920:15): avc: denied { read }
 for comm="dumpstate@1.1-s" name="tmu_top_reg_dump_rise_thres"
 dev="sysfs"
 ino=65180 scontext=u:r:hal_dumpstate_default:s0
 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
 [  174.115398] type=1400 audit(1645790696.920:16): avc: denied { read }
 for comm="dumpstate@1.1-s" name="tmu_top_reg_dump_fall_thres"
 dev="sysfs"
 ino=65182 scontext=u:r:hal_dumpstate_default:s0
 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
 [  174.115498] type=1400 audit(1645790696.920:17): avc: denied { read }
 for comm="dumpstate@1.1-s" name="tmu_sub_reg_dump_rise_thres"
 dev="sysfs"
 ino=65181 scontext=u:r:hal_dumpstate_default:s0
 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 215040856
Test: check tmu register dump sysfs output in dumpstate
Change-Id: Ica48e37344a69264d4b4367af7856ec20b566a9e
2022-03-01 01:24:00 +00:00
YiHo Cheng
1f04eb4aa6 dumpstate: Add tmu register dump
Add tmu register dump in thermal dumpstate section

Bug: 215040856
Test: check tmu register dump output in thermal dumpstate
Change-Id: Ia71d801b28b64abefbc472be717eb4e266599964
2022-03-01 01:23:19 +00:00
Android Build Coastguard Worker
b191b1345d Snap for 8228195 from 8f6f856c33 to udc-release
Change-Id: I0f8d74513c9f0688fccfb6cacedc99346b0579ed
2022-02-26 06:06:16 +00:00
Yu-Chi Cheng
7a53f0050b Allowed GCA to access EdgeTPU for P22 devices. am: 172271fdbc am: e398726310
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17016803

Change-Id: I5ac3df1ecd82d58ace49d97910168e004f416555
2022-02-26 00:24:58 +00:00
Yu-Chi Cheng
e398726310 Allowed GCA to access EdgeTPU for P22 devices. am: 172271fdbc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17016803

Change-Id: I75df18545ece29becfff7c4eb1624c07c12eefd7
2022-02-26 00:01:27 +00:00
Yu-Chi Cheng
b6adb75029 Allowed GCA to access EdgeTPU for P22 devices. am: 172271fdbc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17016803

Change-Id: If1a466f643e9768974cc02ed555d6cd543bad153
2022-02-26 00:01:15 +00:00
Yu-Chi Cheng
172271fdbc Allowed GCA to access EdgeTPU for P22 devices.
This change includes the google_camera_app domain
into the EdgeTPU selinux rules. With it the GCA
is now able to access EdgeTPU.

Bug: 221020793
Test: verified GCA to work on P22.
Change-Id: I69010e2a8cca1429df402ae587b939d38e20a287
2022-02-25 23:36:01 +00:00
Jinting Lin
ee692faed2 Fix avc denied for vendor silent logging app am: e44f3c867c am: 45fcc5f934
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/16986448

Change-Id: I104b71459beb590797d977e18f0a0455329aee74
2022-02-25 16:04:55 +00:00
wenchangliu
8f6f856c33 update media_codecs_aosp_c2.xml am: 4c25179eca am: 73a0a1c1dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17004203

Change-Id: Ieec4a307859eccef83e55adb53836376a3b2c5c9
2022-02-25 14:33:55 +00:00
wenchangliu
73a0a1c1dd update media_codecs_aosp_c2.xml am: 4c25179eca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17004203

Change-Id: I08efae1c9df74d986346db93913a2a4c0496f45d
2022-02-25 14:08:39 +00:00
wenchangliu
4c25179eca update media_codecs_aosp_c2.xml
- add performance-point for media performance class
 - add "vq-minimum-quality" for video codec

Bug: 220249926
Test: atest android.mediapc.cts.MultiTranscoderPerfTest
Test: minimum quality test
Change-Id: I6b1db8fd918fa032678b44faf5f87ff093daab2d
2022-02-25 13:40:01 +00:00