Add alternative support for QUERY_ALL_PACKAGES in play flavor

This commit is contained in:
世界
2025-12-25 01:49:27 +08:00
parent 104da5d312
commit 08f51d5469
22 changed files with 855 additions and 169 deletions

View File

@@ -7,4 +7,17 @@
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:node="remove" />
</manifest>
<application>
<provider
android:name="rikka.shizuku.ShizukuProvider"
android:authorities="${applicationId}.shizuku"
android:exported="true"
android:multiprocess="false"
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" />
<service
android:name=".vendor.RootPackageManagerService"
android:exported="false" />
</application>
</manifest>

View File

@@ -93,19 +93,11 @@ object Vendor : VendorInterface {
}
}
override fun isPerAppProxyAvailable(): Boolean {
// Per-app Proxy is disabled for Play Store builds due to QUERY_ALL_PACKAGES permission restriction
return false
}
override fun supportsTrackSelection(): Boolean {
// Play Store doesn't support track selection
return false
}
override fun checkUpdateAsync(): UpdateInfo? {
// Play Store updates are handled by the Play Core library
// We can't get version info in the same way as GitHub
return null
}
}