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

Commit 10c73d6b authored by Shannon Chen's avatar Shannon Chen
Browse files

Fix build warning about permissions for startActivityFromGameSessionForResult.

This is the warning:

  [AndroidFrameworkRequiresPermission] Method startActivityFromGameSessionForResult() annotated {allOf=[android.permission.MANAGE_GAME_ACTIVITY]} but too wide; only invokes methods requiring [none]
      public final void startActivityFromGameSessionForResult(
                        ^
      If calling an AIDL interface, it can be annotated by adding:
      @JavaPassthrough(annotation="@android.annotation.RequiresPermission(...)")

Change-Id: Ia96dc7f922119e6e17fbb36fe5dd1039887e3fd0
Test: n/a
Bug: 202417255
parent 4b6025d5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ interface IActivityTaskManager {
            in ProfilerInfo profilerInfo, in Bundle options, int userId);
    int startAssistantActivity(in String callingPackage, in String callingFeatureId, int callingPid,
            int callingUid, in Intent intent, in String resolvedType, in Bundle options, int userId);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.MANAGE_GAME_ACTIVITY)")
    int startActivityFromGameSession(IApplicationThread caller, in String callingPackage,
            in String callingFeatureId, int callingPid, int callingUid, in Intent intent,
            int taskId, int userId);