How to Manually Install an Android App APK File with ADB

Поділитися
Вставка
  • Опубліковано 11 лип 2024
  • If you're having trouble downloading and installing an Android app then I suggest using this simple ADB command.
    ~~~~~
    Hi! Don't forget to like the video, subscribe to the channel, and hit the "Thanks" button on this video, if you can, and join our channel community here - / @explainingandroid
    Video Description
    ~~~~~~~~~~~~~~~~~
    In today's video I want to show you how to install an Android application APK file via the command line using ADB.
    ADB is a great tool that allows you to customize Android in a number of ways. If there is a user-facing feature on Android then there is almost always a way to replicate that via the command line.
    I have found using this can be helpful when the OS is trying to limit you in other ways. For example, I had difficulties downloading an app on the Chinese version of MIUI in the past, but was able to bypass this limitation by using the ADB install command.
    To begin, we first need to enable USB Debugging Mode. I'll link do a dedicated tutorial that I have already uploaded to the channel that shows you how to enable this on various Android devices, as a way of preventing this video from being longer than it needs to be. But if you're having trouble with this then let me know down in the comments section below.
    If you're using a recent Xiaomi devcie with MIUI, then you will also need to enable something called Install via USB. This is found in the Developer Options menu as well and it does require you to sign into your Xiaomi Mi account while also having a SIM card installed.
    We're also going to need to install ADB & Fastboot tools onto a desktop or laptop PC. There are a number of ways this can be done, and I'll link to a video I've already done that highlights a tool called Tiny ADB & Fastboot tools. It's easy to install and will only put the files on your PC that are required to use both ADB and Fastboot commands.
    With that done, you then need to download the APK file of the app or game you want to manually install, and it needs to be stored on your PC. Not only that, but you also need to put that APK file in the same folder as your ADB and Fastboot tools. You could avoid putting it into the same folder if you type out the full directory path of where that APK file is stored. But putting it in that same folder is the easiest option for most people.
    I will be using a free game called Galaxiga in today's example, just make sure you're downloading these APK files from a source you trust.
    Let's open up a command prompt, windows powershell, or a terminal window in the same folder as our ADB & Fastboot tools.
    Then we'll begin by typing out the command. . .
    adb install [filename]
    When you finish typing it out, we simply need to press enter on the keyboard to execute the command and let ADB install this APK file for us. Look for the success message to know that it has been done correctly. . .
    . . .and then look in your App Drawer for the application icon for the newly installed application or game.
    There are others arguments that we can add to this command if you want to do special things when installing this APK file.
    For example, we can install multiple APK files at the same time by typing out. . .
    adb install-multiple [filename] [filename]
    or you could use this command to replace an existing application that is already installed on your device while keeping your app data intact.
    adb install -r [filename]
    If you're wanting to downgrade an application you already have installed to an older version, then use the following command. . .
    adb install -d [filename]
    You could even install an application to your sd card by using the command. . .
    adb install -s [filename]
    There are many ways that we can manage the apps and games on our device using ADB. I have previously done a video showing you how to remove a system app from the default user account by using a simple ADB command. You can find that linked down below as well.
    Mentioned Links
    ~~~~~~~~~~~~~~~~~~~~~~~
    Developer Mode - • How to Enable Develope...
    USB Debugging Mode - • How to Enable USB Debu...
    Tiny ADB & Fastboot Tools - • Download and Install T...
    Step by Step Tutorial
    ~~~~~~~~~~~~~~~~~
    1. Intro [00:00]
    2. Prepare the Folder [02:34]
    3. Execute the ADB Install command [04:05]
    4. Various install options [06:12]
    As an Amazon associate, I may earn a commission on sales from the links below.
    The Gear I Use
    ~~~~~~~~~~~~~~~~~
    5W "Slow" Charger - amzn.to/2OaUMV8
    Fast Charger - amzn.to/3rtBsC6
    MicroUSB Cable - amzn.to/38dkpeM
    USB-C Cable - amzn.to/2OqlTvi
    TPU Cases - amzn.to/38g9b9w
    USB-C to 3.5mm Dongle - amzn.to/3rVt7c3
    USB-C to 3.5mm DAC - amzn.to/3CyksSJ
    NVIDIA Shield TV - bit.ly/3KA17RV
  • Навчання та стиль

