Archive for the ‘Uncategorized’ Category

How to setup ADB on Linux

Posted: 16 Φεβρουαρίου 2022 in Uncategorized

  • Download the Android SDK platform tool on your pc. Download link in the below section. (Link to download section)
  • Extract the file you can accessible easily For example (Desktop)
  • Open terminal on your LINUX
  • In the terminal, go to the folder where you just extracted ADB. enter the following command cd /path/to/extracted/folder/
  • For example cd /Users/Doug/Desktop/platform-tools/
  • Connect your smartphone to your computer with a USB cable. On your smartphone change the usb mode to “file transfer (MTP) mode. 
  • Next, Go to the command prompt and enter the following command to start adb daemon.
  • adb devices
  • On your smartphone popup the  “Allow USB debugging” option. Allow to connect your device to MAC OS
  •  After re-enter command: adb devices
  • If everything went right, the serial number of your Android device will appear at the MAC OS terminal.

Successfully! Now You are able to run any ADB command on your android device!

If you use any type of Linux software based on Debian, Fedora or SUSE on your computer, you should know that there is an even easier way to install the ADB drivers on your computer.

For Debian-based systems, just open a Terminal instance and run the command “sudo apt-get install adb” – without the quotes – and enter the root password. For its part, to carry out the process in Fedora or SUSE the command will be “sudo yum install android-tools”.

As you can see, setting up ADB drivers is not a complicated process if you follow the steps mentioned. In some cases, you can also use tools that perform this process automatically, such as Universal ADB drivers. Whichever method you choose, it is always advisable to have ADB drivers ready when it comes time to perform any kind of advanced operation on an Android device.

Examples of ADB Commands

When you use the ADB commands, you obviously have to make sure that the device you want to interact with is actually connected to your computer. Enter adb devices command on your terminal/command prompt.

We have listed some of the most useful adb commands. Let it check out.

  • Shows the list of devices connected and recognized by the PC : adb devices
  • Restarts the connected device : adb reboot
  • Reboots the device in Recovery Mode : adb reboot recovery
  • Reboots the device in Download Mode : adb reboot download
  • Reboots the device into Bootloader : adb reboot bootloader
  • Reboot the device in Fastboot Mode : adb reboot fastboot

Chirp Connection Issues using Ubuntu

Posted: 1 Νοεμβρίου 2018 in Uncategorized

These are not Chirp issues; they are operating system (Linux, Ubuntu) issues. If these notes do not help, get Ubuntu help either through a search or using the Ubuntu support sites.

Symptom with a USB connection

  1. Click Radio then Download from Radio at the top menu bar; a window appears with Port, Vendor and Model
  2. Click Port and from the pull-down list pick the USB option. Usually that is at the bottom of the list with a name like /dev/tty/USB0
  3. An error window appears with words like An error has occured.
  4. Below the error words is something like Permission denied

Symptom with a serial (RS232) connection

  1. Click Radio then Download from Radio at the top menu bar; a window appears with Port, Vendor and Model
  2. Click Port and from the pull-down list pick the serial port (TTY) with a name like /dev/ttyS0. You may have to experiment to find which port number is active. Another common connection is /dev/ttyS4.
  3. An error window appears with words like An error has occured.
  4. Below the error words is something like Permission denied

Solution

The most common cause is that the user(s) do not have permission to use the serial-USB connection. Permission must be established for the user. There is much more on this common issue in Linux or Ubuntu wikis and support websites.

  1. Start a terminal session.
  2. Enter this this command into the terminal session: sudo gpasswd --add ${USER} dialout

 

or on Debian based systems is usually solved by adding the user to the group dialout
e.g.: sudo adduser USER dialout

 

 

  1. Logout and login again on any sessions you want to see the new group.
  2. After executing the command, check that it worked with: groups ${USER}
  3. The user name will be followed by a list that includes dialout. Dialout means permission for the TTY set that includes serial and USB connections.

site

Posted: 3 Μαρτίου 2018 in Uncategorized

http://www.github.com