Obsolete
Status Update
Comments
ja...@gmail.com <ja...@gmail.com> #2
Thank you for reporting this issue. We have shared this with our engineering team and will update this issue with more information as it becomes available.
en...@google.com <en...@google.com>
dj...@gmail.com <dj...@gmail.com> #3
@2 This bug occurs even if the check is inside onActivityResult, yet I've tested it on Android 7.1.2 and below, and it doesn't occur there.
I've also noticed that the check works fine if I change the orientation after returning from the settings screen (meaning the activity was re-created)
I've also noticed that the check works fine if I change the orientation after returning from the settings screen (meaning the activity was re-created)
sa...@google.com <sa...@google.com> #4
For resolving "draw-on-top feature cannot be toggled", you need to add "android.permission.SYSTEM_ALERT_WINDOW" permission in Android Manifest file.
sa...@google.com <sa...@google.com> #5
@4 Then the bug is different for this case: why open this screen, if this permission isn't even available for this app... It should do something else. Maybe throw an exception that tells that the permission is missing from the manifest.
Also, the main isssue does exist: the check of the permission always returns false in the case I've shown.
Also, the main isssue does exist: the check of the permission always returns false in the case I've shown.
sa...@google.com <sa...@google.com>
ba...@google.com <ba...@google.com> #6
@4 Bug exists on DP3 too (OPP3.170518.006)
Description
1. Get into a car a passenger.
2. Open your laptop and plug in your phone.
3. Watch logcat
4. Ask the driver to make their way to the freeway using a route that take more than 5 minutes.
Roughly, after about 5 minutes the phone will disconnect from adb. Unplugging the phone and plugging it back in, the phone will reconnect but disconnect. Maybe it's an illusion but it seems the faster the car is driving, the quicker it will disconnect.
I've tested this with an HTC One M7 and a OnePlus One. If the OnePlus is not involved, the HTC always seems to be able to reconnected. However, once the OnePlus can't connect enough times, nothing can connect, not even the HTC One. The OnePlus seems to "poison the well" as it were.
I've tried several different usb cables and ports on my computer. I have not tried this with other computers or other phones. I'll be on a road trip this summer and can debugging more with a third phone.
If there are any tools that I can use or commands I can run to help debug this issue, please advise and I'll use them the next time I'm debugging my app in the car.
Lastly, sometimes my OnePlus disconnects while on my desk but it's far less frequent and usually only after a long period of not being used.