389 Commits

Author SHA1 Message Date
LisoUseInAIKyrios
fcef4342e8
fix: NPE on method lookup (#195) 2023-06-28 21:56:03 +02:00
oSumAtrIX
519359a9eb
fix: do not load annotations as patches 2023-06-27 04:09:03 +02:00
LisoUseInAIKyrios
d718134ab2
perf: resolve fingerprints using method maps (#185)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-06-27 04:06:51 +02:00
oSumAtrIX
6e1b6479b6
fix: use versionCode if versionName is unavailable 2023-06-18 16:39:49 +02:00
oSumAtrIX
d5d6f85084
fix: catch exceptions from closing patches 2023-06-14 02:14:37 +02:00
oSumAtrIX
b8151ebccb
fix: only close succeeded patches 2023-06-14 01:43:19 +02:00
oSumAtrIX
f02a42610b
fix: revert using OutputStream.nullOutputStream
Older Android versions don't support this API
2023-06-12 05:32:13 +02:00
oSumAtrIX
2a453d51a8
refactor: rename helper methods for tests 2023-06-10 01:55:05 +02:00
oSumAtrIX
43d6868d1f
fix: add imports to fix failing tests 2023-06-10 01:43:09 +02:00
oSumAtrIX
a12fe7dd9e
refactor!: move extension functions to their corresponding classes
BREAKING CHANGE: This changes the import paths for extension functions.
2023-06-07 03:43:17 +02:00
oSumAtrIX
efdd01a988
refactor!: use proper extension function names
BREAKING CHANGE: This changes the names of extension functions
2023-06-07 03:43:13 +02:00
oSumAtrIX
eafe1c631f
refactor: use existing null output stream 2023-06-07 03:32:19 +02:00
oSumAtrIX
aacf900764
fix!: implement extension functions consistently
BREAKING CHANGE: This changes the name of functions
2023-06-07 03:32:19 +02:00
LisoUseInAIKyrios
b6d6a7591b
fix!: check for two methods parameters orders (#183)
BREAKING CHANGE: This requires changes to `MethodFingerprint`
2023-06-07 02:50:38 +02:00
oSumAtrIX
526a3d7c35
refactor!: rename parameter
BREAKING CHANGE: This changes named parameters.
2023-05-24 01:49:07 +02:00
oSumAtrIX
28fc6a2ddd
refactor: apply Kotlin idioms 2023-05-24 01:45:46 +02:00
Jim Man
239ea0bcaa
refactor: simplify loading patches (#172) 2023-05-14 01:55:26 +02:00
badawoll
a2052202b2
feat!: add classDef parameter to MethodFingerprint (#175)
BREAKING CHANGE: This changes the signature of the `customFingerprint` function.
2023-05-11 01:37:17 +02:00
rstular
98f8eedecd
fix: remove count instead of count + 1 instructions with removeInstructions (#167)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>

BREAKING-CHANGE: This alters the behaviour of the function. Instead of removing `count + 1` instructions, this now removes `count` instructions.
2023-05-08 01:03:09 +02:00
oSumAtrIX
49c173dc14
feat: add overload to get instruction as type 2023-05-05 23:36:30 +02:00
oSumAtrIX
6e24a85eab
feat!: merge integrations only when necessary
BREAKING CHANGE: `Patcher.addFiles` is now renamed to `Patcher.addIntegrations`

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-27 00:23:27 +01:00
oSumAtrIX
e4c3e9ffc5
refactor: remove unnecessary annotations
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-26 23:18:35 +01:00
oSumAtrIX
058d292ad5
fix: check CONST_STRING_JUMP instructions for matching string
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-10 05:18:38 +01:00
oSumAtrIX
1029d56a52
refactor: remove dead code
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-10 05:17:36 +01:00
oSumAtrIX
709b5a0fec
chore: fix typo
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-02-10 05:16:00 +01:00
oSumAtrIX
4102f43b8a
feat: do not fix methods or methods in class merger 2023-01-02 08:50:08 +01:00
oSumAtrIX
5c09ef7837
feat: fix method and field access when merging classes 2023-01-02 07:57:50 +01:00
oSumAtrIX
3e0bf8c863
refactor: move merging classes code to own class 2023-01-02 07:57:48 +01:00
oSumAtrIX
8f3ecc318c
feat: add missing setter to MutableMethod 2023-01-02 07:09:58 +01:00
Canny
9f0a09a756
feat: make aaptPath nullable (#146) 2022-12-20 20:04:15 +01:00
oSumAtrIX
c5de9e2988
fix: check if fingerprint string is substring of any string references 2022-12-18 22:05:05 +01:00
oSumAtrIX
7cf79e68e0
fix: print full exception when patch fails 2022-12-18 09:02:48 +01:00
oSumAtrIX
9ec720e983
fix: publicize types when merging files if necessary (#137) 2022-12-13 23:36:47 +01:00
oSumAtrIX
c2a5a55e67
refactor: remove unnecessary test 2022-12-11 03:01:41 +01:00
oSumAtrIX
a306561b55
feat: sort patches in lexicographical order
Closes #125
2022-12-02 03:31:25 +01:00
oSumAtrIX
a925650044
feat: merge classes on addition (#127) 2022-12-02 02:31:47 +01:00
oSumAtrIX
bd053b7e99
fix: use MethodUtil.methodSignaturesMatch instead of Method.softCompareTo 2022-11-25 10:24:13 +01:00
oSumAtrIX
ba9d998681
feat: apply changes from ReVanced Patcher
BREAKING-CHANGE: Some annotations have been removed regarding fingerprints and patches.
2022-11-23 00:29:12 +01:00
oSumAtrIX
4164cb0dea
fix: fallback to patch class name instead of java.lang.Class class name 2022-11-18 02:14:20 +01:00
MewtR
f9bc95f220
fix: remove unnecessary dummy nop instructions (#111) 2022-11-14 16:57:13 +01:00
oSumAtrIX
538b2a8599
feat: remove unused annotation DirectPatternScanMethod 2022-10-05 03:57:40 +02:00
oSumAtrIX
4aa14bbb85
refactor: improve structuring of classes and their implementations
BREAKING CHANGE: various changes in which packages classes previously where and their implementation
2022-10-05 03:57:40 +02:00
oSumAtrIX
d37452997b
refactor: move OptionsContainer to own class file
BREAKING-CHANGE: this changes the package
2022-10-04 08:32:50 +02:00
oSumAtrIX
db21d5e953
refactor: remove unused import 2022-10-04 08:30:17 +02:00
oSumAtrIX
4d581811db
feat!: seal abstract class Patch as an interface 2022-10-04 08:30:17 +02:00
oSumAtrIX
8c502448be
feat!: remove unused annotation MatchingMethod 2022-10-04 08:30:16 +02:00
oSumAtrIX
fec16d9442
refactor: remove line break 2022-10-04 08:18:52 +02:00
oSumAtrIX
5583904994
feat: remove unused patch extensions
BREAKING CHANGE: These extensions do not exist anymore and any use should be removed
2022-10-04 08:18:43 +02:00
oSumAtrIX
797286b758
feat: remove unused extension dependsOn
BREAKING CHANGE: The extension does not exist anymore and any use should be removed
2022-10-04 08:18:09 +02:00
oSumAtrIX
4ae9ad09d6
feat: remove unused annotation SincePatcher
BREAKING CHANGE: The annotation does not exist anymore and any use should be removed
2022-10-04 08:16:58 +02:00