Problem Description:Os X (Yosemite), ADB (1.0.32), Android Studio (1.0.1), Phantom Blue Note phone (M1 note,android 4.4.4,flyme OS 4.2.0 3U).When you connect your phone to your MAC via a USB cable, the ADB devices does not discover the device.Workaround:
Find the Vender ID of the phone with the following two ways
In terminal enter System_profier Spu
Delphi sometimes cannot connect to debug some phones, solutions:1. Install Google USB Driver2. Check the phone or tablet USB vid,pid via Device Manager3. Modify the Android_winusb.inf on your computer to add the vid,pid found in the 2nd step to the INF.For example:; Samsung Galaxy S3%singleadbinterface% = usb_install, usb\vid_04e8pid_6860%compositeadbinterface% = USB_Install, Usb\vid_04e8pid_6860mi_03For de
Delphi sometimes cannot connect to debug some phones, solutions:1. Install Google USB Driver2. Check the phone or tablet USB vid,pid via Device Manager3. Modify the Android_winusb.inf on your computer to add the vid,pid found in the 2nd step to the INF.For example:; Samsung Galaxy S3%singleadbinterface% = usb_install, usb\vid_04e8pid_6860%compositeadbinterface% = USB_Install, Usb\vid_04e8pid_6860mi_03For de
Debug mobile phone and watch devices simultaneously using Bluetooth in Android Wear Development
During the development of Android Wear applications, you must simultaneously operate watches and mobile phones. You can simultaneously operate mobile phones and watches through Bluetooth.
1. Enable debugging settings for watches and mobile phones
Enable usb debugging on the mobile
ObjectiveWhen developing an Android app, it's usually connected to the device and computer via a USB cable, but for some applications that need to use a USB device, this approach is troublesome, and the USB port of the phone is connected to the external USB device and no longer connected to the data cable. This can be done through the network TCP/IP method. That is, ADB connects devices over the network without the need for a USB cable.Specific method
How to install the Debug app on Android phone via WiFi 1. The first thing to do is to turn on your phone's USB debugging options and connect your phone via a USB cable.2. Then execute "adb tcpip 5555" to switch adb from USB mode to TCPIP mode. The correct echo message is: "Restarting in TCP mode port:5555". 5555 can be any port number that is not occupied.3. Re-e
Logcat output information is constantly scrolling (there are two ways)1. Set FilterIn the Logcat there is a "+" number, add a filter can (directly fill in the filter name, others are empty, beginners temporarily think so);2, in the windows-preference-android-logcat-"automatically enable ..." Here to remove the front of the hook, and then LogCat back to the background of the similar download button (actually paused), However, this method will run for some time, and it should be renewed.How to sus
Weinre (WEb INspector remote) is a page debugging tool that is used primarily for remote debugging. Weinre is useful for debugging a page on a mobile device.We need some steps to get weinre running, first we need to install node.js,weinre will run on node. JS, Next we will installNode Package Manager (NPM), and finally, we'll install weinre.The first step:The simplest way to get node. js is to download Windows Installer. Because the Windows Installer has automatically downloaded NPM.Step Two:Ins
While doing iOS development students, using MacOS will find in the Android development environment intact, access to moto,samsung,htc,zte and other mobile phones can be automatically recognized, and can be seen in the Ddms Logcat, but Huawei's mobile phone is not recognized. USB development Debugging is also set, under Windows can be recognized, for what? Don't worry, there are engineering patterns:In the dial-up interface input: *#*#2846579#*#* found
1 in your Red Meter 2 mobile phone Click "Settings" open to find "all settings" and then we click on the Open Interface "about the phone", into the mobile phone after the continuous click 4 times "Android version" open into details as shown in the following figure.
2) Return to "settings" to find "developer Options" to open "USB debugging." (pictured bel
This article transferred from: http://www.miui.com/thread-1476049-1-1.htmlFirst step: Add adb pathFirst make sure your ADB path already exists in path, if not available [email protected]:~ > Vim. Bash_profile your adb's add to path, pay attention to my/developer/ android-sdk-macosx/platform-tools/is mine, you need to change your own.Export path=${path}:/developer/android-sdk-macosx/platform-tools/Step two: Write Vendor IDNext, write the vendor ID to ~/.android/adb_usb.ini (if the file doesn't ex
no environment variable is set, debug_lever = 0 14 // Debug_init = 1 after the debugging level is set 15 Debug_init = 1 ; 16 Return Debug_level; 17 }
Int debugthis (INT level ); Int Debugthis ( Int Level) {// Determine whether the system needs to debug this module// Method: Use the level of this module and the debug_variable set by the system. If ( ! (Level Getdebuglevel ())) {Return0;} Return 1 ;}
# Define debug
'program. First, modify 'helloandroid. Java', as shown in the following code. We added the log information to be output in the code.
Code: HelloAndroid. javaJava code
Package com. yarin. Android. HelloAndroid;
Import android. app. Activity;
Import android. OS. Bundle;
Import android. util. Log;
Public class HelloAndroid extends Activity
{
Private static final String TAG = 'helloandroid ';
Public void onCreate (Bundle savedInstanceState)
{
Super. onCreate (savedInstanceState
Enter *#* #2846579 #*#* Click Project menu to click Background1. Set Logcat2, Dump & Log ", turn on the switch" Open dump & Log "3, Restart the machine, logcat display the output of the log"original" Android Development using Huawei Mobile phone
Original translated content:
The host develops a Web site on the computer network server and then accesses the content from the Android device.
Using a USB cable and chrome DevTools, you can run the website from the development machine and then
1. Introduction of toolsUsing toolsAndroid killer: For anti-compilation apk package, get Smali codeAndroid Studio: Debugging the Smali Code tool, or using Idea,android Studio is modified based on ideaSmalidea-0.03.zip:as plug-ins that need to be installed in Android Studio,Simulator or a real machine: Run the program you want to debugSample: Using an APK program on the network,2. Pre-Preparation2.1 Mobile phone or simulator installation applicationADB
Device management tool: Debug bridge ADB details, debug bridge adb details1. IntroductionADB, short for Android Debug Bridge, is a debugging tool that comes with the Android SDK. It can be used to directly manage Android devices or simulators.Features we mainly use:1) run the shell command of the device.2) Manage the port ing of the simulator or device ??????????
operation, such as Millet is the power key + volume minus, Samsung is the volume minus +home key + Power key, the specific equipment can be self-search online. To the FastBoot interface to run the FastBoot again, you can:FastBoot Flash Boot boot-new.imgThen restart the device by running FastBoot reboot. Some students in the operation, always into the fastboot failure, resulting in fastboot command run error, this really can't solve that will change a phone
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.