rename provider2mtprovider
This commit is contained in:
parent
af548bb25d
commit
611d77f263
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -315,8 +315,8 @@ public class NPatch {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isInjectProvider){
|
if (isInjectProvider){
|
||||||
try (var is = getClass().getClassLoader().getResourceAsStream("assets/provider.dex")) {
|
try (var is = getClass().getClassLoader().getResourceAsStream("assets/mtprovider.dex")) {
|
||||||
dstZFile.add("assets/npatch/provider.dex", is);
|
dstZFile.add("assets/npatch/mtprovider.dex", is);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
throw new PatchError("Error when adding dex", e);
|
throw new PatchError("Error when adding dex", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ public class Constants {
|
||||||
final static public String CONFIG_ASSET_PATH = "assets/npatch/config.json";
|
final static public String CONFIG_ASSET_PATH = "assets/npatch/config.json";
|
||||||
final static public String LOADER_DEX_ASSET_PATH = "assets/npatch/loader.dex";
|
final static public String LOADER_DEX_ASSET_PATH = "assets/npatch/loader.dex";
|
||||||
final static public String META_LOADER_DEX_ASSET_PATH = "assets/npatch/metaloader.dex";
|
final static public String META_LOADER_DEX_ASSET_PATH = "assets/npatch/metaloader.dex";
|
||||||
final static public String PROVIDER_DEX_ASSET_PATH = "assets/npatch/provider.dex";
|
final static public String PROVIDER_DEX_ASSET_PATH = "assets/npatch/mtprovider.dex";
|
||||||
final static public String ORIGINAL_APK_ASSET_PATH = "assets/npatch/origin.apk";
|
final static public String ORIGINAL_APK_ASSET_PATH = "assets/npatch/origin.apk";
|
||||||
final static public String EMBEDDED_MODULES_ASSET_PATH = "assets/npatch/modules/";
|
final static public String EMBEDDED_MODULES_ASSET_PATH = "assets/npatch/modules/";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue