blob: a489835689f7e6932dff0108b35a252254828897 [file] [log] [blame]
Joel Fernandes6c1ca312018-03-30 17:13:15 -07001#!/bin/bash -e
Joel Fernandesefe6c4c2018-04-01 21:24:02 -07002#
Joel Fernandes1ed30d72018-05-18 14:08:20 -07003# (c) Joel Fernandes <joel@joelfernandes.org>
Joel Fernandesefe6c4c2018-04-01 21:24:02 -07004
Joel Fernandes5ac823f2018-07-08 14:04:31 -07005VERSION=v0.99e
Joel Fernandesa67be0b2018-04-01 13:40:34 -07006
Joel Fernandes464193e2018-04-02 23:54:49 -07007spath="$(dirname "$(readlink -f "$0")")"
8# spath=$( cd "$(dirname "$0")" ; pwd -P )
Joel Fernandes4fb97ea2018-03-31 11:15:19 -07009curdir=$( pwd -P )
Joel Fernandes4e19ccd2018-07-08 17:23:07 -070010source $spath/utils/support
Joel Fernandesca8fb552018-04-01 13:48:16 -070011source $spath/utils/banners
Joel Fernandes83676b12018-03-30 23:33:47 -070012
Joel Fernandes6c1ca312018-03-30 17:13:15 -070013# Set default vars
Joel Fernandesf0c54092018-04-01 19:05:10 -070014DISTRO=buster; ARCH=arm64
Joel Fernandes02939a32018-04-02 22:18:10 -070015ADB="adb"
Joel Fernandesf0c54092018-04-01 19:05:10 -070016
17# Default packages
Joel Fernandes (Google)4f711082018-05-29 16:23:15 -070018DEFAULT_PACKAGES+="bash
19ca-certificates"
20
Joel Fernandes (Google)4b216fd2018-05-29 12:33:27 -070021EXTRA_FILES="none"
Joel Fernandes6c1ca312018-03-30 17:13:15 -070022
Joel Fernandesab5f9282018-04-05 22:53:23 -070023config_full_build() {
Joel Fernandes (Google)d7f21f12018-05-27 20:19:51 -070024 for f in $(ls $spath/packages); do source $spath/packages/$f; done;
Joel Fernandesab5f9282018-04-05 22:53:23 -070025}
26
Joel Fernandes6c1ca312018-03-30 17:13:15 -070027# Parse command line parameters
Joel Fernandes5b4be9c2018-03-30 23:58:27 -070028if [ $# -lt 1 ]; then usage; fi; POSITIONAL=()
Joel Fernandes4fb97ea2018-03-31 11:15:19 -070029while [[ $# -gt 0 ]]; do key="$1";
Joel Fernandesccb993f2018-07-02 19:59:04 -070030
31# If its shell mode, any future args become shell's args
32if [ "x$ASHELL" == "x1" ]; then
33 if [ -z "$SHELL_ARGS" ]; then
34 SHELL_ARGS=$key
35 else
36 SHELL_ARGS="$SHELL_ARGS $key"
37 fi
38 shift || true; continue
39fi
40
Joel Fernandes6c1ca312018-03-30 17:13:15 -070041case $key in
Joel Fernandes (Google)448a1742018-05-29 12:23:18 -070042 prepare) PREPARE=1; shift || true; ;;
Joel Fernandese2a04662018-03-31 19:33:23 -070043 shell) ASHELL=1; shift || true; ;;
Joel Fernandesb4c80a62018-04-02 22:37:22 -070044 remove) REMOVE=1; shift || true; ;;
Erick Reyese25caea2018-06-19 15:42:59 -070045 git-pull) GIT_PULL=1; shift || true; ;;
46 pull) PULL=1; shift || true; break ;;
Erick Reyes5104a6c2018-06-27 15:31:58 -070047 push) PUSH=1; shift || true; break ;;
Joel Fernandes (Google)08d1a072018-05-28 13:29:03 -070048 --arch) ARCH=$2; shift || true; shift || true; ;;
Joel Fernandes9f00bf42018-04-01 10:36:33 -070049 --archive) TARF=$2; shift || true; shift || true; ;;
Joel Fernandes4fb97ea2018-03-31 11:15:19 -070050 --tracers) source $spath/packages/tracers; shift || true; ;;
51 --compilers) source $spath/packages/compilers; shift || true; ;;
52 --editors) source $spath/packages/editors; shift || true; ;;
53 --scheduler) source $spath/packages/scheduler; shift || true; ;;
Joel Fernandesab5f9282018-04-05 22:53:23 -070054 --fullbuild) config_full_build; shift || true; ;;
Joel Fernandesa67be0b2018-04-01 13:40:34 -070055 --download) DOWNLOAD=1; shift || true; ;;
Joel Fernandes100c4682018-04-01 20:09:57 -070056 --bcc) source $spath/packages/bcc; shift || true; ;;
Joel Fernandes5b4be9c2018-03-30 23:58:27 -070057 --kernelsrc) KERNELSRC="$2"; shift || true; shift || true; ;;
Joel Fernandes (Google)1171d2d2018-05-30 17:22:09 -070058 --skip-install) SKIP_INSTALL=1; shift || true; ;;
Joel Fernandes1ed30d72018-05-18 14:08:20 -070059 --kernel-headers-targz) KERNELHDRS=$2; shift || true; shift || true; ;;
Joel Fernandese2a04662018-03-31 19:33:23 -070060 --tempdir) TDIR="$2"; shift || true; shift || true; ;;
Joel Fernandes97958e12018-03-31 23:51:44 -070061 --buildtar) TARDIR="$2"; shift || true; shift || true; ;;
Joel Fernandes02939a32018-04-02 22:18:10 -070062 --device|-s) ADB="$ADB -s $2"; shift || true; shift || true; ;;
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -070063 --build-image) BUILD_IMAGE=$2; shift || true; shift || true; ;;
Joel Fernandesca8fb552018-04-01 13:48:16 -070064 --debug) set -x; shift || true; ;;
Joel Fernandes112243b2018-07-08 17:42:48 -070065 *) c_error "Unknown option ($1)"; usage; ;;
Joel Fernandes6c1ca312018-03-30 17:13:15 -070066esac
67done
68
Erick Reyese25caea2018-06-19 15:42:59 -070069if [ ! -z "$GIT_PULL" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -070070 c_info "Updating androdeb by git pull"
Joel Fernandes16371152018-04-05 22:50:36 -070071 cd $spath
72 git pull
Joel Fernandes112243b2018-07-08 17:42:48 -070073 c_info "Done."
Joel Fernandes16371152018-04-05 22:50:36 -070074 exit 0
75fi
76
Erick Reyese25caea2018-06-19 15:42:59 -070077if [ ! -z "$PULL" ]; then
78 if [ $1 == "-a" ]; then
79 PRESERVE="-a"
Joel Fernandes112243b2018-07-08 17:42:48 -070080 c_info "Preserving filestamps and mode"
Erick Reyese25caea2018-06-19 15:42:59 -070081 shift || true
82 fi
Erick Reyes5104a6c2018-06-27 15:31:58 -070083 file_count=`count_sources $@`
Erick Reyese25caea2018-06-19 15:42:59 -070084 i=0
85 while [ $i -lt $file_count ]; do
86 files["$i"]=/data/androdeb/debian/$1
87 shift || true
88 i=$((i + 1))
89 done
90 $ADB pull $PRESERVE "${files[@]}" "$@"
91 exit 0
92fi
93
Erick Reyes5104a6c2018-06-27 15:31:58 -070094if [ ! -z "$PUSH" ]; then
Erick Reyes5104a6c2018-06-27 15:31:58 -070095 file_count=`count_sources $@`
96 i=0
97 while [ $i -lt $file_count ]; do
98 files["$i"]=$1
99 shift || true
100 i=$((i + 1))
101 done
102 dest=/data/androdeb/debian/$1
103 $ADB push $sync "${files[@]}" $dest
104 exit 0
105fi
106
Joel Fernandes9649a262018-07-02 20:49:41 -0700107if [ -z "$ASHELL" ] && [ -z "$REMOVE" ] && [ -z "$PACKAGES" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700108 c_info "No packages specified, so I'm going to build/install all packages (--fullbuild)"
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700109 config_full_build
110fi
111
Joel Fernandes97958e12018-03-31 23:51:44 -0700112if [[ ! -z ${TARDIR+x} ]] && [[ ! -d $TARDIR ]]; then die 7 "Tar dir specified doesn't exist"; fi
Joel Fernandes92057762018-03-31 23:38:43 -0700113
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700114if [ -z "$BUILD_IMAGE" ]; then
Joel Fernandesc26696d2018-07-08 18:28:12 -0700115 do_adb_root "$ADB"
Joel Fernandesaf07ec72018-04-02 22:01:19 -0700116
Joel Fernandesc26696d2018-07-08 18:28:12 -0700117 if [ $? -ne 0 ]; then
118 c_error "adb root failed, make sure:"
119 c_error " * If multiple devices connected, provide --device <serialno> (or -s <serialno>)"
120 c_error " * Try to run \"adb root\" manually and see if it works. Typically this needs a userdebug build."
121 c_error ""
122 c_error "Note: adb can be typically obtained using the android-tools-adb or the adb"
123 c_error "packages on your distro, or by installing the Android SDK."
124 die 3 "Exiting."
125 fi
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700126fi
Joel Fernandes72656c52018-03-31 20:35:33 -0700127
Joel Fernandesb4c80a62018-04-02 22:37:22 -0700128if [ ! -z "$REMOVE" ]; then
129 die_if_no_androdeb "Nothing to remove."
Joel Fernandes (Google)7c8b1082018-06-25 12:29:10 -0700130 $ADB shell /data/androdeb/device-umount-all || true;
Joel Fernandesb4c80a62018-04-02 22:37:22 -0700131 $ADB shell rm -rf /data/androdeb; exit 0; fi
132
Joel Fernandes83676b12018-03-30 23:33:47 -0700133##########################################################
Joel Fernandese2a04662018-03-31 19:33:23 -0700134# SHELL
Joel Fernandes83676b12018-03-30 23:33:47 -0700135##########################################################
Joel Fernandese381ac72018-03-31 21:46:36 -0700136if [ ! -z ${ASHELL+x} ]; then
Joel Fernandes02939a32018-04-02 22:18:10 -0700137 set +e; $ADB shell ls /data/androdeb/debian/.bashrc > /dev/null 2>&1
Joel Fernandesc9646812018-03-31 19:45:46 -0700138 if [ $? -ne 0 ]; then
139 die 2 "Device doesn't have an androdeb environment, run \"./androdeb prepare\" first";
140 fi; set -e
141
Joel Fernandesccb993f2018-07-02 19:59:04 -0700142 if [ ! -z ${SHELL_ARGS+x} ]; then
143 # Explanation of quotes:
144 # Outer quote is so that androdeb's bash passes the SHELL_ARGS as a single
145 # argument to $ADB shell. Inner quotes is so that run-command can receive all
146 # the args even though they may be separated by spaces. \m/
147 $ADB shell -t /data/androdeb/run-command "\"$SHELL_ARGS\""
148 else
149 $ADB shell -t /data/androdeb/run
150 fi
151
Joel Fernandese2a04662018-03-31 19:33:23 -0700152 exit 0
153fi
154
155##########################################################
156# PREPARE
157##########################################################
Joel Fernandesf0c54092018-04-01 19:05:10 -0700158
159function do_cleanup() {
160 rm -rf $TDIR/*; if [ $MKTEMP -eq 1 ]; then rm -rf $TDIR; fi
161}
162
163function push_unpack_headers() {
Joel Fernandesb4c80a62018-04-02 22:37:22 -0700164 die_if_no_androdeb "Couldn't update headers."
Joel Fernandesf0c54092018-04-01 19:05:10 -0700165
Joel Fernandesf95f2b22018-07-08 17:54:47 -0700166 c_info "Storing kernel headers into androdeb /kernel-headers/"
Joel Fernandes02939a32018-04-02 22:18:10 -0700167 $ADB shell rm -rf /data/androdeb/debian/kernel-headers/
168 $ADB shell mkdir /data/androdeb/debian/kernel-headers/
Joel Fernandesf95f2b22018-07-08 17:54:47 -0700169 run_quiet $ADB push $TDIR_ABS/kh.tgz /data/androdeb/
Joel Fernandes02939a32018-04-02 22:18:10 -0700170 $ADB shell tar -xvf /data/androdeb/kh.tgz -C /data/androdeb/debian/kernel-headers/ > /dev/null
171 $ADB shell rm /data/androdeb/kh.tgz
Joel Fernandesf0c54092018-04-01 19:05:10 -0700172}
173
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700174function push_unpack_tarred_headers() {
175 die_if_no_androdeb "Couldn't update headers."
176
177 $ADB shell rm -rf /data/androdeb/debian/kernel-headers/
178 $ADB shell mkdir /data/androdeb/debian/kernel-headers/
Joel Fernandesf95f2b22018-07-08 17:54:47 -0700179
180 c_info "Pushing headers tar onto device"
181 run_quiet $ADB push $1 /data/androdeb/
182
Joel Fernandes112243b2018-07-08 17:42:48 -0700183 c_info "Storing kernel headers into androdeb root directory"
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700184 $ADB shell tar -xvf /data/androdeb/$(basename $1) -C /data/androdeb/debian/ > /dev/null
185
186 $ADB shell rm /data/androdeb/$(basename $1)
187}
188
Joel Fernandes72065112018-04-01 20:02:53 -0700189function all_done_banner() {
Joel Fernandes112243b2018-07-08 17:42:48 -0700190 c_info "All done! Run \"androdeb shell\" to enter environment"
Joel Fernandes72065112018-04-01 20:02:53 -0700191}
192
Joel Fernandes72656c52018-03-31 20:35:33 -0700193# Prepare is the last command checked
Joel Fernandes9f00bf42018-04-01 10:36:33 -0700194if [ -z "$PREPARE" ]; then usage; fi
Joel Fernandes72656c52018-03-31 20:35:33 -0700195
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700196if [ ! -z "$TARF" ] && [ ! -f $TARF ] && [ -z "$DOWNLOAD" ]; then die 5 "archive provided doesn't exist"; fi
Joel Fernandes9f00bf42018-04-01 10:36:33 -0700197
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700198if [ ! -z "$KERNELSRC" ] && [ ! -d $KERNELSRC ]; then die 6 "Kernel source directory provided doesn't exist"; fi
199
200if [ ! -z "$KERNELHDRS" ] && [ ! -f $KERNELHDRS ]; then die 7 "Kernel headers tar.gz doesn't exist"; fi
Joel Fernandese2a04662018-03-31 19:33:23 -0700201
Joel Fernandesca8fb552018-04-01 13:48:16 -0700202print_prepare_banner
203
Joel Fernandes6c1ca312018-03-30 17:13:15 -0700204# Where do we want to store temporary files
Joel Fernandese2a04662018-03-31 19:33:23 -0700205MKTEMP=0; if [[ -z ${TDIR+x} ]] || [[ ! -d "${TDIR}" ]]; then
206 TDIR=`mktemp -d`; MKTEMP=1; fi
Joel Fernandese381ac72018-03-31 21:46:36 -0700207rm -rf $TDIR/*
208TDIR_ABS=$( cd "$TDIR" ; pwd -P )
Joel Fernandes6c1ca312018-03-30 17:13:15 -0700209
Joel Fernandesa67be0b2018-04-01 13:40:34 -0700210if [ ! -z "$DOWNLOAD" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700211 c_info "Downloading Androdeb from the web..."; c_info ""
Joel Fernandes (Google)9e670aa2018-06-25 13:39:34 -0700212 # Github dropped tar gz support! ##?#??#! Now we've to zip everything.
213 curl -L https://github.com/joelagnel/androdeb/releases/download/$VERSION/androdeb-fs.tgz.zip --output $TDIR_ABS/androdeb-fs.tgz.zip;
214 unzip -e $TDIR_ABS/androdeb-fs.tgz.zip -d $TDIR_ABS/
Joel Fernandesa67be0b2018-04-01 13:40:34 -0700215 TARF=$TDIR_ABS/androdeb-fs.tgz; fi
216
Joel Fernandese2a04662018-03-31 19:33:23 -0700217OUT_TMP=$TDIR/debian; rm -rf $OUT_TMP; mkdir -p $OUT_TMP
Joel Fernandesf0c54092018-04-01 19:05:10 -0700218
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700219# Unpack the supplied kernel headers tar.gz directly into androdeb root
220if [ ! -z "$KERNELHDRS" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700221 c_info "Building updating kernel headers from supplied tar.gz ($KERNELHDRS)"
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700222
223 # Is header tar gz update the only thing left to do?
Joel Fernandes (Google)1171d2d2018-05-30 17:22:09 -0700224 if [[ ! -z "$SKIP_INSTALL" ]]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700225 c_info "Skipping install"
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700226 push_unpack_tarred_headers $KERNELHDRS; do_cleanup; all_done_banner; exit 0; fi
227
228 tar -xvf $KERNELHDRS -C $OUT_TMP/ > /dev/null
229fi
230
Joel Fernandesf0c54092018-04-01 19:05:10 -0700231# Package kernel headers
232if [ ! -z "$KERNELSRC" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700233 c_info "Building and updating kernel headers from kernel source dir ($KERNELSRC)"
Joel Fernandes72065112018-04-01 20:02:53 -0700234 $spath/bcc/build-kheaders-targz.sh ${KERNELSRC} $TDIR_ABS/kh.tgz > /dev/null
235
Joel Fernandesf0c54092018-04-01 19:05:10 -0700236 # Is header update the only thing left to do?
Joel Fernandes (Google)1171d2d2018-05-30 17:22:09 -0700237 if [[ ! -z "$SKIP_INSTALL" ]]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700238 c_info "Skipping install"
Joel Fernandes72065112018-04-01 20:02:53 -0700239 push_unpack_headers; do_cleanup; all_done_banner; exit 0; fi
Joel Fernandesf0c54092018-04-01 19:05:10 -0700240
Joel Fernandese381ac72018-03-31 21:46:36 -0700241 mkdir $OUT_TMP/kernel-headers
Joel Fernandes72065112018-04-01 20:02:53 -0700242 tar -xvf $TDIR_ABS/kh.tgz -C $OUT_TMP/kernel-headers/ > /dev/null
Joel Fernandese381ac72018-03-31 21:46:36 -0700243fi
Joel Fernandes4fb97ea2018-03-31 11:15:19 -0700244
Joel Fernandesf0c54092018-04-01 19:05:10 -0700245# Build FS from existing tar, very simple.
Joel Fernandes9f00bf42018-04-01 10:36:33 -0700246if [ ! -z "$TARF" ]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700247 c_info "Using archive at $TARF for filesystem preparation"
Joel Fernandes02939a32018-04-02 22:18:10 -0700248 $ADB shell mkdir -p /data/androdeb/
Joel Fernandesf95f2b22018-07-08 17:54:47 -0700249
250 c_info "Pushing filesystem to device.."
251 run_quiet $ADB push $TARF /data/androdeb/deb.tar.gz
252
253 c_info "Pushing addons to device.."
254 run_quiet $ADB push $spath/addons/* /data/androdeb/
255
256 c_info "Unpacking filesystem in device.."
257 run_quiet $ADB shell /data/androdeb/device-unpack
Joel Fernandes9f00bf42018-04-01 10:36:33 -0700258
Joel Fernandes1ed30d72018-05-18 14:08:20 -0700259 if [ ! -z "$KERNELHDRS" ]; then push_unpack_tarred_headers $KERNELHDRS; fi
Joel Fernandesf0c54092018-04-01 19:05:10 -0700260 if [ ! -z "$KERNELSRC" ]; then push_unpack_headers; fi
261
Joel Fernandes72065112018-04-01 20:02:53 -0700262 do_cleanup; all_done_banner; exit 0
Joel Fernandesf0c54092018-04-01 19:05:10 -0700263fi
264
265PACKAGES+="$DEFAULT_PACKAGES"
Joel Fernandes112243b2018-07-08 17:42:48 -0700266c_info "Using temporary directory: $TDIR"
Joel Fernandes4fb97ea2018-03-31 11:15:19 -0700267
Joel Fernandes112243b2018-07-08 17:42:48 -0700268if [[ $EUID -ne 0 ]]; then c_info "The next stage runs as sudo, please enter password if asked."; fi
Joel Fernandes4fb97ea2018-03-31 11:15:19 -0700269
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700270SKIP_COMPRESS=0; if [ ! -z "$BUILD_IMAGE" ]; then SKIP_COMPRESS=1; fi
271
Joel Fernandes (Google)57b3fd22018-05-29 16:27:03 -0700272ex_files=$(mktemp); echo $EXTRA_FILES > $ex_files
273
Joel Fernandes (Google)4f711082018-05-29 16:23:15 -0700274sudo $spath/buildstrap $ARCH $DISTRO $TDIR $OUT_TMP \
275 "$(make_csv "$PACKAGES")"\
Joel Fernandes (Google)57b3fd22018-05-29 16:27:03 -0700276 $ex_files $INSTALL_BCC $SKIP_COMPRESS
277rm $ex_files
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700278
279# If we only wanted to prepare a rootfs and don't have
280# a device connected, then just echo that and skip cleanup
281if [ ! -z "$BUILD_IMAGE" ]; then
Joel Fernandesba7214e2018-07-08 18:15:49 -0700282 c_info "For --build-image, only the image is built."
283 c_info "any builds that need to happen on device may be cloned but not built."
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700284 sudo $spath/buildimage $OUT_TMP $(dirname $BUILD_IMAGE)/$(basename $BUILD_IMAGE)
285 sudo chmod a+rw $(dirname $BUILD_IMAGE)/$(basename $BUILD_IMAGE)
Joel Fernandesba7214e2018-07-08 18:15:49 -0700286
287 do_cleanup
288 c_info "Your .img has been built! Enjoy!"; exit 0
Joel Fernandes (Google)9c3ae932018-05-28 14:34:48 -0700289fi
Joel Fernandes4dd60862018-03-31 13:27:16 -0700290
291# Push tar to device and start unpack
Joel Fernandes02939a32018-04-02 22:18:10 -0700292$ADB shell mkdir -p /data/androdeb/
293$ADB push $TDIR/deb.tar.gz /data/androdeb/
294$ADB push $spath/addons/* /data/androdeb/
295$ADB shell /data/androdeb/device-unpack
Joel Fernandesb61d27d2018-03-31 11:59:45 -0700296
Joel Fernandes6f1c70f2018-03-31 20:26:26 -0700297# Build BCC and install bcc on device if needed
298if [[ ! -z ${INSTALL_BCC+x} ]]; then
Joel Fernandes02939a32018-04-02 22:18:10 -0700299$ADB shell /data/androdeb/run-command /bcc-master/build-bcc.sh; fi
Joel Fernandes4fb97ea2018-03-31 11:15:19 -0700300
Joel Fernandesf0c54092018-04-01 19:05:10 -0700301do_cleanup
Joel Fernandese381ac72018-03-31 21:46:36 -0700302
Joel Fernandes97958e12018-03-31 23:51:44 -0700303# Extract a tar of the built, compiled and installed androdeb env
304if [[ ! -z ${TARDIR+x} ]]; then
Joel Fernandes112243b2018-07-08 17:42:48 -0700305 c_info "Creating and pulling tarball of androdeb env from device"
Joel Fernandes02939a32018-04-02 22:18:10 -0700306 $ADB shell /data/androdeb/build-debian-tar
307 $ADB pull /data/androdeb/androdeb-fs.tgz $TARDIR/
308 $ADB shell rm /data/androdeb/androdeb-fs.tgz; fi
Joel Fernandes97958e12018-03-31 23:51:44 -0700309
Joel Fernandes72065112018-04-01 20:02:53 -0700310all_done_banner