|
|
To set the default format for numbers used in commands, use the $d (decimal), $o (octal), and $x (hexadecimal) commands. The default format tells adb how to interpret numbers that do not begin with 0 or 0x, and how to display numbers when no specific format is given.
The commands are useful when working with a combination of decimal, octal, and hexadecimal numbers. For example, if the following combination is used, hexadecimal addresses can be specified without prepending each with 0x. Furthermore, adb displays all numbers in hexadecimal except those that are specifically requested to be in some other format:
$xadb's default format is decimal. To change or restore this at any time, use the $d command.