How to develop Android applications using the Samsumg Galaxy 5 device?

I am developing my first Android application. I have an application already running on the emulator (Eclipse + Android dev. Tools) on Ubuntu 10.04 LTS - Lucid Lynx - released in April 2010. I have already tried the steps specified in the Android Developer Portal Portal at this link, but whenever I try to list my already connected device using devices. / adb, I get the following:

mmaia@mmaia-desktop:~/tools/android-sdk-linux_86/tools$ ./adb devices
List of devices attached 
????????????    no permissions

I checked, and when I run the virtual emulator, it returns the same command:

List of devices attached 
????????????    no permissions
emulator-5554   device

Also, when I ask eclipse to start the emulator, it finds the device (galaxy 5), see the image below, but cannot find the serial number, possibly due to some kind of resolution, than I can only choose a virtual emulator.

alt text

How to configure permission to use Galaxy 5 as a device when developing for Android for Ubuntu 10.04?

[] S

+3
source share
7 answers

A few ideas:

Make sure that you have created not only udev rules, but also made

chmod a + r / etc / udev / rules.d / 51-android.rules

Use dmesg shortly after connecting your phone to make sure it lists beautifully as a USB device.

See if you can open the adb shell

? , , , , usb.

+3

Android SDK. 'sudo./adb kill-server'. adb "sudo./adb start-server". .

+5

, , , . ?

, , , , , . , .

+1

Ubuntu , . adb, :

mmaia@mmaia-desktop:~/tools/android-sdk-linux_86/tools$ ./adb devices
List of devices attached 
????????????    device

, ? , , :

[2010-10-07 21:32:56 - AnototudoAndroid] ------------------------------
[2010-10-07 21:32:56 - AnototudoAndroid] Android Launch!
[2010-10-07 21:32:56 - AnototudoAndroid] adb is running normally.
[2010-10-07 21:32:56 - AnototudoAndroid] Performing br.com.anototudo.MenuPrincipalActivity activity launch
[2010-10-07 21:32:56 - AnototudoAndroid] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2010-10-07 21:33:02 - AnototudoAndroid] WARNING: Unknown device API version!
[2010-10-07 21:33:02 - AnototudoAndroid] Uploading AnototudoAndroid.apk onto device '????????????'
[2010-10-07 21:33:02 - AnototudoAndroid] Failed to upload AnototudoAndroid.apk on device '????????????'
[2010-10-07 21:33:02 - AnototudoAndroid] java.io.IOException: device (????????????) request rejected: device not found
[2010-10-07 21:33:02 - AnototudoAndroid] Launch canceled!

[] S

+1

kill-server sudo./adb-, eclipse adk. , .

0

'

lsusb

USB-, , .

002 004: ID 04e8: 681c Samsung Electronics Co., Ltd

USB ,

sudo gedit/etc/udev/rules.d/51-android.rules

,

SUBSYSTEMS == "usb", ATTRS {idVendor} == "04e8", ATTRS {idProduct} == "681c", MODE = "0600"

vendor idProduct 04e8: 681c, lsusb.

adb, .

Killing Server adb kill-server sudo./adb kill-server

adb start-server sudo./adb start-server

.

0

5, :

  • plataform-tooles folde

    $ cd /yourSdkDirectoryInstallation/android-sdk-linux/platform-tools/
    
  • root adb:

    # ./adb kill-server && ./adb start-server 
    


       $ sudo ./adb kill-server && sudo ./adb start-server

0

Source: https://habr.com/ru/post/1768522/


All Articles