Programming Tools Guide
Chapter 8, adb: absolute debugger

Patching binary files and memory

Patching binary files and memory

To make corrections or changes to any file, including executable binary files, use the w and W commands and invoke adb with the -w option. The following sections describe how to locate and change values in a file.