19.Android相关

1.常用adb命令

adb root 用户权限
adb remount 写权限
adb disable-verity写权限失败时执行,然后reboot
adb shell终端控制设备,命令行终端
adb shell input keyevent 4 返回
ps list package 查看所有应用 + | grep XXX
adb reboot bootloader fastboot 进入fastboot模式
fastboot reboot 退出fastboot
adb push 本机pwd 机器pwd
adb pull 远程拉取到本地
adb install -r *.apk 安装apk
adb wait-for-device 等设备的device启动
adb device查看连接的设备
adb shell dmesg 抓kernel的log
adb logcat抓串口log
adb reboot edl进入烧机模式


2.常用repo命令

repo status 查看整个worktree状态
repo branches 查看本地worktree上工作分支情况
repo abandon <分支名字> {<git库名>--all} 删除
git push orign + 路径 向gerrit提交修改
repo sync .同步当前路径的代码

3.git提交冲突:

  • git log 查看最新commit id
  • git reset --hard e33c*****653df3(最新commit id)
  • 同步代码repo sync .
  • cherry pick自己提交的有冲突的代码
  • git status 查看提示有冲突的文件,进行修改
  • git add .提交解决冲突后的代码
  • git cherry-pick --continue 取消拣选操作,提交解决冲突后的代码 或 git commit -a
  • git push ***
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值