I'm trying to debug a thrid party app like shown here Android Reverse Engineering: Debugging Smali in Smalidea . The problem is that the Android Device Monitor / DDMS is not showing any threads and the "Update threads" button is disabled.
Does anyone has an idea why that is the case?
I tried different physical devices and emulators (I'm using Win10) and even used the new profiler from Android Studio (also just showing "no processes to debug"). USB debugging is enabled and I can access all devices via adb from command line.
The solution is: The emulator (or the physical device) seems to needed to be rooted. Therefore only emulators images named "Google API" and not having a "Google Play Symbol" in the "Play Store Support column" are debugable.
Related
this the screenshot of my Android Studio, I'm trying to learn flutter but I'm having issues while setting my physical device to it, android studio says loading device for hours and nothing happens, and even I'm failing to initialize ABD
As you can see on the top side of your screenshot, the android studio doesn't recognize your physical android device. Make sure that your phone is connected properly and USB debugging is turned on. also you can install ADB directly if it was not included in the Android SDK.
I am unable to attach VS2017 to my unity android app. Here's my setup.
I have adb connected via wifi.
C:\Users\Diamonds\AppData\Local\Android\sdk\platform-tools>adb devices
List of devices attached
192.168.86.20:5555 device
Unity successfully sends the build to the android phone, and logs show up when the app runs on phone:
I've got the app just running on the phone. Inside VS2017 the phone shows up correctly. When I select it, VS2017 spins for 20 seconds then does nothing. No error in VS2017 or in Unity.
Oddly I do not have the phone connected via USB. I do not know why it shows up there.
I think you can try USB instead of WIFI.
According to Microsoft's documentation
Wifi is versatile but super slow compared to USB because of latency. We saw a lack of proper multicast support for some routers or devices (Nexus series are well known for this).
using USB is a better option.
ref:
https://learn.microsoft.com/zh-cn/visualstudio/cross-platform/troubleshooting-and-known-issues-visual-studio-tools-for-unity?view=vs-2017
Eclipse is not detecting my phone. It's a Samsung Galaxy S2 HD LTE, Android version 4.0.4. Working in Windows 7. I have enabled USB debugging and updated the driver for it, but when I go into Eclipse Run --> Run Configurations --> Target it is not listed.
Not sure if this is relevant but I heard in another thread that the build target for your project has to be <= to the version of your device. If this is the case, all the options here are higher and there doesn't seem to be a way to add another so I'm not sure what to do. Also checked the manifest file to see what the min SDK is. It's 8 (which corresponds to android version 2.2) so that is fine.
I'm wondering if it has to do with "Android" being listed under Other Devices in the Device Manager (as per image below). I'm not even sure what this is. The phone itself says it's already updated, but when I try to update Android it can't find the driver software.
Another issue could be that when I connect the phone to my PC, it lists it as a camera instead of a mobile device, and displays the message "Connected as a camera" on the phone itself. The first time I connected, it also showed some error message about how device was not installed properly, but I haven't seen this message again and so not sure what to do about that, or that stupid Autoplay window that pops up every time I connect.
If you have any ideas please let me know!
Check if your Android Composite ADB Interface is correctly installed.
You can refer OEM USB Drivers and Debugging on real device for more details.
After a) growing tired of the slowness of the emulator and b) nearing the end of the development of my first android app, I decided to connect my old and forgotten Toshiba Folio 100 android 2.2 tablet to my Windows 7 development PC, in order to deploy my android app. The PC and tablet 'see' each other, that is, the PC sees the tablet as a disk drive. In the android settings I switched on the developer mode. I read through the many advice threads of this site concerning deploying the app to a real device. To start with, in windows explorer, computer, right click, manage, does not result in recognition of the tablet, except for Toshiba storage USB device.
In Eclipse I went to Run configurations, target tab,tried all the different radio buttons settings, to no avail. The devices view, same story. Eclipse does not see the tablet. I also tried some old Archos 48 mini tablet, again nothing.
What can I do?
Thanks in advance.
do you see it as an android device? open a command prompt and type "adb devices" make sure your tablet is listed there, otherwise you need to find some adb drivers for it, you may want to try the generic adb usb driver.
If you're seeing the device in explorer listed as a disk drive it probably means you have the wrong USB mode on the device. It's called different things on different devices, but on many devices it's referred to as "Charge Only" mode (or not mass storage mode). Also make sure USB debugging is enabled on the device.
Basically, i have purchased HTC Hero (Android sdk 1.5) , but i just got the notification of "System software update" and i agreed to update the sdk to 2.1-update1 .
I was developing application for android sdk 1.5 successfully, but now i have created a Hello world application for the Android sdk 2.1 and then when i am trying to run it on my updated phone, at that time below screen is showing up:
where you can see ?????? in serial number and Taget is shown as "unknown".
On console window, it is showing up an error: "Automatic Target Mode: Unable to detect device compatibility."
(1st question): What i need to do to run the application(sdk 2.1) which i am developing ? pls let me know
And ya, when i am trying to connect phone using USB cable, it is showing an alert dialog regarding "Choose a connection type:" showing below options:
Charge only
HTC Sync
Disk drive
Internet Sharing
(2dn question): so which mode should i select for the development of application and running it on phone.
Maybe your udev rules have to be modified. Read this guide to fix them. I don't know why a SDK upgrade should have modified this, but I think this might be your problem.