LG V30 won't show up in connected devices in NativeScript SideKick - android

When connected via USB, my LG V30 won't show up in NativeScript SideKick's Devices panel, nor will running tns devices list the phone.
I have installed the universal USB drivers for LG devices from: http://www.lg.com/us/support/software-firmware-drivers
and I am able to successfully view the files on the phone via Windows Explorer and also via LG Bridge.
I am able to successfully run the project on an emulator via tns run android --emulator
tns doctor reports a clean bill of health and my project will build successfully. What else can I do to get SideKick to recognize my device via USB?

Well, the first item to try is adb devices from your computer. I assume it isn't showing here and this is why it isn't working anywhere as this is the communication channel for development.
Now to make this work this is typically because you do not have USB debugging turned on. Which is in Developer Options.
If you already have Developer Options in your settings, then you can skip the next step.
To enable Developer Options you go to your Settings, then About or About Phone/Device, then Software information. Once there you tap the Build Number seven times. This will then create a new menu option typically in your Settings called Developer Options
To enable USB Debugging, go to your Settings then click Developer Options then find "USB debugging" and turn it on. At that point you might need to unplug and replug in your device and then adb devices` should show it.

In my case, with LG V30 changing USB type to 'MIDI' solved issue - it was after that visible in adb as an authorized device and I was able to build my app.

Related

Cordova: Samsung S3 not recognized via USB on Mac

I have a basic Hello World Cordova application working on an Android emulator (Nexus 4) on my Mac. I wanted to try deploying to a Samsung Galaxy S3 that I have (model SCH-R530M) but when I try running adb devices and empty list is returned.
I have already tried unplugging the device, killing adb using adb kill-server, running adb using adb start-server, and then plugging the device back in and it is still not being recognized.
The only other problem I can find is that my USB cable might be a "charge only" cable, but I don't know how I would go about determining if it is.
Does anyone have a potential fix for this issue?
Is it in developer mode?
Does it allow USB debugging?
https://developer.android.com/tools/device.html
These are the instructions for your device:
https://muffinresearch.co.uk/samsung-galaxy-s3-where-are-the-developer-options/
Go to Settings → More → About Device
Scroll down to Build Number
Tap it repeatedly (It'll show a message telling you how many more times you need to tap it to enable developer mode).
See the Developer options menu under Settings → More
Then make sure 'usb debugging' is selected in the developer options.
I would try a different USB cables too. I had to try a couple before it would register the device.
Kies can also sometimes kickstart it.
http://www.samsung.com/uk/support/usefulsoftware/KIES/

LG G2 vs980 not recognized by ADB devices command (Win7 on virtualbox)

I have been developing android mobile apps via eclipse in school for some time now, deploying the apps to virtual devices. However, I now want to deploy them to my LG G2 android device for testing and speed purposes. I know there are posts about other devices not working, but the solutions are to no avail for me.
I am on virtualbox running windows 7. I have the necessary vb extensions installed and vb DOES detect my LG G2 (asks to view folders..etc), however eclipse/adb on my vb cannot find it still.
I have put what I thought is the proper device vendor id (1004, 0232) in the adb_usb.ini file since some others found that to help get their device detected.
I have done the commands adb kill-server & start-server many times. I have restarted the phone and vb also. I have also tried all of the phones connection types (internet/ethernet, MTP)
Some help would be awesome,
Thanks fellas
When you plug the phone in, you are given options for the "USB connection method".
You must select Internet connection or Send Images (PTP) from the list in order to use USB Debugging tools.
For selecting Internet Connection, the other options sometimes include Charge phone, Media sync, and Camera.
For selecting Send Images (PTP), the other options sometimes include Charge Phone and Media Device (MTP).
Here are may be several solutions:
1) When your device connected open Device manager(default windows tool) and found Unknown device or some not properly recognized device and try to setup driver manually.
2) Enable USB debugging option in phone settings:
go to Setting->About Phone and tap several times on Build Number,
then go back (Settings->Developer -> Options) and turn it on
3) Try to update your USB driver/adb via Android Manager launched from Eclipse.
When I upgraded my LG g2 from Android 4.4 to 5.0.2, usb debugging stopped working.
I didnt have an "Internet" option for USB connection method.
Through lots of trial, error, searching, experimenting, the I found that enabling "USB tethering" (in Settings -> Tethering & Networks -> USB Tethering) did the trick. Once I enabled USB tethering, I could download debugging programs via adb/AndroidStudio. Before USB tethering enabled, adb could not recognize my 5.0.2 device.
How to Setup ADB on Windows
Download the Android SDK package for Windows [android-sdk_r21.1-windows.zip]
Extract the zip files to your C:\ drive. Now you have a folder android-sdk-linux
Double click on SDK Manager to initiate the SDK manager. You shall perceive the following window.
Make sure everything is un-ticked. Now select Android SDK Platform-tools and install it.
During the next window, you will be prompted. Accept the license and click on Install.
When the installation is complete, close the window.
The SDK manager has now download the platform-tools successfully, which certainly includes our prior ADB.
The next step is to define the path where ADB is present.
Go to C:\android-sdk-windows\platform-tools and take note of this path.
Go to desktop, right click on Computer and select Properties.
On the left pane, click on Advanced System Settings and a new window shall open.
Select Environment Variables under Advanced tab.
Select Path variable and click edit.
Now add the path we noted in step #9 to the variable value and hit OK.
Confirm and apply all the changes.
To confirm that ADB has been configured properly, open CMD window and type in:
adb
You now have ADB successfully installed and configured on your Windows machine

Flash Pro, debugging trough usb with Motorola Moto g

That's about it, I'm trying to get the debug to USB option on Flash CS5 with my new Moto g but I can't find the way to get it. I've allowed USB debugging on the phone. I´ve Motorola Device Manager installed (with the drivers) but if I uncheck the multimedia on the usb options of the phone Windows asks for drivers, there's no charge only option on my phone.
In the Android SDK I'am not able to launch the SDK Manager in order to download Android tools. I've used the CMD on the platform-tools folder and written adb/devices. I get a long list of options so I think it recognises the phone (on multimedia) but still doesn't appears on Flash.
Any clue how I could get this working? Thanks
I also got Motorola G recently. Make sure that USB debug is enabled, and that you have Developer options in Settings. You have to tap about 5 times on device firmware version in the About phone section to enable Developers options.
As mentione in the above post, make sure USB debug is enabled and if the command prompt adb devices command shows "Unauthorized" , make sure you have OKed the dialog that pops up on the phone saying :"Your computer RSA fingerprint ... Are you sure you want to enable debug".
Once you grant you will see your device as connected.

How to connect the device to Eclipse?

I am not able to resolve this simple issue.
I am trying to connect my device to Eclipse via USB cable.
On my PC, I have installed Eclipse and the Android SDK and running the program on the emulator is working fine.
I have downloaded and installed Samsung Kies on my PC. It shows my device if connected via USB to the PC.
But I dont know how to connect the device with the emulator.
Connect means, I want to run the Eclipse code on my device instead of emulator. I am using Samsung Galaxy Ace GT-S5830i. Please help me out to resolve this issue.
Comment is lack of formatting so i add an answer.
Check if your computer had your phone driver. I assume that your use Windows. Open Device Manager
At a command prompt, in the Start Search box, or in the Run box, type the following command: mmc devmgmt.msc
. Other ways : check link
If you find your phone name or ADB Interface so you got driver. Try to restart DDMS or restart your Eclipse.
If you don't find your device or see something Other device with yellow question mark so try to install driver by browsing on your phone to Settings - Developer Options - Enable developer option - Enable USB debugging - Plug your phone to computer. Windows will ask you to install driver.
3, Update Google USB driver in Android SDK Manager (in Eclipse) or search Samsung Galaxy Ace GT-S5830i driver
4.Some weird case i got on some device.
Nexus S: disable Developer option. Restart phone. Enable again. Windows ask to install driver or you will see it in Eclipse.
HTC phone or Samsung : change Connectivity Option on phone to Charge only (Swipe status bar. Check notifications displayed). Some phone set it to some kind of Sync data so Windows can not recognize device.
I think your emulator is in Automatic. You can change that to Manual.
Try this,
Step 1
Go to Run Configuration
You can see three Columns Android,Target and Common.
Step2
Select the Target
Step 3
Choose Always prompt to pick device.Click Ok
Step 4
Now run your project you should see the emulator and your device. Select your device and click ok.
Hope it helps.
Source.
Troubleshooting
This all sounds very straightforward, but there are countless quirks and hard-to-diagnose problems that can make connecting a device much more difficult than it sounds. In this section, we'll run through a checklist of things to try when your device isn't registering.
Check that USB Debugging is enabled. This setting can inadvertently (and perhaps even automatically) change when you plug/unplug your device from your machine, or when you reboot your phone.
Check your device while it's connected to your machine. Is it asking you to choose between different modes? Some phones have a 'charge only' mode that can prevent Eclipse from recognizing the device.
Choose a connection type
Make sure you don't have an Android Virtual Device running in the background.
Could there be a problem with the USB cable? If you have a spare cable to hand, plug it in to rule out a fault with the cable itself.
Double-check you're running the correct driver. Even if you are, some devices have all the required software pre-installed (for example, HTC Sync) and downloading drivers from another location can muddy the waters. If this might be the case with your device, try uninstalling the driver from your machine and reinstalling the software from your device's memory.
Does the driver require supporting software? Samsung Kies on Windows requires .Net Framework 3.5 SP1 or above, for example. This is usually installed along with the driver, but there's no guarantee.
Running the Android Debug Monitor tool (monitor.bat) has been known to kickstart Eclipse into recognizing a new device. Connect your device, locate monitor.bat (android-sdks/tools/monitor.bat) and double-click to open. This will open the Android Debug Monitor, a stand-alone debugging tool that lists connected devices.
Android Debug Monitor
A running adb.exe process can interfere with the connection. Close Eclipse, and open the Task Manager by pressing CTRL, Shift and Esc. Find the adb.exe process and kill it. Launch Eclipse and try again.
Check that your 'Project Build Target' is compatible with the Android version on your device. You can check what version of Android your device is running by opening 'Settings' and selecting 'About Phone,' followed by the 'Software information' option if available. If you need a reminder of your project's build target, ensure the project is selected in Eclipse's 'Package Explorer,' open the 'Project' menu and select 'Properties.' If the 'Android' tab isn't selected by default, open it and the Build Target will be displayed.
Have you enabled USB debugging in your device?? You can find it in your device
Settings -> Developer Options -> USB Debugging.
The android app you have created will be a .apk file, generated by eclipse, during a successful Run. Find the .apk file from the eclipse project explorer or by tracing your workspace. Copy the .apk file to your memory card (via USB or a card reader) and install it.
You should also enable the "Unknown Sources" option under "Security" of your Android device.
If you have required options enabled on your phone (USB Debugging and Unknown Sources) you can try do this. On your computer open command console. Using cd navigate to your android sdk installation folder. Go to platform-tools. You should have there adb file. Run this
./adb kill-server
and then
./adb start-server
Then check plugged devices
./adb devices
First, you are not connecting device with emulator. What you want is eclipse to identify your device and use it for development.
Everything about using devices for android development is given in official documentation.
You have to put the phone in 'debug' mode - I don't have the instructions handy (but you can search here or on the android site for the info you need).
Also check for THIS.
Try right clicking the project -->Run As --> Run Configurations then select target and choose always prompt
On your device turn on debug mode
Now try running project
I am assuming you don't mean connecting the device with the emulator but connecting the device to your computer so you can debug it and run applications directly from Eclipse to the device. In which case KIES by Samsung will not help you at all. What you need is the Android USB Drivers provided in the Extras tab in SDK. Sometimes the installation will bug up because you didn't run SDK manager as an administrator so make sure you do that. When all of this is done make sure your device is unconnected to your computer and then reconnect it after the drivers are installed. You should be prompted with a new device installation wizard which you must accept. Additionally, you should have debugging enabled on your device, and as an extra step you can setup launching as a manual configuration but it is not needed.
To enable device debugging
Settings -> Developer Options -> USB Debugging.
For more information visit here
BTW : If the Google USB Drivers don't work you might need to install the specific Samsung drivers which are located here
Goto -> Setting -> Application -> Development -> USB Debugging
Enable it and try.
I know this is a little old, but I was having the same issue. I tried all the options of setting usb debugging (off), disconnecting, restarting phone, usb debugging (on), connecting the phone and it just wouldn't connect.
I ended up installing the latest version of Kies on my machine and added the Unified option at the end of the installer and I then the phone would connect. (Not sure i needed the unified option) but it worked for me.
I tried all the above but it didn't helped me. I did couple of things additionally
Since my mobile device is Android, I unchecked Unified option from Kies installer. This is the crucial thing that helped me solve my problem
I restarted my mobile phone.

Device not detected in Eclipse when connected with USB cable

I want to run my Android project on a device.
My device is not detected in Eclipse when I connect it with a USB cable.
I restarted Eclipse and I have checked that USB debugging is on, on the device.
Can anybody tell me what the problem is and how to resolve it?
Before starting, Make sure that USB DEBUGGING IS ENABLED in your phone settings !!!
1) BASIC STEP - Plug in device via USB, then go to device page in Android developers blog. There you can find necessary information regarding adding USB vendor ids. Add your device specific ids, and restart eclipse if needed.
2)If you were able to see the device connected(using command: 'adb devices'
) earlier, but not anymore, then just try restarting ADB. (you can use the commands: 'adb kill-server' followed by 'adb start-server'. adb commands need to be executed from platform tools folder in the Android SDK, if you havent exported it).
3)If neither of them works out and you are on windows machine,
then check the installed usb drivers are correct. If not install proper drivers
Please find more information on how to install/update drivers in http://developer.android.com/tools/extras/oem-usb.html
If this also is not working, try installing Universal ADB windows driver https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH
4)You may also try increasing the timeout time
Go to preferences-> android->DDMS in eclipse, then try increasing 'ADB connection timeout(ms)' value
Update based on newer answers:
5)Run > Run Configurations > Target. Please make sure, the option "Always prompt to pick device" is enabled.
Special case: Windows 8 and Nexus 10 (from this question: ADB No Devices Found)
Windows 8 wouldn't recognize my Nexus 10 device. Fixed by Setting the
transfer mode to Camera (PTP) through the settings dialogue on the
device.
Settings > Storage > Menu > USB Computer connection to "Camera (PTP)"
I solve this problem by updating PC portable device drivers:
Go to : Settings -> Applications -> Development to enable USB debugging
Plug in device USB
Desktop "My Computer" right click -> "Manager"
Choose "Device Manager"
Portable Device
right click on your device -> "Update Driver software" -> Search automatically (wait about 3-5min, )
Done
Restarting the adb server, Eclipse, and device did the trick for me.
C:\Android\android-sdk\platform-tools>adb kill-server
C:\Android\android-sdk\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
I had the same problem as mentioned on this question.
I had similar problem, drivers was okey, but Eclipse did show me the device in Run > Run Configurations > Target tab. But I checked the option "Always prompt to pick device". And then running the application from Eclipse the prompt window finally showed my device.
After a long and frustrating search, finally I made my Micromax Funbook p362 to connect with eclipse and made it to suit for development.
*Installed Moborobo (All in one Android smart phone management tool).
*Perform stop -server / start -server using ADB.
*Reboot the device.
*Restart the eclipse.
*Device got detected.(Eclipse - list of adb devices)
In addition to the steps provided by #asfsafgsf (above), make sure to re-enable your phone's developer modes/functions. For my Motorola Atrix:
settings>applications>Unknown Sources: allow 3rd party apps
settings>applications>Development: to enable USB debugging, mock locations, and disable phone sleep
A note on developer modes
USB Debugging is the main mode you will need for running apps through eclipse when your phone is connected via usb (obviously). Disable phone sleep is also handy for self-explanatory reasons.
Allowing 3rd party app sources allows you to beta test your app on a larger-scale. With this, you can host your own apk and instruct your beta-testers to download it (prior to releasing it to the Google Play storefront). More specifically, 3rd party support allows the installation of android package files that don't contain a google approved signature (required for play store hosting). With 3rd party apps enabled, a handset will be able to run packages regardless of their source. You should also be able to receive an APK via bluetooth and install it in this mode.
You can also list all currently connected devices by running the following command:
adb devices
Go to http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver and follow the steps on the android website but on browsing for the USB folder don't use the directory specified -> ((sdk)\extras\google\usb_driver). (sdk) just means your sdk location.
Your phone should have the correct driver and it can be accessed when you plug it in and go to the CD Driver in My Computer, in my case it's G:\drivers\adb_driver. Use this directory instead and it should work. (It may be differ with devices).
One possible reason is to check Android SDK Manager and install Google USB Driver in Extras folder if you have not installed it.
Following the steps here: http://developer.android.com/sdk/oem-usb.html#InstallingDriver allowed Eclipse to display the device.
Do following steps to detect your device in eclipse : -
On Mobile Side:- For Connect USB sync, your Android device needs to have USB Debugging enabled.
To enable Android USB Debugging Mode do following steps :-
Android 2.x - 3.x devices:
Go to Settings > Application > Development > USB Debugging.
Android 4.x devices:
Go to Settings > Developer Options > USB Debugging.
For devices running Android 4.2.2 or later, you may need to unlock Developer Options before it is available within the Menu:
Go to Android home screen.
Pull down the notification bar.
Tap "Settings"
Tap "About Device"
Tap on the "Build Number" button about 7 times.
Developer Mode should now be unlocked and available in Settings >
More > Developer Options or in Settings > Developer Options
On PC side
Connect your device to the PC with USB cable.
Download Google USB Driver
Extract/Unzip “latest_usb_driver_windows.zip” file on your computer
(using 7-zip free software, preferably)
Open device manager on your PC
Windows 7 & 8 users → search for
Device Manager from Start (or Start screen) and click to open.
Windows XP users → Google it
You will see list of all devices attached to your computer in the
device manager. Just find your device (it’ll most probably
be in the Other devices list with a yellow exclamation mark by the
name of ADB devices), then Right-click on it and select Update
Driver Software.
Select “Browse my computer for driver software” in the next window
Now click the “Browse…” button and select the “usb_driver” folder
that we extracted in Step 3 from “latest_usb_driver_windows.zip”
file.
Do NOT select the zip file, select the folder where the
contents of the zip file are extracted. And keep the Include
subfolders box checked
During the installation (as a security check) Windows may ask your
permission to install the drivers, click “Install”
Once the installation is complete you’ll see a refreshed list of
devices on the Device manager screen showing your phone’s driver
installed successfully.
Now in eclipse do following steps to install your app in your device:-
Go to Run > Run Configurations > Target tab.
Check option "Always prompt to pick device". And then running the
application from Eclipse,the prompt window finally showed
your device.
Please check whether your device is shown in the Eclipse device tab in Window > Open Perspective. If its not shown there then you need to install drivers for the the device. Once the device is visible in the Devices tab then change the launch settings for manual target. Once you launch your app then it will allow you to choose from the real device or the virtual devices
If you have the following problem
Then you can so following to fix it
Note : You should enable USB debugging on your android device(It will be in developer option in System settings)
I had this problem. With my galaxy S2. So came here for advice, but couldn't find anything specific. Then I found this 'Kies' software on the Samsung site, under the section for my exact model of phone, under downloads, after clicking software.
It installed the right USB drivers as part of the process of installing Kies and so my phone instantly then became visible on eclipse.
The Kies version for Galaxy S2 (GT I1900) = http://www.samsung.com/uk/support/model/GT-I9100LKAXEU-downloads#
There are other versions of Kies for other android models of course.
(new) device not showing, Check List:
Developer Option ON
USB debugging ON
Try changing to USB Storage/MTP/PTP
if it installs Window driver and fails, there's your problem (verify in Windows Device Manager) fix it.
ok this is an old thread -
but I spent nearly two days and did not get anywhere
Here is what solved my problem
I had USB debugging enabled ( finding developer options itself was a pain - I think the 7 times tap from google is childish and just plain stupid - rant over )
However HTC syn manager , eclipse ADT and windows computer management were all unable to identify my device
My problem was my phone was set to ONLY USB Charge - this was the problem
In 'USB Computer connection' >> Choose the option USB Storage
Once you do this - PC will install drivers and your device will get detected by Eclipse as well as in 'Computer Management' under ''Android USB devices '
Now I still dont know a way to access ''USB Computer connection' but at that time I did get the option to change and t worked
For those ( like me earlier ) who dont know how to identify if 'Computer Management' shows their device look for 'Android USB devices '
If its present - then your device is being detected by your PC
Hope this helps some others
shankar
On a kitkat Google Nexus 7, I tired everything here, and did not succeed. The device did previously connect properly to this computer.
Then I hit settings - developer-options - Revoke USB debugging authorisations
and confirmed that I really did want to revoke them.
I unplugged and plugged the USB. The tablet beeped and asked if wanted to authorise the computer for debugging. I said "Yes" and everything worked again.
For me the problem is with Defective USB Cable. I have tried those above all answers. Nothing gives me any fix. But finally i came to know the problem is because of my usb cable while changing the usb cable. While connecting through the usb cable the phone is charging but the drivers are not installed. Some usb cable don't have the option for that. So while buying check it and buy.
Best approach is install PDA net(software) on both system as well as in android device. This software automatically installs global driver for all phones, provides easy connectivity to android device.
Follow these links to download
For system
http://pdanet.co/
For android device
https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Here is my checklist in windows (not the device itself) when my device is not shown:
Make sure "USB debugging is turned in setting>Developer options.
Check status bar on your device. It tells you if your phone is connected as Media Device (MTP) or Send images (PTP). My device is only listed when PTP is selected.
Turn of windows firewall.
Turn of any proxy programs ran on whole windows ports.
And finally stop adb.exe from windows task manager and wait some seconds to restart automatically.

Categories

Resources