Add ota_metadata_proto_java
Test: th Change-Id: Iac9b679299db6a23cdf85d7c46f20d0538ba6015
This commit is contained in:
@@ -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 {
|
python_defaults {
|
||||||
name: "releasetools_ota_from_target_files_defaults",
|
name: "releasetools_ota_from_target_files_defaults",
|
||||||
srcs: [
|
srcs: [
|
||||||
|
1
tools/releasetools/jarjar-rules.txt
Normal file
1
tools/releasetools/jarjar-rules.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rule com.google.protobuf.nano.** com.android.framework.protobuf.nano.@1
|
@@ -23,6 +23,8 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package build.tools.releasetools;
|
package build.tools.releasetools;
|
||||||
option optimize_for = LITE_RUNTIME;
|
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.
|
// The build information of a particular partition on the device.
|
||||||
message PartitionState {
|
message PartitionState {
|
||||||
|
Reference in New Issue
Block a user