commit | a87e247ca49b25554a89bc0ff987797bfecac7e7 | [log] [tgz] |
---|---|---|
author | tadvana <tadvana@google.com> | Thu Aug 22 15:26:55 2019 -0700 |
committer | Tadvana Canakapalli <tadvana@google.com> | Fri Aug 23 23:54:18 2019 +0000 |
tree | c09e3d7f9212a6df8f766964be32ffcfe01e80e0 | |
parent | f9228792a21a202301880124c21cf4bbce077507 [diff] |
Change the launchMode of the UsbHostManagementActivity to standard The launchMode of the UsbHostManagementActivity is currently set to singleTop. This causes issues when there is more than one USB device connected, and they are not all aoap devices. Each USB device should be processed in its own activity, but since the activity is being launched singleTop, there is only one activity instance, and it just receiving a new Intent for each USB device, instead of starting a brand new activity. Changing the Activity to standard allows a new Activity to start for each device. Bug: 138004874 Test: Flash Hawk in car. Hawk in car has at least one other USB device (USB to Ethernet adapter). Boot Hawk (start car) and run embedded first run setup. Modify the setting in the Embedded Settings App under More->System->Android Auto called "Launch Android Auto on Phone USB Connection" to be enabled. After finishing setup, shutdown the Hawk, and plug in a phone which supports the Android Auto App (and has it installed). Boot the Hawk, and verify that Android Auto projected starts on boot. Change-Id: Ie26a4a130aca5071c2f28e18863c61174d06f8b9
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.