zoukankan      html  css  js  c++  java
  • Linux以及Android开发中的小技巧和长繁命令记录收集

    不断更新收集中....

    201407161654


    ssh以nx_guest的身份登录到172.24.221.137,然后在172.24.221.137与172.24.61.252的8080port建立网络连接,同一时候创建port为5678的本地代理服务

    ssh -C -f -N -o 'TCPKeepAlive=yes' -L 5678:172.24.61.252:8080 nx_guest@172.24.221.137


    反编译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


    Exception e = new Exception("this is a log");
    e.printStackTrace();

  • 相关阅读:
    Python制作天气查询软件【python实战必学】
    Python妹子图爬虫实战项目【新手必学】
    Python超级无敌技巧分享
    PlaySound使用进阶
    【】2019
    【】风之忧伤
    delete[]和delete
    《windows程序设计 第五版》实例
    playsound函数用法
    【Python入门自学笔记专辑】——Python跳转语句和循环使用范围
  • 原文地址:https://www.cnblogs.com/blfshiye/p/5171581.html
Copyright © 2011-2022 走看看