Are you still worried that you can only compile the source code in the Ubuntu environment, but cannot directly debug the ADB shell?
The following method can solve your problem:
If your environment already has ADB,
My ADB has been copied to Ubuntu, but environment variables have not been configured, so it can only be used in that folder, so:
$ Gedit. bashrc
Added the last line.
Export Path = $ path:/home/Username/Platform-Tools
Save and exit
$ Source. bashrc
$ ADB shell prompts (excluding the file you do not have)
Then you
# Lsusb view the information of your USB device, ID
Bus 004 device 001: Id 2222:0001 Linux Foundation 1.1 root Hub
Bus 002 device 015: Id 1668: 615d LG Electronics, Inc.
--> This Is My
Bus 007 device 004: Id 2222:0002 Linux Foundation 2.0 root Hub
Change the content of the/etc/udev/rules. d/51-android.rules file
Subsystem = "USB", sysfs {idvendor} = "1668", mode = "0666.
Then try again.
# Does the ADB shell work? Haha
Http://blog.163.com/bining_hb/blog/static/9409055201111914131638/