КОМЕНТАРІ • 56

  • @jamesmuchelenganga4799
    @jamesmuchelenganga4799 Місяць тому

    Heya mate. I install alot of moded apks on my phone. 2 days without Spotify was draining me. Thanks to your video i mananged to learn how to sideload apks on my redmi note 11 running android 13. You are a life saver mate. I was giving up on Xiaomi

  • @bigdog3628
    @bigdog3628 Рік тому +1

    worked great I used the terminal that is installed with adb. (it says adb and fastboot++ as the shortcut installed) otherwise I could follow this verbatim. 5 out of 5 for sure

  • @mirzamuhammed230
    @mirzamuhammed230 Місяць тому

    i didn't do adb installation on developer option.can we do these steps without that.?any alternatives for that ?

  • @ezzeldeen
    @ezzeldeen Місяць тому +1

    Amazing especially multi install

  • @abubakaryborry1131
    @abubakaryborry1131 8 місяців тому

    Hi, i want to update my app by using adb. What should i do?

  • @klebersantos9021
    @klebersantos9021 Рік тому +1

    My hero!! Thank you

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому

      you're welcome!
      If you're able to, please consider becoming a UA-cam channel member here - www.youtube.com/@ExplainingAndroid/join
      Or joining my newly created Patreon page here - www.patreon.com/ExplainingAndroid

  • @fixme.96
    @fixme.96 Рік тому +2

    Finally i was waiting for this🤣

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому

      that's awesome!

    • @ik._5342
      @ik._5342 3 місяці тому

      adb: failed to stat app.apk: No such file or directory . What fix?😢​@@ExplainingAndroid

  • @yaminokami1581
    @yaminokami1581 Рік тому +1

    Nice, you really save my life c:

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому +1

      I appreciate you taking the time to leave a comment like this. It really helps me to know if a video is still helping people
      If you're able to, please consider becoming a UA-cam channel member here - www.youtube.com/@ExplainingAndroid/join
      It only costs a buck

    • @randomguy15865
      @randomguy15865 9 місяців тому +1

      ​@@ExplainingAndroidholy tysm I finally found a nice tutorial with someone who isn't Indian 😅 (no offence to Indians btw)

  • @mjshubham21
    @mjshubham21 4 місяці тому

    How to do it for Android 14? Is it safe?

  • @KomarDJeay
    @KomarDJeay Місяць тому

    Not working for me, shows success and app is nowhere. When I list adb shell pm list, app is not existing

  • @hoatranquang8376
    @hoatranquang8376 6 місяців тому

    Dear Explaining Android,
    Current, my Sdcard had app.apk. I sign in by adb root on my PC by Os Ubuntu
    so, how to install my app.apk directly from Sdcard, that no move app.apk to Os Ubuntu?
    Thank you so much

    • @ahtreh
      @ahtreh 21 день тому

      It states in the description above. Put the apk file you wish to install into the same folder as the adb programm on your pc. Open a cmd. in the folder and insert what is written above. it took me 3 minutes. (reading included)

  • @kamranali1414
    @kamranali1414 6 місяців тому

    worked. great

  • @kameronhallstrom5250
    @kameronhallstrom5250 Рік тому +1

    Does this bypass the CPU limits for the pixel 7 and 7 pro?

  • @CraitMerc
    @CraitMerc 2 місяці тому +2

    Does this bypass Android 14's new restriction of downloading older apps?

    • @iangael2781
      @iangael2781 2 місяці тому

      Nope. But you can use another command to bypass SDK check

    • @jonathanst89
      @jonathanst89 Місяць тому

      ​@@iangael2781 What is the command? Or where can I find it?

    • @jonathanst89
      @jonathanst89 Місяць тому

      ​@@iangael2781what is the command? Or where can I find it?

  • @georgelgrama5943
    @georgelgrama5943 3 місяці тому +1

    Hello, please, can you help me, I also have Android 14 and One UI 6.0 on my phone, I want to look for 2 applications on the play store and I can't find them, but when I search on Google, it says that your device is not compatible with this application. please, how do I proceed?

    • @chukasin
      @chukasin Місяць тому

      I have the same problem. Have you found the solution

    • @ahtreh
      @ahtreh 21 день тому

      You can't install it. Its like a Game for your pc that needs speciall grafic cards or a certain cpu. If your device doesnt have the minimum of what is required you can not play/use the app on your device. Even if you force install it. It will not work.

  • @sparkysagar
    @sparkysagar Рік тому +1

    great my brother

  • @robertresnick4004
    @robertresnick4004 5 місяців тому +6

    I do all the steps, then get a message that says [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

  • @MuaraSirait
    @MuaraSirait 5 місяців тому

    My tablet can’t install a mobile apk, would this method works to force install the apk to tablet?

    • @ahtreh
      @ahtreh 21 день тому

      Yes. If the File is a valid file and if you can get into usb debugging on your tablet.

  • @chance21x
    @chance21x 4 місяці тому

    I recently got a new phone. I use an app for viewing my cameras at home, when trying to install it says it isn't supported. I'm thinking because it's an updated os. Would this work for me?

  • @Thomas-vm9ot
    @Thomas-vm9ot Рік тому +1

    Great tutorial! +1 sub

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому

      thanks for that, Thomas :) I'm happy to see that this video was of help to you!
      If you're able to, please consider becoming a UA-cam channel member here - www.youtube.com/@ExplainingAndroid/join
      Or joining my newly created Patreon page here - www.patreon.com/ExplainingAndroid

  • @free2watchanime
    @free2watchanime 4 місяці тому +1

    ???
    How do you store the apl game from your phone into your PC??
    and are we supposed to plug our phone into the PC???
    So many missing explanations in this video.
    you ex[etc us to know everything. You might as well not have made this "tutorial"

    • @jam732
      @jam732 2 місяці тому

      Did you not read the title? If you don't know what ADB is or how to use it this is the wrong video to click.

  • @ik._5342
    @ik._5342 3 місяці тому

    adb: failed to stat app.apk: No such file or directory . what fix ?

  • @krog8823
    @krog8823 8 місяців тому +1

    why when i enter the install command it says no device/emulator found but i already enabled all the requirements for the developer mode
    edit: nvm i already fixed but the apk file wont get detected idk if its cuz the exe file got converted into a gameloop exe or something

    • @halloween9688
      @halloween9688 6 місяців тому

      Maybe you don't have the necessary drivers installed on your computer

    • @krog8823
      @krog8823 6 місяців тому

      @@halloween9688 i thought of that too and now it worked thx man

  • @wowiris
    @wowiris Місяць тому

    Hello,
    It does not work on my phone.
    I put my phone in USB developer options,
    But when I run the adb it says it failed.
    I need your help.
    Please contact me

  • @krusenator123
    @krusenator123 6 місяців тому +1

    I tried this and kept getting so many errors messages and now I'm just beyond confused and frustrated so I gave up lmao fuck android for blocking APK side loading on older apps 🖕

  • @mr.johnson460
    @mr.johnson460 Рік тому +1

    So, what's the difference with pm install?

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому

      both will install an application or game from an apk file, but the pm install command is something that is executed locally on the device. you usually see this before the 'adb shell' command as that brings you into the command prompt of the actual device
      and this adb install command is executed outside of the device itself

    • @mr.johnson460
      @mr.johnson460 Рік тому +1

      @@ExplainingAndroid Thanks for clearing that up!

    • @ExplainingAndroid
      @ExplainingAndroid  Рік тому

      any time :)
      If you're able to, please consider becoming a UA-cam channel member here - www.youtube.com/@ExplainingAndroid/join
      Or joining my newly created Patreon page here - www.patreon.com/ExplainingAndroid