Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7be934f3 authored by Jiyong Park's avatar Jiyong Park
Browse files

Define stubs_defaults for the new API surfaces

The new stubs_defaults shall be used to create stub libraries from
modules. The existing defaults
'framework-module-stubs-defaults-systemapi' is not enough because it
only captures the SystemApis with client=PRIVILEGED_APPS. Modules can
have broader SystemApis with client=MODULE_APPS and
client=MODULE_LIBRARIES.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: b/140202860
Test: m
Merged-In: I5f425928cf1db912ebe09499111a9925fcfc98fb
Change-Id: I5f425928cf1db912ebe09499111a9925fcfc98fb
(cherry picked from commit 2afff6cc)
parent cfa55321
Loading
Loading
Loading
Loading
+31 −1
Original line number Original line Diff line number Diff line
@@ -34,6 +34,36 @@ stubs_defaults {


stubs_defaults {
stubs_defaults {
    name: "framework-module-stubs-defaults-systemapi",
    name: "framework-module-stubs-defaults-systemapi",
    args: mainline_stubs_args + " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS,process=android.annotation.SystemApi.Process.ALL\\) ",
    args: mainline_stubs_args +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
    "process=android.annotation.SystemApi.Process.ALL\\) ",
    installable: false,
}

stubs_defaults {
    name: "framework-module-stubs-defaults-module_apps_api",
    args: mainline_stubs_args +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
    "process=android.annotation.SystemApi.Process.ALL\\) " +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.MODULE_APPS," +
    "process=android.annotation.SystemApi.Process.ALL\\) ",
    installable: false,
}

stubs_defaults {
    name: "framework-module-stubs-defaults-module_libs_api",
    args: mainline_stubs_args +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
    "process=android.annotation.SystemApi.Process.ALL\\) " +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.MODULE_APPS," +
    "process=android.annotation.SystemApi.Process.ALL\\) " +
    " --show-annotation android.annotation.SystemApi\\(" +
    "client=android.annotation.SystemApi.Client.MODULE_LIBRARIES," +
    "process=android.annotation.SystemApi.Process.ALL\\) ",
    installable: false,
    installable: false,
}
}