Loading ravenwood/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,14 @@ package { default_team: "trendy_team_framework_backstage_power", } filegroup { name: "ravenwood-common-policies", srcs: [ "texts/ravenwood-common-policies.txt", ], visibility: ["//visibility:private"], } filegroup { name: "ravenwood-services-policies", srcs: [ Loading ravenwood/Framework.bp +11 −9 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ genrule_defaults { tools: ["hoststubgen"], srcs: [ ":framework-minus-apex-for-host", ":ravenwood-common-policies", ":ravenwood-framework-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", Loading @@ -46,6 +47,7 @@ framework_minus_apex_cmd = "$(location hoststubgen) " + "--debug-log $(location hoststubgen_framework-minus-apex.log) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :framework-minus-apex-for-host) " + "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :ravenwood-framework-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) " Loading Loading @@ -180,17 +182,18 @@ java_genrule { "--debug-log $(location hoststubgen_services.core.log) " + "--stats-file $(location hoststubgen_services.core_stats.csv) " + "--supported-api-list-file $(location hoststubgen_services.core_apis.csv) " + "--out-jar $(location ravenwood.jar) " + "--gen-keep-all-file $(location hoststubgen_services.core_keep_all.txt) " + "--gen-input-dump-file $(location hoststubgen_services.core_dump.txt) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :services.core-for-host) " + "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :ravenwood-services-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) ", srcs: [ ":services.core-for-host", ":ravenwood-common-policies", ":ravenwood-services-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", Loading Loading @@ -247,21 +250,20 @@ java_genrule { "--debug-log $(location hoststubgen_core-icu4j-for-host.log) " + "--stats-file $(location hoststubgen_core-icu4j-for-host_stats.csv) " + "--supported-api-list-file $(location hoststubgen_core-icu4j-for-host_apis.csv) " + "--out-jar $(location ravenwood.jar) " + "--gen-keep-all-file $(location hoststubgen_core-icu4j-for-host_keep_all.txt) " + "--gen-input-dump-file $(location hoststubgen_core-icu4j-for-host_dump.txt) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :core-icu4j-for-host) " + "--policy-override-file $(location :icu-ravenwood-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) ", "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :icu-ravenwood-policies) ", srcs: [ ":core-icu4j-for-host", ":ravenwood-common-policies", ":icu-ravenwood-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", ], out: [ "ravenwood.jar", Loading ravenwood/texts/ravenwood-common-policies.txt 0 → 100644 +20 −0 Original line number Diff line number Diff line # Ravenwood "policy" that should apply to all code. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass # Keep all sysprops generated code implementations class :sysprops keepclass # Keep all resource R classes class :r keepclass # Support APIs not available in standard JRE class java.io.FileDescriptor keep method getInt$ ()I @com.android.ravenwood.RavenwoodJdkPatch.getInt$ method setInt$ (I)V @com.android.ravenwood.RavenwoodJdkPatch.setInt$ class java.util.LinkedHashMap keep method eldest ()Ljava/util/Map$Entry; @com.android.ravenwood.RavenwoodJdkPatch.eldest ravenwood/texts/ravenwood-framework-policies.txt +0 −19 Original line number Diff line number Diff line # Ravenwood "policy" file for framework-minus-apex. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass # Keep all sysprops generated code implementations class :sysprops keepclass # Keep all resource R classes class :r keepclass # To avoid VerifyError on nano proto files (b/324063814), we rename nano proto classes. # Note: The "rename" directive must use slashes (/) as a package name separator. rename com/.*/nano/ devicenano/ rename android/.*/nano/ devicenano/ # Support APIs not available in standard JRE class java.io.FileDescriptor keep method getInt$ ()I @com.android.ravenwood.RavenwoodJdkPatch.getInt$ method setInt$ (I)V @com.android.ravenwood.RavenwoodJdkPatch.setInt$ class java.util.LinkedHashMap keep method eldest ()Ljava/util/Map$Entry; @com.android.ravenwood.RavenwoodJdkPatch.eldest # Exported to Mainline modules; cannot use annotations class com.android.internal.util.FastXmlSerializer keepclass class com.android.internal.util.FileRotator keepclass Loading ravenwood/texts/ravenwood-services-policies.txt +0 −6 Original line number Diff line number Diff line # Ravenwood "policy" file for services.core. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass Loading
ravenwood/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,14 @@ package { default_team: "trendy_team_framework_backstage_power", } filegroup { name: "ravenwood-common-policies", srcs: [ "texts/ravenwood-common-policies.txt", ], visibility: ["//visibility:private"], } filegroup { name: "ravenwood-services-policies", srcs: [ Loading
ravenwood/Framework.bp +11 −9 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ genrule_defaults { tools: ["hoststubgen"], srcs: [ ":framework-minus-apex-for-host", ":ravenwood-common-policies", ":ravenwood-framework-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", Loading @@ -46,6 +47,7 @@ framework_minus_apex_cmd = "$(location hoststubgen) " + "--debug-log $(location hoststubgen_framework-minus-apex.log) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :framework-minus-apex-for-host) " + "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :ravenwood-framework-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) " Loading Loading @@ -180,17 +182,18 @@ java_genrule { "--debug-log $(location hoststubgen_services.core.log) " + "--stats-file $(location hoststubgen_services.core_stats.csv) " + "--supported-api-list-file $(location hoststubgen_services.core_apis.csv) " + "--out-jar $(location ravenwood.jar) " + "--gen-keep-all-file $(location hoststubgen_services.core_keep_all.txt) " + "--gen-input-dump-file $(location hoststubgen_services.core_dump.txt) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :services.core-for-host) " + "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :ravenwood-services-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) ", srcs: [ ":services.core-for-host", ":ravenwood-common-policies", ":ravenwood-services-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", Loading Loading @@ -247,21 +250,20 @@ java_genrule { "--debug-log $(location hoststubgen_core-icu4j-for-host.log) " + "--stats-file $(location hoststubgen_core-icu4j-for-host_stats.csv) " + "--supported-api-list-file $(location hoststubgen_core-icu4j-for-host_apis.csv) " + "--out-jar $(location ravenwood.jar) " + "--gen-keep-all-file $(location hoststubgen_core-icu4j-for-host_keep_all.txt) " + "--gen-input-dump-file $(location hoststubgen_core-icu4j-for-host_dump.txt) " + "--out-jar $(location ravenwood.jar) " + "--in-jar $(location :core-icu4j-for-host) " + "--policy-override-file $(location :icu-ravenwood-policies) " + "--annotation-allowed-classes-file $(location :ravenwood-annotation-allowed-classes) ", "--policy-override-file $(location :ravenwood-common-policies) " + "--policy-override-file $(location :icu-ravenwood-policies) ", srcs: [ ":core-icu4j-for-host", ":ravenwood-common-policies", ":icu-ravenwood-policies", ":ravenwood-standard-options", ":ravenwood-annotation-allowed-classes", ], out: [ "ravenwood.jar", Loading
ravenwood/texts/ravenwood-common-policies.txt 0 → 100644 +20 −0 Original line number Diff line number Diff line # Ravenwood "policy" that should apply to all code. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass # Keep all sysprops generated code implementations class :sysprops keepclass # Keep all resource R classes class :r keepclass # Support APIs not available in standard JRE class java.io.FileDescriptor keep method getInt$ ()I @com.android.ravenwood.RavenwoodJdkPatch.getInt$ method setInt$ (I)V @com.android.ravenwood.RavenwoodJdkPatch.setInt$ class java.util.LinkedHashMap keep method eldest ()Ljava/util/Map$Entry; @com.android.ravenwood.RavenwoodJdkPatch.eldest
ravenwood/texts/ravenwood-framework-policies.txt +0 −19 Original line number Diff line number Diff line # Ravenwood "policy" file for framework-minus-apex. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass # Keep all sysprops generated code implementations class :sysprops keepclass # Keep all resource R classes class :r keepclass # To avoid VerifyError on nano proto files (b/324063814), we rename nano proto classes. # Note: The "rename" directive must use slashes (/) as a package name separator. rename com/.*/nano/ devicenano/ rename android/.*/nano/ devicenano/ # Support APIs not available in standard JRE class java.io.FileDescriptor keep method getInt$ ()I @com.android.ravenwood.RavenwoodJdkPatch.getInt$ method setInt$ (I)V @com.android.ravenwood.RavenwoodJdkPatch.setInt$ class java.util.LinkedHashMap keep method eldest ()Ljava/util/Map$Entry; @com.android.ravenwood.RavenwoodJdkPatch.eldest # Exported to Mainline modules; cannot use annotations class com.android.internal.util.FastXmlSerializer keepclass class com.android.internal.util.FileRotator keepclass Loading
ravenwood/texts/ravenwood-services-policies.txt +0 −6 Original line number Diff line number Diff line # Ravenwood "policy" file for services.core. # Keep all AIDL interfaces class :aidl keepclass # Keep all feature flag implementations class :feature_flags keepclass