Commit graph

1173 commits

Author SHA1 Message Date
Michael Ayoubi
cebbf14174 Add support for non-su hal_uwb
Bug: 187386527
Test: Boot and confirm HAL is up
Signed-off-by: Michael Ayoubi <mayoubi@google.com>
Change-Id: Ia9f3f90fba6981762fe375aa37c81f8474ad9c53
2021-06-23 01:26:25 +00:00
Adam Shih
d74e989739 modulize init.radio.sh
Bug: 190331600
Test: build ROM and make sure the file is there and functional.
Change-Id: Icb3e0e590ae315d53eb5251fd5e74d6aacab1fe2
2021-06-23 01:07:26 +00:00
TreeHugger Robot
2719d2f8ae Merge "Allow camera hal to access devfreq query" into sc-dev am: e2ef28efca am: 7ad9e45515
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14980575

Change-Id: Ide59cfb052e501d809cb9a263297c5c6dd999ea2
2021-06-22 12:45:15 +00:00
TreeHugger Robot
e5febaf579 Merge "Allow camera hal to access devfreq query" into sc-dev am: e2ef28efca am: 7559eac0df
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14980575

Change-Id: I13e1fa6cdd1c266ae3f60fbd4569b0e39f82bcf4
2021-06-22 12:41:20 +00:00
TreeHugger Robot
7ad9e45515 Merge "Allow camera hal to access devfreq query" into sc-dev am: e2ef28efca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14980575

Change-Id: I1922239b616469f421d75ac35a392d65d2521cc4
2021-06-22 12:30:09 +00:00
TreeHugger Robot
7559eac0df Merge "Allow camera hal to access devfreq query" into sc-dev am: e2ef28efca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14980575

Change-Id: I053b84d7c183802f0e78511de11e18b60ad68709
2021-06-22 12:26:37 +00:00
TreeHugger Robot
e2ef28efca Merge "Allow camera hal to access devfreq query" into sc-dev 2021-06-22 12:06:16 +00:00
Speth Chang
419019a71a Allow camera hal to access devfreq query
Bug: 190687351
Test: p21 checklist
Change-Id: Id0cb74b483882a6ede93cadc475a7be334ecf20d
2021-06-22 10:19:49 +00:00
Alex Hong
902f2cf23c Merge "Move the genfs_contexts of sched nodes from vendor to product" into sc-dev am: 1f17829dc2 am: 710cc3863d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15045028

Change-Id: Ie84cb1af05a719443261aebd22fabd03368d580d
2021-06-22 03:38:06 +00:00
Alex Hong
a23e74f7d3 Merge "Move the genfs_contexts of sched nodes from vendor to product" into sc-dev am: 1f17829dc2 am: fd43ace221
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15045028

Change-Id: Ib4bd5ba999bbc150892b332b59fc0dc2368e706e
2021-06-22 03:37:52 +00:00
Alex Hong
fd43ace221 Merge "Move the genfs_contexts of sched nodes from vendor to product" into sc-dev am: 1f17829dc2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15045028

Change-Id: I79ce5df849956b3b000ff6241ef0c20dd0a32f7c
2021-06-22 03:20:34 +00:00
Alex Hong
710cc3863d Merge "Move the genfs_contexts of sched nodes from vendor to product" into sc-dev am: 1f17829dc2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15045028

Change-Id: I3f65c53287d4ba739d640e40a458e169c92b78f6
2021-06-22 03:19:49 +00:00
Alex Hong
1f17829dc2 Merge "Move the genfs_contexts of sched nodes from vendor to product" into sc-dev 2021-06-22 03:01:07 +00:00
Srinivas Patibandla
df7ad071fa Update time sync seinfo to not use platform signature am: 51c891fa7b am: 38b0a12272
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15014432

Change-Id: Ie351ebfccec59c70a5287ddb5e11004a7df7cc5d
2021-06-21 20:22:06 +00:00
Srinivas Patibandla
ea69d530a0 Update time sync seinfo to not use platform signature am: 51c891fa7b am: 0d3d449ced
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15014432

Change-Id: I5bed4668b0e413af4251fd73dc05908e194d68ed
2021-06-21 20:12:47 +00:00
Srinivas Patibandla
38b0a12272 Update time sync seinfo to not use platform signature am: 51c891fa7b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15014432

Change-Id: Ia0719062e6021fb25aa88183eec92740c1e0bf3d
2021-06-21 19:56:40 +00:00
Srinivas Patibandla
0d3d449ced Update time sync seinfo to not use platform signature am: 51c891fa7b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15014432

Change-Id: I1ae881f223b3e014b74af2495255ef18c0e30ffc
2021-06-21 19:54:51 +00:00
Alex Hong
c598db170c Move the genfs_contexts of sched nodes from vendor to product
For sched nodes, "proc_vendor_sched" and "sysfs_vendor_sched",
their type definition is in product sepolicy,
while genfs_contexts is in vendor sepolicy.
In this case, genfs_contexts cannot be resolved after product sepolicy
is replaced by Dynamic System Update.

Need to keep the type definition and genfs_contexts in the same partition.
Now move genfs_contexts because the type definition has to be in product for now
since other private domains are accessing these sched nodes.

Test: $ make selinux_policy
      The device can boot to home after replacing with GSI.
Bug: 191236468
Change-Id: I02ea78b04dfcade4ceb426ff6ebf498daa81ac32
2021-06-21 14:55:08 +00:00
Srinivas Patibandla
51c891fa7b Update time sync seinfo to not use platform signature
Bug: b/190695230
Change-Id: I2dbee2e624c8794b3aa9ff85d8985a15ee159a0f
2021-06-21 14:47:28 +00:00
Thiebaud Weksteen
bf58949ba3 Merge "Fix access permissions for sysfs_aoc_reset" into sc-dev am: c4d98b5c11 am: 24b135a5ba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15018192

Change-Id: I869dcdb0a0419de8c7d61cfeff45676ca44e6c8a
2021-06-21 09:21:00 +00:00
Thiebaud Weksteen
344792d48a Merge "Fix access permissions for sysfs_aoc_reset" into sc-dev am: c4d98b5c11 am: e6f8977370
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15018192

Change-Id: I7de56040c97e5bd6c8cc1d8099e94a567817a5d6
2021-06-21 09:20:33 +00:00
Thiebaud Weksteen
e6f8977370 Merge "Fix access permissions for sysfs_aoc_reset" into sc-dev am: c4d98b5c11
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15018192

Change-Id: Ia6ed028f32448e2475784a8e9406092b7ea6572e
2021-06-21 08:56:38 +00:00
Thiebaud Weksteen
24b135a5ba Merge "Fix access permissions for sysfs_aoc_reset" into sc-dev am: c4d98b5c11
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15018192

Change-Id: Id422825604c3df974fbcd225c966742ceb1f6a7f
2021-06-21 08:55:44 +00:00
Thiebaud Weksteen
c4d98b5c11 Merge "Fix access permissions for sysfs_aoc_reset" into sc-dev 2021-06-21 08:38:37 +00:00
Jack Wu
3fa70601e4 sepolicy: gs101: allows pixelstat to access wlc file nodes am: 2794370557 am: e2aaccb114
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14732233

Change-Id: Ie4a85317295dc803b406b652fbbaedb4fe0555ef
2021-06-19 03:12:57 +00:00
Jack Wu
e96cd5e870 sepolicy: gs101: allows pixelstat to access wlc file nodes am: 2794370557 am: 4266de165e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14732233

Change-Id: Ibbb209fbbf878133292377a3a1ca23c41cac97b7
2021-06-19 03:12:25 +00:00
Jack Wu
4266de165e sepolicy: gs101: allows pixelstat to access wlc file nodes am: 2794370557
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14732233

