summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-06-02 16:56:06 -0700
committerThe Android Automerger <android-build@google.com>2015-06-03 13:13:07 -0700
commitdc6d513803c8c67b6004b218129bff2c66b4c262 (patch)
tree6f729f920bdda002f56b1f1134b9151b40544a26 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5a011f3764d062703b8a5f18bae9c6dbad2830c3 (diff)
UsbDeviceManager: Don't unnecessarily touch properties
Before setting the properties persist.sys.usb.config or sys.usb.config, check the existing values. If the values are the same as what we'd set it to, don't perform the set. Any USB property set, even if setting the property to the value it already has, triggers one of the "on property" triggers in system/core/rootdir/init.usb.rc . The script then reconfigures the driver unnecessarily, which causes instability and dropped connections when trying to use ADB. Avoid this instability by not performing property sets which would have no effect. Bug: 21404762 Bug: 18905620 Change-Id: Id3c2543308df994a0114a0661e20ca799c2dc0e8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions