Loading services/print/Android.bp +13 −0 Original line number Diff line number Diff line Loading @@ -18,8 +18,21 @@ java_library_static { name: "services.print", defaults: ["platform_service_defaults"], srcs: [":services.print-sources"], static_libs: ["print_flags_lib"], libs: ["services.core"], lint: { baseline_filename: "lint-baseline.xml", }, } aconfig_declarations { name: "print_flags", package: "com.android.server.print", container: "system", srcs: ["**/flags.aconfig"], } java_aconfig_library { name: "print_flags_lib", aconfig_declarations: "print_flags", } services/print/java/com/android/server/print/RemotePrintService.java +2 −1 Original line number Diff line number Diff line Loading @@ -572,7 +572,8 @@ final class RemotePrintService implements DeathRecipient { boolean wasBound = mContext.bindServiceAsUser(mIntent, mServiceConnection, Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE | Context.BIND_INCLUDE_CAPABILITIES | Context.BIND_ALLOW_INSTANT, | (Flags.doNotIncludeCapabilities() ? 0 : Context.BIND_INCLUDE_CAPABILITIES) | Context.BIND_ALLOW_INSTANT, new UserHandle(mUserId)); if (!wasBound) { Loading services/print/java/com/android/server/print/flags.aconfig 0 → 100644 +9 −0 Original line number Diff line number Diff line package: "com.android.server.print" container: "system" flag { name: "do_not_include_capabilities" namespace: "print" description: "Do not use the flag Context.BIND_INCLUDE_CAPABILITIES when binding to the service" bug: "291281543" } Loading
services/print/Android.bp +13 −0 Original line number Diff line number Diff line Loading @@ -18,8 +18,21 @@ java_library_static { name: "services.print", defaults: ["platform_service_defaults"], srcs: [":services.print-sources"], static_libs: ["print_flags_lib"], libs: ["services.core"], lint: { baseline_filename: "lint-baseline.xml", }, } aconfig_declarations { name: "print_flags", package: "com.android.server.print", container: "system", srcs: ["**/flags.aconfig"], } java_aconfig_library { name: "print_flags_lib", aconfig_declarations: "print_flags", }
services/print/java/com/android/server/print/RemotePrintService.java +2 −1 Original line number Diff line number Diff line Loading @@ -572,7 +572,8 @@ final class RemotePrintService implements DeathRecipient { boolean wasBound = mContext.bindServiceAsUser(mIntent, mServiceConnection, Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE | Context.BIND_INCLUDE_CAPABILITIES | Context.BIND_ALLOW_INSTANT, | (Flags.doNotIncludeCapabilities() ? 0 : Context.BIND_INCLUDE_CAPABILITIES) | Context.BIND_ALLOW_INSTANT, new UserHandle(mUserId)); if (!wasBound) { Loading
services/print/java/com/android/server/print/flags.aconfig 0 → 100644 +9 −0 Original line number Diff line number Diff line package: "com.android.server.print" container: "system" flag { name: "do_not_include_capabilities" namespace: "print" description: "Do not use the flag Context.BIND_INCLUDE_CAPABILITIES when binding to the service" bug: "291281543" }