These scripts are made to make work with Android Framework and Android applications easier.
Plato stands for PLAtform TOols. A tool, which combines several shortcuts and scripts, used for the android platform development.
Future replacement for all of the other scripts in this repository.
la rr or
la root performs the
adb root && adb remount
Gets an apk and pushes it on the device. Figures out where to push by itself, e.g.:
la push Dialer.apk
Will push Dialer to the
la push Stk
Will push it to the
la push -d SystemUI
Will push everything from
SystemUI/ directory, including
TODO: work with other extensions (e.g.
TODO: handle applications, whose names and paths are not exactly the same as on devices.
Builds a firmware or an application. Here are some options.
To build a firmware using number of cores + 1, with a previously initialized environment:
To setup a
userdebug build and build a frameworks.jar using 5 jobs for
la make --lunch userdebug --app platform/frameworks/base -j5
To setup an
eng build and build a firmware using 8 jobs:
la make -l eng -j8
Ships a new change or a patch-set to Gerrit.
You can specify a branch name much shorter, but if your branchname contains
plato will treat it as a full qualified branch name and won't append to
git push origin HEAD:refs/for/master:
la ship master
git push myremote HEAD:refs/for/develop:
la ship -r myremote develop
git push origin HEAD:refs/meta/config:
la ship HEAD:refs/meta/config
Searches for files in the
la find libInputflinger # Case insensitive, not strict. Will find libinputflinger.so la find -s Dialer.apk # Strict and case sensitive search
la ignore command.
Works only for projects with
Android.mk. If you have Android O with
Android.bp files, the script won't work for you yet.
Script to make Android projects be excluded from the build system, or included back. Just renames the Android.mk file to AndroidIgnore.mk, which won't be included in the main mk file while building. Example:
Will exclude Dialer application from build if there is an
Will make Dialer be buildable again, if there is an
la on Dialer,
la off inputflinger as a replacement
Script, made to simplify pushing firmwares to the device. Usage:
Will flash device with userdata and reboot.
Script to download bugreports and databases from an android device.
Script to copy all strings from one directory with .xml files to another. Example:
cpstr -s /path/to/directory/res -d /path/to/dir/res -n "name=\"mongooze\""
adb root adb remount adb push *.idc /system/usr/idc adb reboot