MOD: added the android scrpit because it was removed in latest Android Studio RC1

This commit is contained in:
JohnE 2017-02-26 19:15:39 -08:00
parent 1fe9c624a2
commit 22973be4d6
5 changed files with 27260 additions and 137 deletions

114
scripts/android Executable file
View File

@ -0,0 +1,114 @@
#!/bin/sh
# Copyright 2005-2007, The Android Open Source Project
#
# 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.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Set up prog to be the path of this script, including following symlinks,
# and set up progdir to be the fully-qualified pathname of its directory.
prog="$0"
while [ -h "${prog}" ]; do
newProg=`/bin/ls -ld "${prog}"`
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
if expr "x${newProg}" : 'x/' >/dev/null; then
prog="${newProg}"
else
progdir=`dirname "${prog}"`
prog="${progdir}/${newProg}"
fi
done
oldwd=`pwd`
progdir=`dirname "${prog}"`
cd "${progdir}"
progdir=`pwd`
prog="${progdir}"/`basename "${prog}"`
cd "${oldwd}"
jarfile=sdkmanager.jar
frameworkdir="$progdir"
if [ ! -r "$frameworkdir/$jarfile" ]
then
frameworkdir=`dirname "$progdir"`/tools/lib
fi
if [ ! -r "$frameworkdir/$jarfile" ]
then
frameworkdir=`dirname "$progdir"`/framework
fi
if [ ! -r "$frameworkdir/$jarfile" ]
then
echo `basename "$prog"`": can't find $jarfile"
exit 1
fi
# Check args.
if [ debug = "$1" ]; then
# add this in for debugging
java_debug=-agentlib:jdwp=transport=dt_socket,server=y,address=8050,suspend=y
shift 1
else
java_debug=
fi
java_cmd="java"
# Mac OS X needs an additional arg, or you get an "illegal thread" complaint.
if [ `uname` = "Darwin" ]; then
os_opts="-XstartOnFirstThread"
else
os_opts=
fi
if [ `uname` = "Linux" ]; then
export GDK_NATIVE_WINDOWS=true
fi
if [ "$OSTYPE" = "cygwin" ] ; then
jarpath=`cygpath -w "$frameworkdir/$jarfile"`
jarpath="$jarpath;"`cygpath -w "$frameworkdir/swtmenubar.jar"`
progdir=`cygpath -w "$progdir"`
else
jarpath="$frameworkdir/$jarfile:$frameworkdir/swtmenubar.jar"
fi
# Get the current content of java.ext.dirs so that we can add to it instead of replacing
javaExtDirs=`"${java_cmd}" -jar "${frameworkdir}/archquery.jar" java.ext.dirs`
# Figure out the path to the swt.jar for the current architecture.
# if ANDROID_SWT is defined, then just use this.
# else, if running in the Android source tree, then look for the correct swt folder in prebuilt
# else, look for the correct swt folder in the SDK under tools/lib/
swtpath=""
if [ -n "$ANDROID_SWT" ]; then
swtpath="$ANDROID_SWT"
else
vmarch=`"${java_cmd}" -jar "${frameworkdir}/archquery.jar"`
if [ -n "$ANDROID_BUILD_TOP" ]; then
osname=`uname -s | tr A-Z a-z`
swtpath="${ANDROID_BUILD_TOP}/prebuilts/tools/${osname}-${vmarch}/swt"
else
swtpath="${frameworkdir}/${vmarch}"
fi
fi
if [ ! -d "$swtpath" ]; then
echo "SWT folder '${swtpath}' does not exist."
echo "Please export ANDROID_SWT to point to the folder containing swt.jar for your platform."
exit 1
fi
# need to use "java.ext.dirs" because "-jar" causes classpath to be ignored
exec "$java_cmd" \
-Xmx256M $os_opts $java_debug \
-Dcom.android.sdkmanager.toolsdir="$progdir" \
-classpath "$jarpath:$swtpath/swt.jar" \
com.android.sdkmanager.Main "$@"

10849
scripts/logcat.log Normal file

File diff suppressed because it is too large Load Diff

