{"id":1939,"date":"2010-05-28T01:29:34","date_gmt":"2010-05-28T05:29:34","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=1939"},"modified":"2010-05-28T01:29:34","modified_gmt":"2010-05-28T05:29:34","slug":"solved-eclipse-cant-see-my-android-device-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/solved-eclipse-cant-see-my-android-device-on-ubuntu\/","title":{"rendered":"[SOLVED] Eclipse can&#8217;t see my Android Device on Ubuntu"},"content":{"rendered":"<p>Are you seeing this on eclipse when you plug your Android device to your Ubuntu box?<\/p>\n<p>Serial Number: ??????????<br \/>\nAVD Name: N\/A<br \/>\nTarget: unknown<br \/>\nState: ??<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/farm4.static.flickr.com\/3400\/4618529545_4d922897b4_o.png?w=640\" \/><\/p>\n<p>Here&#8217;s the solution:<\/p>\n<p>1. Create a script to fix this next time it happens, let&#8217;s call it &#8220;android_device_reset&#8221; and save it on a folder contained on your $PATH environment variable.<\/p>\n<p>[bash]<br \/>\n#!\/bin\/bash<br \/>\n# android_device_reset script<br \/>\nsudo adb kill-server<br \/>\nsudo service udev stop<br \/>\nsudo adb start-server<br \/>\nsudo adb devices<br \/>\n[\/bash]<\/p>\n<p>Save it and make it executable<br \/>\n[bash]chmod +x android_device_reset[\/bash]<\/p>\n<p>2. Open this file <strong>\/etc\/udev\/rules.d\/51-android.rules<\/strong><\/p>\n<p>Make sure it looks something like this<br \/>\n[bash]<br \/>\nSUBSYSTEMS==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE==&quot;0666&quot;<br \/>\nSUBSYSTEMS==&quot;usb&quot;, SYSFS{idVendor}==&quot;22b8&quot;, MODE==&quot;0666&quot;<br \/>\n[\/bash]<\/p>\n<p>Each line represents a different android device. If you have just one, the file should be one line long.<\/p>\n<p>On that example I&#8217;ve configured the rules for a Motorola Droid and a Nexus One.<br \/>\nIf you need to know the idVendor numbers for your Android device go here<br \/>\n<a href=\"http:\/\/developer.android.com\/guide\/developing\/device.html#VendorIds\" rel=\"nofollow\">developer.android.com\/guide\/developing\/device.html#VendorIds<\/a><\/p>\n<p>3. Whenever the problem happens, just open a terminal and type<br \/>\n[bash]android_device_reset[\/bash]<\/p>\n<p>It&#8217;ll ask you for your password, only administrative users will be able to execute the script.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you seeing this on eclipse when you plug your Android device to your Ubuntu box? Serial Number: ?????????? AVD Name: N\/A Target: unknown State: ?? Here&#8217;s the solution: 1. Create a script to fix this next time it happens, let&#8217;s call it &#8220;android_device_reset&#8221; and save it on a folder contained on your $PATH environment [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,15,30,43],"tags":[1434,362],"class_list":["post-1939","post","type-post","status-publish","format-standard","hentry","category-android","category-code","category-geeklife","category-linux","tag-android","tag-eclipse"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-vh","jetpack-related-posts":[{"id":2881,"url":"https:\/\/www.gubatron.com\/blog\/solved-kindle-fire-hd-not-being-detected-by-adb\/","url_meta":{"origin":1939,"position":0},"title":"[SOLVED] Kindle Fire HD not being detected by adb","author":"gubatron","date":"November 26, 2012","format":false,"excerpt":"OSX Setup Modify your adb_usb.ini Open the ~\/.android\/adb_usb.ini file for editing and add 0x1949 0x0006 Save the file. Note: Make sure there is only one entry per line. If the file does not exist, create the file and make sure you have the required Android SDK prerequisites configured. Restart the\u2026","rel":"","context":"In &quot;Android&quot;","block_context":{"text":"Android","link":"https:\/\/www.gubatron.com\/blog\/category\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2202,"url":"https:\/\/www.gubatron.com\/blog\/have-the-latest-haproxy-as-a-ubuntu-service\/","url_meta":{"origin":1939,"position":1},"title":"Have the latest HAProxy as a Ubuntu Service","author":"gubatron","date":"April 6, 2011","format":false,"excerpt":"So you need to use HAProxy and you love the convenience of binary packages on repos, but when you install the version HAProxy available in the repos you realize that it is way too old for what you need. Then you download the latest HAProxy, compile it, configure it, but\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3453,"url":"https:\/\/www.gubatron.com\/blog\/command-line-speed-test-see-how-fast-is-your-servers-connection\/","url_meta":{"origin":1939,"position":2},"title":"command line speed test, see how fast is your server&#8217;s connection","author":"gubatron","date":"January 6, 2016","format":false,"excerpt":"Save the following script in a file called speed_test #!\/bin\/bash # Requirements # sudo apt-get install lftp iperf lftp -e 'pget http:\/\/releases.ubuntu.com\/14.04.3\/ubuntu-14.04.3-desktop-amd64.iso; exit; ' make sure the file is executable: sudo chmod +x speed_test Once you have installed lftp and iperf make sure you have the script somewhere in your\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2016\/01\/Fiber-optics.jpg?fit=892%2C538&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":814,"url":"https:\/\/www.gubatron.com\/blog\/how-to-banunban-ips-in-linux\/","url_meta":{"origin":1939,"position":3},"title":"How to ban\/unban ips in linux","author":"gubatron","date":"May 29, 2008","format":false,"excerpt":"In case you're not an iptables guru, you might want to create a couple scripts and put em somewhere on your $PATH. I've created two scripts called ban_ip and unban_ip. Create a file called ban_ip touch ban_ip chmod +x ban_ip Edit it and copy the following code inside: #!\/bin\/bash sudo\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2745,"url":"https:\/\/www.gubatron.com\/blog\/ubuntu-mongodb-wont-start-fixed\/","url_meta":{"origin":1939,"position":4},"title":"Ubuntu: mongodb won&#8217;t start [FIXED]","author":"gubatron","date":"May 23, 2012","format":false,"excerpt":"So you decided to change the default location of your mongodb data path on mongodb.conf but mongo won't start and you get an error similar to this [bash] Wed May 23 04:17:35 [initandlisten] MongoDB starting : pid=1214 port=27017 dbpath=\/media\/ebs\/data 64-bit host=domU-12-31-38-00-78-DB Wed May 23 04:17:35 [initandlisten] db version v2.0.4, pdfile\u2026","rel":"","context":"In \"mongo\"","block_context":{"text":"mongo","link":"https:\/\/www.gubatron.com\/blog\/tag\/mongo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3370,"url":"https:\/\/www.gubatron.com\/blog\/how-to-resize-an-ebs-xfs-formatted-partition\/","url_meta":{"origin":1939,"position":5},"title":"How to resize an EBS (xfs formatted) partition","author":"gubatron","date":"December 20, 2014","format":false,"excerpt":"First of all, create a snapshot of your EBS volume. Then out of that snapshot you will be able to create your new volume. However, when you detach the old one from your instance and attach the new one, you will still see the old available space with df look\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2016-01-02-at-4.42.45-PM.png?fit=1200%2C420&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2016-01-02-at-4.42.45-PM.png?fit=1200%2C420&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2016-01-02-at-4.42.45-PM.png?fit=1200%2C420&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2016-01-02-at-4.42.45-PM.png?fit=1200%2C420&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2016-01-02-at-4.42.45-PM.png?fit=1200%2C420&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/1939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=1939"}],"version-history":[{"count":0,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/1939\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=1939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=1939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=1939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}