-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* revanced-cli `v5.0.0` * revanced-patches `v5.0.2` * implement all required changes introduced by revanced-cli v5
- Loading branch information
1 parent
2df771c
commit a67c819
Showing
10 changed files
with
49 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.apk | ||
*.zip | ||
*.jar | ||
*.rvp | ||
|
||
magiskmodule/README.md | ||
magiskmodule/module.prop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule revanced-cli
updated
28 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,39 @@ | ||
From 61c466539d43ec65b241d319dd7089fa949c3a9b Mon Sep 17 00:00:00 2001 | ||
From 56ba7c0783104ea04c54992a5b4ec730e9c185bf Mon Sep 17 00:00:00 2001 | ||
From: programminghoch10 <16062290+programminghoch10@users.noreply.github.com> | ||
Date: Mon, 28 Aug 2023 11:25:11 +0200 | ||
Subject: [PATCH] Load classes in dex mode | ||
|
||
Required for patching on android | ||
--- | ||
src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | 7 ++++++- | ||
1 file changed, 6 insertions(+), 1 deletion(-) | ||
src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | 8 +++++++- | ||
1 file changed, 7 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | ||
index 410c94a..cf780a1 100644 | ||
index efbc755..8bb6f68 100644 | ||
--- a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | ||
+++ b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | ||
@@ -244,7 +244,12 @@ internal object PatchCommand : Runnable { | ||
@@ -7,6 +7,7 @@ import app.revanced.library.setOptions | ||
import app.revanced.patcher.Patcher | ||
import app.revanced.patcher.PatcherConfig | ||
import app.revanced.patcher.patch.Patch | ||
+import app.revanced.patcher.patch.loadPatchesFromDex | ||
import app.revanced.patcher.patch.loadPatchesFromJar | ||
import kotlinx.coroutines.runBlocking | ||
import picocli.CommandLine | ||
@@ -279,7 +280,12 @@ internal object PatchCommand : Runnable { | ||
|
||
logger.info("Loading patches") | ||
|
||
- val patches = PatchBundleLoader.Jar(*patchBundles.toTypedArray()) | ||
- val patches = loadPatchesFromJar(patchesFiles) | ||
+ val patches = try { | ||
+ val DexClassLoaderClass = Class.forName("dalvik.system.DexClassLoader") | ||
+ PatchBundleLoader.Dex(*patchBundles.toTypedArray()) | ||
+ loadPatchesFromDex(patchesFiles) | ||
+ } catch (_: ClassNotFoundException) { | ||
+ PatchBundleLoader.Jar(*patchBundles.toTypedArray()) | ||
+ loadPatchesFromJar(patchesFiles) | ||
+ } | ||
|
||
// Warn if a patch can not be found in the supplied patch bundles. | ||
if (warn) { | ||
// endregion | ||
|
||
-- | ||
2.43.0 | ||
2.45.2 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
|
||
REVANCED_INTEGRATIONS="v1.16.0" | ||
REVANCED_PATCHES="v4.17.0" | ||
REVANCED_CLI="v4.6.0" | ||
REVANCED_PATCHES="v5.0.2" | ||
REVANCED_CLI="v5.0.0" |