OSDN Git Service

Assume virtual devices always have USB connection.
authorJeff Sharkey <jsharkey@android.com>
Tue, 27 Jun 2017 01:57:16 +0000 (19:57 -0600)
committerJeff Sharkey <jsharkey@android.com>
Tue, 27 Jun 2017 01:57:19 +0000 (19:57 -0600)
commit9d64095841333fa44998035d6b43283900fb4c00
tree74e3599673bf20c118cb5ac165c23b5db667fa13
parentf23a5e104bae3274c43fc2ceb62562200ac722ae
Assume virtual devices always have USB connection.

We use the presence of an active USB data connection to suppress
the RescueParty logic.  For example, all physical devices in a test
lab return "true" here to avoid interfering with test results.

Since virtual devices are pretty much only used in test labs, return
true for them too.

Bug: 37347800
Test: builds, boots
Change-Id: Ie79ce57ce67fb78234c1001a593918253a85254d
services/core/java/com/android/server/RescueParty.java