Mac配置adb

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

参考文章

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容