All the way back in 2010 I wrote a post how to connect your Android device to your Ubuntu computer in order to develop on it. There have been a few changes since then, so here is the updated version of that post.
Recently, out of the blue I had permission issues accessing the my phone via adb. When I ran “adb devices” I got a “no permissions” message:
$ adb devices
List of devices attached
8XV7N18328713317 no permissions (verify udev rules); see [http://developer.android.com/tools/device.html]
It gives you a link to a Google article that addresses the issue, but their solution did not work for me.
So, here are the steps you need to take to be able to connect your Android device:
- Enable Unknown sources and USB debugging on your device
- Find out the vendor id and product id of your device
- Set up udev rules
- Add your user to the plugdev group
- Activate the new udev rule and restart adb
- Restart adb and check the result
Settings -> Developer Options -> USB debugging
Settings -> Security -> Unknown sources
The unknown sources in needed only if you will be developing on your device and you will be installing dev apk files.
Run “lsusb”. This will list all of the devices connected to the USB ports of your computer- mouse, keyboard, camera, etc. including your phone or tablet. Each device will have a description, so it will be easy to identify.
In my case the phone is a Nexus 6P, identified here as a Google device:
$ lsusb
Bus 002 Device 008: ID 18d1:4ee7 Google Inc.
This device is number 008 on bus number 002.
You can see the device object created by udev. It is a fileL /dev/bus/usb/
In this case it would be: /dev/bus/usb/002/008
18d1:4ee7 represents VendorID:ProductID. In this case the vendor id is 18d1 and the product id is 4ee7. The vendor id and product id are different for each device manufacturer.
Now that we have all the info we need, we can set up the rules.
Create a 51-android.rules file in /etc/udev/rules.d
$ sudo gedit /etc/udev/rules.d/51-android.rules
In this file you should create a rule for each device you want to connect.
ATTR{idProduct}=="4ee7", SYMLINK+="android_adb", MODE="0660", GROUP="plugdev", TAG+="uaccess", SYMLINK+="android"
Here, replace “4ee7” with your device’s product id from step #2.
Note the GROUP=”plugdev” entry. This will create the device object file with the plugdev group as an owner. You need to make sure that your user is part of this group. This is done in the next step.
sudo usermod -a -G plugdev $(id -u -n)
$ sudo udevadm control --reload-rules
$ sudo service udev restart
$ sudo udevadm trigger
Now if we list the object files we should see that our device has a group of plugdev:
$ ls -l /dev/bus/usb/002/
total 0
crw-rw----+ 1 root plugdev 189, 135 May 7 21:48 008
Also, we should have two symlinks in /dev pointing to our device object:
$ ll /dev | grep android
lrwxrwxrwx 1 root root 15 May 7 21:48 android -> bus/usb/002/008
lrwxrwxrwx 1 root root 15 May 7 21:48 android_adb -> bus/usb/002/008
$ adb kill-server
$ adb start-server
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
$ adb devices
List of devices attached
8XV7N18328713317 device
As you can see, we now have access to the connected device and can begin work.
I found a github project where the community is maintaining a rules file with the most widely used Android devices. You can just copy this rules file:
https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules
Make sure to change the group from adbusers to plugdev. The line is towards the end of the file. GROUP=”adbusers” should be changed to GROUP=”plugdev”.
Then do steps 4, 5 and 6 above.
Thanks for the post. It really solved my problem on Unbutu machine.
Thanks it worked!
Pingback:acheter kamagra distribuer acheter
Pingback:buy enclomiphene canada fast shipping
Pingback:ordering androxal australia to buy
Pingback:cheap dutasteride no prescription online
Pingback:buy flexeril cyclobenzaprine generic ireland
Pingback:buying fildena generic medications
Pingback:how to buy gabapentin generic lowest price
Pingback:buy itraconazole in Ireland
Pingback:ordering staxyn uk buy online
Pingback:buying avodart cheap store
Pingback:buying xifaxan canada how to buy
Pingback:get rifaximin generic order
Pingback:kamagra nízké náklady v kanad?
Hi there,
Receiving some bunch of links linking to Testforum.com could have zero worth or harmful results for your site.
It really isn’t important the total backlinks you have, what is crucial is the total of search terms those domains rank for.
That is the key thing.
Not the overrated Moz DA or SEO score.
These can be faked easily.
BUT the volume of Google-ranked terms the domains that point to your site contain.
That’s the bottom line.
Get these quality links redirect to your site and your rankings will skyrocket!
We are offering this powerful SEO package here:
https://www.strictlydigital.net/product/semrush-backlinks/
In doubt, or need more information, reach out here:
https://www.strictlydigital.net/whatsapp-us/
Kind regards,
Mike Rutherford
strictlydigital.net
Phone/WhatsApp: +1 (877) 566-3738
info@strictlydigital.net
Hello
Would you like to climb search results, increase website visitors, and convert traffic into sales?
We support businesses like yours expand through powerful digital marketing services, including:
– Google Ranking Optimization
– Local SEO (Maps)
– YouTube SEO
– Authority Link Building
– Website Traffic Campaigns
– SEO-Optimized Articles
– Professional Video Production
– Social Media Manager (all major platforms)
– Lead Generation (Get Customers)
– White-Label SEO for Agencies
Whether you’re just starting out or looking to scale, we offer custom SEO plans and hands-on support — all focused on helping you achieve long-term success.
Just get back to us and we’ll suggest the ideal SEO plan for your needs.
Best regards,
Your SEO & Digital Marketing Expert
Canada, ON, Pembroke, K8a 6w2, 2615 Isabella Street
To stop any further communication from us, please reply to this email with subject: Unsubscribe !dimitar.me
Hi,
I just visited dimitar.me and wondered if you’ve ever considered an impactful video to advertise your business? Our videos can generate impressive results on both your website and across social media.
Our videos cost just $195 (USD) for a 30 second video ($239 for 60 seconds) and include a full script, voice-over and video.
I can show you some previous videos we’ve done if you want me to send some over. Let me know if you’re interested in seeing samples of our previous work.
Regards,
Joanna
Unsubscribe: https://unsubscribe.video/unsubscribe.php?d=dimitar.me
Get An Insanely Profitable Work-From-Anywhere
Business Built FOR YOU….
Could Potentially Generate $30,000.00+/Month In 90 Days Or Less
WITHOUT Selling Or Setting ANYTHING Up Yourself
for more click here : https://jvz9.com/c/688203/415010/
Click here for more info : https://tinyurl.com/39ppzvrv
Hello
Are you looking to rank higher, attract more clicks, and convert traffic into sales?
We help businesses like yours scale through results-driven digital marketing services, including:
– Google Ranking Optimization
– Google Maps Ranking
– YouTube Video Ranking
– SEO Backlinks & Link Diversity
– Website Traffic Campaigns
– SEO-Optimized Articles
– Professional Video Production
– Full Social Media Management
– Lead Generation (Get Customers)
– SEO Outsourcing Solutions
Whether you’re just starting out or ready to grow further, we offer personalized SEO plans and hands-on support — all focused on helping you achieve measurable growth.
Reply today and we’ll recommend the best package for your goals.
Best regards,
Your SEO & Digital Marketing Expert
Denmark, REGION SYDDANMARK, Gudbjerg Sydfyn, 5892, Fynshovedvej 1
To stop any further communication from us, please reply to this email with subject: Unsubscribe !dimitar.me
Hello , Dimitar Darazhanski – blog
You’re invited to the hottest influencer event of the year — America’s Influencer Competition! ??????
Join 500+ creators at the American Dream Mall in East Rutherford, NJ. This is a one-of-a-kind event featuring special guests Miss. Deb Antney (CEO of Mizay Entertainment) and Waka Flocka Flame!
?????? Secure your spot now!
RSVP here:
https://noiq.us/nyc
?????? What to expect:
Fun social media challenges ??????
Explore American Dream Mall ???????
Collaborate & Network with other Influencers ??????
?????? Compete for amazing prizes, including:
??????
The grand prize: An all-expenses-paid 10-day creator trip to China!
?????? DJI Drones
?????? Dyson Supersonic & Vacuums
?????? The all-new Nintendo Switch 2
This is your chance to connect, create, and compete.
?????? Ready to join?
RSVP here:
https://noiq.us/nyc
For our west coast creators, check out our sister event in October: YFCon2025LA-10
See you there! ?
Best,
Winter Whale NYC
Hi,
We run a Social Media service, which increases your number of followers by 700+ a month both safely and practically.
The process is safe, followers are real (they follow because they are interested in your content), and we can even create a profile for you if required.
If you are interested, I’d be happy to forward you some further information.
Kind Regards,
Gemma
Hello
This message is intended for the owner of dimitar.me. If you are not the person responsible for maintaining the site, please forward this email to the right contact.
Our agency that provides professional SEO services. We can help your website grow in search engines and increase your leads. Here are some of the services we offer:
– Search Engine Ranking Boost
– Local SEO (Maps)
– YouTube Video Ranking
– SEO Backlinks & Link Diversity
– Website Traffic Campaigns
– SEO-Optimized Articles
– Engaging Video Content
– Social Media Manager (all major platforms)
– Lead Generation (Get Customers)
– White-Label SEO for Agencies
If you are the administrator, we would be glad to provide more details and explore how we can help your business in achieving greater digital growth and customer growth.
Just get back to us and we’ll suggest the ideal SEO plan for your needs.
Best regards,
Your SEO & Digital Marketing Expert
Belgium, WBR, Brussel, 1130, Herentalsebaan 401
To stop any further communication from us, please reply to this email with subject: Unsubscribe !dimitar.me