platform_bootable_recovery/tools/image_generator
Paul Duffin eb586b7baf Use icu4j instead of its deprecated legacy alias icu4j-host
Bug: 134379140
Test: m droid
Change-Id: I71c2ac392361b3c6dfa693194c05116422335e55
2019-06-03 16:14:35 +01:00
..
Android.bp Use icu4j instead of its deprecated legacy alias icu4j-host 2019-06-03 16:14:35 +01:00
ImageGenerator.java ImageGenerator: ignore the duplicate locales 2018-11-29 12:13:02 -08:00
ImageGenerator.mf Use a host java program to generate the background text 2018-10-12 15:46:32 -07:00
README.md Switch to use commandline parser 2018-10-29 11:01:36 -07:00

Recovery Image Generator

This program uses java.awt.Graphics2D to generate the background text files used under recovery mode. And thus we don't need to do the manual work by running emulators with different dpi.

Usage:

java -jar path_to_jar --image_width imageWidth --text_name textName --font_dir fontDirectory --resource_dir resourceDirectory --output_file outputFilename

Description of the parameters:

  1. imageWidth: The number of pixels per line; and the text strings will be wrapped accordingly.
  2. textName: The description of the text string, e.g. "recovery_erasing", "recovery_installing_security"
  3. fontDirectory: The directory that contains all the support .ttf | .ttc files, e.g. $OUT/system/fonts/
  4. resourceDirectory: The resource directory that contains all the translated strings in xml format, e.g. bootable/recovery/tools/recovery_l10n/res/
  5. outputFilename: Path to the generated image.