code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# linenum_bash.sh - 為檔案加上行號
# 若引數的數量不正確的話,則顯示使用說明
if [ $# -ne 1 ]; then
echo "usage: linenum_bash.sh filename"
exit 1
fi
IFS=$'\n' # IFS中指定換行文字
file=(`cat "$1"`) # 將檔案讀入到檔案中
# 將各行與行數一同顯示
ln=0
for line in "${file[@]}"; do
ln=`expr $ln + 1`
printf '%3d %s\n' "$ln" "$line"
done
| Shell |
#!/bin/sh
# relpath2abs.sh - 將相對路徑變成絕對路徑
# 若$1為空值的話,(即沒有任何引數),則顯示使用說明
if [ -z "$1" ]; then
echo "usage: relpath2abs.sh path"
exit 1
fi
# 檢查引數是否以「/」為起頭(也就是是否為絕對路徑)。
# 若在expr的引數中指定「/」一個字的話,則會被看成除法的運算符號而發生錯誤
# 所以在前面放了一個多餘的文字「x」
if [ `expr x"$1" : x'/'` -ne 0 ]; then
rel="$1" # 引數是絕對路徑(若含有「..」的話再做處理)
e... | Shell |
#!/bin/sh
# counttext.sh - 計算目前資料夾中有幾個.txt檔
# (註)通常只要使用「ls *.txt | wc -l」即可
count=0
for fname in *; do
ext=`expr "$fname" : '.*\(\..*\)'`
if [ "$ext" = ".txt" ]; then
count=`expr $count + 1`
fi
done
echo $count
| Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: rename.sh
# Description:
# Linux Rename Multiple Files At a Shell Prompt
# Edit History:
# 2011-03-28 File created.
#=====================================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: removeSpaceFile.sh
# Description:
#
# this shell script removes the spaces out of the name of every file argument
# passed to it (handles an arbitrary number of files on the command line).
# exa... | Shell |
#!/bin/sh
# file_inode.sh - 調查檔案的i node編號
# 將ls的輸出分解成多個單字
set -- `ls -i -d "$1"`
# 分解結果
# $1 - i node編號
# $2以後 - 檔案名稱
# 顯示i node編號
echo "$1"
| Shell |
#!/bin/sh
# ftime_gnu.sh - 調查檔案的更新日期(Linux篇)
# 將ls的輸出分割為多個單字
set -- `ls -l -d --full-time "$1"`
shift 5 # 因為項目數很多,所以先做shift
# 分解結果
# $1 - 星期幾
# $2 - 月
# $3 - 日
# $4 - 時:分:秒
# $5 - 年
# 顯示結果
month=`printf '%02d' $2` # 01-12
day=`printf '%02d' $3` # 01-31
echo "$5/$month/$day $4"
| Shell |
#!/bin/sh
# filesize.sh - 傳回檔案的大小
# 若引數沒有被指定的話,則顯示使用說明
if [ $# -ne 1 ]; then
echo "usage: filesize.sh filename"
exit 1
fi
# 將「ls -l」的輸出用set分割為多個單字
set -- `ls -l "$1"`
# 分解的結果
# $1 - 存取權
# $2 - 硬體連結數
# $3 - 擁有者使用者
# $4 - 擁有者群組
# $5 - 大小
# $6 - 最終更新日期的「月」
# $7 - 最終更新日期的「日」
# $8 - 最終更新日期的「年」或是「時:分」
# $9以後 - 檔名... | Shell |
#!/bin/sh
# fileordir.sh - 調查是檔案還是資料夾
# 若內建的「test -e」不能使用的話,則使用外部指令
if /bin/sh -c 'test -e "$0"' 2>/dev/null; then
command="" # Solaris以外的情況
else
command="command" # Solaris的情況
fi
# 檢查檔案是否存在+檢查其種類
if $command [ -e "$1" ]; then
if [ -d "$1" ]; then
echo "$1 is a directory"
else
echo "$1 is ... | Shell |
#!/bin/sh
# chgext.sh - 一舉變更檔案的副檔名
# 若引數未滿2個的話,則顯示使用說明
if [ $# -lt 2 ]; then
echo "usage: chgext.sh .newext files..."
exit 1
fi
newext="$1" # 第1個引數表示新的副檔名
shift
# 若新的副檔名不是以「.」起頭的話,則加上去
# (這樣就可以寫成「.txt」或「txt」了。)
expr "$newext" : '\.' >/dev/null || newext=".${newext}"
# 對剩下所有的引數做同樣的處理
for fname do
bname... | Shell |
#!/bin/sh
# rename_numalpha.sh - 將檔名中的一位數的數字換成英文字
# (1=A, 2=B, ..., 9=I)
# 若沒有引數的話,則顯示使用說明
if [ $# -eq 0 ]; then
echo "usage: rename_numalpha.sh files..."
exit 1
fi
# 對引數所指定的所有檔名做同樣的處理
for orig do
new=`echo "$orig" | ruby -pe 'gsub!(/[1-9]/) { |m| (m.to_i+64).chr }'`
echo "$orig ... | Shell |
#!/bin/bash
# linenum_bash.sh - 為檔案加上行號
# 若引數的數量不正確的話,則顯示使用說明
if [ $# -ne 1 ]; then
echo "usage: linenum_bash.sh filename"
exit 1
fi
IFS=$'\n' # IFS中指定換行文字
file=(`cat "$1"`) # 將檔案讀入到檔案中
# 將各行與行數一同顯示
ln=0
for line in "${file[@]}"; do
ln=`expr $ln + 1`
printf '%3d %s\n' "$ln" "$line"
done
| Shell |
#!/bin/sh
# ftime_gnu.sh - 調查檔案的更新日期(Linux篇)
# 將ls的輸出分割為多個單字
set -- `ls -l -d --full-time "$1"`
shift 5 # 因為項目數很多,所以先做shift
# 分解結果
# $1 - 星期幾
# $2 - 月
# $3 - 日
# $4 - 時:分:秒
# $5 - 年
# 顯示結果
month=`printf '%02d' $2` # 01-12
day=`printf '%02d' $3` # 01-31
echo "$5/$month/$day $4"
| Shell |
#!/bin/sh
# log_split.sh - 將logfile分割為適當大小,並壓縮之
lpf=100 # 每100行做一次分割
# 若檔名沒有被指定的話,顯示使用說明
if [ $# -ne 1 ]; then
echo "usage: log_split.sh logfile"
exit 1
fi
# 設定對象檔案的名稱,和去掉資料夾名稱的名稱
logfile="$1"
splitbase=`basename "$1"`.
# 把檔案做分割,若分割成功的話則分別去做壓縮
if split -l $lpf "$logfile" "$splitbase"; then
for split i... | Shell |
#!/bin/sh
# chgext.sh - 一舉變更檔案的副檔名
# 若引數未滿2個的話,則顯示使用說明
if [ $# -lt 2 ]; then
echo "usage: chgext.sh .newext files..."
exit 1
fi
newext="$1" # 第1個引數表示新的副檔名
shift
# 若新的副檔名不是以「.」起頭的話,則加上去
# (這樣就可以寫成「.txt」或「txt」了。)
expr "$newext" : '\.' >/dev/null || newext=".${newext}"
# 對剩下所有的引數做同樣的處理
for fname do
bname... | Shell |
#!/bin/sh
# abspath2rel.sh - 將絕對路徑轉成相對路徑
# 若$1中是空值(也就是沒有任何的引數)的話,則顯示使用說明
if [ -z "$1" ]; then
echo "usage: abspath2rel.sh abs_path"
exit 1
fi
# 檢查引數是否從「/」開始(是否為絕對路徑)。
# 若在expr的引數中指定「/」一個字的話,則會被看成是除法符號而發生錯誤,
# 所以在前面加上一個多餘的字「x」。
if [ `expr x"$1" : x'/'` -eq 0 ]; then
# 因為引數是相對路徑,所以發生錯誤
echo "$1: not an... | Shell |
#!/bin/sh
# relpath2abs.sh - 將相對路徑變成絕對路徑
# 若$1為空值的話,(即沒有任何引數),則顯示使用說明
if [ -z "$1" ]; then
echo "usage: relpath2abs.sh path"
exit 1
fi
# 檢查引數是否以「/」為起頭(也就是是否為絕對路徑)。
# 若在expr的引數中指定「/」一個字的話,則會被看成除法的運算符號而發生錯誤
# 所以在前面放了一個多餘的文字「x」
if [ `expr x"$1" : x'/'` -ne 0 ]; then
rel="$1" # 引數是絕對路徑(若含有「..」的話再做處理)
e... | Shell |
#!/bin/sh
# ftime_std.sh - 調查檔案的更新日期(標準篇)
# 將ls的輸出分割為多個單字
set -- `ls -l -d "$1"`
# 分解結果
# $1 - 存取權
# $2 - 硬體連結數
# $3 - 所有者使用者
# $4 - 所有者群組
# $5 - 大小
# $6 - 最終更新日期的「月」
# $7 - 最終更新日期的「日」
# $8 - 最終更新日期的「年」或是「時:分」
# $9之後 - 檔名
# 更新月份和更新日期永遠都是存在的
month=`printf '%02d' $6` # 01-12
day=`printf '%02d' $7` # 01-31
# 更新年份... | Shell |
#!/bin/sh
# csv2html.sh - 將CSV檔案轉成HTML的表
# 調查是否可以使用read -r
if echo | read -r 2>/dev/null; then
READ_R="-r"
else
READ_R=""
fi
# 若引數的數量不正確的話,則顯示使用說明
if [ $# -ne 1 ]; then
echo "usage: cvs2html.sh csvfile"
exit 1
fi
# 在變數LF代入換行文字
LF='
'
echo '<TABLE>'
# 只有在執行read指令的時候,IFS=換行文字
while IFS="$LF" read $R... | Shell |
#!/bin/sh
# fileperm.sh - 調查檔案的存取權
[ -r "$1" ] && rp="readable" || rp="not readable"
[ -w "$1" ] && wp="writable" || wp="not writable"
[ -x "$1" ] && xp="executable" || xp="not executable"
echo "$1 is $rp, $wp and $xp."
| Shell |
#!/bin/sh
# fileordir.sh - 調查是檔案還是資料夾
# 若內建的「test -e」不能使用的話,則使用外部指令
if /bin/sh -c 'test -e "$0"' 2>/dev/null; then
command="" # Solaris以外的情況
else
command="command" # Solaris的情況
fi
# 檢查檔案是否存在+檢查其種類
if $command [ -e "$1" ]; then
if [ -d "$1" ]; then
echo "$1 is a directory"
else
echo "$1 is ... | Shell |
#!/bin/sh
# counttext.sh - 計算目前資料夾中有幾個.txt檔
# (註)通常只要使用「ls *.txt | wc -l」即可
count=0
for fname in *; do
ext=`expr "$fname" : '.*\(\..*\)'`
if [ "$ext" = ".txt" ]; then
count=`expr $count + 1`
fi
done
echo $count
| Shell |
#!/bin/sh
# fileowner.sh - 傳回檔案的擁有者
# 若被給定的引數數量不對的話,則顯示使用方法
if [ $# -ne 2 ]; then
echo "usage: fileowner.sh -u|-g filename"
exit 1
fi
# 解析選項
case "$1" in
"-u")
show="user" ;;
"-g")
show="group" ;;
*)
echo "$1: unknown option"
exit 1
esac
# 將「ls -l」的輸出用set分割成多個單字
set -- `ls -l -d "$2"`
# 分解... | Shell |
#!/bin/sh
# cmddir.sh - 顯示存放著引數所指定的指令的資料夾
fullpath=`which "$1"` # 取得指令的完整路徑
[ $? -ne 0 ] && exit 1 # 若找不到此指令,則結束
dirname "$fullpath"
| Shell |
#!/bin/sh
# trash.sh - 將指定的檔案移到垃圾桶($HOME/.Trash)
# 若欲刪除的檔案不存在的話,則顯示使用方法之後,結束程式
if [ $# -eq 0 ]; then
echo "usage: trash files_to_trash..."
exit 1
fi
# 若內建的「test -e」不能使用的話,則使用外部指令
if /bin/sh -c 'test -e "$0"' 2>/dev/null; then
command=""
else
command="command" # Solaris的情況
fi
# 若$HOME/.Trash不存在的話,... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: sha1_show.sh
# Description:
# Calculate sha1.
# Edit History:
# 2011-02-10 File created.
#========================================================================
echo ""> sha1all;
for f... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: mv.sh
# Description:
#
# Edit History:
# 2011-02-10 File created.
#========================================================================
#檔案改名
#如何把目錄下檔名結尾為 .doc 的檔案改名為 .txt ?
#可利用以下的... | Shell |
#!/bin/sh
# lock.sh - 使用鎖定檔(鎖定資料夾)的範例
LOCKDIR=/tmp/lock.sh.lockdir
COUNTFILE=/tmp/lock.sh.count
# count
# 讀入共有檔案,在內容加1之後寫回去
count() {
# 若引數有指定「lock」的話,則使用鎖定資料夾
# 來做互斥控制
if [ "$1" = "lock" ]; then
# 在鎖定資料夾被製作成功之前,每隔一秒做同樣的動作
until mkdir $LOCKDIR 2>/dev/null; do
sleep 1
done
fi
# 讀入共有檔案... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: uncompress.sh
# Description:
# 如何將sh檔案中附加其他檔案然後再利用tail取出來
# Edit History:
# 2011-04-15 File created.
#========================================================================
#請勿執行
#Down... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: uncompress.sh
# Description:
# 如何將sh檔案中附加其他檔案然後再利用tail取出來
# Edit History:
# 2011-04-15 File created.
#========================================================================
#請勿執行
#Down... | Shell |
#!/bin/sh
# echo_n - 不換行的echo指令
echo_n() {
echo $ECHO_N "$*"$ECHO_C
}
# 檢查echo指令的相容性
if [ -z `echo -n` ]; then
# Solaris以外的情況
ECHO_N="-n"
ECHO_C=""
else
# Solaris的情況
ECHO_N=""
ECHO_C="\c"
fi
# 畫面的寬度與高度
cols=`tput cols`
lines=`tput lines`
# 清除畫面
echo_n `tput clear`
# 用各種屬性來寫字
c=`expr $co... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: redirect.sh
# Description:
# 標準輸入 (stdin) :代碼為 0 ,使用 < 或 << ; /dev/fd/0
# 標準輸出 (stdout):代碼為 1 ,使用 > 或 >> ; /dev/fd/1
# 標準錯誤輸出(stderr):代碼為 2 ,使用 2> 或 2>> ;
# 垃圾桶黑洞裝置與特殊寫法 使用 2> /dev/null 或 ... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: read.sh
# Description:
#
# Edit History:
# 2011-05-04 File created.
#========================================================================
#set separator as ':' to parse /etc/passwd,... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: exec.sh
# Description:
#
# Edit History:
# 2010-12-20 File created.
#========================================================================
| Shell |
#!/bin/sh
# cecho.sh - 讓Solaris也可以使用「echo -n」
# 若使用「echo -n」時,會顯示「-n」的話,則重新定義echo成為一個函數
# 在其它的系統中則不做任何處理
if [ -n "`echo -n`" ]; then
echo() {
( # 由於Solaris中無法使用local,所以在subshell中保護變數
if [ "$1" = "-n" ]; then
shift
postfix="\c"
else
postfix=""
fi
command echo "$*$postfix" # 執行原本的echo
... | Shell |
#!/bin/sh
# chk_interactive.sh - 調查是否為對話模式
# 若是對話模式的話,對使用者發出問題
if test -t 0; then
echo "Are you sure? Press Ctrl-C to abort, or Enter to continue."
read dummy
fi
# 實際的處理
echo "DO SOMETHING!"
| Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: test.sh
# Description:
#
# Edit History:
# 2010-12-08 File created.
#========================================================================
#test true if ....
#[ string1 = string... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dirChk_Crt.sh
# Description:
#
# Edit History:
# 2010-12-17 File created.
#========================================================================
#${#array[@]} 代表所有array總數
#${array[0]... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: test.sh
# Description:
#
# Edit History:
# 2010-12-08 File created.
#========================================================================
#test true if ....
#[ string1 = string... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dirChk_Crt.sh
# Description:
#
# Edit History:
# 2010-12-17 File created.
#========================================================================
#${#array[@]} 代表所有array總數
#${array[0]... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#! /system/bin/sh
#
# Warning: if you want to run this script in cm-recovery change the above to #!/sbin/sh
#
# fix_permissions - fixes permissions on Android data directories after upgrade
# shade@chemlab.org
#
# original concept: http://blog.elsdoerfer.name/2009/05/25/android-fix-package-uid-mismatches/
# implementat... | Shell |
#!/bin/bash
#Android Download Project
#自動分批下載android/project,如果停止就按ctrl+c
#重新執行可以斷點傳輸
#android_dlproj.sh .repo/manifest.xml
declare -a projnames
tmp=`sed -n -e 's/<project //' -e 's/\/>//p' $1 | sed -e 's/path="//' -e 's/name="//' -e 's/"//g'`
projs=($(echo $tmp))
for((i=0, j=0; i<${#projs[*]}; i++, j++))
do
projn... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dpatch.sh
# Description:
#
# Edit History:
# 2010-11-24 File created.
#========================================================================
#進入android的module dalvik並且將git diff > da... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: repo-apply.sh
# Description:
# Due to limitation of the google repo tool you need to manually apply a repo patch to the repo repository when porting android to other platforms.
# This s... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dpatch.sh
# Description:
#
# Edit History:
# 2010-11-24 File created.
#========================================================================
#進入android的module dalvik並且將git diff > da... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: repo-apply.sh
# Description:
# Due to limitation of the google repo tool you need to manually apply a repo patch to the repo repository when porting android to other platforms.
# This s... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: jnipatch.sh
# Description:
# 為了讓lunch 2的x86可以work要改得設定?
# 還未完成
#
# Edit History:
# 2010-11-26 File created.
#====================================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: jnipatch.sh
# Description:
# 為了讓lunch 2的x86可以work要改得設定?
# 還未完成
#
# Edit History:
# 2010-11-26 File created.
#====================================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: build.sh
# Description:
#
# Edit History:
# 2010-11-26 File created.
#========================================================================
#原本所在目錄為android-src/development/nativec, ... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: build.sh
# Description:
#
# Edit History:
# 2010-11-26 File created.
#========================================================================
#原本所在目錄為android-src/development/nativec, ... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: builddalvikvm.sh
# Description:
# To-do :目前編譯在TARGET=x86會失敗
# Edit History:
# 2010-11-25 File created.
#========================================================================
ANDROID_S... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: buildx86dalvikvm.sh
# Description:
# To-do :目前編譯在TARGET=x86會失敗
# Edit History:
# 2010-11-25 File created.
#========================================================================
base=`... | Shell |
#!/bin/sh
#========================================================================
# Author: YSLin
# Email:
# File Name: rund.sh
# Description:
# 1. ./buildx86dalvikvm.sh
# 2. ./rund.sh -cp hw.jar hw
#
# Edit History:
# 2010-11-29 File created.
#========================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: builddalvikvm.sh
# Description:
# To-do :目前編譯在TARGET=x86會失敗
# Edit History:
# 2010-11-25 File created.
#========================================================================
ANDROID_S... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: buildx86dalvikvm.sh
# Description:
# To-do :目前編譯在TARGET=x86會失敗
# Edit History:
# 2010-11-25 File created.
#========================================================================
base=`... | Shell |
#!/bin/sh
#========================================================================
# Author: YSLin
# Email:
# File Name: rund.sh
# Description:
# 1. ./buildx86dalvikvm.sh
# 2. ./rund.sh -cp hw.jar hw
#
# Edit History:
# 2010-11-29 File created.
#========================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getBrowserCookie.sh
# Description:
#
# Edit History:
# 2011-04-07 File created.
#========================================================================
#/data/data/com.android.browser... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getBrowserCookie.sh
# Description:
#
# Edit History:
# 2011-04-07 File created.
#========================================================================
#/data/data/com.android.browser... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#Android Download Project
#自動分批下載android/project,如果停止就按ctrl+c
#重新執行可以斷點傳輸
#android_dlproj.sh .repo/manifest.xml
declare -a projnames
tmp=`sed -n -e 's/<project //' -e 's/\/>//p' $1 | sed -e 's/path="//' -e 's/name="//' -e 's/"//g'`
projs=($(echo $tmp))
for((i=0, j=0; i<${#projs[*]}; i++, j++))
do
projn... | Shell |
#! /system/bin/sh
#
# Warning: if you want to run this script in cm-recovery change the above to #!/sbin/sh
#
# fix_permissions - fixes permissions on Android data directories after upgrade
# shade@chemlab.org
#
# original concept: http://blog.elsdoerfer.name/2009/05/25/android-fix-package-uid-mismatches/
# implementat... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: map.sh
# Description:
#
# Edit History:
# 2011-03-17 File created.
#========================================================================
adb remount adb push system/etc/permissions/... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
#
# Edit History:
# 2011-03-17 File created.
#========================================================================
adb remount
adb push build.prop /system... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
#
# Edit History:
# 2011-03-17 File created.
#========================================================================
adb remount
adb push build.prop /system... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: map.sh
# Description:
#
# Edit History:
# 2011-03-17 File created.
#========================================================================
adb remount adb push system/etc/permissions/... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
#
# Edit History:
# 2011-01-12 File created.
#========================================================================
#gapps-passion-EPE54B-signed.zip 查如何用這個安... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
#
# Edit History:
# 2011-01-12 File created.
#========================================================================
#gapps-passion-EPE54B-signed.zip 查如何用這個安... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
# cp all xml to emulator's directory (etc/permissions)
# Edit History:
# 2011-03-11 File created.
#=============================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: install.sh
# Description:
# cp all xml to emulator's directory (etc/permissions)
# Edit History:
# 2011-03-11 File created.
#=============================================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dump.sh
# Description:
#
# Edit History:
# 2011-01-04 File created.
#========================================================================
#java -jar baksmali-1.2.4.jar classes.dex -... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dump.sh
# Description:
#
# Edit History:
# 2011-01-04 File created.
#========================================================================
#java -jar baksmali-1.2.4.jar classes.dex -... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: all.sh
# Description:
# 1.Dalvik runtime libraries
# Dalvik JVM
# java.io Y Y
# java.net Y Y
# android.* Y N
# com.google.* ... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: extractapk.sh
# Description:
#
# Edit History:
# 2011-01-19 File created.
#========================================================================
APKTOOL="$HOME/apktool/apktool"
DEX2J... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: all.sh
# Description:
# 1.Dalvik runtime libraries
# Dalvik JVM
# java.io Y Y
# java.net Y Y
# android.* Y N
# com.google.* ... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dexdexer.sh
# Description:
# Download ddx1.14.jar from here:
# http://dedexer.sourceforge.net/
# Edit History:
# 2011-01-17 File created.
#=============================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: dexdexer.sh
# Description:
# Download ddx1.14.jar from here:
# http://dedexer.sourceforge.net/
# Edit History:
# 2011-01-17 File created.
#=============================================... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: go.sh
# Description:
#
# Edit History:
# 2011-01-25 File created.
#========================================================================
if ! [ -e AXMLPrinter2.jar ] ; then
wget htt... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: go.sh
# Description:
#
# Edit History:
# 2011-01-25 File created.
#========================================================================
if ! [ -e AXMLPrinter2.jar ] ; then
wget htt... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: extractapk.sh
# Description:
#
# Edit History:
# 2011-01-19 File created.
#========================================================================
APKTOOL="$HOME/apktool/apktool"
DEX2J... | Shell |
#!/bin/sh
# copy from $Tomcat/bin/startup.sh
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
#
_class... | Shell |
#!/bin/sh
# Download from here:
# http://code.google.com/p/dex2jar/
# copy from $Tomcat/bin/startup.sh
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname ... | Shell |
#!/bin/sh
# Download from here:
# http://code.google.com/p/dex2jar/
# copy from $Tomcat/bin/startup.sh
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname ... | Shell |
#!/bin/sh
# copy from $Tomcat/bin/startup.sh
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
#
_class... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: startDump.sh
# Description:
#
# Edit History:
# 2010-12-07 File created.
#========================================================================
#目標目錄
target_dir="/data"
#目標檔案
target... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: startDump.sh
# Description:
#
# Edit History:
# 2010-12-07 File created.
#========================================================================
#目標目錄
target_dir="/data"
#目標檔案
target... | Shell |
#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: all.sh
# Description:
# am: activity manager
# Edit History:
# 2010-12-01 File created.
#========================================================================
#send SMS to 123... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: all.sh
# Description:
# am: activity manager
# Edit History:
# 2010-12-01 File created.
#========================================================================
#send SMS to 123... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getAccount.sh
# Description:
#
# Edit History:
# 2011-05-27 File created.
#========================================================================
adb pull /data/system/accounts.db .
| Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getTelephony.sh
# Description:
#
# Edit History:
# 2011-05-27 File created.
#========================================================================
adb pull /data/data/com.android.pro... | Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getAccount.sh
# Description:
#
# Edit History:
# 2011-05-27 File created.
#========================================================================
adb pull /data/system/accounts.db .
| Shell |
#!/bin/bash
#========================================================================
# Author: YSLin
# Email:
# File Name: getTelephony.sh
# Description:
#
# Edit History:
# 2011-05-27 File created.
#========================================================================
adb pull /data/data/com.android.pro... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.