- How to Install APK Using ADB Commands
- Preparations
- Install APK Using ADB Commands
- Установить файл apk из командной строки?
- Как пользоваться ADB INSTALL?
- Как устанавливать APK с помощью ADB INSTALL?
- How to Install APK on Android
- Have an Android app not on Google Play? Install it from its APK
- What to Know
- Allow Unknown Apps on Android
- Install an Android File Manager
- Download the APK Installer From Your Android
- Transfer the APK Installer via USB
- Advanced: Run APK Installer With Minimal ADB and Fastboot
- What Is an APK?
- Why Use an APK?
- Finding APK Installers
How to Install APK Using ADB Commands
Besides sideloading APK on Android devices, you can also install APK using ADB commands. In this tutorial, we’ll see how we can sideload APK via ADB easily. Read on to learn more.
Hello folks, how do you install an app on your Android-powered device? Most of my pals answered this question with the most common answers like installing from the Google Play Store app on their Android devices or installing apps by logging into their Play Store on the PC and installing Standalone apps from the SD card by enabling the Unknown Sources option in the device settings. Most of the Android users fall into one of these categories because that’s the simple way to install apps. But what if the UI of your device collapsed and you can’t access any apps on your device?
When you’re playing with some random app, your device may sometime collapse due to that app interfering with your device UI. This most possible scenario is that the device’s launcher is hung and cannot be accessed. As you know without the launcher app, you cannot access anything on your device. Thus, if you need to install any third-party launcher app to get into your device, you have to download the launcher app APK on your PC. If the Google Play Services has collapsed (this usually happens when you try to mod your device), you cannot install the app from Play Store at all.
In that case, the ADB comes to your rescue. ADB is the acronym for Android Device Bridge which acts a bridge between your PC and Android device. You can install apps through this ADB tool, but it is not limited to it, the scope of ADB tool is far higher and even if you know little about Android development you will understand its importance. But for the sake of the topic, we will show you how to install android apps from ADB. So let’s get on with the guide.
Preparations
- Proper Device drivers installed on your PC for your device.
- Either setup ADB and Fastboot on your computer, or download the ADB and Fastboot SDK Platform-Tools.
- Enable USB Debugging on your device. If you don’t know how to do it, follow the instructions given here.
Install APK Using ADB Commands
- Let’s make the ingredients ready, extract the ADB files to a folder on your PC and place the APK file you want to install (We are installing Whatsapp) You should have the similar files:
- Now open a command prompt in the ADB folder by holding the Shift key and Right Click in the empty space in the folder.
- Connect your device to the PC and type the following command to verify whether your device is detected by the PC.
Install APK via ADB Commands on Android Devices
If detected you will see the output similar to below:
Where apk name is the exact name of the app you’re installing. Check this screenshot for example:
That’s it, try this little trick on your device.
Let us know the outcome in the comments section below.
Источник
Установить файл apk из командной строки?
Я хочу установить файл с помощью командной строки Windows. Сначала я хочу собрать после компиляции всех файлов .jar, чтобы создать файл .apk для приложения Android без использования Eclipse.
Кто-нибудь знает, как это можно сделать без использования Eclipse & только с использованием командной строки.
Вы можете использовать код ниже, чтобы установить приложение из командной строки
этот apk установлен во внутренней памяти текущего открытого эмулятора.
этот апк установлен в sd-карту текущего открытого эмулятора.
Вы также можете установить apk для конкретного устройства в списке подключенных устройств к adb.
Обратитесь также к справке ADB для других опций.
Вы можете построить в командной строке с помощью муравья. Смотрите это руководство .
Затем вы можете установить его с помощью adb командной строки.
-r Флаг заменить существующее приложение.
Вы можете установить apk на определенное устройство / эмулятор, введя идентификатор устройства / эмулятора перед ключевым словом «install» и затем путь к apk. Обратите внимание, что параметр -s, если он есть, после ключевого слова install указывает на установку на SD-карту. Пример:
Используйте Android Debug Bridge утилиту командной строки , adb например: adb install filename.apk .
Хорошая ссылка на adb это здесь
Простой способ сделать это по команде
и если вы хотите настроить соединение с устройством, вы можете добавить параметр «-d»
если у вас подключено более одного устройства / эмулятора, вы получите эту ошибку
adb: ошибка: ошибка подключения: более одного устройства / эмулятора — ожидание устройства — ошибка: более одного устройства / эмулятора
чтобы избежать того, что вы можете перечислить все устройства с помощью команды ниже
вы получите результаты, как показано ниже
выберите одно из этих устройств и добавьте параметр в команду adb как «-s a3b09hh3e», как показано ниже
также в качестве подсказки, если путь apk long и пробелы, просто добавьте его между двойными кавычками, как
Источник
Как пользоваться ADB INSTALL?
Необходимо установить несколько APK приложений Android с помощью ADB, но ничего не получается? Подробно рассказываем вам, как пользоваться ADB INSTALL.
- Вам понадобиться установить adb на ваш компьютер, либо обновить утилиту до последней версии.
- Включите отладку по USB на Android. Также активируйте параметр «Установка через USB» в «меню Разработчика«, в версиях Android начиная с 8.0 и новее (если этой опции нет, не обращайте внимание)
- В момент первого взаимодействия Android и компьютера с adb, необходимо будет пройти авторизацию
Как устанавливать APK с помощью ADB INSTALL?
Поместите приложения в одну папку с ADB и начинаем!
Для того чтобы установить приложение на телефон с помощью adb:
adb install name.apk
Вместо name.apk необходимо будет указать название устанавливаемого приложения. Стоит также сказать, что если вы захотите переустановить приложение, то данная команда не сработает!
Для того чтобы установить новую версию приложения или переустановить apk:
adb install -r name.apk
Для установки приложения на SD карту:
adb install -s name.apk
У вас еще остались вопросы? Пишите их в комментариях, рассказывайте, что у вас получилось или наоборот!
Вот и все! Больше полезных статей и инструкций читайте в разделе Статьи и Хаки Android. Оставайтесь вместе с сайтом Android +1, дальше будет еще интересней!
Источник
How to Install APK on Android
Have an Android app not on Google Play? Install it from its APK
What to Know
- Allow Chrome to install unknown apps by going to Settings >Apps >Menu >Special access >Install unknown apps.
- Install a file manager (such as Cx File Explorer or File Manager) so that you can find the APK file after you download it to your phone.
- Download an APK file and open it to install it. Alternatively, transfer the APK Installer from your computer using USB.
If you want to use an app from outside of the Google Play Store, you can install the app’s APK file. This article explains how to install APKs on Android 7 or later.
Allow Unknown Apps on Android
Before you can download APK files using Chrome or any other browser, you must first allow unknown apps:
Go to your device settings and tap Apps & Notifications (or Apps in older versions of Android).
Tap the three dots in the upper-right corner.
Tap Special access.
Tap Install unknown apps.
Tap Chrome (or whichever web browser you use)
Move Allow from this source to the On position.
Install an Android File Manager
Now that you’ve configured your phone to let you install unknown apps, you’ll need a way to find the application file (APK file) on your phone so that you can run it.
Android phones typically come with a file manager app you can use, but if you don’t have one, search for one on Google Play. Some of the best options include Cx File Explorer and File Manager.
Download the APK Installer From Your Android
The easiest way to install an APK file on your Android is to download the file using the default browser, Chrome.
Find a website offering the Android app and tap the link to download the APK file. Accept any pop-ups, including “This type of file can harm your device.”
Only download APK files from reputable sources. A quick Google search can often let you know if an app (or company that makes the app) has a questionable reputation.
If your phone’s web browser doesn’t give you the option to open the file after downloading, open your file explorer app, go to the Downloads folder on your device, then tap the APK file.
Allow the app any required permissions it asks for. Then, at the bottom of the installer window, tap Install.
Now you’ll see the app available in your list of installed apps.
Transfer the APK Installer via USB
If you don’t have internet access on your phone, or for any other reason you can’t use a browser to download the file, you can still install apps from your computer. Using your computer web browser, download the APK file just like described above. Once it’s downloaded, connect to your Android phone and transfer the file.
If you’ve never connected your Android to your computer, enable USB Debugging. You can then plug your phone into your computer with a USB cable, and it’ll mount the phone like it would a memory stick.
Once your phone is connected to your computer, it shows up as another drive in your computer’s File Explorer. Move the APK file you downloaded from the app website to the /sdcard/download folder on your phone.
Once the file is transferred, use the file explorer app on your phone as described in the previous section to tap the APK file and install the app.
If you don’t have a USB cable, another solution is to install WiFi FTP Server from Google Play. Then, use an FTP client on your computer (like FileZilla) to transfer the APK file from your computer to the /sdcard/download folder on your phone. However, this is an advanced option and requires an understanding of how to use FTP files.
Advanced: Run APK Installer With Minimal ADB and Fastboot
If the APK installer isn’t running when you tap it, there’s an advanced solution that might work. You can install the APK file on your Android from your computer using a tool called Minimal ADB and Fastboot.
Connect your phone via USB and enable USB Debugging.
Download and install the latest version of Minimal ADB and Fastboot on your computer.
Run the tool, and a command window opens. With your phone connected to your computer with the USB cable, type the command adb devices.
If the tool detects your phone, an ID for the device appears under List of devices attached. Now you’re ready to transfer the APK file.
Using Windows File Explorer, find the downloaded APK file on your computer.
Right-click the file and select Copy.
Using Windows File Explorer, navigate to the Minimal ADB and Fasbtoot folder (typically c:\Program Files (x86)\Minimal ADB and Fastboot\).
Paste the APK file into that folder.
Rename the APK file to something short so that it’s easy to type as a command.
Back in the same command window you had open before, type the command adb install app name (replace with the name of your APK file).
When you see the word Success, the app is installed on your phone.
What Is an APK?
An APK (Android Package Kit) is a type of file that installs an application for Android. It’s just like an executable (EXE) file for Windows or a package installer (PKG) for Mac.
If you’ve ever installed an Android application from the Google Play store, then you’ve used an APK file without realizing it. When you tap the Install button, Google Play automates the process of transferring the APK file to your phone and running it for you.
Why Use an APK?
If the Android app you want to install isn’t available on Google Play, you can download the APK file from the web and install it manually.
Finding APK Installers
There are many websites where you can find non-Google Play apps to install. Three of the most popular are APK Pure, Reddit’s APK Directory, and APK Mirror.
Источник