Android :: Debug And Use JDB On Android Device ADP1
Sep 26, 2009For others who might choose to do debugging on CLI , here's how.
View 2 RepliesFor others who might choose to do debugging on CLI , here's how.
View 2 RepliesDoes anyone know how to get the debugger to launch on an ADP1?. It was recently flashed to 1.5. Dev platform is Eclipse on Windows XP with the SDK 1.5 USB driver installed (HTC Dream Composite Interface). Windows can see the device and adb can see the device with "adb devices" command. USB Debugging has been enabled on the device and the application manifest has android:debuggable="true" set in it. The LogCat windows is showing log output from the ADP1 too.
But when Selecting Run->Debug or Run->Run the avd is always launched. The instructions say that it should launch to the device or give a choice if the avd is running too.
Do anyone know what needs to be done to get the debugger to launch against the real device instead of the avd?
I've been developing on the simulator, but now I have a real device.
adb can see the device (from adb devices), and I've installed Eclipse/ ADB.
I can't work out how to get debug to use the device instead of the simulator though.
I'm new to Android development, and am attempting to run a test application on my actual device. I followed the instructions at http://developer.android.com/guide/developing/device.html (and related links), but the Android Debug Bridge (adb) doesn't recognize my connected device.
Some quick background info, I'm running WinXP, developing with Eclipse, with a Motorola Droid running Android 2.1 as my physical device.
An overview of the steps I've taken: Installed the Android SDK, downloading all necessary packages. Enabled USB Debugging on my device. Connected Device via USB, installing the driver from the SDK folder.
I'll stop here (though I continued to setup my application to be debug-able in Eclipse), because I at this point I noticed a problem.
Running "sdkoolsadb devices" at this point (at least, by my understanding), should list my device as connected. However, running this yields only: List of devices attached
My device recognizes that it's connected to a computer in debug mode, and my computer recognizes the device. However, I can't seem to get the sdk to recognize it. I'll leave out the steps I used to setup Eclipse for debugging on a device, as it doesn't seem relevant to the problem. I'll include them if requested.
I have a HTC Desire which i would like to debug and run my Android application on. But when i in Eclipse gets the Window where i can choose between devices my HTC Desire is listed with only questionmarks (???).
I have tried this:
Enabled USB Debugging on my device and enabled debugging in my application Manifest.xml file.
In Terminal i have do this:
1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules.
2. SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
3. sudo service udev restart
I developer a android app. Today I get the HTC hero for testing. I installed the driver and can start the app on the device. The problem is that I need a network connection. I am connect via usb to my desktop computer. Can the device that is on usb connect use my i-net connection to send a request?
View 2 Replies View RelatedI have set up a "Debug Configuration" to debug my Android project. However to get it to debug on a device (HTC Desire) I have to set the Configuration's "Target" to "Manual", there seems to be no way to set in the Debug Configuration that it should go to a selected Device.
It does work, but each debug session I have to "Manually" choose the HTC device from the dialog. Can I set it to always to go the Device?
I'm trying to develop an android application that uses network connection. The server is up and running, but when i am trying to access it from the device that runs the android app (in debug mode-using eclipse) it outputs a message that 'cannot find the server' after a UnknownHostException occurs! I have tested the server with a java application and it works fine! What is the problem then with the device?
View 1 Replies View RelatedWhen I'm using the device and click on my debug the application is lunched in my device but I cant see the break points .
In the debug window the application whom run is shown for a second and then disappear and I cant debug my application on the device .
Did I miss something ? can someone please explain me what I did wrong and correct me
I need test my Android app on a Motorola Cliq but don't have one. Is there a testing service that will let me make a debug connection to that device so I can run some tests and find out where the code is failing. Video connections won't tell me that.
View 2 Replies View RelatedI uploaded my application to Market and then downloaded it to my phone. Now I'm unable to use debug keystore which is used by default by Eclipse ADT Plugin (Re-installation failed due to different application signatures) and when I'm trying to setup own keystore in Eclipse->Windows->Android->Build->CustomDebugKeystore, I'm unable to enter password or accept keystore and type password later. Is there anything I can do or only way do debug app on device is to uninstall market version and deal with default debug keystore?
View 3 Replies View RelatedWhat kind of permission/Flag do I have to add to the manifest to debug my application on an actual Android device?
View 1 Replies View RelatedI have tried with zero success to get a USB debug connection from a WinXP dev box to a brand X Android 1.6 tablet. I believe I had everything configured correctly on the Android and installed correctly on the dev box, but when the two are connected with a USB cable NOTHING HAPPENS; i.e. Windows finds no new hardware much less a new USB device; therefore, I cannot then install the Android SDK USB drivers on Windows and do the debug thing with Eclipse.
Either the mfg of the Android tablet device has disabled USB debugging and just didn't remove the UI that appears to enable it -- or I've left out some crucial step(s). (The device manual is 100% Chinese and I'm 0% Chinese, so it's no help. The tablet is very nearly, but not, the model A84 7" touch screen 'laptop' at 'www.lezestar.com' in case this helps.)
On the tablet:
- 'Settings/Application/Development/USB Debugging' is enabled.
- Tried 'Settings/Application/Development/Allow mock locations' enabled and not.
- Has 500MB internal flash 'hard disk'
- Has installed 2G SD card
- Firmware: 1.6
- Kernel: 2.6.29-002360g4f8dbbb-dirty
- Build No: 1.7.3
On Dev box:
- Windows XP SP3
- Device Manager finds no 'new hardware' when XP<-->Android USB cable is connected.
- Neither USBDeview.exe (Nirsoft) nor USBView.exe (Microsoft) find any evidence of connection with the Android
- Eclipse Galileo (3.5.2) with Android SDK (for 1.6) and ADV Manager.
- USB Driver package, rev 3. downloaded using ADV Manager.
Other:
- USB ports on both Tablet and dev box successfully connect a USB mouse.
- Tablet and Windows XP have been rebooted often.
Is permanently disabling debugging something that Android manufacturors are allowed to do and therefore I'm trying something that can't be done?
If the mfg has 'disabled' debugging, is there a way to work around this; e.g. download a tool that can change Android OS configuration to reenable it?
I have a brand new Nexus One. I'm trying to follow the directions for installing the USB driver. When I plug in the device, it doesn't start the New Hardware Wizard, as the documentation suggests. I can run hdwwiz.exe to launch it and manually install the driver, but when I do, Device Manager says: "This device cannot start. (Code 10)"
View 4 Replies View RelatedI have a completely broken screen/lcd/digitizer on my Samsung Galaxy S3, debug mode was not on. The phone works as it will still vibrate when turned on and the LED / Menu / Back buttons light up during a boot. USB connector works as well. The phone was not previously rooted.
I had most important data on the sd card and I've already wrote off any other data on the phone as I've since moved on to a GN2. I would like to make use of the S3 (not necessarily as a phone but a server, security camera, etc.). I've read several posts here about my options and looked at numerous google articles, all seem to require debug mode being on or assume/require the data/OS must remain as this is what the user is trying to recover. I do not care if all data is lost on the phone, I just want to make the device useful again.
Am I out of luck if debug mode was not enabled or can I flash through adb via some obscure mechanism? Also note that fastboot is not an option here as the S3 (samsung) does not have it enabled. I am unable to get into "Download Mode" as I cannot see info on the screen.
my friend has got himself Android Developer Phone 1. But he is not developer, he just wants to use it as a normal phone and he doesn't want any hassle with firmware updating (and he's not interested in root access etc.). If I flash the official U.S. G1 firmware into his phone, will he then receive normal OTA firmware upgrades, or will his phone still report as ADP1 and will he have to update manually?
View 1 Replies View RelatedI've upgraded my ADP1 to cupcake through the official roms: http://www.htc.com/ www/ support /android/adp.html#s3 However, the official roms equiped ONLY English locale now. Will the official ADP1 roms equip other locales (e.g., Chinese) in the future?
View 2 Replies View RelatedMaybe it has been announced already and I missed it, but just in case: => http://developer.htc.com/adp.html !
View 3 Replies View RelatedIs it possible to configure the ADP1 to keep the last 5mb(for example) of log messages especially when it's not connected to a development machine?
View 2 Replies View RelatedI was searching the internet but could not find a site comparing the two. I'm interested in developing for the android platform. G1 seems to be just the same as ADP1, but is there any small changes that will be noticeable in development?How about 3rd party software? What T-Mobile software exists in G1 which is not part of the ADP1 bundle and vice versa?Can I swap the original ADP1 firmware with T-Mobile branded one? As I understand people can already hack the G1 to run ADP1's non-branded firmware.
View 4 Replies View RelatedI flashed my adp1 to firmware 1.1 following the instruction from HTC. http://www.htc.com/www/support/android/adp.html But after that, I want to modify the /init.rc, after I remount the rootfs as writable, I can edit or replace the /init.rc file. But the file will roll back the original version after reboot the phone. Before I modify the /init.rc, I install the busybox to the phone, then I use 'cp" command to replace the /init.rc Any one can give me some advice?
View 4 Replies View RelatedI bought an ADP1 from Brightstar Corp in November 2008 and everything was great until about a month ago when the camera window shattered in my pocket. I've called Brightstar who told me to call HTC, I did and they only sold the T-Mobile G1 backplates. My Android Market homepage only allows me to buy the ADP1. Does anyone have any ideas on how to get this replacement part without buying a new phone?
View 3 Replies View RelatedI am trying to iterate through all the photo images (produced by ADP1 camera), held on external SD storage in an ADP1. I want to extract the binary data for each image file, determine image size in bytes and send the image data (possibly after compression) over a network conection.
My code is generating an exception when I try to generate a Bitmap based on Photos taken by the ADP1 Camera, stored physically on External SD Card Storage. It looks like the image size is exhausting VM for my application.
I attempt to extract a Bitmap via android.provider.MediaStore.Images.Media.getBitmap() static member function. Code...
I have just updated my ADP1 to the latest 1.6 version. During installation everything went ok. But every time when my phone boots i receive Force Close error regarding Google Partner Setup (process com.google.android.partnersetup).
View 8 Replies View RelatedWhat is the best way to debug ANR. ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything that points to something I can start tracking down.
View 5 Replies View RelatedI have mostly been avoiding debugging when I can because of these two problems, so hopefully someone here has suggestions to avoid them:
1. It seems that I have to build the SDK (`make sdk`) and copy it off to a directory for Eclipse to use almost every time I want to debug. I haven't followed through the "sdk" directive, so I'm not clear on why this is necessary instead of just having Eclipse read from the source in my directory. Isn't there some way for it to do this? FYI: I have a (modified) full checkout of Donut, not just the SDK.
2. How can I debug without using Eclipse? I would really like to be able to use something like gdb/jdb.
My app is crashing, How do I debug it? I'm using a HTC Magic and eclips. I looked in the documentation, but it doesn't say how to go about doing it.
View 3 Replies View RelatedHow to debug application using gdb .
View 2 Replies View RelatedI'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command.
There's a million blog hits on this topic but none of them seem to be clear as to how you launch your app. They all say to just type "gdbserver 10.0.2.2:1234 ./MyProgram" but what exactly is "MyProgram". Is that MyProgram.apk? Is it MyProgram.so? Is it some other file that gets created when the app is installed? If so, what's its path?
I've tried to debug the android applications on emulator and than on the device as well but all the time I get the message "Wait for debugger - waiting for the debugger to attach to the process". I really don't know how to set the environment and the application in order to run the debug.
View 2 Replies View Related