Skip to content
Commit 3eadf0db authored by Alex Johnston's avatar Alex Johnston
Browse files

DISALLOW_USB_FILE_TRANSFER update user restrictions

Background
* On an org-owned device with a managed profile,
  the admin can apply some user restrictions on the
  personal profile (incl DISALLOW_USB_FILE_TRANSFER)
* When the admin applied DISALLOW_USB_FILE_TRANSFER,
  the device should stop the existing 'File transfer'
  mode USB connnection.

Change
* The broadcast recevier in UsbService should pick
  up receive broadcast intents for all users.

Manual testing
* Set up device in COPE mode
* Turn on USB 'File transfer' via Settings
* Open internal storage on computer connected via USB
  and browse some files on the device
* Apply DISALLOW_USB_FILE_TRANSFER
* Verify device no longer shows up in internal storage

Bug: 175757373
Test: manual testing
      atest UsbBackendTest
Change-Id: I8d47e728a26ba99dc3b5223d0d7d29085484f8f0
parent 6309cca5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment