python
python -m SimpleHTTPServer
android
命令行执行android手机root命令
adb shell su -c ls /data/data
查看当前设备的ip的命令
adb shell netcfg
命令行监控android手机文件变化
find -newer a.txt
adb shell find /sdcard/ -mmin -1
adb shell su -c find /data/data/com.mx.browser/ -mmin -1
watch adb shell find /sdcard/ -mmin -1
adb shell su -c find /data/data/ -mmin -1
让手机重启
在system_server中的程序内存泄露或者溢出
查看当前的上层activity
adb shell dumpsys activity top
设备认证原理
$ adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
在命令行更新sdk
android update sdk --no-ui
shell
nc
server
tar -cvf - {SomeFileOrDirectoryToSend} | nc -l 12378
client
nc {IpAddress} 12378 | tar -xf -
scp
scp -r -v -i key.txt user@ip:/tmp/t.txt /tmp/
增加sudo权限给用户
sudo usermod -a -G sudo hduser