set up device for development (???????????? no permissions)

后端 未结 26 2077
再見小時候
再見小時候 2020-11-22 12:27

I am using a Samsung galaxy nexus phone (Android 4.0 platform) .

I am developing Android app on Ubuntu linux OS. I would like to run my application

26条回答
  •  死守一世寂寞
    2020-11-22 13:24

    You should NOT run adb server as root as other answers are suggesting. Instead if you are using Arch Linux do the following:

    1. Install the android-udev package with Pacman
    2. Reload udev rules:

      # udevadm control --reload-rules
      
    3. Add yourself to adbusers group and then logout and login:

      # usermod -aG adbusers $LOGNAME
      

    Source: https://wiki.archlinux.org/index.php/android#Configuring_adb

提交回复
热议问题