0

I want to run android-studio emulator without having an adb.

On running the emulator It checks for the adb.exe using ANDROID_SDK_ROOT environment variable and exits if there is no valid one(valid one = having an adb).

How to run the emulator without having the adb? Is there a command enabling running the emulator without the adb or something like that?

4
  • Could you explain what you are actually trying to do or why you want to run the emulator without adb?
    – Robert
    Oct 12, 2021 at 7:21
  • @Robert I want to run it on a platform that doesn't have a compatible adb and I want to save the resources since I don't need it.
    – asmmo
    Oct 12, 2021 at 7:38
  • Well the emulator is open source. You can try to modify the sources and build your own version.
    – Robert
    Oct 12, 2021 at 7:39
  • @Robert yeah I know that but do I have to remove the dependencies on adb manually or there is a parameter I can pass to make it work without the adb?
    – asmmo
    Oct 12, 2021 at 8:05

1 Answer 1

0

The emulator's command line options don't include anything for working without adb, and several options implicitly assume adb will be in use. I suspect, though I don't know for sure, that Android Studio uses adb to communicate with the emulator.

It looks as if you'll need to change the emulator to run it without adb.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .