> Attention!

New threads need to be created only inroot partition! In the future, they will be processed by moderators.



ADB and all that can be done with it



Rep: (349)
What is ADB (Android Debug Bridge).

(Applicable to all Android devices where this functionality was not intentionally blocked by the manufacturer)


What is ADB?
ADB (Android Debug Bridge - Android Debug Bridge) is a tool that is installed with the Android-SDK and allows you to control a device based on the Android OS.
It works on all Android devices where this functionality was not intentionally blocked by the manufacturer.
Hereinafter: PC - PC, computer to which the device is connected.
ADB is a console application for PC, which is used to debug Android devices, including emulators.
Works on the principle of client-server. The first time you start ADB with any command, a server is created as a system service (daemon) that will listen on all commands sent to port 5037.
Official page
ADB allows you to:
  • See which devices are connected and can work with ADB.
  • View logs.
  • Copy files from / to the device.
  • Install / Remove applications.
  • Delete (clear) the data section.
  • Flash (rewrite) the data section.
  • Perform various management scripts.
  • Manage some network settings.
Supplied ADB as part of the Android Developer Toolkit (Android SDK), which, in turn, is part of Android Studio.
Installation
We unpack the archive (it is recommended to unpack to the root of the disk or to another folder that does not contain Russian letters on the way,). For example: c: \ adb \ or a: \ adb \
The result should be a folder in the root of the disk with the contents:
#: \ adb \ adb.exe - directly the ADB itself, with which we will work.
#: \ adb \ AdbWinApi.dll is a library for working with ADB.
#: \ adb \ AdbWinUsbApi.dll is a library for working with ADB.
#: adb \ fastboot.exe - device management translated into fastboot mode.
Installation Instructions (Windows, OS X and Linux)
Connection settings, device. Drivers.
Customize your phone.
To do this, go to: "Settings" - "About phone" - 7 times click on the build number. In the developer settings, enable USB debugging.
When you connect a USB cable, select Charging Only.
Check the connection on the computer.
We create in the unpacked folderadbfiledevices.cmd(check that .cmd is the file extension and not its name) and we write there:
echo off
adb devices
pause
Run the created file. If done correctly, the lines will be visible:
D: \ adb>devices.cmd
adb devices
List of devices attached
HT16GV402012 device
D: \ adb>pause
To continue, press any key. . .
If something is wrong, then the List of devices attached will be empty.
How to use?
Since ADB is a console application, working with Windows is not very comfortable with it.
There are several ways to work with the console.
For example, using cmd.exe (Windows Command Handler).
Runs in any of the following ways:
1. Start ->Run ->cmd ->Enter (Enter).
2. ShortcutWIN + R ->cmd ->Enter (Enter).
3. In the Windows \ System32 folder, find the filecmd.exeand run it.
We fall into the handler.
Go to the ADB directory with the command:cd c: \ adb \.
Next, we work through ADB commands.
ADB commands
Hidden ADB commands
adb -dThe command is sent only to a device connected via USB.
Attention: will give an error if more than one device is connected.

adb -eThe command is sent to the device in the emulator.
Attention: You will get an error if more than one emulator is connected.

adb -s <serial_device_number>The command is sent to the device with the specified serial number:

adb -p <device name or path>The command is sent to the device with the specified name:
If the -p switch is not specified, the value of ANDROID_PRODUCT_OUT is used.

adb devices
List of all connected devices.

adb connect<host>[:<port>]
Connect to the android host via TCP / IP over port 5555 (by default, if not specified).

adb disconnect [<host>[:<port>]]
Disconnect from the android connected via TCP / IP port 5555 (by default, if not specified).
If no parameter is specified, disconnect from all active connections.

adb push<PC path><way to android>Copy file / folder PC->device

adb pull<way to android> [<PC path>]Copy file / folder device>PC

adb sync [<catalog>]
Copy PC->device only new files.
Keys:
-l Do not copy, only create a list.

adb shellRun a simplified unix shell.
Examples of using

adb emu<team>Send a command to the emulator console

adb install [-l] [-r] [-s]<application_name.apk>Send the app to your device and install it.
Example: adb install c: /adb/app/autostarts.apkInstall fileautostarts.apklying in a folder/ adb / app /on disk with:
Keys:
-l application lock
-r Reinstall application, saving data
-s Install the application on the memory card

