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
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
6c65952d80
feat: patch dependencies annotation and PatcherOptions
2022-06-05 08:03:39 +02:00
Lucaskyy
5a96f2d99f
refactor: use apktool fork
...
also fixed some compilation issues
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
oSumAtrIX
a4d8be20fc
fix: using old instance of Androlib
when saving
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:32 +02:00
oSumAtrIX
d20f7fd6e1
feat: use annotations instead of metadata objects
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:31 +02:00
oSumAtrIX
cc9416dd11
perf: depend on androlib
instead of ApkDecoder
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:28 +02:00
oSumAtrIX
99319e63da
add: resource patcher
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:28 +02:00
oSumAtrIX
b1eebc99a7
perf: do not resolve empty signatures list
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:27 +02:00
oSumAtrIX
beff1df9b0
refactor: resolve signatures automatically
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:26 +02:00
oSumAtrIX
f58a498849
add: applyProxies
method
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:26 +02:00
oSumAtrIX
6cb1fdf617
feat: properly manage ClassProxy
& add ProxyBackedClassList
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:25 +02:00
oSumAtrIX
5ca5a1c29e
fix: applying no patches throwing error
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:23 +02:00
Lucaskyy
c21e5affba
refactor: remove all @Suppression's
2022-06-05 08:03:19 +02:00
Lucaskyy
3d6a1d38f3
fix: Suppress unused for addFiles
2022-06-05 08:03:19 +02:00
Lucaskyy
715a2ad025
feat: Add warnings for Fuzzy resolver
2022-06-05 08:03:18 +02:00
oSumAtrIX
4178a1eedc
fix: replaceWith
not replacing classes with used class proxies
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:15 +02:00
oSumAtrIX
1f08da8b2a
refact: include each signature in its corresponding patch
...
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:14 +02:00
Lucaskyy
642e9031eb
feat: Add patch metadata
...
Fixes ReVancedTeam/revanced-patches#1
2022-06-05 08:03:13 +02:00
oSumAtrIX
3f97cc8e1f
feat: remaining mutable EncodedValue
classes
2022-06-05 08:03:11 +02:00
Lucaskyy
1db735b1e2
feat: allow classes to be overwritten in addFiles and resolve signatures when applyPatches is called
2022-06-05 08:03:11 +02:00
Lucaskyy
996c4acb20
fix: always return PatchResultSuccess on patch success
2022-06-05 08:03:11 +02:00
Lucaskyy
5b28523eea
add: optional callback for CLI
2022-06-05 08:03:10 +02:00
Lucaskyy
72f3cad3f9
refactor: Change all references from Array to Iterable
...
BREAKING CHANGE: arrayOf has to be changed to listOf.
2022-06-05 08:03:10 +02:00
oSumAtrIX
9659a61c5c
fix: adding existing classes to the patchers cache
2022-06-05 08:03:10 +02:00
Lucaskyy
6e4db110c8
fix: Classes not being written properly because of array shifting
...
We now use a MutableList to replace it at the proper index, and use a ListBackedSet, so we don't copy List's to Set's for no reason.
This was a very bad issue. The array was shifted every time we removed the original class, the fact we even got a "working" dex file surprises me. Thankfully, this issue is now solved, and we lived happily after.
2022-06-05 08:03:09 +02:00
Lucaskyy
e810197e2a
revert: previous commits check for dupes in dexFile, not cache
...
This reverts commit aed4fd9a3c9e7f96c1e2c54b831c3fe7d3d720a2.
This reverts commit 622138736dca6c0161171330801b7b5666594ec7.
2022-06-05 08:03:08 +02:00
Lucaskyy
e65ebd27c2
perf: use Set instead of List since there are no dupes
2022-06-05 08:03:08 +02:00
Lucaskyy
5bd416b409
perf: use String List and compare instead of any lambda
2022-06-05 08:03:08 +02:00
Lucaskyy
a6c6b4979a
refactor: bump multidexlib2 to 2.5.2.r2
...
BREAKING CHANGE: Method signature of Patcher#save() was changed to comply with the changes of multidexlib2.
2022-06-05 08:03:07 +02:00
Lucaskyy
94dbb573cf
refactor: bump multidexlib2, dexlib2 and smali
2022-06-05 08:03:07 +02:00
oSumAtrIX
08253ee010
add: addFiles
method to merge additional dex containers
2022-06-05 08:03:06 +02:00
Lucaskyy
48c4ea2f6d
fix: returning failure on success
...
oh wow, that's an oopsie
2022-06-05 08:03:06 +02:00
Lucaskyy
f806cb38c5
fix: applyPatches not returning successful patches
2022-06-05 08:03:05 +02:00
Lucaskyy
59189058ac
refactor: cleanup Patcher.kt
2022-06-05 08:03:03 +02:00
oSumAtrIX
139a23b750
feat: Improve SignatureResolver
2022-06-05 08:03:01 +02:00
oSumAtrIX
fac44a50c3
fix: Patcher not writing resolved methods
2022-06-05 08:02:58 +02:00
oSumAtrIX
66a9b76845
fix: return mutable set of classes
2022-06-05 08:02:57 +02:00
oSumAtrIX
f068fc87ff
fix: write all classes
2022-06-05 08:02:57 +02:00
oSumAtrIX
398239dc10
fix: fix classes having multiple method instances
2022-06-05 08:02:56 +02:00
Lucaskyy
cb78c5a86f
style: reformat code
2022-06-05 08:02:54 +02:00
oSumAtrIX
650bf71124
docs: Document important parts of the code
2022-06-05 08:02:53 +02:00
oSumAtrIX
1dd3394ea3
refactor: Replacing original classes with mutated ones
2022-06-05 08:02:53 +02:00