原创 進入bash

  有的同學可能會發現進入linux服務器後,刪除鍵是亂碼以及命令不認的情況。 這需要我們進入bash   按照以下步驟: 1.輸入 chsh ,

原创 p4_all.sh

#!/bin/bash # # $1=project name # # xinmin.su 2013/1/16 #    add changlist sync 2013/1/17 function usage() { cat << EOF

原创 kernel source insight filelist

#!/bin/sh ############################################################################### # File : collect-src # Descri

原创 eval case

function print_build_info {         # echo SEC_BUILD_OPTION_*         echo

原创 create file list in android platform

#/bin/bash # #su xinmin  2013/2/5 # # create kernel , android c c++ , android java file list. # _PWD=`pwd` if [ ${_PWD#

原创 Android重量級開發之--提高android啓動速度研究

  Android重量級開發之--提高android啓動速度研究                                    www.e

原创 ActivityManagerService啓動新的process過程分析

   We need start a new process when we tap application launcher or start a new service which is in a different process

原创 android bugreport.

  Get Log from Android System adb bugreport > bugreport.txt copy bugre

原创 Android系統中setprop,getprop,watchprops命令的使用

  在android系統中,有一些初始化的配置文件,例如: /init.rc /default.prop /system/build.prop 文件

原创 kernel panic

./vendor/marvell/generic/toolchain/arm-linux-4.1.1/bin/arm-linux-addr2line -e out/target/product/GT-S7508/symbols/syste

原创 shell 返回狀態的使用。

 shell 返回狀態爲 $?   func1() {   ...   return $? }   func1 || echo "func1 error"   func2() {     mv -fv f1 f2 || return $?

原创 grep

 egrep -r build" "\+: ./   在當前目錄下查找 build後面有多個空格 然後是:的字符串。   grep -nr --include=*.mk "BUILD_PACKAGE" ./   grep -nr --in

原创 文件替換腳本

 find init.rc -type f  -exec perl -pi -e 's|printlog|printsxm|g' {} \; :1,$s/Log.d(TAG\([1-7]\)/\/\/Log.d(TAG\1/g

原创 append.pl

#!/usr/bin/perl #su xinmin 2013/1/17 $NUM_ARGV = @ARGV ; if($NUM_ARGV == 2) {         $input  = $ARGV [0];        

原创 sed

sed -e 's#\.\\#E:\\xinmin.su\\9308\\android\\kernel\\#g' kernel_si_1.list     #addd E:\xinmin.su\9308\android.kernel to