adb uninstall [-k]<application_name.apk>Remove application from device.
Keys:
-k Do not delete saved application and user data.

adb wait-for-deviceWait for the device to connect.

adb start-serverStart the service / daemon.

adb kill-serverStop the service / daemon.

adb get-stateGet status:
offlineSwitched off.
bootloaderIn boot mode.
deviceIn operation.

adb get serialnoGet the serial number.

adb status-windowContinuous polling status.

adb remountRemount for recording. Required for scripts that change data to.

adb reboot bootloader
Reboot to bootloader mode.

adb reboot recoveryReboot into recovery mode.

adb rootRestarting the daemon as root

adb usbRestart daemon listening to usb.

adb tcpip<port>Restarting daemon listening on TCP port.

adb ppp<tty>[Options] Start service via USB.
Note: you should not automatically start a PPP connection.<tty>It refers to the tty for PPP stream. Eg. dev: / dev / omap_csmi_tty1
Options:
defaultroute debug dump local notty usepeerdns

FastBoot commands
FastBoot is a console application for PC. Used to act on sections
for HTC
In manufactured devices, this feature is disabled because USB support has been disabled in the bootloader. For full-featured use of fastboot, you must have an engineering SPL, or a SPL with the Security flag off (S-OFF).

SPL is the second software downloader. In combination with IPL, make up the device loader. In addition to the initial download of Android, the bootloader also performs various diagnostic functions. One of these data management functions in the deviceвАЩs internal flash memory. Depending on the installed SPL bootloader, the user will be able to flash NBH signed files, NAND flash images and much more. Please note that SPL is installed and running, regardless of the Android that runs on top of it. IPL is a boot program. Initial hardware load / initialization. About the same as computer BIOS.
You can check whether fastboot is available to us by reloading HTC into the adb reboot bootloader bootloader. On the top line, you should see S-OFF (security off). If you see S-ON, or you see a background with four colors of the rainbow, SPL does not support fastboot. You will need to install fastboot SPL compatible.

Attention! When you connect HTC in bootloader mode, you need to install the Android 1.0 driver again (I do not know why this is how it is displayed in the device manager). The procedure is almost the same as described above. The same drivers are installed, only the line is selected not ADB, but FASTBOOT.


fastboot devicesList of attached devices in fastboot mode.
fastboot flash<section><file>Sews the .img file to the device partition.

fastboot erase<section>Erase section.
Sections:boot, recovery, system, userdata, radio
Example:fastboot erase userdataErase user data.

fastboot update<filename.zip>Firmware from file filename.zip

fastboot flashallFirmware boot + recovery + system.

fastboot getvar<variable_name>Show bootloader variables.
Example: fastboot getvar version-bootloaderGet the bootloader version.

fastboot boot<kernel> [<ramdisk>]Download and download kernel.

fastboot flash: raw boot<kernel> [<ramdisk>] Create a bootimage and flash it.

fastboot devicesShow the list of connected devices.

fastboot continueContinue with autoload.

fastboot rebootReboot the machine.

fastboot reboot-bootloaderReload device bootloader mode.
Before the fastboot commands, you can use the keys:
-w wipe user data and cache
-s<serial number>Specify the serial number of the device.
-p<product>Specify the name of the device.
-c<cmdline>Override kernel commandline.
-i<vendor id>Manually specify the USB vendor id.
-b<base_addr>Specify the kernel base address manually.
-n<page size>Specify the size of nand pages. the default is 2048.
Firmware radio.
Rename the radio to radio.img and put it in the ADB folder.
@echo off
fastboot reboot-bootloader
echo After booting the bootloader, press any key ...
pause
fastboot flash radio radio.img
fastboot reboot

Recovery firmware from backup.
@echo off
fastboot reboot-bootloader
echo After booting the bootloader, press any key ...
pause
fastboot flash userdata data.img
fastboot flash system system.img
fastboot flash boot boot.img
fastboot reboot

Flash animation when loading
Downloading bootanimation. Rename the file to bootanimation.zip and put it in the ADB folder.
@echo off
adb remount
adb push bootanimation.zip / data / local

Getting SuperCID (Debrending
@echo off
adb devices
fastboot reboot-bootloader
echo After booting the bootloader, press any key ...
pause
fastboot oem writecid 11111111
fastboot reboot-bootloader
fastboot getvar cid
fastboot reboot

Firmware recovery.
Unpack the image of the recovery. Rename the file to recovery.img and put it in the folder with ADB.
@echo off
fastboot reboot-bootloader
echo After booting the bootloader, press any key ...
pause
fastboot flash recovery recovery.img
fastboot reboot

Firmware boot partition
Rename the piece of firmware responsible for loading to boot.img and put it in the ADB folder.
@echo off
fastboot reboot-bootloader
echo After booting the bootloader, press any key ...
pause
fastboot flash boot boot.img
fastboot reboot

Debugging
What is LogCat and how to use it?
How to remove logcat in various ways and applications
adb logcat [<Keys>] [<filter>] View logs with debug information:

You can use the logcat command from a development machine.
$ adb logcat
or from remote shell
# logcat Each log message in Android has a tag and priority
The tag is a string indicating the system component from which the message was received (for example: View for the view system)
Priority - has one of the following values вАЛвАЛ(in order from lowest to highest):
V - Verbose (Low priority).
D - Debug
I - Info
W - Warning
E - Error
F - Fatal
S - Silent (The highest priority at which nothing is output).

Get a list of tags used in the system, along with their priorities, you can run logcat. The first two columns of each displayed message will be listed.<a priority>/<tag>.
An example of the displayed logcat message:
I / ActivityManager (585): Starting activity: Intent {action = android.intent.action ...}

To reduce log output to an acceptable level, filter expressions should be used. Filter expressions allow the system to specify the desired combinations.<tag>and<a priority>, the remaining messages are not displayed by the system.
Filter expressions have the following format.<tag>:<a priority>... where<tag>indicates the desired tag,<a priority>indicates the minimum priority level for the selected tag. Messages with the selected tag and priority at or above the specified level are recorded in the log. Any number of pairs can be used.<tag>:<a priority>in one filter expression. To separate pairs<tag>:<a priority>space is used.

The example below logs all messages with an "ActivityManager" tag with a priority of "Info" or higher, and messages with a "MyApp" tag and a priority of "Debug" or higher:
adb logcat ActivityManager: I MyApp: D *: S
The last element in the filter expression *: S sets the priority "silent" for all other tags, thereby ensuring the display of messages only for "View" and "MyApp". Using *: S is a great way to log only explicitly specified filters (that is, the white list of messages is indicated in the filter expression, and *: S sends everything else to the black list).

The following filter expression displays all messages with a priority of "warning" or higher for all tags:
adb logcat *: W

If logcat runs on the developerвАЩs machine (not via the remote adb shell), you can also set the value of the default filter expression by setting the ANDROID_LOG_TAGS environment variable:
export ANDROID_LOG_TAGS = "ActivityManager: I MyApp: D *: S"

Please note that specifying the ANDROID_LOG_TAGS environment variable will not work in the emulator / device if you use logcat in a remote shell or using adb shell logcat.
The export command described above works in OS * nix and does not work in Windows.

Monitoring Log Output Format

Log messages in addition to tag and priority contain several metadata fields. You can change the message output format showing only specific metadata fields. To do this, use the -v option and specify one of the following output formats.

briefShow priority / tag and process PID (default format).
processOnly show PID.
tagOnly show priority / tag.
threadShow only process: thread and priority / tag.
rawShow unprocessed message, without metadata fields.
timeShow date, call time, priority / tag and process PID.
longShow all metadata fields and separate messages with empty lines.

When runninglogcatYou can specify the output format using the -v parameter:
adb logcat [-v<format>]
An example that shows messages in the thread format:
adb logcat -v thread
It should be noted that only one format can be used with the -v option.

View alternate log buffer

The Android logging system holds several ring buffers for the message log and not all messages are sent to the main buffer. To display additional log messages, you need to run logcat with the -b parameter.

Thus you can see one of the alternative buffers:
radio View radio / phone related buffer.
events View a buffer with event related messages.
main View the main buffer (default).

The example below shows a buffer with radio and telephone messages:
adb logcat -b radio

View stdout and stderr

By default, the Android system sends the output of stdout and stderr (System.out and System.err) to / dev / null (deletes). In processes that run on a Dalvik virtual machine (Dalvik VM), a copy of the output to the log file can be written. In this case, the system writes messages to the log using the stdout and stderr tags with priority I.
To redirect output, you need to stop the emulator / device, then execute the shell setprop command to enable output redirection. An example of how this is done:
$ adb shell stop
$ adb shell setprop log.redirect-stdio true
$ adb shell start

The system saves this setting while the emulator / device is running. To use this default setting in the emulator / device, you need to add this command to/data/local.propin the emulator / device.

List of logcat command options
-b<buffer>Load an alternate log buffer for viewing, such as event or radio. The main buffer is used by default.
-c Clear (reset) the log and exit.
-d Display the log and exit.
-f<filename>Write log messages to file<filename>. The default is stdout.
-g Display the size of the specified log buffer and exit.
-n<count>Set the maximum number of log rotations (the number of stored compressed log fragments)<count>. The default is 4. Requires the -r option.
-r<kbytes>Perform rotation every<kbytes>output (split the log into fragments by<kbytes>). The default is 16. Requires the -f option.
-s Set the default silent filter.
-v<format>Sets the format for displaying log messages. The default is brief.
Useful
List of PC software for file system GUI via ADB
Useful scripts

Shell scripts for Android
adb shell<shell command>The command is sent through the shell.
Example: adb shell rm -r / system / sd / appRemove applications installed on the memory card.
Example: adb shell rm -r / system / sd / app-privateDeleting applications installed on the memory card in the private section.
Example: adb shell cat / proc / mtdIt will give information about the sections of the internal memory of the device.
It will give something like:
dev: size erasesize name
mtd0: 000a0000 00020000 "misc"
mtd1: 00420000 00020000 "recovery"
mtd2: 002c0000 00020000 "boot"
mtd3: 0fa00000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 0af20000 00020000 "userdata"

Example: adb shell dfIt will display information about free resources in the memory sections of the device.
It will give something like:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 160664 0 160664 0% / dev
/ dev / block / mtdblock4 40960 1292 39668 3% / cache
/ dev / block / mtdblock3 256000 146888 109112 57% / system
/ dev / block / mtdblock5 179328 125728 53600 70% / data
/ dev / block / mmcblk0p1 15521280 10056880 5464400 65% / sdcard

Create a file with the extension .cmd or .bat in the folder with the ADB (check that .cmd or .bat is the file extension and not its name) and write there:
copy block (set block and outgoing name)
adb shell su -c dd if = / dev / block / mmcblk0p9 of = / sdcard / factoryfs.img bs = 4096


find out what blocks there are in general
adb shell cat / proc / partitions


Example:
adb shell mount -o rw / dev / block / mtdblock3 / system
adb shell mount -o rw / dev / block / mtdblock5 / data

Mount partitions / system and / data in ClockworkMod recovery mode.

unlock from the pattern on the lock (after the command to enter any gesture)
adb shell rm /data/system/gesture.key

Graphic lock. Screen lock code - problem solving.

Stop ADB service.
@echo off
taskkill / f / im adb.exe

A few words about the modes of the phone
Getting the logcat of a specific application


Download:
Platform-tools (adb & fastboot) r29.0.1
Platform-tools (adb & fastboot) r23.1.0 The latest version running on Windows XP.

Past versions


Topics Curator:Displax


Post has been editedDisplax - 18.06.19, 18:14



Rep: (495)
Adb

ADB - nice to meet you!
Added Adobe Acrobat document (.pdf) with command entry pictures: good:

In the life of the android there are two important things, more precisely mode - ADB and Fastboot.

Both words are utilities that are available from the Android SDK using the command line. They play an important role in the life of your phone. If something happens, something flies or freezes, then without them you will not do anything ... unless you throw a piece of plastic in the trash.

ADB is a mode that is available to you, as mentioned above, from under the Android SDK. It performs many functions.


Let's start with installing and configuring ADB. And all that is useful to you in this case:
How to install ADB / USB drivers for Android devices

Android SDK - Download
WinRar - Download (32bit) Download (64bit)
Windows pc
USB Cable
Rooted HTC Dream (Google G1)

Configuring Android SDK

Download the file (sdk) above
Unpacking on the desktop
Take the "android-sdk-windows" folder and throw it into the root of your system disk (C: \)

Right click on вАЬMy ComputerвАЭ and click on properties.
Choose the tab "Advanced" or "Advanced Settings" (or something like that) (Vista / Windows 7)
There we select "Environment Variables" (English - Environment Variables)
Click to create

Variable name: adb
Value: C: \ android-sdk-windows \ tools

Thereafter:

1. Run the SDK Setup.exe
2. If you swear at us with an error, then go to the settings and click on "Force http // ... .."
3. Select all the options and click until all the good is downloaded.

If you have any problems, then download the folder USB-DRIVERS - HERE (Windows XP / Vista / Windows 7)

Preparing your phone for ADB

In your phone go to the settings (Settings)
Select Applications (Applications)
Choosing Development
Make sure that вАШUSB DebuggingвАЩ is ticked (Ie enabled)

Driver installation

Connect your phone via USB and DO NOT INSTALL SD!
Your computer should update the new device, after which it will try to install Android 1.0 driver
Let him do it
If not found, then click "Install driver manually"
The driver we need is located in the folder with your Android SDK 1.5r2 (C: \ android-sdk-windows \ usb_driver)
After which your ADB Android device must be installed! Take a pie from the shelf
For Android SDK 1.5r3 +

1. Run the SDK Setup.exe
2. If you swear at us with an error, then go to the settings and click on "Force http // ... .."
3. Select all the options and click until all the good is downloaded.

If you have any problems, then download the folder USB-DRIVERS - HERE (Windows XP / Vista / Windows 7)

Check if ADB detects your phone:

Open command line (Run ->cmd ->enter)
And enter:

cd C: \ android-sdk-windows \ tools {Enter}
adb devices {after that you should see the list of devices)
adb shell {you should see the # character on the line}
Now you have configured everything to work adb mode

Type adb in cmd (without anything), and press enter. Below you will see all the commands available in this mode.
Congratulations! You have finished installing and configuring ADB! :-)
List of all ADB commands:
-d - directs command USB devic
e
USB device is
present.
-e - directs command to the running emulator
emulator is r
unning.
-s<serial number>- directs command or emulator w
ith
the given serial number
-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.
devices - list all connected 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
(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 jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r]<file>- push this package file
l it
('-l' means the app)
('-r' means reinstall the app, keeping its data
)
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 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 status-window - continuously print device status for a specifie
d device
adb remount - remounts the system partition
ad-write
adb root - restarts adb with root permissions

networking:
adb ppp<tty>[parameters] - Run PPP over USB.
Note: you should not automatically start a PDP connection.
<tty>It 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 u
pdated

- If it is a "system" or "data", only the corresponding partition
is updated.

Command entry example

adb push
Example - adb push c: \ app.apk / data / app

adb pull
Example - adb pull /data/app_s/Stock.apk

adb install
Example - adb install c: /apps/apps2sd.apk

adb uninstall
Example - adb uninstall linda.apk

################################################################################


How to save the factory firmware?
INSTRUCTIONS:
How to backup firmware (for example, to keep the factory): ( BODY SHOULD BE ROOMED! )

Unzip the archive Attached file ADB.ZIP (290,89–Ъ) Number of downloads: 3154

The ADB folder contains the backup.bat file.

Code

adb shell su -c "dd if = / dev / block / stl6 of = / sdcard / factoryfs.rfs bs = 4096"
adb shell su -c "dd if = / dev / block / bml5 of = / sdcard / zImage bs = 4096"
adb shell su -c "dd if = / dev / block / bml10 of = / sdcard / modem.bin bs = 4096"



USB debug - put on the body>ON
It is also desirable to enable on the phone a mode in which the screen does not go out when charging (in the same place where the USB debug is turned on)

Connect the body via USB.
Launchbackup.bat

Confirm on the body of Root Access.
After that, after a couple of minutes on the Sd card - your firmware files!


Now you need to package the received factoryfs.rfs, zImage and modem.bin files into the tar archive.
In the same tar, you can push the file datafs.rfs, taken from any firmware (preferably the same "generation" 2.1 or 2.2, like yours)
The result is a TAR that is fully compatible with ODIN flash and you can return the phone to its virgin state at any time.
Just in case, after the firmware, it is desirable to make a wipe or from recovery to format the cache (cache)



How to stuff in tar:

I do TARA Cygwin-ohm. But you can pervert in the following way.
In TotalCommander we put a plugin for TAR. Open ANY ready TAR. Add your file, and everything else - delete!

The same can be done from the Terminal or Putty (via SSH):
For this, there is a backup.sh script in the ADB folder

Code

#! / system / bin / busybox sh
dd if = / dev / block / stl6 of = / sdcard / factoryfs.rfs bs = 4096
dd if = / dev / block / bml5 of = / sdcard / zImage bs = 4096
dd if = / dev / block / bml10 of = / sdcard / modem.bin bs = 4096


Copy it to the body in/ data

In Terminal or Putty:

su (only for Terminal!)
chmod 755 /data/backup.sh/data/backup.sh

METHOD FOR THOSE WHO "NO BOOM-BOOM" in ADB, but can type text on the keyboard.


Everything is done right on the phone through the Terminal Emulator. Described step by step.DO NOT HURRY, AND THEN YOU WILL BE SUCCESSFUL!
What do you need: Root, terminal emulator, free space on SD Card>300 Mb.
User requirement: Hands even dullly resembling frankness, Calm mood, Concentration.
ATTENTION: When entering commands in the terminal, always wait for the terminal to respond (it always responds to each command). Until you wait - do not enter anything. Just wait.

So let's get started. (Considering that there is already Root and a Terminal Emulator on the phone)

1) Run the Terminal Emulator
2) We type the command:su (will request Superuser rights. Allowed)
3) We type the command:mkdir / sdcard / Backup (we wait for the message from the terminal that the folder is created)
4) We type the command:dd if = / dev / block / bml5 of = / sdcard / Backup / zImage (we are waiting for a message from the terminal that "such a file of such and such size was created in such and such time")
5) We type the command:dd if = / dev / block / bml10 of = / sdcard / Backup / modem.bin (we are waiting for a message from the terminal that "such a file of such and such size was created in such and such time")
6) We type the command:dd if = / dev / block / stl6 of = / sdcard / Backup / factoryfs.rfs (We are waiting for a message from the terminal that "such and such a file of such and such size was created in such and such time."
7) After performing all the manipulations, close the Terminal Emulator
8) Go to the File Manager and look for the Backup folder.
9a) If there are three files in the folderzImage, modem.bin, factoryfs.rfs then all the beam
9b) If there is no any file, then repeat step 4) or 5) or 6), respectively (depending on which file there is not).
10) This is your factory firmware backup. Put him somewhere for a rainy day.

If you are very afraid for him, then upload several copies to different places.

======================================================

FAQ"How to restore the factory firmware"

What do you need: Odin Multi Downloader, any official firmware packaged with one TAR archive, backup files of your factory firmware (files zImage, modem.bin, factoryfs.rfs)
User requirement: Hands even dullly resembling frankness, Calm mood, Concentration.
So let's get started.

1) Take the TAR-archive of any (preferably the latest) firmware (if you wish, you can rename it as you wish)
2) Replace files in itzImage, modem.bin, factoryfs.rfs on your own backup
3) RunOdin Multi Downloader (the OPS file comes with the prog. For our model, it is called apollo_0531.ops)
4) Put the bird on"One Package" in Option (Left side of the window under the COM ports)
5) Click the button"One Package" (Lower left corner of the program window)
6) Choose your TAR-archive (where you put it)
7) Turn on the phoneDownload Mode (on the switched off phone we hold down the "Volume -", "Home" buttons (the central button) and the "Turn on" button - a blue diskette should appear.)
8) We connect to the computer (in Odin Multi Downloader, notifications should appear in the COM ports window)
9) Click "Start"
10) We are waiting until the inscription appears in the "Message" windowClose serial port and wait until rebooting. " (usually the phone itself starts to turn on)
11) Disconnect the cable from the phone
12) We are waiting for the phone to turn on, and then everything is as usual ...

Attached files
Attached fileBetter_Terminal_Emulator_Pro_v4.04.apk
Attached filejackpal.AndroidTerminalEmulator.1.0.21.apk

thankAssistant professor

Attached files

Attached fileWork with ADB.pdf(447.42 KB)


Post has been editedsask - 14.03.18, 14:44



Rep: (2798)
M
The topic has been moved to the section.Personal experience.



Rep: (188)
ADB allows you to:
See which devices are connected and can work with ADB.
View HTC logs.
Copy files from / to HTC.
Install / Remove apps on HTC.
Delete (clear) data section on HTC
Flash (overwrite) the data section on HTC.
Implement various HTC management scripts.
Manage some HTC network settings.

And why only on HTC? What, with devices from other manufacturers ADB does not work?
Parry



Rep: (188)
nano26,
Well, for example, pulling out logs, rebooting, firmware, etc., can be performed on any device. And under the spoiler of the "ADB Team" again "on HTC". : lol:
The topic is calledADB and all that can be done with it . Everything is well written, but "on HTC" is a bit confusing))

Post has been editedFoxololo - 05.10.12, 08:38



Rep: (228)
Maybe someone will need hope
copy block (set block and outgoing name)
adb shell su -c dd if = / dev / block /mmcblk0p9of = / sdcard /factoryfs.imgbs = 4096

find out what blocks there are in general
adb shell cat / proc / partitions

unlock from the pattern on the lock (after the command to enter any gesture)
adb shell rm /data/system/gesture.key



Rep: (6)
Thank. It really helped. : yes2:



Rep: (49)
why people adb shell mount -o rw command, remount / dev / block / mmcblk0p12 / system responds mount: Operation not permitted



Rep: (14)
eiskboy @ 10/27/2012, 2:22*
why people adb shell mount -o rw command, remount / dev / block / mmcblk0p12 / system responds mount: Operation not permitted

Maybe you do not have this directory. Suppose it is Tsiagen mod. Or with root rights cant.

Posted on 11/04/2012, 3:03 PM:

Yes, and about stopping ADB there are commands.
adb kill-server

Why use
@echo off
taskkill / f / im adb.exe

if you can do everything at once?

Do copyright without thinking that how it works is not good. ;)

Post has been editedMotoArhangell - 04.11.12, 15:08



Rep: (94)
Question: Is it possible to backup firmware via fastboot? You can flash it, I see, but what about the backup, this function suggests itself, but it did not find it.



Rep: (68)
Help, I want to flash the radio, I can neither through the fastboot, nor through the recovery. Loader c-off Please write how to do it. In the folder with the adb file radio.img I threw, I tried the script for flashing the radio from the header - somewhere apparently there is not enough skill. For help I will be grateful)
P.S. The phone is visible in the adb, the shutdown command, the reboot executes.

Post has been editedhobbit1 - 27.11.12, 20:17



Rep: (2)
I try to remove the pattern with the adb shell line rm /data/system/gesture.key, it gives me permission danied. what is this, should the apparatus be rutted?



Rep: (9)
MotoArhangell,
and how to make / data / read-write?



Rep: (349)
Everything is described there.



Rep: (0)
Is it possible to replace files in the system folder?
if so how?



Rep: (0)
how to remove read-only file system error?



Rep: (289)
Colleagues.
How to look at / through adb log of current download? Those. With a hanging load, look at what it hangs.
: blush:
I honestly read the cap. Not understood. :-(



Rep: (3)
Guys! Help someone! I can not do deodex. The screen shows some errors! Like in the framework of the problem! I tried two ways. What to do? Help out! Stock firmware!

Attached files

Attached filesavagemessiahzine.com.bmp(1.07 MB)



Rep: (289)
So. To the question of viewing the current download log.
I thought that I was stupid (seeADB and all that can be done with it (Post # 18876713)), and here another.
I connected another device, at the command adb logcat the junk shows the boot log.
And on the right device, silent.
what could it be?
default.prop inclusion adb stands.

gaiver83
And what do deodex do?
>Like in the framework of the problem!
It is quite similar.

Post has been editedrgusev - 24.01.13, 11:30



Rep: (0)
adb to the adb devices command issues a list of devices attached message, it seems to have put all the firewood ..
How to make adb show the serial number with this command ??



Rep: (94)
adb to the adb devices command issues a list of devices attached message, it seems to have put all the firewood ..

I have the same thing, although it really works, I tried to install programs and fastboot reboot. Apparently adb does not understand that there the phone gives him in response to the devices.


Full version    

Help     rules

Now: 07.21.19, 02:25