How to debug my Linux application using my Android mobile?

How to debug an Android application on a mobile device, and not in an emulator?

My OS is Linux. When I try to connect to a mobile device for debugging, this does not respond.

+5
source share
3 answers

This question is answered in the documentation for debugging on a mobile device: Using hardware devices .

Directly quoted in their documentation:


  • "" Android.
    Eclipse ( true). AndroidManifest.xml android:debuggable="true" <application>.

  • , .
    > ( Android 4.0 > )..

  • "USB Debugging" .
    > > USB ( Android 4.0 > . > ).

  • .

    • < snip - Windows Mac OS X >
    • Ubuntu Linux, udev, USB , . , ATTR{idVendor}. . USB. Ubuntu Linux:
      • root : /etc/udev/rules.d/51-android.rules.
        , :
        SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"

        HTC. MODE , GROUP , Unix node.
        . . udev . . udev.
      • :
        chmod a+r /etc/udev/rules.d/51-android.rules

, , adb devices SDK platform-tools/. , , "".

Eclipse, . , () (). , .

Android Debug Bridge (ADB), -d .

+7

, .

  • "" > "" ( Android 4.0 "" > "" ).

  • " USB".

  • "" > "" > "" USB- ( Android 4.0 "" > " " ).

  • .

Ubuntu Linux, udev, USB , . , ATTR{idVendor}. , . USB. Ubuntu Linux:

  • root /etc/udev/rules.d/51-android.rules.

  • , :

    SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
    

HTC. MODE , GROUP , Unix node. . . udev . . udev.

:

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

Android 4.2 . , > . , .

-1

All Articles