Added support for all major Game hubs.

Added full support for Samsung Game hub and initial support for Xiaomi, Asus and Oneplus, as well as a general rewrite.

Signed-off-by: Bix <xq9zp7f2@proton.me>
This commit is contained in:
Bix 2025-05-25 13:30:49 +00:00
parent 15fb1f78b3
commit 0329234c25

View file

@ -16,6 +16,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" android:required="false" />
<uses-permission android:name="com.miui.powerkeeper.permission.SEND_OPTIMIZE" android:required="false" />
<uses-permission android:name="com.asus.gamecenter.permission.GAMETUNER" android:required="false" />
<uses-permission android:name="com.oneplus.gamespace.permission.OPGAME" android:required="false" />
<application <application
android:name="org.yuzu.yuzu_emu.YuzuApplication" android:name="org.yuzu.yuzu_emu.YuzuApplication"
@ -31,27 +35,29 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:dataExtractionRules="@xml/data_extraction_rules_api_31" android:dataExtractionRules="@xml/data_extraction_rules_api_31"
android:enableOnBackInvokedCallback="true"> android:enableOnBackInvokedCallback="true">
<meta-data <meta-data android:name="com.samsung.android.gamehub" android:value="true" />
android:name="com.samsung.android.gamehub" <meta-data android:name="com.samsung.android.gamehub.pkgname" android:value="org.yuzu.yuzu_emu" />
android:value="true" /> <meta-data android:name="com.samsung.android.game.gos" android:value="true" />
<meta-data android:name="com.miui.powerkeeper.gamebooster" android:value="true" />
<meta-data <meta-data android:name="com.xiaomi.gamecenter.sdk.service.enabled" android:value="true" />
android:name="android.game_mode_config" <meta-data android:name="com.asus.gamecenter.gamebooster" android:value="true" />
android:resource="@xml/game_mode_config" /> <meta-data android:name="com.oneplus.gamespace.gamebooster" android:value="true" />
<meta-data android:name="android.game_mode_config" android:resource="@xml/game_mode_config" />
<activity <activity
android:name="org.yuzu.yuzu_emu.ui.main.MainActivity" android:name="org.yuzu.yuzu_emu.ui.main.MainActivity"
android:exported="true" android:exported="true"
android:theme="@style/Theme.Yuzu.Splash.Main"> android:theme="@style/Theme.Yuzu.Splash.Main">
<!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.GAME" /> <category android:name="android.intent.category.GAME" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter> </intent-filter>
<intent-filter>
<action android:name="com.miui.gamecenter.GAME_BOOSTER_LAUNCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> </activity>
<activity <activity
@ -66,24 +72,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:supportsPictureInPicture="true" android:supportsPictureInPicture="true"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode" android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED" /> <action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/octet-stream" /> <data android:mimeType="application/octet-stream" />
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<data <data android:mimeType="application/octet-stream" android:scheme="content"/>
android:mimeType="application/octet-stream"
android:scheme="content"/>
</intent-filter> </intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/nfc_tech_filter" />
<meta-data
android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />
</activity> </activity>
<provider <provider
@ -98,5 +97,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
</provider> </provider>
</application> </application>
</manifest> </manifest>