-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid.conf
executable file
·95 lines (82 loc) · 2.93 KB
/
android.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
##android studio
##export ANDROID_NDK=/home/hly/work/tools/ndk/android-ndk-r10d
#export ANDROID_STUDIO=/home/hly/work/tools/android-studio
#export ANDROID_SDK=/home/hly/work/tools/sdk
#
#ANDROID_JAVA_HOME=$JAVA_HOME
#export ANDROID_JAVA_HOME
#
#JDK_HOME=$JAVA_HOME
#export JDK_HOME
#
#STUDIO_JDK=$JAVA_HOME
#export STUDIO_JDK
#
#ANDROID_TOOLS_PATH=${ANDROID_SDK}/platform-tools
#
#
#PATH=$PATH:${ANDROID_TOOLS_PATH}:~/bin/
#export PATH
#
#java6()
#{
# export JAVA_HOME=/home/hly/work/env/jdk1.6.0_26
# export PATH=${JAVA_HOME}/bin:$PATH
#}
#
#java7()
#{
# export JAVA_HOME=/home/hly/work/env/jdk1.7.0_65
# export PATH=${JAVA_HOME}/bin:$PATH
#}
#
export GOPATH=$HOME/work/go
export ANDROID_NDK=/Users/hly/Library/Android/ndk/android-ndk-r13b
export ANDROID_HOME=/Users/hly/Library/Android/sdk
PATH=/usr/local/go/bin:/Users/hly/work/tools/jadx/bin:/Users/hly/Library/Android/sdk/platform-tools:/Users/hly/work/bin:$ANDROID_HOME:$ANDROID_NDK:/Users/hly/Library/Android/sdk/build-tools/21.1.2:$PATH
JAVA_HOME=`/usr/libexec/java_home`
export JAVA_HOME
fgrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -iname "$@" -print
}
jgrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
}
ktgrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.kt" -print0 | xargs -0 grep --color -n "$@"
}
resgrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.xml" -print0 | xargs -0 grep --color -n "$@"
}
cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) -print0 | xargs -0 grep --color -n "$@"
}
smaligrep()
{
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*.smali" -print0 | xargs -0 grep --color -n "$@"
}
alias activityTop='adb shell dumpsys activity top | grep ACTIVITY'
alias gitlog='git log --pretty=format:'\''%h : %an : %ad : %s %d'\'' --topo-order --graph --date=short'
alias rsyncP='rsync -a --progress'
#alias cda='cd /home/hly/work/msm8939/msm8939_modem/LINUX/android'
#alias cdl='cd /home/hly/work/al/msm8939-la-1-0-2_amss_oem/LINUX/android'
alias logs='adb shell logcat -s -v time'
alias logc='adb shell logcat -c'
alias loge='noglob adb shell logcat -v time *:e -s System.err'
alias log='adb shell logcat -v time'
alias logevent='adb shell logcat -v time -b events'
alias ll='ls -l'
alias la='ls -a'
alias find='noglob find'
alias cdw='cd /Users/hly/work/projects/official'
alias cdt='cd /Users/hly/work/tools/'
alias bk1='cd ../'
alias bk2='cd ../../'
alias lsusb='system_profiler SPUSBDataType'
#PATH=/home/hly/work/tools/adt-bundle_linux/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/:~/bin/repo:$PATH
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles