ubuntu adb 无法识别手机

关于Ubuntu 下新开发板adb 无法识别的问题(成功案例:解决了三星,索爱,OPPO X903案例) 问题: 在ubuntu中eclipse中用真机来调试androi程序时,发现无法识别手机,如下图显示2.37一栏之前显示全是乱码,这是解决后截的图。 问题原因是: 在window下我们可以通过安装驱动来实现abd的连接,而在ubuntu下就没有安装手机驱动这个概念,那我们肯定也需要个啥来实现这个驱动功能。这个android官网介绍得很详细。 记录下解决步骤如下: 第一步:打开 阅读详情

在linux下android开发,我经常遇到usb调试时,手机无法识别

$ adb devices  
List of devices attached   
????????????    no permissions  

本质上是adb server启动需要权限造成的,可以用以下的方法来解决问题。
解决方法:

1)断开手机连接先执行

$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 003 Device 003: ID 040b:2013 Weltrend Semiconductor 
Bus 003 Device 002: ID 174f:1474 Syntek 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 


连接手机,再执行一次lsusb 

Bus 002 Device 002: ID 8087:8000 Intel Corp.   
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 001 Device 002: ID 8087:8008 Intel Corp.   
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
Bus 003 Device 006: ID 0cf3:3004 Atheros Communications, Inc.   
Bus 003 Device 009: ID 18d1:9025 Google Inc.   
Bus 003 Device 003: ID 040b:2013 Weltrend Semiconductor   
Bus 003 Device 002: ID 174f:1474 Syntek   
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  
 


那多出来的Bus 003 Device 009: ID 18d1:9025 Google Inc. 就是你的手机。
使用 vim 新建一个配置文件

$ sudo vim /etc/udev/rules.d/70-android.rules  

内容填写如下

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9025",MODE="0666" 


##修改18d1和9025,把他改成你的设备## 
运行以下命令:
sudo chmod a+rx /etc/udev/rules.d/70-android.rules  
sudo /etc/init.d/udev restart  


在 Android sdk 的 tools 目录下运行 (这一步很重要,必须要sudo,否则没效果)

sudo adb kill-server 
sudo adb start-server 
sudo adb devices


修改完成后,将手机USB线与电脑断开,再连就会显示

$ sudo adb devices  
List of devices attached   
1234567890ABCDEF    device  


Linux(Ubuntu) adb 无法识别的问题解决方法 主要介绍了Linux(Ubuntu) adb 无法识别的问题解决方法的相关资料,需要的朋友可以参考下 立即下载

相关推荐

PyTorch+C3D实战:用UCF101数据集训练你的第一个视频动作识别模型(附完整代码)

本文详细介绍了如何使用PyTorch和C3D模型在UCF101数据集上构建视频动作识别系统。从环境配置、数据预处理到模型训练与优化,提供了完整的代码实战指南,帮助开发者快速掌握视频行为识别技术。文章特别强调了3D卷积核设计、混合精度训练等关键技术要点,并分享了模型部署优化经验。

weixin_29233857的博客 219

Ubuntu下运行adb devices找不到设备的问题

Ubuntu下运行adb devices找不到设备的问题

masteryi-0018的博客 2175

别再死磕公式了!用Python+NumPy手把手实现机器人逆运动学数值求解(附避坑指南)

本文详细介绍了如何使用Python和NumPy实现机器人逆运动学(Inverse Kinematics, IK)的数值求解方法,包括牛顿-拉弗森法、雅可比矩阵计算及奇异位形处理。通过实战代码和避坑指南,帮助开发者快速掌握现代机器人学中的核心算法,提升工程实践能力。

weixin_30687051的博客 129

解决Ubuntu上ADB devices找不到设备的问题

上用adb devices找不到设备,原因是“adb内建有一个知名的厂商ID列表,对于列表内的设备,adb可以直接连接,而不在列表中的设备,它会直接返回,这也就是为什么android设备的驱动已经安装好了,而adb连接不上的原因。2. 进入~/.android/目录,创建adb_usb.ini文件;3. 编辑adb_usb.ini文件,将设备的usb id添加到文件里。其中,Device 027是我的手机设备,usb id为2717。5. 最后,用adb devices重新查找设备,就可以找到了;

xiaowang_lj的博客 1190

发票OFD格式转换成PDF

发票OFD格式转换成PDF

Be_insighted的博客 934

RK3588部署rtmpose模型

摘要: 本文详细介绍了在RK3588开发板上部署RTMPose模型的全流程。首先在Ubuntu环境中搭建MMCV框架,通过MMPose工具将PTH模型转换为ONNX格式。随后使用RKNN-Toolkit2将ONNX模型转换为RKNN格式,并完成开发板部署。关键步骤包括模型转换(PTH→ONNX→RKNN)、环境配置和推理验证,最终实现人体姿态估计功能。整个过程涉及MMPose、RKNN-Toolkit等工具链的使用,为边缘计算场景下的实时姿态分析提供了可行方案。

qq_44224801的博客 1222

[解决办法]ubuntu14.04 adb devices无法识别手机

root@ThinkPad-T430:~/.android# android update adb adb has been updated. You must restart adb with the following commands     adb kill-server     adb start-server root@ThinkPad-T430:~/.android# ls

超的专栏 6821

RH850从0搭建Autosar开发环境【3X】- Davinci Configurator之BswM模块配置详解(上)

