Fred
Fred

Reputation: 169

Android Studio - ADB or Virtual Device without admin rights

Due to my business trips, I would use my professional laptop for improving my skills in Android development. I don't have administrator rights, so I installed Android Studio. Sadly, I have 2 kinds of errors :

How can I fix these issues, at least one of them ?

Thanks in advance for your help !

Fred

Upvotes: 2

Views: 20300

Answers (3)

GuiGui Officiel
GuiGui Officiel

Reputation: 11

There's scrcpy if you want to use the phone on PC

Upvotes: 1

hhj8i
hhj8i

Reputation: 66

You can install ADB without administrator rights!There's a trick which I used and it bypasses need to login using administrator account.

  1. Open notepad and paste the following text in that file:

    cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" "%1"" 
    
  2. Save as a batch file.

  3. Drag the executable you want to launch without admin and drop it onto the batch file.
  4. Installation will start and won't ask for logging in as administrator!

P.S: I have tested this on Windows 10 (Build 10240) by installing ADB drivers and it ridiculously works! However note that, if your setup produces more exes (internally) then this may not work.

Upvotes: 1

Robert
Robert

Reputation: 42585

HAXM is a system driver that allows you to improve execution speed of Android emulators running an x86 image. For installation admin permission are required this is a fact. No admin permissions means no HAXM and therefore no speed improvements. However the Android emulator works for x86 and ARM virtual devices.

For working with ADB and a real device you need to enable USB debugging on your device and install the Android ADB driver for USB on your computer. The ADB device appears then in the Windows device manager. Usually installing an driver requires admin permissions.

Conclusion: If you really want to do Android development as an admin to perform the necessary changes if you don't have the required permissions.

Upvotes: 4

Related Questions