Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6570721
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类: Android平台

2015-09-14 17:41:57


[root@localhost platform-tools]# ls
adb  dmtracedump  fastboot    NOTICE.txt         sqlite3
api  etc1tool     hprof-conv  source.properties  systrace

[root@localhost platform-tools]# pwd
/opt/android-on-linux/android-sdk-linux/platform-tools

[root@localhost platform-tools]# gedit /root/.bashrc
export PATH=$PATH:/opt/android-on-linux/android-sdk-linux/platform-tools

[root@localhost platform-tools]# adb shell
bash: /opt/android-on-linux/android-sdk-linux/platform-tools/adb: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
[root@localhost platform-tools]# yum whatprovides */ld-linux.so.2            找到相关软件
[root@localhost platform-tools]# yum install ld-linux.so.2

[root@localhost platform-tools]# adb shell
adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@localhost platform-tools]# yum install libstdc++.so.6

[root@localhost platform-tools]# adb shell
shell@mb526:/ $

+++++++++++++

[root@localhost src]# pwd
/opt/eclipse-workspace/helloworldc/src
[root@localhost src]# adb push helloworldc /data/data/
failed to copy 'helloworldc' to '/data/data//helloworldc': Permission denied
[root@localhost src]# adb root
[root@localhost src]# adb push helloworldc /data/data/
error: device unauthorized. Please check the confirmation dialog on your device.
[root@localhost src]# adb push helloworldc /data/data/
118 KB/s (5404 bytes in 0.044s)
[root@localhost src]#

---------------
[root@localhost Debug]# ls
helloworldc  makefile  objects.mk  sources.mk  src
[root@localhost Debug]# pwd
/opt/eclipse-workspace/helloworldc/Debug
[root@localhost Debug]# adb push helloworldc /data/data/
401 KB/s (29660 bytes in 0.072s)
[root@localhost Debug]#

+++++++++++++++


阅读(928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~