Commit graph

11223 commits

Author SHA1 Message Date
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
Will McVicker
7b8fda4678 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -s ours am: 59ceb7c081 -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: I5bbe3a94b51939ec0d8050ef32292ec1fb8020ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:10:12 +00:00
Will McVicker
b812cda10e fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2819677

Change-Id: I9bfa1496b06b72c51b5b07e8d1ede70d43b43e30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:41:10 +00:00
Will McVicker
59ceb7c081 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -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: Ibae31049dc107670bbc5d13bfac967ebf19c8e55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:38:25 +00:00
Devika Krishnadas
0a894f5d0d Revert^2 "Use graphics allocator 2"
900e7f1a45

Bug: 287353739
Test: VtsHalGraphicsMapperV4_0TargetTest

Change-Id: Iec05757e26a5d16a3315188cd29821377d21b9d8
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2023-11-08 23:21:06 +00:00
Will McVicker
df9ca7c4e1 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. This allows a
few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
Merged-In: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-08 19:22:45 +00:00
Will McVicker
4bec6c0bf4 fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915 am: 4fa15052cf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ib1293b9afe7a948d840e3377bf574c3f7e05979e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:58:24 +00:00
Will McVicker
4fa15052cf fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ia3c31a8e2894d75a9408e5a7afb1e71060f59cef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:14:30 +00:00
Will McVicker
662e1bc915 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. This allows a
few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-07 10:15:11 -08:00
Treehugger Robot
f237b33c72 Merge "sensors: Move USF related sepolicy to gs-common." into main 2023-11-07 06:49:08 +00:00
Rick Chen
04e4ac1717 sensors: Move USF related sepolicy to gs-common.
Bug: 305120274
Test: Compile pass. Flash the build to WHI devices and no sensor
      related avc denied log.
Change-Id: I56174a24d159968c01d1572e84f4bcdd7930a709
Signed-off-by: Rick Chen <rickctchen@google.com>
2023-11-07 10:50:48 +08:00
Wilson Sung
c11845e69e Update SELinux error
Test: scanBugreport
Bug: 309379598
Change-Id: I9c334cdb5e98c71a70f079fb984e57c154ab6a99
2023-11-06 08:01:12 +00:00
Jeff Chang
533c98a59c Update default allow list for VRR small dirty detection
The feature will be enabled by the feature flag

Bug: 308742727
Test: Build
Change-Id: I4acb218f88eb2da95c7b184297650947d2164adb
2023-11-02 10:48:19 +00:00
JimiChen
ea198bd127 Update SELinux policies for rlsservice
1. Move rls_service context from vndservice_contexts to
   service_contexts.
2. Allow binder calls from rlsservice to servicemanager
3. Change rls_service type from vndservice_manager_type to
   service_manager_type.

Bug: 301520085
Test: GCA
Change-Id: I7badfe2ddb73b13884b54d2c8972e1921af6ea38
2023-11-01 18:20:45 +08:00
Jasmine Cha
c2f9f91066 audio: remove prescale for BT absolute volume
Bug: 302553525
Test: build pass

Change-Id: Ic6001a99d297ac030158ddea76d0f19907e98049
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-11-01 06:02:04 +00:00