272 Commits

Author SHA1 Message Date
bogadana
482af78f2b
fix: handle null properly (#64) 2022-07-07 08:33:40 +02:00
bogadana
4ea030d0a0
feat: nullability for BytecodePatch constructor (#59) 2022-07-05 16:46:54 +02:00
oSumAtrIX
48068cb3d7
fix: MethodWalker not accounting for all reference instructions 2022-07-03 22:51:04 +02:00
oSumAtrIX
4b2e3230ec
fix: more useful error message 2022-07-03 15:37:48 +02:00
oSumAtrIX
83187c9edd
fix: DomFileEditor opening in- and output streams on the same file 2022-07-03 00:19:39 +02:00
oSumAtrIX
6f72c4c4c0
feat: streams overload for XmlFileHolder 2022-07-02 17:44:08 +02:00
oSumAtrIX
c8eedac4d9
refactor: members of ResourceData 2022-07-02 16:22:19 +02:00
oSumAtrIX
ada5a033de
feat: remove deprecated functions 2022-07-02 04:21:20 +02:00
oSumAtrIX
e2faf4ca9b fix: invert fingerprint resolution condition of customFingerprint 2022-06-30 01:36:25 +02:00
oSumAtrIX
2134182a0e
refactor: declare data parameter internal 2022-06-29 19:55:23 +02:00
oSumAtrIX
a467fbb704
feat: log failed patches due to failed dependencies 2022-06-28 03:25:49 +02:00
Lucaskyy
6bfe5716c3
feat: Improve Smali Compiler
- Branching support has been added. See InlineSmaliCompilerTest.kt for an example.
- Some other improvements have been made too.
2022-06-27 21:11:59 +02:00
oSumAtrIX
2fc4ec4021
fix: use Exception instead of MethodNotFoundException 2022-06-26 18:01:54 +02:00
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
081a5a6849
refactor: fmt ExampleBytecodePatch.kt 2022-06-26 16:21:55 +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