Commit graph

11237 commits

Author SHA1 Message Date
Xin Li
008c695964 [automerger skipped] Merge UQ1A.231205.015 am: 7f9f6cac0b -s ours am: 0fa2dbcfc4 -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 1bc693d338 is already in history

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

Change-Id: I841ac5f99314ee04c4361cbf8ea167c4d93e5914
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:51:04 +00:00
Xin Li
0fa2dbcfc4 [automerger skipped] Merge UQ1A.231205.015 am: 7f9f6cac0b -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 1bc693d338 is already in history

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

Change-Id: I16ed09997d031be1351614aea139fc2d728452b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:21:16 +00:00
Xin Li
7f9f6cac0b Merge UQ1A.231205.015
Bug: 308969284
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I7a1fec0331c5bddabd4f9edabcfda9b137f7a452
2023-12-07 15:47:12 -08:00
David Drysdale
422638059a Merge "Add Secretkeeper HAL" into main 2023-12-06 10:21:03 +00:00
Jason Chiu
a2074a4363 gs101: use android.hardware.boot aidl interface
Bug: 314215524
Change-Id: Ie66c1d5288cfa363ac41d578fd7c03a95eee361e
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:48:41 +00:00
Jason Chiu
b1b74c03c2 gs101: update manifest HAL android.hardware.boot from hidl 1.2 to aidl
Bug: 314215524
Change-Id: Iddc2b2822ece025cb915ad39ab52f18cf0d5889a
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:48:41 +00:00
Qian-Hao Huang
1aad6b6b31 Revert "usb: introduce UsbDataSessionMonitor class"
Revert submission 25524752-usbDataSessionMonitor

Reason for revert: Test for gs101/gs201 boot blocking issue (b/314904288)

Reverted changes: /q/submissionid:25524752-usbDataSessionMonitor

Change-Id: I6070b8bf441cc84e0744e2f0ecf454d4245cb686
2023-12-05 17:13:31 +00:00
David Drysdale
03785012ed Add Secretkeeper HAL
Test: VtsAidlAuthGraphSessionTest
Bug: 306364873
Change-Id: I72d9d9afd57d265bd2a019a02d6aa364deb4acb4
2023-12-05 10:38:01 +00:00
Jason Chiu
845ec9cfb5 gs101: include bootctrl_hidl_1.2.mk from gs-common
Bug: 265063384
Change-Id: I53db48880aa384afba9e1e48fb49f04a8af0e1fb
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
0561656a79 gs101: move bootctrl service declaration to gs-common
Bug: 265063384
Change-Id: I426977fd0a8e0b0e65f74c12c35668cb8c530c31
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
38f6d0fb94 gs101: move bootctrl hal to gs-common
Bug: 265063384
Change-Id: Ie4f850c684a2e871aebad8599f88ebf6f1024beb
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Hiroshi Akiyama
0c4376b098 bcl: adjust heavy clk divider ratios
Bug: 314168856
Test: TBD
Change-Id: I40627648d01161bfbeb873f92ec1a3f22318285a
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Jason Chiu
3f3bfddaff gs101: move common sepolicy related to bootctrl hal to gs-common
Bug: 265063384
Change-Id: I2e7bee9c6be4a6802a759bf52fb412dd73f868bd
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 01:24:03 +08:00
Treehugger Robot
cc9b389190 Merge "Update SELinux error" into main 2023-12-04 03:04:27 +00:00
Daniel Norman
021d2647eb [automerger skipped] Removes duplicate hidraw_device type definition. am: 60940a7ad7 am: c245d0e88d -s ours am: 9b4fe94bf1 -s ours
am skip reason: Merged-In I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f with SHA-1 60940a7ad7 is already in history

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

Change-Id: Ic3a394f5a74163608a4d845aceb7d871e0217546
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:29:26 +00:00
Daniel Norman
9b4fe94bf1 [automerger skipped] Removes duplicate hidraw_device type definition. am: 60940a7ad7 am: c245d0e88d -s ours
am skip reason: Merged-In I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f with SHA-1 60940a7ad7 is already in history

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

Change-Id: Ic8e813b3a6450aa3b3bd075a967e760a398ec1c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:24:42 +00:00
Daniel Norman
7ca6403290 [automerger skipped] Removes duplicate hidraw_device type definition. am: 60940a7ad7 am: 9278e0c263 am: 8498e6db38 -s ours
am skip reason: Merged-In I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f with SHA-1 e948bb326a is already in history

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

Change-Id: Idddce5b8ce8ac127893dfcf018ac81f2b6bdcbf4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 19:23:58 +00:00
Daniel Norman
c245d0e88d Removes duplicate hidraw_device type definition. am: 60940a7ad7
Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2855365

Change-Id: I3c06b0e9bbcf7c10c60eef3b4b4c78d825ba8e8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 18:51:10 +00:00
Daniel Norman
8498e6db38 Removes duplicate hidraw_device type definition. am: 60940a7ad7 am: 9278e0c263
Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2855365

