Android linux tools zip

Find the latest version of sdk-tools-linux-*.zip

I use Travis to run my JUnit tests on Android via the emulator. This works very well so far. However, how can I determine what the latest version of sdk-tools-linux-*.zip is? Currently, I am using version 4333796. Are there any dependencies between the SDK tools version and the Android SDK version or the build tools version?

- name: Tests on Android jdk: openjdk8 env: - ANDROID_TOOLS=4333796 - ANDROID_SDK_VERSION=29 - ANDROID_BUILD_TOOLS_VERSION=29.0.3 - ANDROID_HOME=$HOME/android-sdk - PATH=$:$/emulator:$/tools:$/tools/bin:$/platform-tools:$ before_install: - sudo apt-get install -y --no-install-recommends bridge-utils libpulse0 libvirt-bin qemu-kvm virtinst ubuntu-vm-builder > /dev/null - sudo apt-get install -y libxtst6 libnss3-dev libnspr4 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgdk-pixbuf2.0-0 > /dev/null - sudo adduser $USER libvirt - sudo adduser $USER kvm - wget -q "https://dl.google.com/android/repository/sdk-tools-linux-$.zip" -O android-sdk-tools.zip - unzip -q android-sdk-tools.zip -d $ - rm android-sdk-tools.zip - wget -q "https://raw.githubusercontent.com/mmcc007/test_emulators/master/script/android-wait-for-emulator.sh" -O android-wait-for-emulator - chmod +x android-wait-for-emulator gradlew - touch $HOME/.android/repositories.cfg - yes | sdkmanager --licenses > /dev/null install: - sdkmanager "platform-tools" > /dev/null - sdkmanager "tools" > /dev/null - sdkmanager "build-tools;$" > /dev/null - sdkmanager "platforms;android-$" > /dev/null - sdkmanager "extras;android;m2repository" > /dev/null - sdkmanager "system-images;android-$;default;x86" > /dev/null - sdkmanager "emulator" > /dev/null - echo no | avdmanager create avd --force -n test -k "system-images;android-$;default;x86" before_script: - sudo -E sudo -u $USER -E bash -c "$/emulator/emulator -avd test -no-window -no-audio &" - ./android-wait-for-emulator script: - TERM=dumb ./gradlew createDebugCoverageReport -Dorg.gradle.daemon=false 

Источник

Download Latest Android SDK Platform-Tools (Windows/Mac/Linux)

Nobody can call oneself an avid Android user without being familiar with ADB and Fastboot. They are very useful command-line tools that can be used to perform countless developer-level tasks on Android devices. You can use ADB and Fastboot commands on Windows, macOS, or Linux to control and customize your Android phone or tablet. Before you can do that, however, you must download and install the ADB drivers on your computer. The SDK Platform tools pack together all required files to execute ADB and Fastboot commands. Below, you can download the latest SDK platform tools Zip for Windows, Linux, and macOS X directly from the Google servers.

Using ADB and Fastboot commands, you can install, uninstall, debug, and emulate apps, customize your Android device, enable and disable hidden settings, back up your data, push and full files, and remotely control your device from your computer. Moreover, you can also flash factory images, custom recovery, sideload APK, and so on. If you want to learn about the possibilities you can explore after installing the Android SDK platform tools, please refer check out the following lists of commands.

Читайте также:  Linux mint 64 разрядная

What are SDK Platform Tools?

SDK is an abbreviation for Software Development Kit. The SDK platform tools contain the ADB and Fastboot drivers for Android. These drivers are very essential because they let a computer establish a connection with an Android phone, tablet, or smartwatch connected over a USB cable or WiFi. Originally, the Android SDK platform tools were a part of the Android SDK Manager and Android Studio. Later, Google decided to release the Platform-tools separately in a compact easy-to-download Zip package for operating systems like Windows, Linux, and Mac.

Download ADB and Fastboot SDK Platform-Tools

Below you can download the Android SDK Tools for all three major operating systems for computers.

Android SDK Tools (Windows)

Having downloaded the latest version of Android SDK platform tools for Windows, you can follow the steps given below to set it up.

Android SDK Platform Tools (Mac OS X)

ADB Platform Tools (Linux & Ubuntu)

I wrote a detailed guide on installing ADB and Fastboot on Linux to help you with using ADB commands easily.

How to Set up SDK Platform-Tools

Now that you have already downloaded the SDK platform tools, you need to install or set them up on your computer. If you don’t know what to do with the zip file you just downloaded and how to execute the ADB and Fastboot commands, I am going to explain everything you need to know.

First of all, you need to unzip the “platform-tools-latest.zip“. You can extract it anywhere on your computer but I prefer saving the files to a folder created as “Android” on the C drive on my Windows PC. Having extracted the zip file, you need to launch a command prompt window before you can execute an ADB or Fastboot command.

Launching a Command Window with ADB/Fastboot Path

It’s very easy to launch a command prompt window on a Windows PC. Click the Search icon next to the Windows menu icon on the taskbar and hit the Enter key. In case you need to launch the Command or CMD window from inside the Platform-tools folder, there are 2 ways to do that.

Method 1

open command prompt with folder path in windows 11

  1. Open the folder in which you extracted the content of the Platform-tool.zip file.
  2. While pressing the Shift key on the keyboard, perform a right-click on your mouse at an empty place inside the folder window.
  3. In the context menu, select the “Open command prompt here” or “Open in Terminal” option.
  4. You can now execute any ADB or Fastboot command.
Читайте также:  Альт линукс связка ключей

Method 2

Well, this method is far easier than the one I described above. You can simply launch a command window from inside the platform-tools folder by typing “cmd” or “powershell” in the Windows file explorer address bar as shown below and hitting the Enter key on your PC’s keyboard.

launch command window in sdk folder

Note: Make sure to enable the USB debugging option on your Android device. You can find it under Settings> Developer options. In case you don’t see Developer Options listed under device Settings, open About device> Software Information and tap the Build number 7 times to unlock the hidden Developer options on your Android device.

You need to allow the debugging option so that your devices and computer can communicate and interact with each other. When you execute a command in the command window, you’ll get a pop-up on your Android phone’s screen asking you to Allow USB debugging.

allow usb debugging on computer

Verify ADB Connection

Note: Make sure you have already installed the proper Android USB Driver from your device’s manufacturer on your computer.

  1. Having enabled USB Debugging from Developer options, connect your phone or tablet to the computer using a compatible USB cable.
  2. Now launch a command window and type the following command and click the Enter key on the keyboard.
adb devices

adb devices command

  • You’ll see the list of the IDs of attached devices in the Command Prompt window represented by a string of alphanumeric values as shown below.
  • Please note that to sideload an APK on your Android phone via ADB or to flash a system image (.img) file using Fastboot commands, you need to place those files inside the “platform-tools” folder first. You can also enable system-wide ADB and fastboot so that you can execute commands without navigating to the “platform-tools” directory every time. If you encounter any problem while running commands, read my tutorial on fixing ADB or Fastboot is not recognized error.

    That’s all for now! I’ve also prepared a very exhaustive list of useful ADB, ADB Shell, and Fastboot commands in a dedicated tutorial. Don’t forget to check that.

    Читайте также:  Astra linux сам выключается

    Now that you have set up SDK Platform tools on your computer, here are a few things that you should start with.

    Источник

    Zip a file in Cyangenmod Android from adb shell [closed]

    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

    This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

    I have navigated to a file on my phone using adb shell from ubuntu terminal. If I was on unix I could zip the file with zip filename.zip input1.txt but this does not work inside the adb shell. Assuming this functionality is not installed. Any solution to zipping a file from the adb shell command line? I am running Ubunty 14.10 on the latop and connecting to a One Plus running Cyangenmod bacon.

    I doubt zip functionality is available in Stock Cynogenmod. Do you have Busybox ? Also check If you have tar .

    No never heard of busybox. I’ll look into that. Its for uploading to an existing web app so needs to be in zip. Might be able to look at zipping on the client side using Javascript though instead :/

    2 Answers 2

    A typical Android install will not contain a compression utility (zip or unzip). However you can install busybox for Android, which provides the zip and unzip utilities. After that it would be as simple as:

    adb shell unzip /sdcard/archive.zip 

    For this to work, you need to install busybox first.

    1. If you’re rooted you can directly install from here.
    2. Otherwise, manually push the busybox app by first downloading the binary from github (click on raw to download it) OR from here. And save it somewhere like /data/local and then invoke it. It should be something like:
    adb push /path/to/busybox-android /data/local/busybox adb shell chmod 0755 /data/local/busybox #Make it executable adb shell /data/local/busybox zip /sdcard/myfolder_or_file archive.zip 

    If you encounter troubles, CD to the directory containing the file or folder and then run the zip command from there.

    The simple way is to just use a good file explorer and navigate to the folder or file and then long press for options, there should be an option for compressing. Use can use Astro file manager, ES file explorer among other useful apps.

    Источник

    Оцените статью
    Adblock
    detector