Add alternative support for QUERY_ALL_PACKAGES in play flavor
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user