Change-Id: I02aa44c368e2d7df030bfd68bdd60d700bba2c51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 18:48:23 +00:00
Daniel Norman
9278e0c263 Removes duplicate hidraw_device type definition. am: 60940a7ad7
Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2855365

Change-Id: Icf6128476f1f669918bc20d3eecd40c89893443f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-01 18:45:33 +00:00
Roy Luo
67556c182a usb: introduce UsbDataSessionMonitor class
Migrate the usb data session event functions to the class with the
following additional functionalities;
- Support detecting gadget soft pulldown (usually done during configfs
  function switch) and report usb data session correctly.
- Support reporting usb data compliance warnings to the class USB
  by providing getDataComplianceWarnings call.
- Use boot_clock instead of steady_clock to measure time correctly in
  the case of system suspend.

UsbDataSessionMonitor is self-contained and can be migrated to pixel usb
library after feature maturation.

Bug: 297224564
Bug: 296119135
Test: usb data session upload in device and host mode
Change-Id: Iba001933e193935d64cf5fd0a1257d02a4274fb1
(cherry picked from commit ea65ca11f6fbb6f13b89ef9ed03015f47ec1cedb)
2023-12-01 16:43:41 +00:00
Daniel Norman
60940a7ad7 Removes duplicate hidraw_device type definition.
This type is now defined by the platform.

Bug: 303522222
Test: ls -z /dev/hidraw0
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e948bb326a518bd2f7f92410c4f2d0ae6f6d146a)
Merged-In: I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f
Change-Id: I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f
2023-11-30 23:27:49 +00:00
Peter Lin
acf42185fd Update default color temperature for night light
Bug: 302396607
Test: adb shell dumpsys color_display | grep "Color temp"
Change-Id: I7c88ccacbfeda6446788e0e0bf4f7a3f72d85b3a
2023-11-30 07:48:50 +00:00
Wilson Sung
484f609dee Update SELinux error
Test: scanBugreport
Bug: 312894628
Bug: 313804340
Change-Id: I87b384eac0c734444f0d722955b341a4611b7842
2023-11-30 07:14:31 +00:00
Khoa Hong
213b76e9b8 Suppress avc error log on debugfs's usb folder.
The XHCI driver in kernel will write debugging information to DebugFS on
some USB host operations (for example: plugging in a USB headphone). We
are not using those information right now.

Bug: 311088739
Test: No error when plugging a USB headphone in.
Change-Id: If7c511f4466959d819f2672ae8f82a8a8dae83e4
2023-11-30 15:01:37 +08:00
Edgar Arriaga
eae154f7fd Add webview pinning for gs101 devices
Bug: 307594624
Change-Id: I1e4e120840d757a9397ea07b9b3087a1f662cc63
2023-11-27 18:04:49 +00:00
Randall Huang
ec6ba5806d Move sg_device related policy
Bug: 312582937
Test: make selinux_policy
Change-Id: I27a86d47777a6d769b93fc1c40ae27dacf83ab10
Signed-off-by: Randall Huang <huangrandall@google.com>
2023-11-22 14:01:33 +08:00
Bryan Lavrich
a1bff1c2e9 Merge "aoc: add sysfs file entry" into main 2023-11-20 20:22:27 +00:00
Devika Krishnadas
4ed070d0aa Merge "Add Pixel Mapper as a sp-HAL" into main 2023-11-20 18:17:28 +00:00
Jerry Huang
4c082b94ba gs101: add c2.android.av1-dav1d.decoder in media_codecs_performance_c2.xml
c2.android.av1-dav1d.decoder is based on dav1d implementation.
This dav1d-based sw av1 decoder provides better decoding throughput
than the default gav1-based av1 decoder on mid-to-low-tier devices.
c2.android.av1.decoder will be deprecate eventually before that we keep
both decoders.

Bug: 309412792
Test: run cts -m CtsMediaDecoderTestCases -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1.decoder
Change-Id: I0d2d7e8727452d4c6dd64a45c22be5463cf21571
2023-11-16 12:21:59 +00:00
Devika Krishnadas
1f9e3a93e1 Add Pixel Mapper as a sp-HAL
Bug: 267352318

