Adevice is a command-line tool that enables Android Platform developers to update their device with their locally built artifacts. The tool provides two major functions:
Conceptually adevice
tries to align the filesystem structure of the updated device to be similar to what a flash would have produced.
Adevice
is similar to adb sync
in that it updates the device with files from the build staging directory but has several other differences:
Adevice
has the notion of an Update Set that limits what is pushed. This concept also enables a host of other features such as determining stale files and cleaning them.Adevice
tracks content rather than timestamps to determine changed files. This limits the number of files that get pushed to the device.Note that adevice
does not:
adb push
, not adb install
.Adevice
is intended for incremental updates and when there aren't many differences between the local build and the device. It is recommended to build and flash after syncing source before the first run.
adevice help
for more options.
adevice update
adevice status
To push modules to the device that are not normally part of the image, you can add them to the update set with:
adevice track SomeModule
To remove modules that you added to the update set:
adevice untrack SomeModule
adevice clean
You can specify which connected device to use with the environment variable ANDROID_SERIAL or with the -s
flag.