GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
354 stars 20 forks source link

Car USB port for granted file transfer access, asks to download app #2177

Open Panther7170 opened 1 year ago

Panther7170 commented 1 year ago

Device: Pixel 6

Build Number: TQ2A.230505.002.2023050100

Issue: With deny new USB peripherals enabled, plugging my phone into the car charging port causes the phone to ask to install the entune app. In addition the car is granted file transfer access, despite denying access to all new usb accessories, and this access cannot be denied. IMG_20230505_184409~2

thestinger commented 1 year ago

Deny new USB peripherals enabled disables accepting any peripherals, not using the phone as a peripheral itself. The default is to accept new USB peripherals while unlocked. You need to clarify whether you've changed that.

Using the phone as a peripheral itself has separate controls. It is in charge-only mode by default unless you modified developer options. You'll need to reset and turn off developer options.

Panther7170 commented 1 year ago
  1. I have changed from the default to deny new usb.
  2. My developer options where set to defaults, I havent changed them after disabling unlocking. I have double checked my developer options and it is set to the default of no data transfer, I re-disabled dev options after checking. The car charging connection is forced to file transfer, and attempting to set it to anything else including no data transfer instantly resets it to file transfer.
thestinger commented 1 year ago

Still expect this is caused by non-default settings changed with developer options or ADB.

Panther7170 commented 1 year ago

Since the issue cannot be reproduced without a car using Entune, I will close this issue as not planned.

thestinger commented 1 year ago

It can still be open if you really think it's an issue but we can't easily confirm.

k2l3g1 commented 1 year ago

I'm experiencing essentially the same issue on Pixel 6a (Build number: TQ3A.230805.001.2023090600) with a Toyota. Although the phone is set to "disallow new USB peripherals", the car is automatically automatically assigned "file transfer" access, and this cannot be changed to "no data transfer". Caught my attention because the car popped up a screen reminding me that the phone's time is not in sync with the car's. The developer options are default as far as I'm aware.