Jun 13, 2019. Apr 11, 2012. Sep 06, 2018.
![]()
Many aspects of Firefox OS development require installation of ADB, the Android Debug Bridge, and the Fastboot tool. Futura oblique free download mac. This article explains how to do that, and shares some common useful ADB commands.
Installing ADB and fastboot
You can download and install
adb https://metalnew.weebly.com/download-webcam-driver-for-mac.html. Adobe cs4 key generator and patch. and fastboot as part of the Android SDK package, for Mac, Linux or Windows — visit the Get the Android SDK page.
Newer Linux distributions have
adb already in their repositories. For Ubuntu 12.10 and later, run the following command:
On Fedora 22/23/24:
Or on OSX using Homebrew:
If your distribution does not have packages for
adb available (e.g. Ubuntu 12.04 or Fedora 17/18), you'll need to install the Android SDK starter package for your platform (you'll want the ADT Bundle, not the SDK Tools Only option). Then run their package manager, $SDK_HOME/tools/android , and use the GUI to install 'Android SDK Platform-tools'.
Find out where
adb is installed (usually in usr/bin , possibly additionally inside adt/platform-tools , depending on how you installed it). Be sure to add this directory to your PATH . This can be done by adding the line
replacing
$SDK_HOME with the location of the android sdk, to your ~/.bashrc or equivalent.
Troubleshooting
This section contains some troubleshooting tips.
General
In general if you find that your Firefox OS device is not being recognised by
adb devices or WebIDE or whatever, you are advised to try unplugging and replugging the USB cable, turning Debugging via USB off and on again (make sure it was on in the first place), and also trying adb kill-server /adb start-server to restart the adb server if all else fails.
adb still doesn't recognise the device — udev issues
Linux has the extra setup step in that you need to configure the udev rule for your phone before it will be recognised.
Socket Forwarding Component Mac Download Software
Cannot create workspace in visual studio for mac. On top of this, some devices may require extra work. The Flame device has specific issues because it has a modeswitch rule that renders it invisible to adb devices (see the solution.)
General advice for all devices is to check your device's USB vendor ID by running the
lsusb command with your phone plugged in, and search your Linux distribution's udev rules (typically under /lib/udev ) for the id. If it is listed, then you need to make sure the Android udev rules file (look for 51_android.rules in the udev rules directory) is processed last to override the pre-configured rules that might stop the device working. This can be done by renaming said file to a higher number than the other files start with (as the files are run alphabetically), for example 99_android.rules . At this point, restart the system and try again.
64-bit install 'File not found' error
If you're using a 64-bit install, and you get a 'File not found' error when running 'adb' even though the file is present, you'll need to install 32-bit compatibility libraries. To do this with apt:
If your device cannot be found when running 'adb devices', click here to follow steps to fix it.
Common ADB commands
The following sections explain some common, useful
adb commands.
Restarting the b2g process
b2g is the equivalent of a XULRunner application running on the phone atop an Android-based kernel. Sometimes you may want to restart it; this is a way to reset the application environment without rebooting the entire device. You can do this by entering the following on your terminal while your device is connected to your computer (or while running the debugger): Eyetv 3 download mac free.
Enabling port forwarding for debugging
To simply enable port forwarding (for example if you are using the App Manager to debug apps on a Firefox OS device), enter the following command into your terminal:
You'll need to do this every time the phone is restarted or unplugged then re-plugged. You can change the socket number if required. Service manual pdf free download for a 2010 hyundai santa fe.
Forwarding ports to a local machine
To forward ports to a local machine, you will need to download the netcat and ssh binaries, and run the following commands:
Socket Forwarding Component Mac Download Version
This will forward port 9999 on the device to the host's port 8000.
Alternatively you can use an ssh server (dropbear and host_key) directly on the device, using the following commands:
Further resources:
Socket Forwarding Component Mac Download Windows 10
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |