refactor name
This commit is contained in:
parent
8d05d3498d
commit
16db09e883
|
|
@ -6,7 +6,7 @@
|
|||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
<application
|
||||
android:name=".XposedApplication"
|
||||
android:name=".XposedTestApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/sample_app_title"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.storm.wind.xposed;
|
||||
|
||||
import static com.wind.xposed.entry.MMPLoader.initAndLoadModules;
|
||||
import static com.wind.xposed.entry.LSPLoader.initAndLoadModules;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
|
@ -9,7 +9,8 @@ import org.lsposed.lspd.yahfa.hooker.YahfaHooker;
|
|||
|
||||
import de.robv.android.xposed.XposedInit;
|
||||
|
||||
public class XposedApplication extends Application {
|
||||
// you can run this app to test hook framework
|
||||
public class XposedTestApplication extends Application {
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package com.wind.xposed.entry;
|
||||
|
||||
import static android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE;
|
||||
import static com.wind.xposed.entry.MMPLoader.initAndLoadModules;
|
||||
import static com.wind.xposed.entry.LSPLoader.initAndLoadModules;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
|
@ -30,10 +30,10 @@ import de.robv.android.xposed.XposedInit;
|
|||
/**
|
||||
* Created by Windysha
|
||||
*/
|
||||
public class MMPApplication extends Application {
|
||||
public class LSPApplication extends Application {
|
||||
private static final String ORIGINAL_APPLICATION_NAME_ASSET_PATH = "original_application_name.ini";
|
||||
private static final String ORIGINAL_SIGNATURE_ASSET_PATH = "original_signature_info.ini";
|
||||
private static final String TAG = MMPApplication.class.getSimpleName();
|
||||
private static final String TAG = LSPApplication.class.getSimpleName();
|
||||
private static String originalApplicationName = null;
|
||||
private static String originalSignature = null;
|
||||
private static Application sOriginalApplication = null;
|
||||
|
|
@ -90,7 +90,7 @@ public class MMPApplication extends Application {
|
|||
}
|
||||
}
|
||||
|
||||
public MMPApplication() {
|
||||
public LSPApplication() {
|
||||
super();
|
||||
|
||||
if (isApplicationProxied()) {
|
||||
|
|
@ -256,7 +256,7 @@ public class MMPApplication extends Application {
|
|||
return;
|
||||
}
|
||||
for (Object para : args) {
|
||||
if (para instanceof MMPApplication) {
|
||||
if (para instanceof LSPApplication) {
|
||||
para = sOriginalApplication;
|
||||
}
|
||||
}
|
||||
|
|
@ -38,9 +38,9 @@ import de.robv.android.xposed.XposedBridge;
|
|||
import de.robv.android.xposed.XposedHelper;
|
||||
import de.robv.android.xposed.callbacks.XC_LoadPackage;
|
||||
|
||||
public class MMPLoader {
|
||||
public class LSPLoader {
|
||||
|
||||
private static final String TAG = MMPLoader.class.getSimpleName();
|
||||
private static final String TAG = LSPLoader.class.getSimpleName();
|
||||
private static final String DIR_BASE = Environment.getExternalStorageDirectory().getAbsolutePath();
|
||||
private static final String XPOSED_MODULE_FILE_PATH = "xpmodules.list";
|
||||
private static AtomicBoolean hasInited = new AtomicBoolean(false);
|
||||
|
|
@ -164,7 +164,7 @@ public class MMPLoader {
|
|||
for (String modulePath : modulePathList) {
|
||||
String dexPath = context.getDir("xposed_plugin_dex", Context.MODE_PRIVATE).getAbsolutePath();
|
||||
if (!TextUtils.isEmpty(modulePath)) {
|
||||
MMPLoader.loadModule(modulePath, dexPath, null, context.getApplicationInfo(), originClassLoader);
|
||||
LSPLoader.loadModule(modulePath, dexPath, null, context.getApplicationInfo(), originClassLoader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ sourceSets.main.java.srcDirs += "$rootProject.projectDir/apksigner/src/main/java
|
|||
sourceSets.main.java.srcDirs += "$rootProject.projectDir/apksigner/src/apksigner/java"
|
||||
|
||||
jar {
|
||||
baseName = "mmpatch"
|
||||
baseName = "lspatch"
|
||||
destinationDirectory = new File("$rootProject.projectDir/out")
|
||||
manifest {
|
||||
attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand'
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class MainCommand extends BaseCommand {
|
|||
private boolean forceOverwrite = false;
|
||||
|
||||
@Opt(opt = "pn", longOpt = "proxyname", description = "special proxy app name with full dot path", argName = "proxy app name")
|
||||
private String proxyname = "com.wind.xposed.entry.MMPApplication";
|
||||
private String proxyname = "com.wind.xposed.entry.LSPApplication";
|
||||
|
||||
@Opt(opt = "c", longOpt = "crach", hasArg = false,
|
||||
description = "disable craching the apk's signature.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue