Commit 5be3bd1e authored by vvb2060's avatar vvb2060 Committed by John Wu

Show User-Agent

parent bc0c1980
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment