rename provider2mtprovider

This commit is contained in:
NkBe 2025-12-03 22:32:53 +08:00
parent af548bb25d
commit 611d77f263
No known key found for this signature in database
GPG Key ID: 525137026FF031DF
6 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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);
} }

View File

@ -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/";