Merge "Add ota_metadata_proto_java"

This commit is contained in:
Treehugger Robot 2021-05-08 21:44:57 +00:00 committed by Gerrit Code Review
commit e86abec252
3 changed files with 22 additions and 0 deletions

View File

@ -114,6 +114,25 @@ python_library_host {
},
}
java_library_static {
name: "ota_metadata_proto_java",
host_supported: true,
proto: {
type: "nano",
},
srcs: ["ota_metadata.proto"],
sdk_version: "9",
target: {
android: {
jarjar_rules: "jarjar-rules.txt",
},
host: {
static_libs: ["libprotobuf-java-nano"],
},
},
visibility: ["//frameworks/base:__subpackages__"]
}
python_defaults {
name: "releasetools_ota_from_target_files_defaults",
srcs: [

View File

@ -0,0 +1 @@
rule com.google.protobuf.nano.** com.android.framework.protobuf.nano.@1

View File

@ -23,6 +23,8 @@ syntax = "proto3";
package build.tools.releasetools;
option optimize_for = LITE_RUNTIME;
option java_package = "android.ota";
option java_outer_classname = "OtaPackageMetadata";
// The build information of a particular partition on the device.
message PartitionState {