2020-08-19 11:05:23 +02:00
|
|
|
package com.topjohnwu.magisk.ui.safetynet
|
2019-08-08 09:59:23 +02:00
|
|
|
|
2021-04-20 12:39:47 +02:00
|
|
|
import android.content.Context
|
|
|
|
|
2019-08-08 09:59:23 +02:00
|
|
|
interface SafetyNetHelper {
|
|
|
|
|
|
|
|
val version: Int
|
|
|
|
|
2021-04-20 12:39:47 +02:00
|
|
|
fun attest(context: Context, nonce: ByteArray, callback: Callback)
|
2019-08-08 09:59:23 +02:00
|
|
|
|
|
|
|
interface Callback {
|
2021-04-15 13:47:57 +02:00
|
|
|
fun onResponse(response: String?)
|
2019-08-08 09:59:23 +02:00
|
|
|
}
|
|
|
|
}
|