常用命令

adb install -r DYBroadcaseTest.apk
adb shell am start -n com.android.dybroadcasetest/.MainActivity
adb shell am force-stop com.android.dybroadcasetest    
adb uninstall com.android.dybroadcasetest

./adb shell logcat | grep ""
./adb shell logcat > xxxx.txt

adb shell dumpsys media.audio_flinger

//分割txt文件

split -b 100M xxx.txt

关闭内核log

echo "0 0 0 0" > /proc/sys/kernel/printk

恢复内核log

echo "7 4 1 7” > /proc/sys/kernel/printk

 

repo forall -c git reset --hard HEAD

input keyevent --longpress <键值>

你可能感兴趣的:(Android)