Commit graph

538 commits

Author SHA1 Message Date
Treehugger Robot
81b7f5cfc6 Merge "Usb.cpp: Fix typos when unable to disable USB data" into udc-qpr-dev am: 206ecbd71d am: 96d8442f91
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24800352

Change-Id: I33e7c8ed998a03b4b23047347581b26254fa78e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 11:30:59 +00:00
Treehugger Robot
96d8442f91 Merge "Usb.cpp: Fix typos when unable to disable USB data" into udc-qpr-dev am: 206ecbd71d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24800352

Change-Id: Ib8f0fd1959e9708ac1d14aa2bee8dad82eaf433f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 10:34:30 +00:00
Treehugger Robot
206ecbd71d Merge "Usb.cpp: Fix typos when unable to disable USB data" into udc-qpr-dev 2023-09-21 09:55:00 +00:00
Treehugger Robot
4b1cf53758 Merge "get more logcat files with similar disk usage for zumapro" into main 2023-09-21 01:09:39 +00:00
Roy Luo
7d8e108a00 usb: upgrade stats AIDL to v2
Upgrade stats AIDL to v2 following pixelstats lib.

Bug: 297224564
Test: Build
Change-Id: I3ff3a761467651a6550ec0c07419844189216a2e
2023-09-20 23:37:33 +00:00
Daniel Sandler
5df881c8c5 Merge "Fix a crash trying to boot the device in a pseudolocale." into udc-qpr-dev am: 69a102a244 am: 0c9f4cc655
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24811966

Change-Id: I35e8e744d4e9ddaf7fe6983f301f4057b00251fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 22:07:48 +00:00
Daniel Sandler
0c9f4cc655 Merge "Fix a crash trying to boot the device in a pseudolocale." into udc-qpr-dev am: 69a102a244
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24811966

Change-Id: I248527e2ce9ac3809a4c38906afccb365983f711
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 21:11:39 +00:00
Daniel Sandler
69a102a244 Merge "Fix a crash trying to boot the device in a pseudolocale." into udc-qpr-dev 2023-09-20 20:20:30 +00:00
RD Babiera
7fbcdf0237 usb: enable/disable displayport alt mode through enableUsbData
Adds functionality for enabling and disabling DisplayPort Alt Mode
on the port through enableUsbData in the USB HAL to comply with USB
restrictions for heightened security mode.

Test: manual test on device - use enableUsbData dumpsys command to
      turn off DisplayPort and then turn it back on while connected to a
      partner sink.
Bug: 297208252
Change-Id: I9f071bce802b728f2229abc08efb2204e4c2505a
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-20 19:51:03 +00:00
Klines Jiang
b9c8e46e51 [automerger skipped] Merge "[SELinux] Add gyotaku_app doamin to Pixel 2023." into udc-qpr-dev am: e120e9d531 am: 86d6ec6e66 -s ours
am skip reason: Merged-In Ie996586ea19ce1b0b700a0192b613d2769dd0291 with SHA-1 701d590713 is already in history

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

Change-Id: I4dd10d20dc68e8d550591c743b5dba230404b49f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:40:23 +00:00
Klines Jiang
86d6ec6e66 Merge "[SELinux] Add gyotaku_app doamin to Pixel 2023." into udc-qpr-dev am: e120e9d531
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24704159

Change-Id: Ief2deda6e6f5cab62e9789a65c6b1aa56bc9f1bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:30:41 +00:00
Chris Paulo
31a9149a27 Merge "vibrator: Enable I2C paths for DBC" into main 2023-09-20 18:16:24 +00:00
Klines Jiang
e120e9d531 Merge "[SELinux] Add gyotaku_app doamin to Pixel 2023." into udc-qpr-dev 2023-09-20 18:03:04 +00:00
Dan Sandler
f9dae58598 Fix a crash trying to boot the device in a pseudolocale.
Bug: 280361527
Test: Boot in XA
Change-Id: Id0363f28dcc5c6754a3ca42400e6f8b47a347a9b
2023-09-20 17:29:20 +00:00
YiKai Peng
a170ed0e50 dumpstate: Add authstart permission
Bug: 300182745
Test: Build/Flash

