Show User-Agent

This commit is contained in:
vvb2060 2022-01-18 16:26:26 +08:00 committed by John Wu
parent bc0c1980db
commit 5be3bd1e64

View File

@ -63,6 +63,12 @@ fun createOkHttpClient(context: Context): OkHttpClient {
})
}
builder.addInterceptor { chain ->
val request = chain.request().newBuilder()
request.header("User-Agent", "Magisk ${BuildConfig.VERSION_CODE}")
chain.proceed(request.build())
}
if (!ProviderInstaller.install(context)) {
Info.hasGMS = false
}