• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -x
2
3print_prepare_banner() {
4	c_info "Preparing device..."
5	if [ $FULL -eq 1 ]; then
6		c_info "Doing a full install."
7	else
8		c_info "Doing a base install."
9	fi
10	c_info ""
11}
12
13usage() {
14	c_info "USAGE:"
15	c_info "adeb"
16	c_info "	shell		Enter the androdeb shell environment and get to work!"
17	c_info "	remove		Remove androdeb from the device"
18	c_info "	git-pull	Git pull androdeb to update it on your host"
19	c_info "	pull		Copy files from the androdeb filesystem in the device"
20	c_info "	push		Copy files to the androdeb filesystem in the device"
21	c_info ""
22	c_info "	prepare		Prepare the device (when running for the first time)"
23	c_info "			By default, this will download and install a base image."
24	c_info "	** Folowing are the prepare options **"
25	c_info "	  --full	Pass this to prepare to download and install the full image which"
26	c_info "			contains compilers, editors, tracers etc."
27	c_info ""
28	c_info "	  --build	Instead of download, build and install the image onto the device"
29	c_info ""
30	c_info "	  --archive	Use archive for root fs (overrides all other prepare options)"
31	c_info ""
32	c_info "	  --buildtar	While preparing, also build a tar.gz.zip file of the filesystem,"
33	c_info "				this is how images that are downloaded by prepare are built"
34	c_info ""
35	c_info "	  --build-image	Build an ext4 .img with the base image and BCC (useful for Qemu)"
36	c_info ""
37	c_info "	** Folowing are misc build options **"
38	c_info "	  --tempdir	Use a specific temporary directory for build operation"
39	c_info "	  --arch		Specify an ARCH to build for (default arm64)"
40	c_info "	  --distro	Debian distro to base on (default is buster)"
41	c_info ""
42	c_info "	** Folowing are the options for BCC **"
43	c_info "	  --bcc		Build and install BCC onto the device, from source"
44	c_info "			BCC is already included in 'prepare --full'"
45	c_info ""
46	c_info "	  --kernelsrc	 Extract kernel headers for BCC from this directory"
47	c_info ""
48	c_info "	  --skip-install Pass this to --kernelsrc if you wish to only extra/install kernel headers"
49	c_info "			 and would like to exit after that (skips build/install of everything else)"
50	c_info ""
51	c_info "	** Folowing are device specific options ** "
52	c_info "	--device	Serial number of adb device."
53	c_info "	      -s	Serial number of adb device."
54	c_info ""
55	c_info "	--debug		Debug all execution."
56	exit 1
57}
58
59
60