Change-Id: I8e365d9eaeb2cb337d8016e221744df658404d3c
Signed-off-by: YiKai Peng <kenpeng@google.com>
2023-09-20 11:51:43 +00:00
Chris Paulo
b0e1d9ca3b vibrator: Enable I2C paths for DBC
Enable the I2C paths for DBC parameters to be accessible by the Vibrator HAL.

Bug: 299115985
Test: Compilation.
Change-Id: Id63c79ed4d37c5aae089e73430233ee7024ea951
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2023-09-19 15:37:27 -07:00
Daeho Jeong
7446467475 get more logcat files with similar disk usage for zumapro
Increase the number of logcat files to 60 and enable file compression to
save disk usage at the same time.

Bug: 295175795
Test: check logcat files
Change-Id: I1adfccd538df515b2f68c488d72c3f09b4e6ee1d
Signed-off-by: Daeho Jeong <daehojeong@google.com>
2023-09-19 14:18:08 -07:00
Wilson Wu
4d92d85daa Merge "Disable variable refresh rate when typing on zumapro" into udc-qpr-dev am: 3336d18ea9 am: 2a810a1a2f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24798411

Change-Id: I94665b83cea00c589983e02d9b7b4579e984ce00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 11:32:12 +00:00
Kuen-Han Tsai
20d7a3bcc3 Usb.cpp: Fix typos when unable to disable USB data
If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display
the message of "Not able to turn off usb connection notification".

Test: refactoring CL. Existing tests still pass.
Bug: 301016122
Change-Id: I4e2a920a67b022496c5332d260ff53cd6400a9f9
2023-09-19 18:57:13 +08:00
Wilson Wu
2a810a1a2f Merge "Disable variable refresh rate when typing on zumapro" into udc-qpr-dev am: 3336d18ea9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24798411

Change-Id: Id30f6c26879fc908ca374beddfc931a402ccf3b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 10:37:02 +00:00
Wilson Wu
3336d18ea9 Merge "Disable variable refresh rate when typing on zumapro" into udc-qpr-dev 2023-09-19 09:22:05 +00:00
Wilson Wu
c3c8104c69 Disable variable refresh rate when typing on zumapro
Turn off config_variableRefreshRateTypingSupported on
zumapro.

Bug: 299966467
Test: presubmit
Change-Id: I02cc8baf8c7ee9d97d51ca6593008e53978dbc59
2023-09-19 06:25:35 +00:00
Midas Chien
082aa51af5 display: enable full range DPU downscale capability
Bug: 264923279
Test: downscale CUJs
Change-Id: Idf2399047a2b6dd7e93860140215e3b8b7295c9d
2023-09-19 02:04:44 +00:00
Treehugger Robot
51096b8699 Merge "tz: Enable userdata partition and nsp chown fix" into main 2023-09-16 08:23:41 +00:00
RD Babiera
fa0f973777 Merge changes from topic "zumapro-dp-userspace" into main
* changes:
  usb: dp: add exynos_drm:dp_enabled toggling
  usb: populate USB aidl hal AltModeData
  Usb: shutdown old displayport poll thread when multiple start up
  Usb: Check for displayport when booting
  Usb: Signal irq_hpd to drm stack
  usb: Fix HAL build warnings related to DisplayPort
  usb: provide usb reference to DisplayPort shutdown thread
  usb: Expose persistent vendor property for USB-C Dp Alt Mode
  Port dp changes to drm sysfs
2023-09-15 21:20:51 +00:00
Quinn Yan
c3a60c38b8 Merge "Add Edgetpu Tachyon service to the device_framework_matrix_product.xml." into main 2023-09-15 19:25:34 +00:00
Treehugger Robot
adac8776b6 Merge "Disable display dimming by default" into main 2023-09-15 01:50:22 +00:00
Donnie Pollitz
c696083030 tz: Enable userdata partition and nsp chown fix
Background:
* ZumaPro+ will be using a dedicated userdata partition

