链接电脑后, 做为 modem 链接 开发人员选项 -〉 USB 调试, 链接USB 后启用调试模式linux
[root@lambda-laptop shm]# ./adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb devices List of devices attached 014FA5760D019009 device
adb shell #进入手机shell
\#切换到 root su \# 切换不成功极可能是 root 没成功?? 这个不是很清楚, 很长时间本身 不能su 成功,最后又root 了一次,才行的。 ^_^ 默认 system 权限: <!-- lang: shell --> root@dinara_td:/ # ls -ld /system drwxr-xr-x root root 2014-10-10 23:25 system drwxr-xr-x root shell 2014-11-20 20:00 bin \#赋予 /system/bin/ 777 权限 ,记得调试完毕更改回来。 原来的权限为 755 chmod 777 /system/bin \#退出 exit exit \# 上传你的应用 [root@lambda-laptop shm]\# ./adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb push hello /system/bin/ 4464 KB/s (707508 bytes in 0.154s) \# 执行你的应用: [root@lambda-laptop shm]\# ./adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb shell /system/bin/hello hello lambda ![在此输入图片描述][1]