Change-Id: I1568bee94e97333056a76bddf174a8dd75926e5a
2021-06-19 02:58:13 +00:00
Jack Wu
e2aaccb114 sepolicy: gs101: allows pixelstat to access wlc file nodes am: 2794370557
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14732233

Change-Id: I8b9f1e8b1dc1e945ef0f24431610d43f19aafa38
2021-06-19 02:57:02 +00:00
Jack Wu
2794370557 sepolicy: gs101: allows pixelstat to access wlc file nodes
05-31 11:14:57.280  1000  3126  3126 W pixelstats-vend: type=1400 audit(0.0:162): avc: denied { search } for name="i2c-p9412" dev="sysfs" ino=60862 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=dir permissive=0
05-31 11:14:57.280  1000  3126  3126 W pixelstats-vend: type=1400 audit(0.0:163): avc: denied { search } for name="i2c-p9412" dev="sysfs" ino=60862 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=dir permissive=0

05-31 13:12:23.940  1000  2838  2838 W pixelstats-vend: type=1400 audit(0.0:182): avc: denied { read } for name="charge_stats" dev="sysfs" ino=73276 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=file permissive=0

05-31 15:02:02.215  1000 13169 13169 W pixelstats-vend: type=1400 audit(0.0:166): avc: denied { write } for name="charge_stats" dev="sysfs" ino=73483 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=file permissive=0
05-31 15:02:02.215  1000 13169 13169 W pixelstats-vend: type=1400 audit(0.0:167): avc: denied { write } for name="charge_stats" dev="sysfs" ino=73483 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=file permissive=0

Bug: 176195960
Test: manually test, no avc: denied
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I0af03dd8099e246c5f94e8e8530d7b2bcf50ff95
2021-06-18 13:50:59 +00:00
Franklin He
7881005a7d Merge "Add new sepolicy to allow Power Hint" into sc-dev am: 6a488b8a81 am: d743a1a37b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14997453

Change-Id: I937e3238dfa7658b59570b9a254124b81b342f66
2021-06-18 09:06:47 +00:00
Franklin He
69d006583f Merge "Add new sepolicy to allow Power Hint" into sc-dev am: 6a488b8a81 am: e2757f1a2f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14997453

Change-Id: I7ac8d183e3189a0e8b66d6331c90549344d091f8
2021-06-18 09:05:50 +00:00
Franklin He
e2757f1a2f Merge "Add new sepolicy to allow Power Hint" into sc-dev am: 6a488b8a81
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14997453

Change-Id: I4fa13dd60ca94612acad3e5c2cce085a3499b164
2021-06-18 08:51:48 +00:00
Franklin He
d743a1a37b Merge "Add new sepolicy to allow Power Hint" into sc-dev am: 6a488b8a81
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14997453

Change-Id: Ib88e7249a095c051820f47ebedbc5b902490e3ab
2021-06-18 08:50:56 +00:00
Franklin He
6a488b8a81 Merge "Add new sepolicy to allow Power Hint" into sc-dev 2021-06-18 08:37:19 +00:00
Krzysztof Kosiński
13354ee040 Merge changes I18cbcf1b,I28a27741 into sc-dev am: c18265aaaa am: e154e0957c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15020911

Change-Id: Ic57e29a616eb4cd07094ea1fee7b0cef51657f9a
2021-06-18 08:18:26 +00:00
Krzysztof Kosiński
543113672a Merge changes I18cbcf1b,I28a27741 into sc-dev am: c18265aaaa am: 2bdd262506
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15020911

Change-Id: Ia5237cf578159d4eff38b518d64d4e9d0ab38f48
2021-06-18 08:14:49 +00:00
Krzysztof Kosiński
e154e0957c Merge changes I18cbcf1b,I28a27741 into sc-dev am: c18265aaaa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15020911

