美文网首页
Mac配置adb

Mac配置adb

作者: Dapengyou | 来源:发表于2017-10-19 15:39 被阅读19次

Mac配置adb

touch .bash_profile

open -e .bash_profile
自动弹出 .bash_profile 文件的编辑窗口。

export PATH=${PATH}:/Users/ztt/Documents/sdk/platform-tools

source .bash_profile

命名行

切换到bash

chsh -s /bin/bash

切换到zsh

chsh -s /bin/zsh

查找进程adb

ps -ef | grep adb

杀掉进程id

kill id号

编辑.bash_profile

vi .bash_profile

adb命令删除文件

rm -r xxx //删除名字为xxx的文件夹及其里面的所有文件
rm xxx //删除文件xxx
rmdir xxx //删除xxx的文件夹

默认进入adb中是普通用户身份

切换到root身份

adb shell

su root

参考文章

相关文章

网友评论

      本文标题:Mac配置adb

      本文链接:https://www.haomeiwen.com/subject/kfouuxtx.html