Search code examples
androideclipseadb

How to run adb commands on a machine without admin access on Windows 7?


I did set up of Android, Java and Eclipse to start up my project but soon after running my emulator a few times I got error like “The connection to adb is down, and a severe error has occured.”

I referred to this question and got answer but while running adb from command prompt I am getting error as "'adb' is not recognized as an internal or external command,operable program or batch file."

How to run this adb commands without admin rights on machine?


Solution

  • You getting error like "'adb' is not recognized as an internal or external command,operable program or batch file." has nothing to do with your admin rights.

    Follow the steps:

    1. Go to folder location where your 'adb.exe' is located.
    2. copy the path and open cmd prompt and paste your folder location Example: C:\Users\298xxx>C:\Android\adt-bundle-windows-x86-20131030\adt-bundle-windows-x8 6-20131030\sdk\platform-tools\adb.exe
    3. Run any adb command you want like C:\Users\298xxx>C:\Android\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\platform-tools \adb.exe devices List of devices attached emulator-5554 device

    Problem is that in machine you need to set path of ADB.exe in system properties but you didn't had access as admin which don't allowed you to open/work directly with system related things like install/uninstall/path setting and many more.

    Another way to do the same is

    1. press ctrl+alt+del to open task manager
    2. Go to File --> New Task -- > and copy paste the path of you adb.exe (space) devices to check for devices attached to your machine.