RH850从0搭建Autosar开发环境【3X】- Davinci Configurator之BswM模块配置详解(上)

weixin_42412049的博客 740

ubuntu系统找不到adb设备

要注意标点都是英文下的)3. 给70-android.rules加权限,命令:sudo chmod a+rx /etc/udev/rules.d/70-android.rules4. 重启 udev服务,命令: sudo service udev restart5. sudo adb kill-server, 然后 sudo adb devices,如果仍然没有显示设备则进行第6步。6.命令: echo "0x2717" > ~/.android/adb_usb.ini。

李峰的专栏 955

RK3568 Android14 调试 RTL8211F 千兆以太网 (RGMII)

调试 RTL8211F 的核心在于:确认地址(看电阻贴片情况)和 搞定延时(配置 rgmii-id 或微调 delay 值)。一旦这两点对上了,RK3568 的千兆网络就能稳定运行。希望这篇结合原理图的实战记录能帮到你!

qq_33427070的博客 1653

Ambari 安装部署教程(手把手教学)【超级详细】

本文为读者提供了一套超详细的 Apache Ambari 安装部署教程,采用手把手教学方式,适合初学者及大数据运维人员。内容涵盖前期准备、环境配置、Ambari Server 与 Agent 安装、集群初始化配置、常见问题排查等全流程操作,确保用户能够顺利搭建稳定的 Hadoop 大数据平台管理系统。

Five的博客 1万+

解决ubuntu adb devices 找不到设备

遇到个问题,在手机已经处于开发者模式、usb调试打开、驱动等状态正常的情况下,有时候还是会出现devices找不到任何设备的情况。

xiaowang_lj的博客 1659

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

ubuntu下链接手机调试android程序,ADB无法识别手机

ubuntu下链接手机调试android程序,ADB无法识别手机 摘要:        最近刚开始接触android开发,用的ubuntu系统,结果无奈,用模拟机开发总是会各种无法真实模拟,而且有些程序也无法测试,而且速度也是相当慢的,所以总是希望能链接上手机直接测试,那速度可就快多了,结果链接上的之后,发现adb管理中无法正常识别手机这个驱动,几经搜索,发现了解决方案,感谢万能的WWW,

外星人(waixingrenabc) 1166

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

ubuntu下系统可识别手机,adb无法识别

1.将手机连接至电脑,系统为ubuntu15.04 2.系统可识别手机,手机和电脑间可传递数据 3.adb devices 无设备 4.使用lsusb命令查看,发现设备插拔间有一条差异记录 Bus 003 Device 020: ID 2727:ff68 5.4中记录为设备的记录,将此条记录 进入目录 ~/.android/ 找到文件adb_usb.ini ,如果没有,新建...

weixin_30591551的博客 159

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

ubuntu android手机识别,解决Ubuntu下adb无法识别android真机

前段时间在使用Ubuntu学android开发的时候,发现adb并不能识别我插在电脑上的Nokia X,显示的设备为“???????”……虽然大多时候是可以用genymotion的模拟器来调试程序的,不过在涉及一些复杂的情况,比如多点触控的时候,就很捉急了……其实一些知名的手机如Nexus是可以直接识别的,其他的国产手机什么的,就需要自己动下手啦……首先,插上你的手机,打开终端,执行命令:lsus...

weixin_42300211的博客 617

ubuntu14.04 adb devices无法识别手机

1、执行Android update adb 生成adb_usb.ini root@ThinkPad-T430:~/.android# android update adb adb has been updated. You must restart adb with the following commands     adb kill-server     adb start-se

FIGHTING!!! 1189

ubuntu下adb找不到设备,List of devices attached下始终为空

现象描述:在ubuntu下链接手机后,打开终端,输入adb devices只出现List of devices attached 其余啥也没有…… 解决过程: 首先推荐参考http://blog.youkuaiyun.com/chychc/article/details/7276294以及类似的解决方法, 也就是输入sudo vim /etc/udev/rules.d/70-android.ru

田蜜杰果的博客 8405

adb device 无法 显示连接设备

Ubuntu系统下adb devices不能显示手机设备 1.查看usb设备,命令:lsusb 结果如下: Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011...

qq_42282862的博客 675

adb devices 偵測不到 手機

Environment Ubuntu 14.04.5 LTS (Trusty Tahr) 現象 system 有偵測到 mobile phone, xxx@xxx-ThinkPad-T460p:~/.android$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus...

Cosmomi123456的博客 113

一加等某些手机机型在Ubuntu中adb无法链接问题

转自我的简书笔记:https://www.jianshu.com/p/6ad8c211c02a 在客户端开发的过程中经常会遇见一些机型的适配,然后插上,调试。然而有时候有些机型在Ubuntu的环境下adb devices死也看不见该机子。 事实上还是因为adb识别不出来。但是其实是有链接上的。 解决方法如下: 首先,先用lsusb找出链接后的手机设备id:   lsusb 图中的...

我的各种笔记 1399

【Linux】Android手机在Ubuntu上无法被adb识别解决办法(权限相关)

创建并编辑个文件:sudo vim /etc/udev/rules.d/51-android.rules,输入以下内容 SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666" OWNER="scue" SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666" OWNER="scue" ...

weixin_34301307的博客 98
上一篇: android studio导入 so ,jar 文件。
下一篇: CMake链接libmysqlcppconn问题
Code_My_Life
博客等级 码龄12年 43粉丝 108原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值