#!/bin/bash time=$(date "+%Y-%m-%d") time2=$(date "+%Y-%m-%d %H:%M:%S") file="/home/pi/RunningLogs/${time}.log" echo "-----${time2}-----" >> $file adb shell am broadcast -a com.android.test.TEST --es test "getRunningTime" >> $file echo -e "-----end-----\n" >> $file
Android延时执行操作
new Handler().postDelayed(new Runnable() { @Override public void run() { // 要执行的操作 } }, 1000 * 10); // 10秒后执行Runnable中的run方法
ADB命令查询APK是否在运行
Linux下:adb shell ps | grep [apk包名]
Windows下:adb shell ps | findstr [apk包名]
Linux定时任务crontab
Android P 允许使用明文流量
Git 忽略已跟踪文件的改动
忽略跟踪:
git update-index --assume-unchanged /path/to/file
恢复跟踪:
git update-index --no-assume-unchanged /path/to/file
查看已忽略的文件列表:
git ls-files -v | findstr /B ^h (Windows)
git ls-files -v | grep '^h' (Mac)
关闭core.autocrlf:
git config --global core.autocrlf false
猎豹浏览器收藏夹
SourceTree 免登录跳过初始设置 与 SSH Key配置 与 换行符配置
apache的httpd.exe占用内存的解决方法
KMS激活WIN10命令
1.卸载密钥
slmgr /upk
2.安装密钥
slmgr /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
继续阅读KMS激活WIN10命令