Linux以及Android開發中的小技巧和長繁命令記錄收集

來源:互聯網
上載者:User

標籤:android   style   檔案   2014   art   cti   

不斷更新收集中....

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 service list
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]


1 SurfaceFlinger
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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.