mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2026-06-02 06:14:11 +02:00
java: SecurityBridge -> SecurityHooks
This commit is contained in:
@@ -6,7 +6,7 @@ object EntryPoint {
|
||||
fun init() {
|
||||
runCatching {
|
||||
logDebug("Entry point: Initializing SafetyNet patches")
|
||||
SecurityBridge.init()
|
||||
SecurityHooks.init()
|
||||
BuildHooks.init()
|
||||
}.recoverCatching { e ->
|
||||
// Throwing an exception would require the JNI code to handle exceptions, so just catch
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import java.security.KeyStore
|
||||
import java.security.KeyStoreSpi
|
||||
import java.security.Security
|
||||
|
||||
internal object SecurityBridge {
|
||||
internal object SecurityHooks {
|
||||
const val PROVIDER_NAME = "AndroidKeyStore"
|
||||
|
||||
fun init() {
|
||||
@@ -1,6 +1,6 @@
|
||||
package dev.kdrag0n.safetynetriru.proxy
|
||||
|
||||
import dev.kdrag0n.safetynetriru.SecurityBridge
|
||||
import dev.kdrag0n.safetynetriru.SecurityHooks
|
||||
import dev.kdrag0n.safetynetriru.logDebug
|
||||
import java.security.Provider
|
||||
|
||||
@@ -14,7 +14,7 @@ class ProxyProvider(
|
||||
logDebug("Init proxy provider - wrapping $orig")
|
||||
|
||||
putAll(orig)
|
||||
this["KeyStore.${SecurityBridge.PROVIDER_NAME}"] = ProxyKeyStoreSpi::class.java.name
|
||||
this["KeyStore.${SecurityHooks.PROVIDER_NAME}"] = ProxyKeyStoreSpi::class.java.name
|
||||
}
|
||||
|
||||
override fun getService(type: String?, algorithm: String?): Service? {
|
||||
|
||||
Reference in New Issue
Block a user