Skip to main content

[转载]ubuntu下adb连接Gphone提示no premissions的解决方法

好不容易折腾好了sdk,自然要把adb用起来,但是我打开终端输入adb devices,得到的却是如下内容:

???????????? no permissions

乍一看好像需要root权限,可是输入sudo adb devices,还是不行,上网研究了一下,原来最开始启动adb的时候要有root权限,然后就随便了,如果一开始忘记了加sudo,就必须先终止adb,然后重来,过程如下:

$ adb kill-server
$ sudo adb start-server
$ adb devieces

看看是不是可以得到设备信息了?我的机器是G1,不过所有android系统的机器应该都一样的。

另外,如果你向我一样把sdk的目录写进了当前用户的PATH设置,但是root用户的PATH里没有,那么第二步会提示command not found,只要换成如下命令就行了:

$ sudo /sdk安装目录/tools/adb start-server

注:转载自http://alfred.bt4.org/archives/384
并不是G1,所有的GPhone应该都可以用这个方法结

Comments

Popular posts from this blog

12 best hand creams

Hands are as exposed as our faces and yet we hardly put any thought into skincare or protection for them. Until, that is, winter hits and they start chapping. Modern hand creams don't just boost moisture levels, they're now anti-agers too and can reduce the appearance of age spots and fine lines, and help combat eczema. From sink-side pump dispensers to balms, creams and crème-gloves, we've rounded up the best hand nourishers in the business.  1.  Clarins Hand and Nail Treatment Cream:  £21 for 100ml, Clarins Launched in 1979, this has been a best-selling product for more than 30 years and a tube is sold every 30 seconds worldwide. Put to the test, it delivered above and beyond our expectations. Not only one of the richest and most nourishing creams we tried, but it absorbs almost instantly and leaves no greasy residue. There are very few creams that can deliver on nourishment and absorption so effectively – this one can even keep mild eczema at bay. The moi...

THE BEST HAND CREAMS FOR DRY AND CRACKED HANDS

Written By Sophie Hines | 12 January 2017 Can't find a hand cream that tackles your dry hands? We've rounded up the best... Cold weather can leave our hands cracked, dry and desperate for moisture. That's why we've rounded up the best, most nourishing hand creams in the UK, so you can get your skin back to its soft, smooth best. 1. Neutrogena Norwegian Formula Concentrated Hand Cream  This fuss-free hand cream is all about efficiency, rather than pretty smells or packaging. The glycerin-rich formula is one of the best for tackling seriously dry hands. £2.98 for 50ml,  Boots.com MORE:  THE BEST FOUNDATION FOR DRY SKIN 2. Burt's Bees Shea Butter Hand Repair Cream If you prefer to stick to natural ingredients, this hand cream is ideal, containing no sulphates, phthalates, petrochemicals or parabens. Shea butter, cocoa butter and sesame oil provide a real moisturising kick for the hands. £13 for 90g,  Marks & Spence...

How to Erase Dark Under-Eye Circles (with Something in Your Fridge)

You go to bed at a reasonable time. You use an embarrassingly expensive amount of fancy creams. You feel fine. So why the eff do you still have dark circles under your eyes? We’re here to help. You can either cover them up with red lipstick or you can fix them for good with this game-changing remedy. What you need: A handful of parsley, a small mixing bowl, a wooden spoon, a tablespoon of hot water (or yogurt) and two cotton makeup pads What you do: Chop the parsley, place in the bowl and then grind the leaves with the spoon to release its juices. Next, pour the hot water over the parsley as you stir the mixture together (you can sub in yogurt for the water if you want a thicker mask). Let the mixture cool, and then dip the makeup pads into the juice. Place them beneath each eye, lie back and let them sit for ten minutes. How often you do it: Twice a week is usually the ticket. (It’s, like, $2 a bunch.) Or whenever you have a superfluous amount of the garnish leftover from meatball...