Linux以及Android开发中的小技巧和长繁命令记录收集
不断更新收集中....
2014071743
ssh以nx_guest的身份登录到172.24.221.137,然后在172.24.221.137与172.24.61.252的8080端口建立网络连接,同时创建端口为5678的本地代理服务
ssh -C -f -N -o ‘TCPKeepAlive=yes‘ -L 5678:172.24.61.252:8080 [email protected]
反编译android下的二进制程序
./prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-objdump -D -S --start-address=0xc00bc000 --stop-address=0xc00bd000 -t /local/soul4tmous_mini/out/target/product/jrdsh82_w_tmous_kk/obj/KERNEL_OBJ/vmlinux > ~/dump.log
批量取消${mypath}*下所有文件的-sign名称后缀
rename -v ‘s/-sign//‘ ${mypath}*
批量替换当前目录下所有文件中的INTLTOOL_MERGE-NOTFOUND为intltool-merge
sed -i "s/INTLTOOL_MERGE-NOTFOUND/intltool-merge/g" `grep INTLTOOL_MERGE-NOTFOUND -rl ./`
常用adb shell 命令
adb shell dumpsys
adb shell pm list package -f
adb shell dumpsys activity activities
adb shell dumpsys wifi
adb shell dumpsys cpuinfo
adb shell dumpsys meminfo [packagename]
2 accessibility
3 account
4 activity
5 alarm
6 appwidget
7 audio
8 backup
9 battery
10 batteryinfo
11 bluetooth
12 bluetooth_a2dp
13 clipboard
14 connectivity
15 content
16 cpuinfo
17 device_policy
18 devicestoragemonitor
19 diskstats
20 dropbox
21 entropy
22 ethernet
23 hardware
24 input_method
25 iphonesubinfo
26 isms
27 keybar
28 location
29 media.audio_flinger
30 media.audio_policy
31 media.camera
32 media.player
33 meminfo
34 mount
35 netstat
36 network_management
37 notification
38 package
39 permission
40 phone
41 power
42 search
43 sensorservice
44 simphonebook
45 statusbar
46 telephony.registry
47 throttle
48 uimode
49 usagestats
50 vibrator
51 wallpaper
52 wifi
53 window
54 gfxinfo
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。