16054
scripts/logcat2.log Normal file

File diff suppressed because it is too large Load Diff

7
scripts/set_ndk.sh Executable file
View File

@ -0,0 +1,7 @@
# android ndk path
# /Applications/android-dev/android-ndk-r10d
ANDROID_NDK_HOME=$1
# ndk tools
export PATH=$ANDROID_NDK_HOME:$PATH
export PATH=$ANDROID_NDK_HOME/build/tools:$PATH

View File

@ -5,7 +5,7 @@
[
[
"AND",
"ANDROID_SDK_HOME"
"ANDROID_HOME"
],
[
"jdk",
@ -55,7 +55,16 @@
"file": "/Users/j3g/.bash_android",
"settings":
{
"buffer_size": 2077,
"buffer_size": 2101,
"encoding": "UTF-8",
"line_ending": "Unix"
}
},
{
"file": "/Users/j3g/scripts/set_ndk.sh",
"settings":
{
"buffer_size": 181,
"encoding": "UTF-8",
"line_ending": "Unix"
}
@ -129,7 +138,7 @@
"file": "/Users/j3g/.bash_history",
"settings":
{
"buffer_size": 6761,
"buffer_size": 6798,
"line_ending": "Unix"
}
}
@ -400,7 +409,7 @@
"groups":
[
{
"selected": 4,
"selected": 10,
"sheets":
[
{
@ -594,7 +603,7 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 4,
"stack_index": 6,
"type": "text"
},
{
@ -847,7 +856,7 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 3,
"stack_index": 5,
"type": "text"
},
{
@ -1100,7 +1109,7 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 2,
"stack_index": 4,
"type": "text"
},
{
@ -1206,7 +1215,7 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 1,
"stack_index": 3,
"type": "text"
},
{
@ -1215,15 +1224,15 @@
"semi_transient": false,
"settings":
{
"buffer_size": 2077,
"buffer_size": 2101,
"regions":
{
},
"selection":
[
[
1078,
1078
449,
449
]
],
"settings":
@ -1305,61 +1314,61 @@
},
"bracket_highlighter.regions":
[
"bh_angle",
"bh_angle_center",
"bh_angle_open",
"bh_angle_close",
"bh_angle_content",
"bh_curly",
"bh_curly_center",
"bh_curly_open",
"bh_curly_close",
"bh_curly_content",
"bh_tag",
"bh_tag_center",
"bh_tag_open",
"bh_tag_close",
"bh_tag_content",
"bh_double_quote",
"bh_double_quote_center",
"bh_double_quote_open",
"bh_double_quote_close",
"bh_double_quote_content",
"bh_single_quote",
"bh_single_quote_center",
"bh_single_quote_open",
"bh_single_quote_close",
"bh_single_quote_content",
"bh_unmatched",
"bh_unmatched_center",
"bh_unmatched_open",
"bh_unmatched_close",
"bh_unmatched_content",
"bh_c_define",
"bh_c_define_center",
"bh_c_define_open",
"bh_c_define_close",
"bh_c_define_content",
"bh_default",
"bh_default_center",
"bh_default_open",
"bh_default_close",
"bh_default_content",
"bh_round",
"bh_round_center",
"bh_round_open",
"bh_round_close",
"bh_round_content",
"bh_regex",
"bh_regex_center",
"bh_regex_open",
"bh_regex_close",
"bh_regex_content",
"bh_square",
"bh_square_center",
"bh_square_open",
"bh_square_close",
"bh_square_content",
"bh_regex",
"bh_regex_center",
"bh_regex_open",
"bh_regex_close",
"bh_regex_content"
"bh_single_quote",
"bh_single_quote_center",
"bh_single_quote_open",
"bh_single_quote_close",
"bh_single_quote_content",
"bh_angle",
"bh_angle_center",
"bh_angle_open",
"bh_angle_close",
"bh_angle_content",
"bh_double_quote",
"bh_double_quote_center",
"bh_double_quote_open",
"bh_double_quote_close",
"bh_double_quote_content",
"bh_tag",
"bh_tag_center",
"bh_tag_open",
"bh_tag_close",
"bh_tag_content",
"bh_round",
"bh_round_center",
"bh_round_open",
"bh_round_close",
"bh_round_content",
"bh_default",
"bh_default_center",
"bh_default_open",
"bh_default_close",
"bh_default_content",
"bh_c_define",
"bh_c_define_center",
"bh_c_define_open",
"bh_c_define_close",
"bh_c_define_content",
"bh_unmatched",
"bh_unmatched_center",
"bh_unmatched_open",
"bh_unmatched_close",
"bh_unmatched_content"
],
"incomplete_sync": null,
"remote_loading": false,
@ -1370,11 +1379,116 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 0,
"stack_index": 1,
"type": "text"
},
{
"buffer": 5,
"file": "/Users/j3g/scripts/set_ndk.sh",
"semi_transient": false,
"settings":
{
"buffer_size": 181,
"regions":
{
},
"selection":
[
[
181,
181
]
],
"settings":
{
"bracket_highlighter.busy": false,
"bracket_highlighter.locations":
{
"close":
{
},
"icon":
{
},
"open":
{
},
"unmatched":
{
}
},
"bracket_highlighter.regions":
[
"bh_square",
"bh_square_center",
"bh_square_open",
"bh_square_close",
"bh_square_content",
"bh_default",
"bh_default_center",
"bh_default_open",
"bh_default_close",
"bh_default_content",
"bh_single_quote",
"bh_single_quote_center",
"bh_single_quote_open",
"bh_single_quote_close",
"bh_single_quote_content",
"bh_round",
"bh_round_center",
"bh_round_open",
"bh_round_close",
"bh_round_content",
"bh_tag",
"bh_tag_center",
"bh_tag_open",
"bh_tag_close",
"bh_tag_content",
"bh_double_quote",
"bh_double_quote_center",
"bh_double_quote_open",
"bh_double_quote_close",
"bh_double_quote_content",
"bh_angle",
"bh_angle_center",
"bh_angle_open",
"bh_angle_close",
"bh_angle_content",
"bh_regex",
"bh_regex_center",
"bh_regex_open",
"bh_regex_close",
"bh_regex_content",
"bh_c_define",
"bh_c_define_center",
"bh_c_define_open",
"bh_c_define_close",
"bh_c_define_content",
"bh_curly",
"bh_curly_center",
"bh_curly_open",
"bh_curly_close",
"bh_curly_content",
"bh_unmatched",
"bh_unmatched_center",
"bh_unmatched_open",
"bh_unmatched_close",
"bh_unmatched_content"
],
"incomplete_sync": null,
"remote_loading": false,
"synced": false,
"syntax": "Packages/ShellScript/Shell-Unix-Generic.sublime-syntax"
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 2,
"type": "text"
},
{
"buffer": 6,
"file": "/Users/j3g/.bash_python",
"semi_transient": false,
"settings":
@ -1475,11 +1589,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 5,
"stack_index": 7,
"type": "text"
},
{
"buffer": 6,
"buffer": 7,
"file": "/Users/j3g/.bash_crypto",
"semi_transient": false,
"settings":
@ -1669,11 +1783,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 11,
"stack_index": 12,
"type": "text"
},
{
"buffer": 7,
"buffer": 8,
"file": "/Users/j3g/.bash_servers",
"semi_transient": false,
"settings":
@ -1922,11 +2036,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 12,
"stack_index": 13,
"type": "text"
},
{
"buffer": 8,
"buffer": 9,
"file": "/Users/j3g/.bash_tools",
"semi_transient": false,
"settings":
@ -2086,11 +2200,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 6,
"stack_index": 8,
"type": "text"
},
{
"buffer": 9,
"buffer": 10,
"file": "/Users/j3g/.gitconfig",
"semi_transient": false,
"settings":
@ -2102,8 +2216,8 @@
"selection":
[
[
0,
0
704,
704
]
],
"settings":
@ -2119,27 +2233,12 @@
{
"close":
{
"1":
[
5,
6
]
},
"icon":
{
"1":
[
"Packages/BracketHighlighter/icons/square_bracket.png",
"brackethighlighter.default"
]
},
"open":
{
"1":
[
0,
1
]
},
"unmatched":
{
@ -2147,61 +2246,61 @@
},
"bracket_highlighter.regions":
[
"bh_angle",
"bh_angle_center",
"bh_angle_open",
"bh_angle_close",
"bh_angle_content",
"bh_curly",
"bh_curly_center",
"bh_curly_open",
"bh_curly_close",
"bh_curly_content",
"bh_tag",
"bh_tag_center",
"bh_tag_open",
"bh_tag_close",
"bh_tag_content",
"bh_double_quote",
"bh_double_quote_center",
"bh_double_quote_open",
"bh_double_quote_close",
"bh_double_quote_content",
"bh_single_quote",
"bh_single_quote_center",
"bh_single_quote_open",
"bh_single_quote_close",
"bh_single_quote_content",
"bh_unmatched",
"bh_unmatched_center",
"bh_unmatched_open",
"bh_unmatched_close",
"bh_unmatched_content",
"bh_c_define",
"bh_c_define_center",
"bh_c_define_open",
"bh_c_define_close",
"bh_c_define_content",
"bh_default",
"bh_default_center",
"bh_default_open",
"bh_default_close",
"bh_default_content",
"bh_round",
"bh_round_center",
"bh_round_open",
"bh_round_close",
"bh_round_content",
"bh_regex",
"bh_regex_center",
"bh_regex_open",
"bh_regex_close",
"bh_regex_content",
"bh_square",
"bh_square_center",
"bh_square_open",
"bh_square_close",
"bh_square_content",
"bh_regex",
"bh_regex_center",
"bh_regex_open",
"bh_regex_close",
"bh_regex_content"
"bh_single_quote",
"bh_single_quote_center",
"bh_single_quote_open",
"bh_single_quote_close",
"bh_single_quote_content",
"bh_angle",
"bh_angle_center",
"bh_angle_open",
"bh_angle_close",
"bh_angle_content",
"bh_double_quote",
"bh_double_quote_center",
"bh_double_quote_open",
"bh_double_quote_close",
"bh_double_quote_content",
"bh_tag",
"bh_tag_center",
"bh_tag_open",
"bh_tag_close",
"bh_tag_content",
"bh_round",
"bh_round_center",
"bh_round_open",
"bh_round_close",
"bh_round_content",
"bh_default",
"bh_default_center",
"bh_default_open",
"bh_default_close",
"bh_default_content",
"bh_c_define",
"bh_c_define_center",
"bh_c_define_open",
"bh_c_define_close",
"bh_c_define_content",
"bh_unmatched",
"bh_unmatched_center",
"bh_unmatched_open",
"bh_unmatched_close",
"bh_unmatched_content"
],
"csslint_options":
{
@ -2296,11 +2395,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 7,
"stack_index": 0,
"type": "text"
},
{
"buffer": 10,
"buffer": 11,
"file": "/Users/j3g/.gitignore_global",
"semi_transient": false,
"settings":
@ -2327,11 +2426,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 13,
"stack_index": 14,
"type": "text"
},
{
"buffer": 11,
"buffer": 12,
"file": "/Users/j3g/.hgignore_global",
"semi_transient": false,
"settings":
@ -2359,11 +2458,11 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 8,
"stack_index": 9,
"type": "text"
},
{
"buffer": 12,
"buffer": 13,
"file": "/Users/j3g/.tmux.conf",
"semi_transient": false,
"settings":
@ -2464,16 +2563,16 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 9,
"stack_index": 10,
"type": "text"
},
{
"buffer": 13,
"buffer": 14,
"file": "/Users/j3g/.bash_history",
"semi_transient": false,
"settings":
{
"buffer_size": 6761,
"buffer_size": 6798,
"regions":
{
},
@ -2496,7 +2595,7 @@
"translation.y": 0.0,
"zoom_level": 1.0
},
"stack_index": 10,
"stack_index": 11,
"type": "text"
}
]