Bug: 300382887
Test: Trusty storage port tests pass
Change-Id: I943a05735858e41ae30f6207fdde7a21eca45351
Signed-off-by: Donnie Pollitz <donpollitz@google.com>
2023-09-14 15:38:09 +02:00
Jack Wu
e5cdef56e4 dumpstate: fix pps-dc logbuffer missing
Bug: 300284266
Test: data is correct in dumpstate
Change-Id: I325ed2acf7e329f599b2792ef2682f7ccc225722
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-14 08:18:14 +00:00
Chris Lu
a1412a2569 Disable display dimming by default
Bug: 286062799
Bug: 286062851
Test: check value of property
Change-Id: I41b7d1d0ccb0c08e23321cd440fbb5148e8857d0
2023-09-14 07:15:00 +00:00
Treehugger Robot
5d09550534 Merge "Cleanup: Remove wait_for_strongbox source code" into main 2023-09-13 06:03:54 +00:00
Treehugger Robot
36f817e9de Merge "Set platform info to zumapro for mali" into main 2023-09-12 23:20:46 +00:00
Ankit Goyal
249d2f9254 Set platform info to zumapro for mali
Bug: 299213317
Change-Id: I72692110b7a13333052409ffc6da090ad205878f
2023-09-12 10:24:20 -07:00
Bethany Barrientos
322393d426 Grant default permissions to PCS for camera connectivity am: ac11a6cebd am: d2e32a192d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24666276

Change-Id: I7d88709a488d0151054b5d553acda4fa6d30e38c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 17:01:54 +00:00
Bethany Barrientos
d2e32a192d Grant default permissions to PCS for camera connectivity am: ac11a6cebd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24666276

Change-Id: Ic8bab3bc1e0bd810e7b6628388dac8ac65007258
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 16:09:37 +00:00
Tommy Chiu
67efd2f690 Cleanup: Remove wait_for_strongbox source code
Bug: None
Test: Build pass
Change-Id: I37edb790ded8122b1cddc0e2f28f55bf041ed11b
2023-09-12 10:25:35 +00:00
RD Babiera
1926e974c3 usb: dp: add exynos_drm:dp_enabled toggling
Test: manual verification on device
Bug: 297286558
Change-Id: If4a6e71bc3ce342af8a0201b4727bdc4666cf8f0
(cherry picked from commit c8abdf6bb7577dd3a6a6e408eb7968c1cf2dd0de)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:22:13 +00:00
RD Babiera
2323e69cf4 usb: populate USB aidl hal AltModeData
Populates AltModeData within PortStatus with DisplayPort
Alt Mode statuses for pin assignment, hpd, link training
status, and port partner capability.

Test: manual test on device
Bug: 297286558
Change-Id: I52a56f7090ed6dbef6211f19d6350cecac58e4fa
(cherry picked from commit c2c37bf3a81e4138bd2c0e82275d363dce2220ec)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:22:05 +00:00
RD Babiera
d14e37d77d Usb: shutdown old displayport poll thread when multiple start up
Better enforces that only one DisplayPort poll thread should be
active at once. If a new call to setup is made from additional
bind uevents before a disconnect occurs, tells the old thread
to shutdown and awaits signaling before a new worker thread spins
up.

Test: manual testing on device
Bug: 286593610
Change-Id: I1707970c500915fd4abb161d0b3a424bbb2bddca
(cherrypicked from commit 78f6294e381ca4df70b28d1d0f07aff77b73574c)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:22:01 +00:00
Badhri Jagan Sridharan
8e5daebb44 Usb: Check for displayport when booting
When booting check whether displayport driver has been probed and
signal hpd events as needed. Pin config and orientation needs to
be queried before signalling hpd.

Test: Manual verification on device
Bug: 297286558
Change-Id: Iddb0921b363e49c41c0f6f635887b4daf4d19561
(cherry picked from commit 574d046bd7c3a2d81f48caf3881a61ad0d283e9a)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:21:57 +00:00
Badhri Jagan Sridharan
9df9887bd1 Usb: Signal irq_hpd to drm stack
Monitor typec stack for irq_hpd events and signal irq_hpd when the
irq_hpd counter value read is not the same as the previously cached
value.

Test: Manual verification on device
Bug: 297286558
Change-Id: Id4a72afcf85550cabbc2f9469bb0ccb92cd02ad2
(cherry picked from commit 412f31194c8b169806a2c0df85ef6bf69cf7af0b)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:21:53 +00:00
RD Babiera
667ff0cf59 usb: Fix HAL build warnings related to DisplayPort
Adds proper error handling go-to points to remove warnings arising
from uninitialized variables, and removes unused
queryDisplayPortStatus() method.

Test: manual test on device, verify compiler warnings
Bug: 297286558
Change-Id: I54f7b710a0805b32c894d741e473d64814200134
(cherry picked from commit 4e29924d3d5ef1e9e13df46bf249f91593c73946)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:21:50 +00:00
RD Babiera
94dac0240c usb: provide usb reference to DisplayPort shutdown thread
Passes usb object reference to thread creation of
mDisplayPortShutdownHelper so that it can properly call DisplayPort
shutdown method instead of calling on NULL reference.

Test: manual test on device
Bug: 297286558
Change-Id: Ie4dabb5e3ae9065f57cc0fbf2593fbe399097472
(cherry picked from commit cc50d9950807280653973a0dd9cd3b22e323bcd5)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:21:43 +00:00
RD Babiera
652ddfaf39 usb: Expose persistent vendor property for USB-C Dp Alt Mode
The change exposes persist.vendor.usb.displayport.enabled
to enable/disable USB-C Dp Alt Mode i.e. DisplayPort over USB-C.

By default persist.vendor.usb.displayport.enabled is to 0 in
user builds and 1 in all other build variants.

Test: manual verification on device
Bug: 297286558
Change-Id: I596d3af52f2a813f5f78c4f9b77b6ae3dd8a161b
(cherry picked from commit 2173dc37da793599239a974d8f7bc40b2bf1ee80)
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-11 21:21:13 +00:00
Bethany Barrientos
ac11a6cebd Grant default permissions to PCS for camera connectivity
- android.permission.POST_NOTIFICATIONS
- android.permission.BLUETOOTH_CONNECT
- android.permission.BLUETOOTH_SCAN

Test: make and install.
Bug: 287069860
Change-Id: Iaeea489af9e1063352e4ed9b0031346040d2919c
2023-09-11 13:51:48 -05:00
qinyiyan
2a3fe13b11 Add Edgetpu Tachyon service to the device_framework_matrix_product.xml.
Bug: 299932913
Change-Id: Iec3d68374fa2d099079eb962e84f50d2750513f5
2023-09-11 10:12:32 -07:00
Klines Jiang
f9144db260 [SELinux] Add gyotaku_app doamin to Pixel 2023.
Bug: 296836878

Test: Local build and tested pass.
Change-Id: Ie996586ea19ce1b0b700a0192b613d2769dd0291
Merged-In: Ie996586ea19ce1b0b700a0192b613d2769dd0291
2023-09-11 09:21:24 +00:00
RD Babiera
fe0c40802e Port dp changes to drm sysfs
Write pin assignment, hpd, and orientation from type-c class to
drmdp platform device attributes using epoll when displayport
driver binds to device, and determine whether or not to shut down
epoll on displayport driver change uevents.

Test: manual testing with form factor device
Bug: 297286558
(cherry picked from commit de0fc9d2201685b5eb4c3905e652911b192a542f)
Change-Id: Iec9fc76166481a4611bb2fc023aea044b497f2c0
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-09-08 22:46:43 +00:00
Florian Mayer
01a8b2ec59 Merge "Do not default to SYNC mode on zumapro" into main 2023-09-08 22:01:24 +00:00
Treehugger Robot
242eece701 Merge "Revert "Disable confirmationui to fix build."" into udc-qpr-dev am: 58fa66637d am: f02841bb68
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24685880

Change-Id: Id378a2fe38ea3274af13ee8c1bea9a2789a21eb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 09:22:02 +00:00