mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Update version to 1.0.77
This commit is contained in:
@@ -10,10 +10,10 @@ import androidx.annotation.Keep;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* @author weishu
|
||||
* @date 2020/7/13.
|
||||
* author weishu
|
||||
* date 2020/7/13.
|
||||
*/
|
||||
@SuppressWarnings("ALL")
|
||||
@SuppressWarnings("unused")
|
||||
@Keep
|
||||
public final class BootstrapClass {
|
||||
|
||||
|
@@ -16,10 +16,10 @@ import java.lang.reflect.Method;
|
||||
import dalvik.system.DexFile;
|
||||
|
||||
/**
|
||||
* @author weishu
|
||||
* @date 2018/6/7.
|
||||
* author weishu
|
||||
* date 2018/6/7.
|
||||
*/
|
||||
@SuppressWarnings("ALL")
|
||||
@SuppressWarnings("unused")
|
||||
@Keep
|
||||
public class Reflection {
|
||||
private static final String TAG = "Reflection";
|
||||
@@ -32,6 +32,7 @@ public class Reflection {
|
||||
* Begin
|
||||
*
|
||||
* @param context The Base Context
|
||||
* @return int
|
||||
*/
|
||||
public static int unseal(Context context) {
|
||||
if (SDK_INT < 28) {
|
||||
@@ -50,6 +51,7 @@ public class Reflection {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"deprecation", "ResultOfMethodCallIgnored"})
|
||||
private static boolean unsealByDexFile(Context context) {
|
||||
byte[] bytes = Base64.decode(DEX, Base64.NO_WRAP);
|
||||
File codeCacheDir = getCodeCacheDir(context);
|
||||
@@ -74,7 +76,6 @@ public class Reflection {
|
||||
return false;
|
||||
} finally {
|
||||
if (code.exists()) {
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
code.delete();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user