diff options
author | 2023-03-06 23:00:57 -0800 | |
---|---|---|
committer | 2023-03-07 20:39:09 +0000 | |
commit | 9a26363f6fbe2f3540a1f9ea7f3ad8ef12dc7b80 (patch) | |
tree | 36964d911edd6125db69b2cd8e94c86e1930e8c8 | |
parent | 299d7929083c3e26701568b148159f5d94f9e62f (diff) |
Add java_genrule to replace handcrafted api fingerprint generation
Test: m and TH
Bug: 268337234
Change-Id: Ib58f736ce43d877d0c08cdd9b154e93a1766105b
-rw-r--r-- | api/Android.bp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp index 6e82f1c36eff..73dbd286229d 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -263,3 +263,15 @@ genrule { out: ["combined-removed-dex.txt"], cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)", } + +java_genrule { + name: "api_fingerprint", + srcs: [ + ":frameworks-base-api-current.txt", + ":frameworks-base-api-system-current.txt", + ":frameworks-base-api-module-lib-current.txt", + ":frameworks-base-api-system-server-current.txt", + ], + out: ["api_fingerprint.txt"], + cmd: "cat $(in) | md5sum | cut -d' ' -f1 > $(out)", +} |