Lucaskyy
f565c4f6a7
refactor: improve ResourceData.kt
...
Old methods have been marked as deprecated, and will be removed in the future.
- ResourceData.kt was made an Iterable<File>, and the forEach method was removed in favor of Kotlin's forEach function. (no modifications required)
- The resolve method was deprecated in favor of a new operator getter function, which can be either called using get(path) or data[path]. This keeps backwards compatibility with the old get method.
- The getXmlEditor method was deprecated in favor of the new xmlEditor variable, which is a XmlFileHolder which has an operator getter which acts like an array. This is syntactically better.
2022-06-26 17:14:38 +02:00
Lucaskyy
35749454ab
refactor: remove deprecated methods in ResourceData.kt
2022-06-26 16:53:25 +02:00
Lucaskyy
2b492e7a5e
refactor: cleanup code
2022-06-26 16:32:22 +02:00
Lucaskyy
852ae7d8d1
refactor: move BytecodeData#proxy into class
2022-06-26 16:20:45 +02:00
oSumAtrIX
efa8ea1445
refactor: migrate from Signature
to Fingerprint
...
BREAKING CHANGE: Not backwards compatible, since a lot of classes where renamed.
2022-06-26 15:10:54 +02:00
bogadana
92ac5e4dc2
feat: add replace and remove extensions ( #50 )
2022-06-24 18:47:37 +02:00
oSumAtrIX
0e87ef56c4
fix: mutability of local variable modified
2022-06-23 08:57:41 +02:00
oSumAtrIX
e3bf367ad6
fix: callback only when inteded
2022-06-23 08:54:47 +02:00
oSumAtrIX
c20dfe12d5
feat: improve logging
2022-06-23 02:10:43 +02:00
oSumAtrIX
dde5385232
feat: yield the patch result
2022-06-23 01:41:52 +02:00
oSumAtrIX
930768dfb3
fix: callback for each file instead of class
2022-06-23 01:41:52 +02:00
oSumAtrIX
caf2745805
feat: logging class
2022-06-23 01:23:35 +02:00
oSumAtrIX
a4529c3fee
refactor: logging and exception strings
2022-06-22 16:47:58 +02:00
Lucaskyy
39bb1b25dc
refactor: add logging
2022-06-22 16:13:23 +02:00
Lucaskyy
4fc63a4d8a
refactor: add callbacks for applyPatches & addFiles
2022-06-22 15:37:33 +02:00
Lucaskyy
273dd86b65
chore: remove ExtFile import
2022-06-22 15:04:05 +02:00
Lucaskyy
e8488b3e86
revert "feat: use of java.util.logging.Logger
"
...
This reverts commit 9c39c9efdb5d48ddaffce7f711c275e732b0b2d9.
This reverts commit 8f66f9f606a785ac947b0e553822877f211d82df.
2022-06-22 15:03:30 +02:00
oSumAtrIX
8f66f9f606
feat: migrate logger to slf4j
2022-06-22 14:17:09 +02:00
oSumAtrIX
9c39c9efdb
feat: use of java.util.logging.Logger
2022-06-22 13:45:13 +02:00
oSumAtrIX
64bae884dc
feat: use streams to write the dex files
2022-06-22 03:19:39 +02:00
oSumAtrIX
68174bbd6b
feat: return a File
instance instead of ExtFile
2022-06-22 02:53:37 +02:00
oSumAtrIX
5a2f02b97d
fix: String.toInstructions
defaulting forStaticMethod
to false
...
Fixes revanced/revanced-patches#46
2022-06-21 23:52:09 +02:00
Lucaskyy
6628b7870f
fix: add docs (trigger release)
2022-06-21 21:02:50 +02:00
Lucaskyy
1f75777cf9
fix: return resourceFile to caller
2022-06-21 20:43:47 +02:00
oSumAtrIX
835a421cc0
fix: InlineSmaliCompiler.compile
using 0 registers instead of 1 by default
2022-06-21 17:46:43 +02:00
oSumAtrIX
e47b67d7ec
feat: simplify adding instructions
2022-06-20 21:20:51 +02:00
oSumAtrIX
ad6c5c8273
feat: parametersCount
for InlineSmaliCompiler
instead of parameters
2022-06-20 20:10:11 +02:00
oSumAtrIX
fd690acd61
refactor: add internal attribute to signatures
field
2022-06-20 20:10:06 +02:00
Sculas
8f3ac7702a
fix: goodbye security
2022-06-17 18:12:18 +02:00
Lucaskyy
dfd8a24512
revert: "fix: enforce aapt v1"
...
This reverts commit cff87ff0770d774d7ef79eec5a22462eadbcb9c5.
2022-06-15 21:39:27 +02:00
Lucaskyy
cff87ff077
fix: enforce aapt v1
2022-06-15 00:25:06 +02:00
Lucaskyy
b68b0bf3d7
fix: enforce aapt v2
2022-06-14 22:34:10 +02:00
Lucaskyy
6a5c8735fb
fix: Patcher setting BuildOptions too late
...
This causes the Manager to crash, due to a stupid bug in Apktool which is prevented by setting a valid frameworkFolderLocation.
2022-06-14 18:23:40 +02:00
Lucaskyy
d3a580ea19
feat: allow custom framework path to be specified
2022-06-14 17:49:07 +02:00
Lucaskyy
8eb4a8f87a
feat: allow custom aapt path to be specified
2022-06-11 20:08:00 +02:00
oSumAtrIX
afcba5c212
refactor: simplify code by removing the with
block
2022-06-11 19:45:11 +02:00
oSumAtrIX
2dcbd8d079
refactor: use include
annotation parameter instead of excludeByDefault
2022-06-11 19:14:19 +02:00
Lucaskyy
22267883b1
refactor: get rid of all useless let blocks
2022-06-11 16:56:05 +02:00
oSumAtrIX
31815ca9ea
fix: resource patcher
2022-06-11 06:36:13 +02:00
oSumAtrIX
41e88605c3
feat: optional forStaticMethod
parameter for InlineSmaliCompiler.compileMethodInstructions
2022-06-05 08:03:40 +02:00
oSumAtrIX
893d4c699b
feat: Dependencies
annotation
2022-06-05 08:03:40 +02:00
oSumAtrIX
6c65952d80
feat: patch dependencies annotation and PatcherOptions
2022-06-05 08:03:39 +02:00
oSumAtrIX
849616dc2b
fix: JarPatchBundle
loading non-class files to class loader
2022-06-05 08:03:38 +02:00
oSumAtrIX
8615798711
feat: migrate to DexPatchBundle
and JarPatchBundle
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:37 +02:00
Lucaskyy
54511a4fc6
feat: utility functions to get metadata of patch & sigs
2022-06-05 08:03:37 +02:00
Lucaskyy
94f3c9116e
chore: fix typo
2022-06-05 08:03:36 +02:00
Lucaskyy
bf4894592b
fix: reformat (trigger release)
2022-06-05 08:03:36 +02:00
Lucaskyy
5a96f2d99f
refactor: use apktool fork
...
also fixed some compilation issues
2022-06-05 08:03:35 +02:00
oSumAtrIX
0ebdb100fd
refactor: use resourceData.get(path)
instead of a reader/writer
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:35 +02:00
oSumAtrIX
4f60bea81e
perf: decode manifest only when not using resource patcher
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:34 +02:00