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

Commit 91168871 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

Merge "Integrate DeviceConfig with GameManagerService" into sc-dev

parents 15be8ff4 4e421c39
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -135,4 +135,20 @@ public final class GameManager {
            throw e.rethrowFromSystemServer();
            throw e.rethrowFromSystemServer();
        }
        }
    }
    }
    /**
     * Returns a list of supported game modes for a given package.
     * <p>
     * The caller must have {@link android.Manifest.permission#MANAGE_GAME_MODE}.
     *
     * @hide
     */
    @RequiresPermission(Manifest.permission.MANAGE_GAME_MODE)
    public @GameMode int[] getAvailableGameModes(@NonNull String packageName) {
        try {
            return mService.getAvailableGameModes(packageName);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -22,4 +22,5 @@ package android.app;
interface IGameManagerService {
interface IGameManagerService {
    int getGameMode(String packageName, int userId);
    int getGameMode(String packageName, int userId);
    void setGameMode(String packageName, int gameMode, int userId);
    void setGameMode(String packageName, int gameMode, int userId);
    int[] getAvailableGameModes(String packageName);
}
}
 No newline at end of file
+1 −0
Original line number Original line Diff line number Diff line
@@ -5564,6 +5564,7 @@
         @hide  <p>Not for use by third-party applications.</p> -->
         @hide  <p>Not for use by third-party applications.</p> -->
    <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"
    <permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"
                android:protectionLevel="signature|privileged" />
                android:protectionLevel="signature|privileged" />
    <uses-permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"/>


    <!-- Allows input events to be monitored. Very dangerous!  @hide -->
    <!-- Allows input events to be monitored. Very dangerous!  @hide -->
    <permission android:name="android.permission.MONITOR_INPUT"
    <permission android:name="android.permission.MONITOR_INPUT"
+418 −6

File changed.

Preview size limit exceeded, changes collapsed.