mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 02:11:03 +00:00
java: Rename package to safetynetfix
This is no longer using Riru.
This commit is contained in:
parent
2bcb2ff9a7
commit
db27e80080
@ -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
|
||||||
|
4
java/app/proguard-rules.pro
vendored
4
java/app/proguard-rules.pro
vendored
@ -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>(...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kdrag0n.safetynetriru
|
package dev.kdrag0n.safetynetfix
|
||||||
|
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kdrag0n.safetynetriru
|
package dev.kdrag0n.safetynetfix
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object EntryPoint {
|
object EntryPoint {
|
@ -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
|
@ -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
|
@ -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.
|
@ -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
|
Loading…
Reference in New Issue
Block a user