java: Rename package to safetynetfix

This is no longer using Riru.
This commit is contained in:
Danny Lin 2022-03-12 20:27:52 -08:00
parent 2bcb2ff9a7
commit db27e80080
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC
9 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@ android {
compileSdk 30 compileSdk 30
defaultConfig { defaultConfig {
applicationId "dev.kdrag0n.safetynetriru" applicationId "dev.kdrag0n.safetynetfix"
minSdk 24 minSdk 24
targetSdk 30 targetSdk 30
versionCode 1 versionCode 1

View File

@ -20,11 +20,11 @@
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-keep class dev.kdrag0n.safetynetriru.EntryPoint { -keep class dev.kdrag0n.safetynetfix.EntryPoint {
public static void init(); public static void init();
} }
-keepclassmembers class dev.kdrag0n.safetynetriru.proxy.ProxyKeyStoreSpi { -keepclassmembers class dev.kdrag0n.safetynetfix.proxy.ProxyKeyStoreSpi {
public <init>(...); public <init>(...);
} }

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.kdrag0n.safetynetriru"> package="dev.kdrag0n.safetynetfix">
<application <application
android:label="@string/app_name" android:label="@string/app_name"

View File

@ -1,4 +1,4 @@
package dev.kdrag0n.safetynetriru package dev.kdrag0n.safetynetfix
import android.os.Build import android.os.Build

View File

@ -1,4 +1,4 @@
package dev.kdrag0n.safetynetriru package dev.kdrag0n.safetynetfix
@Suppress("unused") @Suppress("unused")
object EntryPoint { object EntryPoint {

View File

@ -1,7 +1,7 @@
package dev.kdrag0n.safetynetriru package dev.kdrag0n.safetynetfix
import dev.kdrag0n.safetynetriru.proxy.ProxyKeyStoreSpi import dev.kdrag0n.safetynetfix.proxy.ProxyKeyStoreSpi
import dev.kdrag0n.safetynetriru.proxy.ProxyProvider import dev.kdrag0n.safetynetfix.proxy.ProxyProvider
import java.security.KeyStore import java.security.KeyStore
import java.security.KeyStoreSpi import java.security.KeyStoreSpi
import java.security.Security import java.security.Security

View File

@ -1,6 +1,6 @@
package dev.kdrag0n.safetynetriru.proxy package dev.kdrag0n.safetynetfix.proxy
import dev.kdrag0n.safetynetriru.logDebug import dev.kdrag0n.safetynetfix.logDebug
import java.io.InputStream import java.io.InputStream
import java.io.OutputStream import java.io.OutputStream
import java.security.Key import java.security.Key

View File

@ -1,7 +1,7 @@
package dev.kdrag0n.safetynetriru.proxy package dev.kdrag0n.safetynetfix.proxy
import dev.kdrag0n.safetynetriru.SecurityHooks import dev.kdrag0n.safetynetfix.SecurityHooks
import dev.kdrag0n.safetynetriru.logDebug import dev.kdrag0n.safetynetfix.logDebug
import java.security.Provider import java.security.Provider
// This is mostly just a pass-through provider that exists to change the provider's ClassLoader. // This is mostly just a pass-through provider that exists to change the provider's ClassLoader.

View File

@ -1,9 +1,9 @@
package dev.kdrag0n.safetynetriru package dev.kdrag0n.safetynetfix
import android.util.Log import android.util.Log
private const val DEBUG = false private const val DEBUG = false
private const val TAG = "SafetyNetRiru/Java" private const val TAG = "safetynetfix/Java"
internal fun <T> Any.get(name: String) = this::class.java.getDeclaredField(name).let { field -> internal fun <T> Any.get(name: String) = this::class.java.getDeclaredField(name).let { field ->
field.isAccessible = true field.isAccessible = true