adb:
adb shell pm list packages
adb shell pm uninstall com.example.MyApp
adb shell am start -n com.android.settings/.wifi.WifiPickerActivity
adb shell dumpsys window | grep mCurrentFocus
adb shell am start -n com.nttdocomo.android.osv/.StartupActivity
adb shell am start -n com.nttdocomo.android.osv/com.nttdocomo.android.osv.StartupActivity
adb shell monkey -p com.android.settings 10000
adb shell setenforce 0
logcat (四类log buffer是main,radio,system,events)
adb wait-for-device logcat
adb logcat -v time > logcat.txt //默认是-b main -b system
adb logcat -v time -b main //main log
adb logcat -v time -b radio //radio log
adb logcat -v time -b system //system log
adb shell dmesg //kernel log
anr log
adb pull /data/anr
tombstone log
adb pull /data/tombstones
core log
adb pull /data/log/core
开机log
adb shell dmesg > dmesg.txt
logcatch
adb pull /data/logcatch
qxdm log
adb pull /sdcard/logs
Git:
git rebase --continue
git rebase --abort
git revert commit-id
git config --global user.email aaaa@qq.com
git config --global user.name fan
repo init -u git://review.xxxxx.net/platform/manifest -b n-xxx-cmcc
sudo update-alternatives --config java
Linux:
smb://*****/sharedoc/
cat -n ..
grep aaa filename.txt
grep 'retunr false' filename.txt
find / -name httpd.conf
find /etc -name httpd.conf
find /etc -name '*srm*'
find . -name 'srm*'
cp -R folder/ new_folder
ls -Fd *folder
ls -l new_folder
ln -s file.txt link_file
mv oldname newname
mv file Pictures/