安卓开发常用知识合集

43 阅读1分钟
安卓开发网站--各种知识合集

https://www.wanandroid.com/tools

https://juejin.cn/user/870468939434039/posts

git更新代码
git fetch // git remote update  -》 git rebase
git reset --hard 遗弃修改的代码到某个commit
git reset --soft 回到某个commit, 已经commit的代码变为add状态

导出台架上的日志到电脑
adb logcat > /home/jianweipeng/桌面/log.txt

// kill进行 通过logcat查看到进程号
adb shell kill 1111

设置系统时间
adb shell "date `date +%m%d%H%M%Y.%S`"

设置白天黑夜模式
adb shell cmd uimode night yes/no
直接启动
adb shell am start com.example.pjw/.view.MainActivity

remote write failed: No space left on device 磁盘空间不足
先进入shell df -h 查看哪个目录快满了  然后进入对应的目录  du -h 查看哪个应用占的空间大
然后rm -rf酌情删除一些不必要的应用 然后reboot

解压
unzip -P MGM841 '*.zip'

禁用应用
adb shell pm disable 包名

搜索日志
adb logcat -b all | grep "ACTION_DOWN"

查看应用启动时间
adb shell am start -W com.test.test/.view.MainActivity

点击事件
会先从最外层的

打开触点反馈 1开0关
adb shell settings put system pointer_location 1