Move package to .api
This commit is contained in:
parent
c619737e42
commit
0339bb631a
|
|
@ -33,7 +33,7 @@ import java.util.HashMap;
|
||||||
|
|
||||||
import de.robv.android.xposed.callbacks.IXUnhook;
|
import de.robv.android.xposed.callbacks.IXUnhook;
|
||||||
import de.robv.android.xposed.callbacks.XCallback;
|
import de.robv.android.xposed.callbacks.XCallback;
|
||||||
import io.github.libxposed.XposedInterface;
|
import io.github.libxposed.api.XposedInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback class for method hooks.
|
* Callback class for method hooks.
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
||||||
|
|
||||||
import de.robv.android.xposed.callbacks.XC_InitPackageResources;
|
import de.robv.android.xposed.callbacks.XC_InitPackageResources;
|
||||||
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
||||||
import io.github.libxposed.XposedInterface;
|
import io.github.libxposed.api.XposedInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains most of Xposed's central logic, such as initialization and callbacks used by
|
* This class contains most of Xposed's central logic, such as initialization and callbacks used by
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import androidx.annotation.Nullable;
|
||||||
import java.util.concurrent.CopyOnWriteArraySet;
|
import java.util.concurrent.CopyOnWriteArraySet;
|
||||||
|
|
||||||
import de.robv.android.xposed.IXposedHookInitPackageResources;
|
import de.robv.android.xposed.IXposedHookInitPackageResources;
|
||||||
import io.github.libxposed.XposedModuleInterface;
|
import io.github.libxposed.api.XposedModuleInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is only used for internal purposes, except for the {@link InitPackageResourcesParam}
|
* This class is only used for internal purposes, except for the {@link InitPackageResourcesParam}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
||||||
|
|
||||||
import de.robv.android.xposed.IXposedHookLoadPackage;
|
import de.robv.android.xposed.IXposedHookLoadPackage;
|
||||||
import de.robv.android.xposed.XposedBridge.CopyOnWriteSortedSet;
|
import de.robv.android.xposed.XposedBridge.CopyOnWriteSortedSet;
|
||||||
import io.github.libxposed.XposedModuleInterface;
|
import io.github.libxposed.api.XposedModuleInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is only used for internal purposes, except for the {@link LoadPackageParam}
|
* This class is only used for internal purposes, except for the {@link LoadPackageParam}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ import de.robv.android.xposed.XC_MethodReplacement;
|
||||||
import de.robv.android.xposed.XposedBridge;
|
import de.robv.android.xposed.XposedBridge;
|
||||||
import de.robv.android.xposed.XposedHelpers;
|
import de.robv.android.xposed.XposedHelpers;
|
||||||
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
||||||
import io.github.libxposed.XposedModuleInterface;
|
import io.github.libxposed.api.XposedModuleInterface;
|
||||||
|
|
||||||
public class LoadedApkGetCLHooker extends XC_MethodHook {
|
public class LoadedApkGetCLHooker extends XC_MethodHook {
|
||||||
private final LoadedApk loadedApk;
|
private final LoadedApk loadedApk;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import de.robv.android.xposed.XC_MethodHook;
|
||||||
import de.robv.android.xposed.XposedBridge;
|
import de.robv.android.xposed.XposedBridge;
|
||||||
import de.robv.android.xposed.XposedInit;
|
import de.robv.android.xposed.XposedInit;
|
||||||
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
||||||
import io.github.libxposed.XposedModuleInterface;
|
import io.github.libxposed.api.XposedModuleInterface;
|
||||||
|
|
||||||
public class StartBootstrapServicesHooker extends XC_MethodHook {
|
public class StartBootstrapServicesHooker extends XC_MethodHook {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,11 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import de.robv.android.xposed.XposedBridge;
|
import de.robv.android.xposed.XposedBridge;
|
||||||
import de.robv.android.xposed.XposedHelpers;
|
import de.robv.android.xposed.XposedHelpers;
|
||||||
import io.github.libxposed.XposedContext;
|
import io.github.libxposed.api.XposedContext;
|
||||||
import io.github.libxposed.XposedModule;
|
import io.github.libxposed.api.XposedModule;
|
||||||
import io.github.libxposed.XposedModuleInterface;
|
import io.github.libxposed.api.XposedModuleInterface;
|
||||||
import io.github.libxposed.errors.HookFailedError;
|
import io.github.libxposed.api.errors.HookFailedError;
|
||||||
import io.github.libxposed.utils.DexParser;
|
import io.github.libxposed.api.utils.DexParser;
|
||||||
|
|
||||||
public class LSPosedContext extends XposedContext {
|
public class LSPosedContext extends XposedContext {
|
||||||
|
|
||||||
|
|
@ -883,7 +883,6 @@ public class LSPosedContext extends XposedContext {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
log("Cannot hook " + hookMethod);
|
|
||||||
throw new HookFailedError("Cannot hook " + hookMethod);
|
throw new HookFailedError("Cannot hook " + hookMethod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,6 @@ import java.util.TreeMap;
|
||||||
import java.util.WeakHashMap;
|
import java.util.WeakHashMap;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import de.robv.android.xposed.XposedBridge;
|
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public class LSPosedRemotePreferences implements SharedPreferences {
|
public class LSPosedRemotePreferences implements SharedPreferences {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import org.lsposed.lspd.nativebridge.DexParserBridge;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
|
||||||
import io.github.libxposed.utils.DexParser;
|
import io.github.libxposed.api.utils.DexParser;
|
||||||
|
|
||||||
public class LSPosedDexParser implements DexParser {
|
public class LSPosedDexParser implements DexParser {
|
||||||
long cookie;
|
long cookie;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import java.lang.reflect.Method;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
|
||||||
import dalvik.annotation.optimization.FastNative;
|
import dalvik.annotation.optimization.FastNative;
|
||||||
import io.github.libxposed.utils.DexParser;
|
import io.github.libxposed.api.utils.DexParser;
|
||||||
|
|
||||||
public class DexParserBridge {
|
public class DexParserBridge {
|
||||||
@FastNative
|
@FastNative
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue