Commit Graph

403 Commits

Author SHA1 Message Date
8f1a629191 fix: make warnings nullable instead of lateinit 2022-06-05 08:03:22 +02:00
e6086511e5 refactor: remove all parameter names 2022-06-05 08:03:21 +02:00
c612676543 fix: MethodSignature#resolved throwing an exception 2022-06-05 08:03:21 +02:00
bca948658e test: Add tests for unknown opcodes 2022-06-05 08:03:20 +02:00
0e5f4ba2d5 feat: Allow unknown opcodes using null
This is the same as `??` in IDA signatures.
2022-06-05 08:03:20 +02:00
6ca05769ef chore: remove todo 2022-06-05 08:03:20 +02:00
c21e5affba refactor: remove all @Suppression's 2022-06-05 08:03:19 +02:00
1c5a04caf9 refactor: format code 2022-06-05 08:03:19 +02:00
3d6a1d38f3 fix: Suppress unused for addFiles 2022-06-05 08:03:19 +02:00
715a2ad025 feat: Add warnings for Fuzzy resolver 2022-06-05 08:03:18 +02:00
9889ec9d03 docs: fix wrong wording 2022-06-05 08:03:18 +02:00
01bfbd656e feat: add extensions for cloning methods 2022-06-05 08:03:17 +02:00
6c9797583d test: fix outdated test 2022-06-05 08:03:17 +02:00
3cf07f5ce2 refactor: replace asInstructions with toInstruction to follow proper naming scheme 2022-06-05 08:03:17 +02:00
0bfb92a0cb revert: AccessFlag extensions not working with IDE 2022-06-05 08:03:16 +02:00
042638a399 refactor: replace Array with Iterable 2022-06-05 08:03:16 +02:00
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
338bd9f739 fix: null check causing an exception
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:15 +02:00
c55c62a57e add: throw on getting result of MethodSignature if null
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:15 +02:00
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
b2dab3fabf refactor: rename method to resolverMethod 2022-06-05 08:03:14 +02:00
0f30eac32c fix: remove leftover debug code 2022-06-05 08:03:14 +02:00
642e9031eb feat: Add patch metadata
Fixes ReVancedTeam/revanced-patches#1
2022-06-05 08:03:13 +02:00
7a56dca004 feat: add fuzzy resolver
fixed docs for MethodSignature & added tests for fuzzy resolver
2022-06-05 08:03:13 +02:00
18853f70a4 refactor: migrate signature schema changes to Patcher
also updated Extensions, for good measure.
2022-06-05 08:03:13 +02:00
6b8b0573d4 feat: add missing test for fields
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:12 +02:00
3889d72927 style: reformat code
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-06-05 08:03:12 +02:00
3f97cc8e1f feat: remaining mutable EncodedValue classes 2022-06-05 08:03:11 +02:00
1db735b1e2 feat: allow classes to be overwritten in addFiles and resolve signatures when applyPatches is called 2022-06-05 08:03:11 +02:00
996c4acb20 fix: always return PatchResultSuccess on patch success 2022-06-05 08:03:11 +02:00
5b28523eea add: optional callback for CLI 2022-06-05 08:03:10 +02:00
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
9659a61c5c fix: adding existing classes to the patchers cache 2022-06-05 08:03:10 +02:00
b892729332 chore: update kotlin, don't shade deps, publish to maven local, make deps api instead of implementation 2022-06-05 08:03:09 +02:00
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
e810197e2a revert: previous commits check for dupes in dexFile, not cache
This reverts commit aed4fd9a3c.
This reverts commit 622138736d.
2022-06-05 08:03:08 +02:00
e65ebd27c2 perf: use Set instead of List since there are no dupes 2022-06-05 08:03:08 +02:00
5bd416b409 perf: use String List and compare instead of any lambda 2022-06-05 08:03:08 +02:00
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
db10ab03be ci: Fix Unauthorized error 2022-06-05 08:03:07 +02:00
94dbb573cf refactor: bump multidexlib2, dexlib2 and smali 2022-06-05 08:03:07 +02:00
08253ee010 add: addFiles method to merge additional dex containers 2022-06-05 08:03:06 +02:00
3144ec872a fix: throwing in case the opcode patterns do not match 2022-06-05 08:03:06 +02:00
48c4ea2f6d fix: returning failure on success
oh wow, that's an oopsie
2022-06-05 08:03:06 +02:00
c63b20fa65 feat: add immutableMethod
added docs
2022-06-05 08:03:05 +02:00
f806cb38c5 fix: applyPatches not returning successful patches 2022-06-05 08:03:05 +02:00
6c3e2d79ea chore: format code 2022-06-05 08:03:05 +02:00
cca12aa34a fix: compareSignatureToMethod not matching correctly in case opcodes are null 2022-06-05 08:03:04 +02:00
c267b12a7d refactor: make method a property 2022-06-05 08:03:04 +02:00
eef448cc39 refactor: cleanup SignatureResolver.kt 2022-06-05 08:03:04 +02:00