309 Commits

Author SHA1 Message Date
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
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
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
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
oSumAtrIX
843e62ad29
fix: use instruction index instead of strings list index for StringMatch 2022-09-29 21:27:56 +02:00
oSumAtrIX
9c07ffcc7a
fix: check dependencies for resource patches 2022-09-29 21:27:12 +02:00
oSumAtrIX
3ba4be240b
perf: decode resources only when necessary 2022-09-26 08:57:39 +02:00
oSumAtrIX
db4348c4fa
feat: RwLock for opening files in DomFileEditor 2022-09-26 03:21:13 +02:00
oSumAtrIX
fd5c878cee
fix!: revert reverting changes
BREAKING-CHANGE: Imports will have to be updated from `MethodFingerprintUtils` to `MethodFingerprint.Companion`.
2022-09-21 16:45:16 +02:00
bogadana
124332f0e9
revert: revert breaking changes (#106) 2022-09-21 15:22:55 +02:00
oSumAtrIX
d802ef844e
refactor!: move utility methods from MethodFingerprintUtils MethodFingerprint
BREAKING CHANGE: Imports will have to be updated from `MethodFingerprintUtils` to `MethodFingerprint.Companion`.

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-09-21 01:38:49 +02:00
oSumAtrIX
90fc547673
refactor: suppress member visibility and unnecessary null assertion warnings
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-09-21 01:38:49 +02:00
oSumAtrIX
3813e28ac2
feat(fingerprint)!: StringsScanResult for MethodFingerprint
BREAKING CHANGE: `MethodFingerprint` now has a field for `MethodFingerprintScanResult`. `MethodFingerprintScanResult` now holds the previous field `MethodFingerprint.patternScanResult`.

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-09-21 01:38:49 +02:00