git branch -a 查询分支
git checkout xxx分支 切换分支
使用patch
git apply patch
(拖文件到同级目录然后执行即可)
git apply --reject --whitespace=fix tmp.patch
git log
git add .
git status
git stash 删除path
提交代码
git push origin HEAD:refs/for/master
创建一个本地分支
git checkout -b realme/master
计算云单仓更新
git pull origin xxx(master)
回退commit 的代码
git reset --hard id
git commit --amend 进入修改提交格式 这里可以追加提交到前面的代码
点击 i 是编辑
vim :wq! 保存并退出
编译APK 包
source build/envsetup.sh
lunch 54
make SystemUI -j48
每次push apk 必须先运行下面两步骤
adb root
adb remount
rm -rf xxx 删除文件夹
查路径
adb shell pm path com.android.systemui
adb 获取当前activity页面名称
adb shell
dumpsys activity top | grep ACTIVITY
搜索文本
grep -nsr "文本"
不用关机
adb shell
ps -A | grep systemui
kill -9 进程号
查看日志代码
package:mine System.err
git restore
可以执行studio debug 命令
adb shell setprop persist.debug.dalvik.vm.jdwp.enabled 1
adb shell stop
adb shell start
不用关机杀掉进程
adb shell pm clear com.android.launcher3
adb shell pm clear com.android.settings
adb shell pm clear com.android.systemui
adb push xxx(文件拖进来) /system_ext/priv-app/ThemePicker/ThemePicker.apk
adb push xxx(文件拖进来) /system_ext/priv-app/SystemUI/SystemUI.apk
adb push xxx(文件拖进来) /system_ext/priv-app/Settings/Settings.apk
adb push xxx(文件拖进来) /system_ext/app/SafeCenter/SafeCenter.apk
adb shell pm path com.android.systemui
adb shell setprop debug.doze.aod true
adb shell am force-stop com.android.systemui
不用关机
adb shell
ps -A | grep systemui SearchLauncherQuickStep
kill -9 进程号
pidof xxx包名
adb pull sdcard/DCIM/Camera/22222.mp4 C:\Users\v18558523
adb pull sdcard/Pictures/Screenshots/44.mp4 C:\Users\v18558523
make SearchLauncherQuickStep -j48