summaryrefslogtreecommitdiffstats
path: root/tools (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-01-21Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: Ie0e80dec4c698c6c6fbf5edd7a434bdcad975951 Auto-generated-cl: translation import
2020-01-11Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: Iab26dd7eda26ad0d105a69939091cc7cda35c371 Auto-generated-cl: translation import
2019-09-24Import translations. DO NOT MERGEBill Yi3-4/+4
Change-Id: I18c2199dc9439d6013329d1f0eb40dd106618bfb Auto-generated-cl: translation import
2019-06-03Use icu4j instead of its deprecated legacy alias icu4j-hostPaul Duffin1-1/+1
Bug: 134379140 Test: m droid Change-Id: I71c2ac392361b3c6dfa693194c05116422335e55
2019-05-10Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: Ia35cdac295a1ce6f8b53638c908c0caf2a97477c Auto-generated-cl: translation import
2019-05-05Import translations. DO NOT MERGEBill Yi1-1/+1
Auto-generated-cl: translation import Bug: 64712476 Change-Id: I4933222253f1bde2daab4726be971c6d7008a0e4
2019-04-17Import translations. DO NOT MERGEBill Yi2-3/+3
Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ie58e59d8d2731350f58bc9733e4599f75a3aca61
2019-04-13Import translations. DO NOT MERGEBill Yi2-3/+3
Change-Id: Ic746bf49180622c3de6029067a811b91007ed507 Auto-generated-cl: translation import
2019-04-12Import translations. DO NOT MERGEBill Yi1-2/+2
Change-Id: I87585a82fccf625bc05c5805fc90459d572cee10 Auto-generated-cl: translation import
2019-04-08Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: I6aff7f01df0c28775a2dbef26ee3476cb5d83060 Auto-generated-cl: translation import
2019-02-16Import translations. DO NOT MERGEBill Yi1-5/+5
Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ie357c8e7a6445223a5a657cd0e96ded4689837f6
2019-02-02Import translations. DO NOT MERGEBill Yi1-10/+10
Change-Id: Id46b7b2d7bf8f9fe1edd9bb90cc0e3d279f3472c Auto-generated-cl: translation import
2018-12-11Import translations. DO NOT MERGEBill Yi85-0/+425
Change-Id: I1bd6d7f12c7bfffb7e022f09347a5be5a96766a3 Cherry-picked from: f560a89470c83936f3187d96e4bbe8b21eecc8e3 Test: mma Auto-generated-cl: translation import
2018-12-11Import translations. DO NOT MERGEBill Yi85-0/+425
Change-Id: I1bd6d7f12c7bfffb7e022f09347a5be5a96766a3 Cherry-picked from: f560a89470c83936f3187d96e4bbe8b21eecc8e3 Test: mma Auto-generated-cl: translation import
2018-11-29ImageGenerator: ignore the duplicate localesxunchang1-8/+14
Some language variants have the duplicated translations. Therefore, we can compare the translated string for each locale to the default text string for that language. And the duplicated ones will be skipped to save some space. Bug: 74397117 Test: generate and check the image Change-Id: If51fa8fe700350c06f084f0e74d3698b82d6f177
2018-11-29ImageGenerator: Handle special characters in xml filesxunchang1-13/+34
In specific, the apostrophe appears as "\'"; and a new line appears as "\n\n". We need to handle these two cases accordingly. Bug: 74397117 Test: generate and check the image Change-Id: I67b1ebce7494e4a685a0c7334da58dc6df2ccb29
2018-11-28ImageGenerator: switch to BreakIterator from icu libraryxunchang2-62/+24
The icu library takes care of the line boundary, so that we don't need to worry about if the given language is logogram. Bug: 74397117 Test: Generate and check the image Change-Id: I1447f51b178c0fca83c5497d2f5b8e4009ca7f64
2018-11-26ImageGenerator: add an option to specify the supported localesTianjie Xu1-4/+42
A smaller list of locales helps to reduce the size of the generated images; and mitigate the additional space requirement on the tight boot image for some devices. The caller of the program will be responsible for providing the locale list. Also add a verbose option and switch to logger. Bug: 74397117 Test: generate and check the image Change-Id: I7b7cee681ccdc6e13fdd0575cf02f8add2ad9a2d
2018-11-26Handle rendering problem for the word "Android" and punctuationsTianjie Xu1-24/+134
The word "Android" is not translated. As a result, some locales fail to render this word and some punctuations, leading to holes in the middle of the text. In these cases, we will need to fall back to the default font and re-measure the text width. For now, we haven't handled the mix of latin and logogram languages; and we can blacklist the problematic ones first. Bug: 74397117 Test: generate and inspect the image Change-Id: I07d22c0dae2e31eb74f2954e354cd39a42c22f14
2018-11-16Import translations. DO NOT MERGEBill Yi85-0/+425
Change-Id: I1bd6d7f12c7bfffb7e022f09347a5be5a96766a3 Auto-generated-cl: translation import
2018-11-15Adjust the background text image width to reduce its sizeTianjie Xu1-26/+81
We can adjust the image width with respect to the maximum width of the wrapped text. This will remove some black margins and reduce the final size of the images, especially for those with short strings, e.g. "recovery_error". Also, add an option to centrally align the text; and fix a boundary check in the recovery resource test. Bug: 74397117 Test: Generate and check the image Change-Id: Ib6cf61a9c99c4aeede16751dc0adfa23ce3f5424
2018-11-13image generator: format the java fileTianjie Xu1-469/+482
Format the file with google-java-format --aosp. This makes the presubmit hook happy. Bug: 74397117 Test: mma Change-Id: Ie342ed11449414b63f2d1ae781023e940b136bcb
2018-11-13Import translations. DO NOT MERGEBill Yi85-850/+425
Change-Id: I1bd6d7f12c7bfffb7e022f09347a5be5a96766a3 Auto-generated-cl: translation import
2018-11-06image_generator: Fix the warnings on import order.Tao Bao1-13/+11
[platform/bootable/recovery] tools/image_generator/ImageGenerator.java:36: Wrong order for java.util.StringTokenizer import. Use Ctrl+Shift+O (Eclipse) or Ctrl+Alt+O (Intellij) to sort imports. https://source.android.com/setup/code-style#order-import-statementsERRORS: [platform/bootable/recovery] tools/image_generator/ImageGenerator.java:43: Wrong order for org.apache.commons.cli.CommandLine import. Use Ctrl+Shift+O (Eclipse) or Ctrl+Alt+O (Intellij) to sort imports. https://source.android.com/setup/code-style#order-import-statementsERRORS: [platform/bootable/recovery] tools/image_generator/ImageGenerator.java:50: Extra separation in import group before 'org.w3c.dom.Document' Test: `mmma -j bootable/recovery` Test: `repo upload` no longer gives warnings. Change-Id: If24c6b7ca33b9223b3e326a48885c24c35b5fa68
2018-11-01Make the text image readable under recoveryTianjie Xu1-14/+123
Encode the width, height and locale of the localized image as pixels so that recovery can locate the correct range of the image from a concatenated png file. Also address a few todoes including wrapping the CJK text, making a catch-all type for all languages. Test: view the generated image under locale test Change-Id: Icd3997eb4e992e76ef72526787d64c406f606970
2018-10-31Import translations. DO NOT MERGEBill Yi85-0/+850
Change-Id: Icfe0dc21567e74da70cc7b2f1229815bceeac958 Auto-generated-cl: translation import
2018-10-29Add description for the new translationTianjie Xu1-0/+32
As we localize the wipe data menu under the recovery mode, some additional strings need the new translation. The strings include 1. The menu header that prompts a data wipe 2. Try again description 3. Factory reset description 4. The menu header to confirm a data wipe 5. Cancel description We will resue the "Factory reset description" in the confirmation menu; and the image_generator tool will be moved to this directory in later cls. Bug: 74397117 Test: mma Change-Id: I706b8677dba506b62e890f6b200e3eb3b11ce483
2018-10-29Delete the dumpkey host toolTianjie Xu3-298/+0
We used to dump the public key files into some text format; and parse them under recovery. But now we have switched to read the certificates directly from the zip files; and there's no caller of this dumpkey host tool any more. Bug: 116655889 Test: mma Change-Id: I115592e2a894b3375495c81cb249d1bed1a5d973
2018-10-29Switch to use commandline parserTianjie Xu3-15/+72
The commandline parser adds some flexibility to the argument parsing. It also makes the help message more descriptive. Bug: 74397117 Test: generate a image, checks the help message Change-Id: Ib238658a9a6fa8806f1b0dde419c8fb970e7cb37
2018-10-13Use a host java program to generate the background textTianjie Xu4-0/+438
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. The program takes the following 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. Bug: 74397117 Test: checks the generated png files Change-Id: Ia5506a0a4f5da1ebfd7090345eb246f44b265075
2018-05-17tools: Move to Soong.Tao Bao5-36/+50
Test: `mmma -j bootable/recovery/` Test: Build and run RecoveryLocalizer on device. Change-Id: I3359223c82bd670c94ad51296cb8b357b04f5349
2018-02-22Import translations. DO NOT MERGEBill Yi2-0/+18
Change-Id: I60c4e4ebce0bf3abcc2b0b5ab90b0fc5e9406c34 Auto-generated-cl: translation import
2018-02-21Set LOCAL_SDK_VERSION where possible.Anton Hansson1-0/+1
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I82fee834c5d92e699e9571933faded11c6d4596e
2017-10-20Import translations. DO NOT MERGEBill Yi4-9/+9
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 68003463 Change-Id: Iae8fc3afc1453b6b609dae2bbff08231d00735e7
2017-09-16Import translations. DO NOT MERGEBill Yi1-3/+3
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: Ia05d14ff5b7f6b283f46566c88a4edc4a89d5576
2017-09-13Import translations. DO NOT MERGEBill Yi1-2/+2
Change-Id: I8de15b09695dea1a53a368c942cb8a7dd30ed87d Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-09-06Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: If7aad0299a372403f2875fe3aeb60ad07acb7b47 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-08-29Import translations. DO NOT MERGEBill Yi3-4/+4
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: Ife1e0455a5433bc0cb0e15b0aabf2beef1ba8827
2017-08-27Import translations. DO NOT MERGEBill Yi2-2/+2
Change-Id: I0b2ff87788553d2c49519d005f8876cd7318b8c6 Auto-generated-cl: translation import
2017-08-24Import translations. DO NOT MERGEBill Yi2-2/+2
Change-Id: I8fb3f973ecd0dfe54dea048ef445d45902eae028 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-08-17Import translations. DO NOT MERGEBill Yi16-0/+144
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64680434 Change-Id: Ie356071f322238a5fb3a4610d2a79141c9aa9377
2017-08-16Import translations. DO NOT MERGEBill Yi2-2/+11
Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I7e9049129d9a886cac53a1f6438d9c733fb3d3d8
2017-08-12Import translations. DO NOT MERGEBill Yi15-128/+2
Change-Id: I99a2cf060c75a70b3baf3c22d538fbfa08828474 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-08-06Import translations. DO NOT MERGEBill Yi1-0/+9
Change-Id: Ia215c30c6912ffa1e3270543f6ff4fc27f4260e4 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-07-10Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: If9d38fc1db0f4abc498c5229aa6d45150b0ef5e7 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
2017-04-02Import translations. DO NOT MERGEBill Yi78-312/+390
Auto-generated-cl: translation import Bug: 36832302 Change-Id: I1bfbb1791a4d7925491d7574c08994f6e7ff640d
2017-02-28Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: I90d94072de955eca8ea38762faa5d3e5a4f295db Auto-generated-cl: translation import
2017-01-23Restore the max width for recovery background textsTianjie Xu1-0/+3
Restore the max width to 900px for xxhdpi and 1200px for xxxhdpi Bug: 34541299 Test: Checked width and images passed recovery_manual_test Change-Id: If0fd51f93cfb3f965d4e9e69be5626eba89eb857
2017-01-12Import translations. DO NOT MERGEBill Yi30-0/+270
Change-Id: Ie80a9f0a82341c96343024296b555621ed4de347 Auto-generated-cl: translation import
2017-01-11Rename language+country resources to just languageRoozbeh Pournader30-0/+0
Bug: 26496609 Test: none Change-Id: I6467c8496478402614fcdb46c5399dfa28162201
2017-01-07Update background text images in recoveryTianjie Xu1-2/+20
Locale texts are missing in the recovery log due to an extra empty locale chunk in the png file. Fix the bug in the app and regenerate all the background texts and compress the file with pngcrush + zopflipng. Bug: 34054052 Test: Locale texts logged successfully on angler Change-Id: I89f823a53c1eb69756183e8e11113216d093304f
2016-12-05Revert "Import translations. DO NOT MERGE"Bill Yi81-0/+729
This reverts commit 6ecd63e459f7e9eab062c172122e319aff8b7042. Change-Id: I66c34fc72c1e8f6a0c11e12fd7e21864f4437977
2016-12-03Import translations. DO NOT MERGEBill Yi81-729/+0
Change-Id: Ibe3698aabd36cca6e053ca099b87f09e8ad05c93 Auto-generated-cl: translation import
2016-11-21Import translations. DO NOT MERGEBill Yi78-312/+390
Auto-generated-cl: translation import Bug: 32177112 Change-Id: I4d68cd0c69b40d1765cd74dfa730f56be01b5b23
2016-08-03Further compress the text images with zopflipngTianjie Xu1-0/+2
Bug:30415666 Test: Graphic tests pass on angler with new image files Change-Id: I8716f53cb2f9fc6598fdc84f84e9626994faaa5e
2016-07-29Add docs on regeneration background text imageTianjie Xu3-0/+33
Also add a missing string in the recovery_l10n APP. Bug: 30415666 Change-Id: Ice2a9f7cad4ebe332b427bc0c7a9adccb6cf3af3
2016-07-21Import translations. DO NOT MERGEBill Yi3-12/+12
Change-Id: If24c94c20f8e4c37c119dcaff765e9ee59e48ef4 Auto-generated-cl: translation import
2016-07-01Import translations. DO NOT MERGEBill Yi78-312/+390
Auto-generated-cl: translation import Bug: 29390361 Change-Id: Ie1d01357ef53bd977da8188825dd744801ae58ad
2016-06-16Import translations. DO NOT MERGEBill Yi78-312/+390
Auto-generated-cl: translation import Bug: 29390361 Change-Id: I50fc8ab0611b65c43066331a7f9622a969d10080
2016-04-27Import translations. DO NOT MERGEBill Yi78-312/+312
Change-Id: Id48a7d573bdfd417975bb1054eb6a2453a151bf8 Auto-generated-cl: translation import
2016-04-27Import translations. DO NOT MERGEBill Yi3-11/+7
Change-Id: I3383f51c68573c3e350f1bad5fce90be5643edb0 Auto-generated-cl: translation import
2016-04-27Import translations. DO NOT MERGEBill Yi3-11/+7
Change-Id: Ic9a498dd7367a61fc2d380dc6eeeea0c4cafc8bf Auto-generated-cl: translation import
2016-04-26Import translations. DO NOT MERGEBaligh Uddin78-312/+312
Change-Id: Idd1fdeee52a77d6fb4ecc271b6fdfc41e62b2bd0 Auto-generated-cl: translation import
2016-04-26Import translations. DO NOT MERGEBaligh Uddin3-11/+7
Change-Id: I2c06d0cb0aa43c69f4f4b8c0ce6f7a81dbd00dba Auto-generated-cl: translation import
2016-04-26Import translations. DO NOT MERGEBaligh Uddin3-11/+7
Change-Id: I2b8cd2877f4f21d64968b520258a80a3886310c5 Auto-generated-cl: translation import
2016-04-25Import translations. DO NOT MERGEBill Yi81-324/+328
Change-Id: I9706fca12f3c0a19019c41ba0eaf395ac53ba0b1 Auto-generated-cl: translation import
2016-04-25Import translations. DO NOT MERGEBill Yi81-324/+328
Change-Id: Ice2fc6151b69ad3a4029184a5afa6020085219f2 Auto-generated-cl: translation import
2016-04-20Remove trailing punctuation from recovery strings.Elliott Hughes1-4/+4
Bug: http://b/26548285 Change-Id: I235c620532e1759bfc76a4486409a4404f1c8c6a
2016-04-15Explicitly set the font face and color.Elliott Hughes2-7/+6
This matches what the UI folks asked us to use. Also fix the locale parsing code. Bug: http://b/27837319 Bug: http://b/22465983 Bug: http://b/26548285 Change-Id: I316a6e1f44855313dd983950abf21b543be7ffc0
2016-04-06Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: Id4a5f32acb01776c95b092cc6e883036812836a9 Auto-generated-cl: translation import
2016-04-05Import translations. DO NOT MERGEBill Yi2-2/+2
Change-Id: Ic643d0e2d39e45d772ffb25001de45afdf923579 Auto-generated-cl: translation import
2016-04-05Import translations. DO NOT MERGEBill Yi1-1/+1
Change-Id: Ib4ebc02261abc4610947ab54f5e53f9958190e27 Auto-generated-cl: translation import
2016-04-05Import translations. DO NOT MERGEBill Yi81-229/+148
Change-Id: Ia0012b89f00c65ec6056d29612748e60564bab32 Auto-generated-cl: translation import
2016-04-05Import translations. DO NOT MERGEBill Yi81-229/+148
Change-Id: I5280c977c6c5099c681fa5069bdde9b5426d5949 Auto-generated-cl: translation import
2016-03-31Import translations. DO NOT MERGEBill Yi81-312/+498
Change-Id: Id992a2cff5d431b5862f7c27f3823dbffe52f5c7 Auto-generated-cl: translation import
2016-03-31Import translations. DO NOT MERGEBill Yi81-312/+498
Change-Id: I96a3ebec0ab7b7400bcf8ffd2a899d291d8a4579 Auto-generated-cl: translation import
2016-03-29Add string for Installing_security_updateTianjie Xu1-0/+4
Bug: 27837319 Change-Id: I037158697a294c3e03f186f3b4207ea700321a8a (cherry picked from commit 1ee0ff3d78c5143d4e3307bc44e3c27792e72d1e)
2016-03-29Add string for Installing_security_updateTianjie Xu1-0/+4
Bug: 27837319 Change-Id: I037158697a294c3e03f186f3b4207ea700321a8a
2016-03-26Move recovery_l10n here from development/tools.Elliott Hughes83-0/+1038
Bug: http://b/27837319 (cherry picked from commit 3d0153a807042dd1bdb7e9fd81d16429a205d9ce) Change-Id: Iec2cd10fa77ed1881d55ac4e0ab48e45172f0cf7
2016-03-26Move recovery_l10n here from development/tools.Elliott Hughes83-0/+1038
Bug: http://b/27837319 Change-Id: I116fc13ae108a59b657f5c9f7efe971de72ac743
2016-03-23Remove dead tools.Elliott Hughes4-398/+0
None of these have been touched since cupcake, except to keep them building. Change-Id: I5ed13849e6842e755c62da05f1a8a6da2583b1ee
2016-02-26Remove dumpkey build guards after completing code move.Mattias Nissler1-10/+0
Bug: 27326256 Change-Id: Ia713b23e3c898c1f10af7c61ea67f34601fdcbe3
2016-02-24Move dumpkey tool to the recovery repo.Mattias Nissler3-0/+303
The dumpkey tool is used to dump encryption keys in a custom format used by the recovery code. Nobody else uses this format AFAICT, so it's more appropriate to keep the code of the tool alongside the recovery code instead of next to mincrypt. BUG:27326256 Change-Id: I30176845617972be1d6e46e9a9218e161fbf0680
2015-04-30Check all lseek calls succeed.Elliott Hughes1-1/+1
Also add missing TEMP_FAILURE_RETRYs on read, write, and lseek. Bug: http://b/20625546 Change-Id: I03b198e11c1921b35518ee2dd005a7cfcf4fd94b (cherry picked from commit 7bad7c4646ee8fd8d6e6ed0ffd3ddbb0c1b41a2f)
2015-04-30Check all lseek calls succeed.Elliott Hughes1-1/+1
Also add missing TEMP_FAILURE_RETRYs on read, write, and lseek. Bug: http://b/20625546 Change-Id: I03b198e11c1921b35518ee2dd005a7cfcf4fd94b
2015-01-30Add missing includes.Elliott Hughes1-0/+1
Change-Id: I06ea08400efa511e627be37a4fd70fbdfadea2e6
2014-03-14Recovery 64-bit compile issuesMark Salyzyn1-2/+2
Change-Id: I92d5abd1a628feab3b0246924fab7f97ba3b9d34
2012-08-21Fixed unused param warnings for check-lost+foundEdwin Vane1-1/+1
A few simple warnings fixed to produce a clean clang build. Change-Id: I9484f860903a80e4c91e204e7e6738145535f642 Author: Edwin Vane <edwin.vane@intel.com> Reviewed-by: Ariel J Bernal <ariel.j.bernal@intel.com>
2011-07-12Remove the simulator target from all makefiles.Jeff Brown1-4/+0
Bug: 5010576 Change-Id: Ib465fdb42c8621899bea15c04a427d7ab1641a8c
2009-07-15remove amendDoug Zongker2-238/+0
Yank all the code to install OTA packages out of the recovery binary itself. Now packages are installed by a binary included in the package (run as a child of recovery), so we can make improvements in the installation process without waiting for a new release to use them.
2009-03-25Automated import from //branches/master/...@142142,142142Doug Zongker1-4/+9
2009-03-25Automated import from //branches/donutburger/...@142141,142141Doug Zongker1-4/+9
2009-03-25Automated import from //branches/cupcake/...@142138,142138Doug Zongker1-4/+9
2009-03-04auto import from //depot/cupcake/@135843The Android Open Source Project6-0/+635
2009-03-04auto import from //depot/cupcake/@135843The Android Open Source Project8-978/+0
2009-03-03auto import from //depot/cupcake/@132589The Android Open Source Project2-0/+343
2009-03-03auto import from //depot/cupcake/@137055The Android Open Source Project2-343/+0
2009-03-02Remove obsolete OTA toolsJean-Baptiste Queru2-343/+0
Resolves http://code.google.com/p/android/issues/detail?id=2077
2008-12-18Code drop from //branches/cupcake/...@124589The Android Open Source Project5-1/+309