Change-Id: I77b064c3eae2b47677ee83df8483e6f7aba08e6e
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2023-11-16 01:17:05 +00:00
Roy Luo
725438e40e usb: update usb hal version to v3
Bug: 308700954
Test: atest vts_treble_vintf_vendor_test
Change-Id: Ifa30881c9c2ed3a4d0064511a955edec3f7c5fe6
2023-11-14 20:44:30 +00:00
Daniel Norman
c9fcb3e550 Merge "Removes duplicate hidraw_device type definition." into main 2023-11-14 19:05:05 +00:00
Lei Ju
406bfbcee7 Merge "Set up sepolicy for CHRE HAL process" into main 2023-11-14 17:58:30 +00:00
Jack Wu
ad57c8b744 gs101: update AIDL IGoogleBattery manifest version to 3
Bug: 309518527
Test: TH
Change-Id: Idbbc257f52995590713ef3cd2b28c4e3a781328a
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-13 06:57:57 +00:00
Herbert Xue
626fcde723 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: f6b542fe4c am: eb5d18f620
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I3c8b35be62c1b4af12be894f2347bad23266323d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:42:11 +00:00
Herbert Xue
be65dcf77f Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: d5c2b9a3b5 am: cefaf4b342
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Id3b2a4e2aa967b519815800388240e5d8e5b94ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:39:48 +00:00
Herbert Xue
eb5d18f620 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: f6b542fe4c
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I64f34525f3baa94d2a348ed2715f5022f18f8745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:10:12 +00:00
Herbert Xue
cefaf4b342 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: d5c2b9a3b5
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Iba255699c04607f8dad3c7ed1e9a2f897adcf914
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:07:19 +00:00
Herbert Xue
d5c2b9a3b5 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I7326f4159f637a5ea70d6cc4c58ec64ebd6628fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 03:20:37 +00:00
Herbert Xue
f6b542fe4c Remove unused Android.mk under device/google/gs101 am: 5d6726b88e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Id79c8e62b20836185e84b4113de14a7306ac3fd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 03:20:37 +00:00
Daniel Norman
e948bb326a Removes duplicate hidraw_device type definition.
This type is now defined by the platform.

Bug: 303522222
Change-Id: I3e1fc7cb102fa9e9a80b8751eb0da505e3b3d69f
Test: ls -z /dev/hidraw0
2023-11-10 22:53:15 +00:00
Lei Ju
89dd17c9ad Set up sepolicy for CHRE HAL process
Contexthub (CHRE) team is removing the chre daemon and incorporating
its functionalities into the next gen HAL. This CL copied the
permissions we received in whitechapel/vendor/google/chre.te to
hal_contexthub.te to enable the same set of permissions on gs101.

Bug: 247124878
Test: launch the hal process on oriole and verify it can perform
required operations such as loading nanoapps holding wakelocks,
query nanoapps, etc.

Change-Id: I8ce6b4f7f411e50cf454bb5f1286f73d4d46aced
2023-11-10 14:18:05 -08:00
Alex Iacobucci
8966bfa237 aoc: add sysfs file entry
Test: on device
Bug: 309950738
Change-Id: I7e2ceaa61c7870ace37014ad39f3a119f3712569
Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-11-10 18:28:51 +00:00
Herbert Xue
5d6726b88e Remove unused Android.mk under device/google/gs101
The license declaration can't be handled in Android.bp currently.
So keep them in Android.bp.

Bug: 310058310
Test: NA
Change-Id: I3e25fa07f6b3e1bffaf585d69e342c651b50f6ef
2023-11-10 14:48:33 +08:00
Roy Luo
f23c69b257 usb: update incompatible charger warning reason
Report COMPLIANCE_WARNING_INPUT_POWER_LIMITED instead of
COMPLIANCE_WARNING_OTHER to flag incompatible chargers. The underlying
logic that generates the warning remains the same, what's changed is
the enum that's being used.
The purpose of the change is to have a warning type that better
represents what actually happens and free up COMPLIANCE_WARNING_OTHER
that was intended to act as a fallback reason code.
The flag enable_input_power_limited_warning controls whether to switch
to the new enum, while the flag enable_usb_data_compliance_warning
controls the new enums that are added as FlaggedApi in the framework.
Both flags need to be on to enable the change.

Bug: 308700954
Test: manual tests with local flag override
Change-Id: I6595706d1b83d533fc2d3e29086773270e045ede
2023-11-09 22:55:07 +00:00
Mike Wang
a6c7f726b5 Change the MDS to platform app in selinux ap context.
The MDS will be signed with platform key and become a platform app. To
make the selinux rules for modem_diagnostic_app work, need to set it to
platform app in app context.

Bug: 287683516

Test: Tested with both dev key or platform key signed MDS apps and the selinux rules works.
Change-Id: If890f7caaac33e5ddc6c02cc8084654a10cea416
2023-11-09 07:17:07 +00:00
Will McVicker
d7be6ca6d3 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 am: b812cda10e -s ours am: c5a742158e -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: I1f546f53b63b7db94cd7443650688027c61e185b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:59:48 +00:00
Will McVicker
a59784f545 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -s ours am: 59ceb7c081 -s ours am: 7b8fda4678 -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: I254534a8ec4b951fdc7a5aa8d731f84dda03e900
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:55:56 +00:00
Will McVicker
c5a742158e [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 am: b812cda10e -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: Ia2839d3e016de4ee45b4323a790ad42abb48c0d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:12:47 +00:00