diff options
| author | 2025-01-09 13:20:42 -0800 | |
|---|---|---|
| committer | 2025-01-14 10:26:57 -0800 | |
| commit | 6434c0301d320233bdc7da77eb800f5e87de07f3 (patch) | |
| tree | 49f78664c09070e6bfe38d0da1be4b896994e49d /libs/androidfw/ApkParsing.cpp | |
| parent | 816c7b4c30dc1da4ee74610fbef934aee3c216fe (diff) | |
[ravenwood] Add a tool to convert text policy to annotations
- Add a new command "ravenhelper", which performs different functions
depending on the first argument ("subcommand") just like the git command.
- For now, it has one subcommand "pta" -- policy-to-annotation, which
reads the policy file and add corresponding annotations to the java
source files.
- This will also add classes to ravenwood-annotation-allowed-classes.txt
as needed.
- Use the f/b/r/scripts/pta-framework.sh script to run it.
- For safety and easier testing/debugging, the command actually won't
directly update any files. Instead, it'll generate a shell script which
does so, using sed(1).
Here's an example script: https://paste.googleplex.com/6561708886458368?raw
Bug: 388607679
Flag: EXEMPT host test change only
Test: ./frameworks/base/ravenwood/scripts/pta-framework.sh, and
manually check /tmp/pta.sh
Change-Id: I5dcf078ca47eb373bcaf435ef133335f44bce6b3
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions