Skip to content

Instantly share code, notes, and snippets.

@icyflame
Created October 27, 2014 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icyflame/97d3c29f62278790be50 to your computer and use it in GitHub Desktop.
Save icyflame/97d3c29f62278790be50 to your computer and use it in GitHub Desktop.
The Log File generated while flashing Ubuntu for Devices on Nexus 7
siddharth@ubuntu:~$ sudo add-apt-repository ppa:phablet-team/tools
[sudo] password for siddharth:
You are about to add the following PPA to your system:
More info: https://launchpad.net/~phablet-team/+archive/ubuntu/tools
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpr6fo33/secring.gpg' created
gpg: keyring `/tmp/tmpr6fo33/pubring.gpg' created
gpg: requesting key 5E51A24C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpr6fo33/trustdb.gpg: trustdb created
gpg: key 5E51A24C: public key "Launchpad PPA for Ubuntu Phablet Team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
siddharth@ubuntu:~$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
You are about to add the following PPA to your system:
Ubuntu SDK Release PPA for Ubuntu 14.04 LTS.
Upgrade with:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install ubuntu-sdk
== Ubuntu 14.04 LTS ==
Ubuntu 14.04 LTS had Qt 5.x, Ubuntu UI Toolkit and SDK updates during its main development cycle. This PPA offers post-release SDK updates, including Qt Creator & Ubuntu plugins updates. The emulator included (or a mobile device attached to the computer) makes it possible to test apps in the very latest Ubuntu phone/tablet environment.
== Earlier Ubuntu versions ==
Ubuntu 13.10 as a non-LTS release reached it's end of support in July 2014. Please upgrade to 14.04 LTS as soon as possible.
Ubuntu 12.04 LTS has older versions of packages offered in this PPA, but the SDK support has moved to the new 14.04 LTS release. It's however usable for example for general Qt 5 usage. Upgrades from 12.04 LTS to 14.04 LTS started to be offered via Software Updates in August 2014.
GENERAL NOTES
-------------
1. Qt4 and Qt5 developer tools are co-installable thanks to the qtchooser tool. See 'man qtchooser' for more information.
2. The packaging is done at Debian (http://anonscm.debian.org/gitweb/ (pkg-kde/qt)) and https://code.launchpad.net/~kubuntu-packagers (for Ubuntu specific changes).
More info: https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmppbUUxF/secring.gpg' created
gpg: keyring `/tmp/tmppbUUxF/pubring.gpg' created
gpg: requesting key C7122F9B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmppbUUxF/trustdb.gpg: trustdb created
gpg: key C7122F9B: public key "Launchpad PPA for Ubuntu SDK team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
siddharth@ubuntu:~$ sudo apt-get update
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release.gpg
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://dl.google.com stable Release
Hit http://archive.canonical.com precise Release.gpg
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://dl.google.com stable Release
Hit http://extras.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://packages.ros.org precise Release.gpg
Hit http://dl.google.com stable/main i386 Packages
Hit http://extras.ubuntu.com precise/main Sources
Ign http://dl.google.com stable/main TranslationIndex
Hit http://archive.canonical.com precise/partner Sources
Get:2 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://dl.google.com stable/main i386 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Hit http://packages.ros.org precise Release
Ign http://dl.google.com stable/main TranslationIndex
Hit http://toolbelt.heroku.com ./ Release.gpg
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://archive.ubuntu.com precise-backports Release.gpg
Ign http://archive.canonical.com precise/partner TranslationIndex
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:3 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://archive.ubuntu.com precise-security Release.gpg
Get:4 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://packages.ros.org precise/main i386 Packages
Ign http://luke.campagnola.me dev/ Release.gpg
Hit http://archive.ubuntu.com precise Release
Get:5 http://ppa.launchpad.net precise Release.gpg [316 B]
Ign http://luke.campagnola.me dev/ Release
Ign http://packages.ros.org precise/main TranslationIndex
Get:6 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://archive.ubuntu.com precise-updates Release
Hit http://toolbelt.heroku.com ./ Release
Get:7 http://ppa.launchpad.net precise Release.gpg [316 B]
Ign http://luke.campagnola.me dev/ Packages/DiffIndex
Get:8 http://build.i3wm.org sid Release.gpg [836 B]
Hit http://archive.ubuntu.com precise-backports Release
Get:9 http://build.i3wm.org sid Release [2,924 B]
Ign http://build.i3wm.org sid Release
Get:10 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://debian.sur5r.net precise Release.gpg
Hit http://archive.ubuntu.com precise-security Release
Ign http://build.i3wm.org sid/main i386 Packages/DiffIndex
Get:11 http://ppa.launchpad.net precise Release.gpg [316 B]
Ign http://build.i3wm.org sid/main TranslationIndex
Hit http://archive.ubuntu.com precise/main Sources
Get:12 http://ppa.launchpad.net precise Release.gpg [316 B]
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en_US
Get:13 http://build.i3wm.org sid/main i386 Packages [1,789 B]
Hit http://ppa.launchpad.net precise Release
Ign http://extras.ubuntu.com precise/main Translation-en
Hit http://toolbelt.heroku.com ./ Packages
Ign http://ppa.launchpad.net precise Release
Get:14 http://archive.ubuntu.com precise/restricted Sources [3,706 B]
99% [14 Sources bzip2 0 B] [Waiting for headers] [Waiting for hbzip2: (stdin) is not a bzip2 file.
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://debian.sur5r.net precise Release
Hit http://ppa.launchpad.net precise Release
Ign http://ppa.launchpad.net precise Release
Ign http://dl.google.com stable/main Translation-en_US
Get:15 http://archive.ubuntu.com precise/universe Sources [2,676 B]
100% [15 Sources bzip2 0 B] [Waiting for headers] [Waiting for bzip2: (stdin) is not a bzip2 file.
Hit http://ppa.launchpad.net precise Release
Ign http://ppa.launchpad.net precise Release
Ign http://dl.google.com stable/main Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Hit http://ppa.launchpad.net precise Release
Get:16 http://archive.ubuntu.com precise/multiverse Sources [2,596 B]
Ign http://ppa.launchpad.net precise Release
100% [16 Sources bzip2 0 B] [Waiting for headers] [Waiting for bzip2: (stdin) is not a bzip2 file.
Ign http://dl.google.com stable/main Translation-en
Hit http://ppa.launchpad.net precise Release
Get:17 http://archive.ubuntu.com precise/main i386 Packages [2,922 B]
100% [17 Packages bzip2 0 B] [Waiting for headers] [Waiting forbzip2: (stdin) is not a bzip2 file.
Hit http://ppa.launchpad.net precise Release
Hit http://debian.sur5r.net precise/universe i386 Packages
Get:18 http://ppa.launchpad.net precise Release [12.4 kB]
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Ign http://debian.sur5r.net precise/universe TranslationIndex
Ign http://build.i3wm.org sid/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://build.i3wm.org sid/main Translation-en
Ign http://packages.ros.org precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://packages.ros.org precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Hit http://luke.campagnola.me dev/ Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://luke.campagnola.me dev/ Translation-en_US
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Ign http://luke.campagnola.me dev/ Translation-en
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Get:19 http://archive.ubuntu.com precise/restricted i386 Packages [479 kB]
Hit http://ppa.launchpad.net precise/main TranslationIndex
Get:20 http://ppa.launchpad.net precise/main Sources [30.7 kB]
Get:21 http://ppa.launchpad.net precise/main i386 Packages [21.5 kB]
Get:22 http://ppa.launchpad.net precise/main TranslationIndex [72 B]
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://toolbelt.heroku.com ./ Translation-en_US
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://debian.sur5r.net precise/universe Translation-en_US
Hit http://ppa.launchpad.net precise/main Sources
Ign http://toolbelt.heroku.com ./ Translation-en
Ign http://debian.sur5r.net precise/universe Translation-en
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Get:23 http://archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Hit http://ppa.launchpad.net precise/main Translation-en
Hit http://ppa.launchpad.net precise/main Translation-en
Get:24 http://ppa.launchpad.net precise/main Translation-en [6,316 B]
Hit http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Get:25 http://archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:26 http://archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:27 http://archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]
Get:28 http://archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:29 http://archive.ubuntu.com precise/universe TranslationIndex [2,922 B]
Get:30 http://archive.ubuntu.com precise-updates/main Sources [479 kB]
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/multiverse Sources
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise-security/universe i386 Packages
Hit http://archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Fetched 5,979 kB in 2min 40s (37.3 kB/s)
W: GPG error: http://build.i3wm.org sid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 070D94CCBE1DB1F1
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 80AE77E42C5522E3 Launchpad PPA for Birdie Team
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG BF36996C4E1F8A59 Launchpad PPA for elementary OS team
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG F1773AF13B1510FD Launchpad PPA for GNOME3 Team
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG FAEB83059BD4ED25 Launchpad Trimage
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
siddharth@ubuntu:~$
siddharth@ubuntu:~$ sudo apt-get install ubuntu-device-flash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
android-tools-adb android-tools-fastboot
The following NEW packages will be installed:
android-tools-adb android-tools-fastboot ubuntu-device-flash
0 upgraded, 3 newly installed, 0 to remove and 376 not upgraded.
Need to get 1,170 kB of archives.
After this operation, 5,160 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ precise/main android-tools-adb i386 4.2.2+git20130218-3ubuntu36 [68.7 kB]
Get:2 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ precise/main android-tools-fastboot i386 4.2.2+git20130218-3ubuntu36 [50.0 kB]
Get:3 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ precise/main ubuntu-device-flash i386 0.4+14.10.20140929-0ubuntu1 [1,051 kB]
Fetched 1,170 kB in 11s (98.3 kB/s)
Selecting previously unselected package android-tools-adb.
(Reading database ... 323518 files and directories currently installed.)
Unpacking android-tools-adb (from .../android-tools-adb_4.2.2+git20130218-3ubuntu36_i386.deb) ...
Selecting previously unselected package android-tools-fastboot.
Unpacking android-tools-fastboot (from .../android-tools-fastboot_4.2.2+git20130218-3ubuntu36_i386.deb) ...
Selecting previously unselected package ubuntu-device-flash.
Unpacking ubuntu-device-flash (from .../ubuntu-device-flash_0.4+14.10.20140929-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up android-tools-adb (4.2.2+git20130218-3ubuntu36) ...
Setting up android-tools-fastboot (4.2.2+git20130218-3ubuntu36) ...
Setting up ubuntu-device-flash (0.4+14.10.20140929-0ubuntu1) ...
siddharth@ubuntu:~$ man ubuntu-device-flash
siddharth@ubuntu:~$ adb
Android Debug Bridge version 1.0.31
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <specific device> - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fails
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
- push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
siddharth@ubuntu:~$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
siddharth@ubuntu:~$ sudo apt-get install phablet-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
phablet-tools : Depends: click but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
siddharth@ubuntu:~$ sudo apt-get install click
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
click : Depends: python3-click (= 0.4.32.1) but it is not going to be installed
Recommends: click-apparmor but it is not installable
Recommends: ubuntu-app-launch-tools but it is not installable or
upstart-app-launch-tools but it is not installable
E: Unable to correct problems, you have held broken packages.
siddharth@ubuntu:~$ sudo apt-get install phablet-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
phablet-tools : Depends: click but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
siddharth@ubuntu:~$ fastboot -h
siddharth@ubuntu:~$ fastboot -h
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format <partition> format a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
-S <size>[K|M|G] automatically sparse files greater than
size. 0 to disable
siddharth@ubuntu:~$ adb -h
siddharth@ubuntu:~$ adb -h
Android Debug Bridge version 1.0.31
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <specific device> - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fails
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
- push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
siddharth@ubuntu:~$
siddharth@ubuntu:~$ adb devices
List of devices attached
015d4bdf734c041a device
siddharth@ubuntu:~$ cd /media/A412A5B312A58B3E/
siddharth@ubuntu:A412A5B312A58B3E$ mkdir flash-ubuntu
siddharth@ubuntu:A412A5B312A58B3E$ cd flash-ubuntu/
siddharth@ubuntu:flash-ubuntu$ adb backup -apk -shared -all
Now unlock your device and confirm the backup operation.
siddharth@ubuntu:flash-ubuntu$ ls
backup.ab
siddharth@ubuntu:flash-ubuntu$ ls -l
total 2097152
-rw------- 1 siddharth siddharth 2147483647 Oct 26 20:01 backup.ab
siddharth@ubuntu:flash-ubuntu$ adb shell
shell@grouper:/ $ exit
siddharth@ubuntu:flash-ubuntu$ adb shell grep ro.product.name /system/build.prop > mydevicedata \
> && adb shell grep build.id /system/build.prop >> mydevicedata \
> && adb shell grep ro.product.device /system/build.prop >> mydevicedata
siddharth@ubuntu:flash-ubuntu$ cat mydevicedata
ro.product.name=nakasi
ro.build.id=KTU84P
ro.product.device=grouper
# ro.build.product is obsolete; use ro.product.device
siddharth@ubuntu:flash-ubuntu$ adb shell
shell@grouper:/ $ ro.product.device
/system/bin/sh: ro.product.device: not found
127|shell@grouper:/ $ exit
siddharth@ubuntu:flash-ubuntu$
siddharth@ubuntu:flash-ubuntu$ fastboot devices
siddharth@ubuntu:flash-ubuntu$ adb devices
List of devices attached
015d4bdf734c041a device
siddharth@ubuntu:flash-ubuntu$ adb reboot bootloader
siddharth@ubuntu:flash-ubuntu$ fastboot devices
no permissions fastboot
siddharth@ubuntu:flash-ubuntu$ adb devices
List of devices attached
015d4bdf734c041a device
siddharth@ubuntu:flash-ubuntu$ adb reboot bootloader
siddharth@ubuntu:flash-ubuntu$ fastboot devices
no permissions fastboot
siddharth@ubuntu:flash-ubuntu$ fastboot devices
no permissions fastboot
siddharth@ubuntu:flash-ubuntu$ adb kill-server
siddharth@ubuntu:flash-ubuntu$ sudo adb start-server
[sudo] password for siddharth:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
siddharth@ubuntu:flash-ubuntu$ fastboot devices
no permissions fastboot
siddharth@ubuntu:flash-ubuntu$ adb reboot bootloader
error: device not found
siddharth@ubuntu:flash-ubuntu$ adb devices
List of devices attached
siddharth@ubuntu:flash-ubuntu$ fastboot devices
no permissions fastboot
siddharth@ubuntu:flash-ubuntu$ sudo fastboot oem unlock
...
(bootloader) erasing userdata...
(bootloader) erasing userdata done
(bootloader) erasing cache...
(bootloader) erasing cache done
(bootloader) unlocking...
(bootloader) Bootloader is unlocked now.
OKAY [ 43.746s]
finished. total time: 43.746s
siddharth@ubuntu:flash-ubuntu$ sudo ubuntu-device-flash --channel=ubuntu-touch/stable --bootstrap
2014/10/26 21:31:36 Expecting the device to be in the bootloader... waiting
2014/10/26 21:31:36 Device is |grouper|
2014/10/26 21:31:38 Flashing version 10 from ubuntu-touch/stable channel and server https://system-image.ubuntu.com to device grouper
2014/10/26 21:31:38 ubuntu-touch/stable is a channel alias to ubuntu-touch/stable
27.81 MB / 27.81 MB [=====================================================================================] 100.00 % 139.51 KB/s
269.80 MB / 269.80 MB [====================================================================================] 100.00 % 78.94 KB/s
/home/siddharth/.cache/ubuntuimages/ubuntu-touch/stable/grouper/version-10.tar.xz
/home/siddharth/.cache/ubuntuimages/gpg/image-master.tar.xz
/home/siddharth/.cache/ubuntuimages/gpg/image-signing.tar.xz
/home/siddharth/.cache/ubuntuimages/pool/device-d991411b35567772cb9bca35bc8a2068cd4080dc9ceeddde08e96691b8a1c542.tar.xz
2014/10/26 22:30:25 Start pushing /home/siddharth/.cache/ubuntuimages/ubuntu-touch/stable/grouper/version-10.tar.xz to device
2014/10/26 22:30:25 Start pushing /home/siddharth/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2014/10/26 22:30:25 Start pushing /home/siddharth/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2014/10/26 22:30:25 Start pushing /home/siddharth/.cache/ubuntuimages/pool/device-d991411b35567772cb9bca35bc8a2068cd4080dc9ceeddde08e96691b8a1c542.tar.xz to device
2014/10/26 22:30:25 Start pushing /home/siddharth/.cache/ubuntuimages/pool/ubuntu-d089ad76802f5698cfb0acadfe9e441a56a5fbe3af6f0df4e099398910e84212.tar.xz to device
2014/10/26 22:30:26 Done pushing /home/siddharth/.cache/ubuntuimages/ubuntu-touch/stable/grouper/version-10.tar.xz to device
2014/10/26 22:30:26 Done pushing /home/siddharth/.cache/ubuntuimages/gpg/image-signing.tar.xz to device
2014/10/26 22:30:26 Done pushing /home/siddharth/.cache/ubuntuimages/gpg/image-master.tar.xz to device
2014/10/26 22:31:09 Done pushing /home/siddharth/.cache/ubuntuimages/pool/device-d991411b35567772cb9bca35bc8a2068cd4080dc9ceeddde08e96691b8a1c542.tar.xz to device
2014/10/26 22:34:17 Done pushing /home/siddharth/.cache/ubuntuimages/pool/ubuntu-d089ad76802f5698cfb0acadfe9e441a56a5fbe3af6f0df4e099398910e84212.tar.xz to device
2014/10/26 22:34:17 Created ubuntu_command: /home/siddharth/.cache/ubuntuimages/ubuntu_commands871424824
2014/10/26 22:34:17 Rebooting into recovery to flash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment