Bug 56448 - [VS][15.2] Android inspection working for Real devices too
Summary: [VS][15.2] Android inspection working for Real devices too
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Inspector Integration ()
Version: 4.6.0 (15.3)
Hardware: PC Mac OS
: High major
Target Milestone: 15.3
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2017-05-15 12:47 UTC by Prasad Raghorte
Modified: 2017-09-08 16:44 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: No
Last known good build:


Attachments
Logs (12.79 KB, application/zip)
2017-05-15 12:47 UTC, Prasad Raghorte
Details
IDE logs (2.21 KB, application/x-zip-compressed)
2017-06-23 07:52 UTC, Neha Kharbade
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Prasad Raghorte 2017-05-15 12:47:15 UTC
Created attachment 22167 [details]
Logs

## As per test case https://testrail.xamarin.com/index.php?/tests/view/13471222 user should not be able to Inspect the application when deployed to real device.But, with below build info I am able to inspect it.

## Steps to reproduce : 

1. Create a Android SingleView project.
2. Set configuration as debug.
3. Enable fast deployment method by Project properties -> Android options -> Use Fast Deployment (debug mode only )
4. Run in debug mode
5. Click on Inspect button

## Expected : Inspect button should not be shown for Real devices.

## Actual : The inspect button should be disabled 

##  Build info :

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01590
Installed Version: Enterprise
Xamarin 4.5.0.455 (3c254b0)
Xamarin.Android 7.3.0.13 (448f54f)
Xamarin.iOS 10.10.0.30 (30b6e87)
Xamarin Workbook : Verison 1.2.2(d15.1-b71b035)

## complete build info :  https://gist.github.com/alok-kulkarni/3685797c253b8fdee4c61f2c8c9fa83e

## Screencast :  https://www.screencast.com/t/doto04dagoZv 

## logs attached :
Comment 1 Bojan Rajkovic [MSFT] 2017-05-15 13:20:51 UTC
https://github.com/xamarin/XamarinVS/blob/96ef55b619117083c46344b35992c38ccb88d391/src/Features/VisualStudio.Inspector/Vsix/VSAgentExecutionTarget.cs#L175

I'm guessing it's really hard to get an `AndroidDevice` instance that corresponds to the execution target in VS?
Comment 2 Sandy Armstrong [MSFT] 2017-05-15 13:44:52 UTC
Known issue on VS. Confirming.
Comment 4 Neha Kharbade 2017-06-23 07:52:17 UTC
Hi ,

Verified on d 15.3 build & it's fixed , Android inspection didn't started for physical devices. 

Shown error for same. 

Screen cast link: https://www.screencast.com/t/bcCbOY11V

build info : https://gist.github.com/nehaKh/137422250d120c83c390a3c3df20853f

Please find attached IDE logs.
Comment 5 Neha Kharbade 2017-06-23 07:52:58 UTC
Created attachment 23071 [details]
IDE logs