diff --git a/android/androidmk.go b/android/androidmk.go index 8f9f3bcd2..aeb0aa521 100644 --- a/android/androidmk.go +++ b/android/androidmk.go @@ -224,6 +224,9 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b if len(amod.commonProperties.Init_rc) > 0 { fmt.Fprintln(w, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " ")) } + if amod.commonProperties.Proprietary { + fmt.Fprintln(w, "LOCAL_PROPRIETARY_MODULE := true") + } } if host { diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 5d9f1b41c..72ececbfc 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -78,6 +78,7 @@ var standardProperties = map[string]struct { "LOCAL_PACK_MODULE_RELOCATIONS": {"pack_relocations", bpparser.BoolType}, "LOCAL_TIDY": {"tidy", bpparser.BoolType}, "LOCAL_USE_VNDK": {"use_vndk", bpparser.BoolType}, + "LOCAL_PROPRIETARY_MODULE": {"proprietary", bpparser.BoolType}, "LOCAL_EXPORT_PACKAGE_RESOURCES": {"export_package_resources", bpparser.BoolType}, }