Change-Id: Ibdc7bbd8f3943e08f3202e15f8a6eff51dd65d7b
2021-06-18 08:05:55 +00:00
Krzysztof Kosiński
2bdd262506 Merge changes I18cbcf1b,I28a27741 into sc-dev am: c18265aaaa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15020911

Change-Id: If57e9679a73833f2b3b9061a0baf765bc1c4cc6c
2021-06-18 08:03:54 +00:00
Krzysztof Kosiński
c18265aaaa Merge changes I18cbcf1b,I28a27741 into sc-dev
* changes:
  Allow camera HAL to set vendor.camera properties
  Allow rlsservice/camera HAL to read /apex/apex-info-list.xml
2021-06-18 07:46:33 +00:00
Adam Shih
6b19178428 organize confirmationui settings am: d77bc5a970 am: 5f89bc8b4b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15021790

Change-Id: I4b0f27c6bc8914838ce3697cb40cfe9eb9b785f4
2021-06-18 07:18:53 +00:00
Adam Shih
d3b52eeb7a organize confirmationui settings am: d77bc5a970 am: 5e7be474d4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15021790

Change-Id: If42f6ebaf1bef4b71831702611ed2dc619771e51
2021-06-18 07:18:30 +00:00
Adam Shih
5e7be474d4 organize confirmationui settings am: d77bc5a970
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15021790

Change-Id: I759065d2cbd5c0e8a5fc7153273c3f1016137000
2021-06-18 06:57:36 +00:00
Thiébaud Weksteen
7e232446dc Fix access permissions for sysfs_aoc_reset
avc: denied { getattr } for comm="UsfHalWorker" path="/sys/devices/platform/19000000.aoc/reset" dev="sysfs" ino=69873 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs_aoc_reset:s0 tclass=file permissive=0

Bug: 190712449
Bug: 191415949
Change-Id: Ibad4e75aa60b06129221086031289c855c561e96
2021-06-18 08:56:59 +02:00
Adam Shih
5f89bc8b4b organize confirmationui settings am: d77bc5a970
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15021790

Change-Id: I9a10630cf9dd31ad3dca60c40e1c175da28deab2
2021-06-18 06:56:41 +00:00
Yuriy Romanenko
6bf4661e8f Allow camera HAL to set vendor.camera properties
Bug: 188246923
Test: See topic
Change-Id: I18cbcf1b622ad7cd6d6bd1ea258b3d537db54412
2021-06-17 21:58:54 -07:00
Adam Shih
d77bc5a970 organize confirmationui settings
Bug: 190331547
Bug: 190331370
Test: build ROM and make sure file and sepolicy is still there
Change-Id: I4cabf9280ab5e21038bcb72615799b7ed0fb1670
2021-06-18 12:56:05 +08:00
Badhri Jagan Sridharan
1963b6b258 Merge "Add file context for /dev/logbuffer_tcpm" into sc-dev am: d9876fd266 am: 04302e6743
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15019635

Change-Id: I5bab0be22f017491d8b38770682e60b3dd1843d2
2021-06-18 04:10:47 +00:00
Badhri Jagan Sridharan
1711a13dcc Merge "Add file context for /dev/logbuffer_tcpm" into sc-dev am: d9876fd266 am: 4632b7aa7d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15019635

Change-Id: Iecd2b65a1da20773557741b1e6971b63d6e2f3ef
2021-06-18 04:08:42 +00:00
Badhri Jagan Sridharan
04302e6743 Merge "Add file context for /dev/logbuffer_tcpm" into sc-dev am: d9876fd266
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15019635

Change-Id: Ibd2e13f7069bec378076c40f187d9707c85f6227
2021-06-18 03:55:10 +00:00
Badhri Jagan Sridharan
4632b7aa7d Merge "Add file context for /dev/logbuffer_tcpm" into sc-dev am: d9876fd266
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15019635

Change-Id: Ie59d003bc6d1e74f1b37f440b9f27059156503f6
2021-06-18 03:53:45 +00:00