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

Commit 3160c60a authored by Jiyong Park's avatar Jiyong Park
Browse files

Annotating a class with @SystemApi makes its members @SystemApi

This change fixes a bug that annotating a class in services.jar as
@SystemApi doesn't automatically make its member fields and methods as
@SystemApi. The problem was due to a wrong option to the metalava.

Bug: 147322525
Test: cherry-pick ag/10037363 and `m update-api`.
services/api/current.txt contains all the symbols from the
SystemService class.

Change-Id: I30a515761f8d1792593f207fa4e268ab68a81480
parent a6a68176
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -111,7 +111,7 @@ droidstubs {
    srcs: [":services-sources"],
    srcs: [":services-sources"],
    installable: false,
    installable: false,
    // TODO: remove the --hide options below
    // TODO: remove the --hide options below
    args: " --show-single-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" +
    args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" +
        " --hide-annotation android.annotation.Hide" +
        " --hide-annotation android.annotation.Hide" +
        " --hide-package com.google.android.startop.iorap" +
        " --hide-package com.google.android.startop.iorap" +
        " --hide ReferencesHidden" +
        " --hide ReferencesHidden" +