Lucaskyy
3b68d5c65e
fix: returning failure on success
...
oh wow, that's an oopsie
2022-04-09 00:03:21 +02:00
Lucaskyy
eed1cfda7b
feat: add immutableMethod
...
added docs
2022-04-08 23:51:31 +02:00
Lucaskyy
8b70bb4290
fix: applyPatches not returning successful patches
2022-04-08 23:50:26 +02:00
Lucaskyy
dbda641d0c
chore: format code
2022-04-08 23:28:32 +02:00
oSumAtrIX
5ae5e98f1f
fix: compareSignatureToMethod not matching correctly in case opcodes are null
2022-04-08 23:25:44 +02:00
Lucaskyy
1ba40ab1cb
refactor: make method a property
2022-04-08 23:15:40 +02:00
Lucaskyy
e9c119ebb1
refactor: cleanup SignatureResolver.kt
2022-04-08 22:59:20 +02:00
Lucaskyy
4e7378bd79
refactor: rename resolveAndGetMethod to method
2022-04-08 22:58:39 +02:00
Lucaskyy
28ed4793e3
refactor: cleanup Patcher.kt
2022-04-08 22:56:24 +02:00
Lucaskyy
312235b194
fix: use Array instead of Iterable for methodParameters
2022-04-08 22:55:40 +02:00
Lucaskyy
6ab21e5891
chore: move replace extension method to Extensions.kt
2022-04-08 22:55:12 +02:00
Lucaskyy
db8d1150c3
docs: fixup
2022-04-08 22:54:23 +02:00
oSumAtrIX
88a6a27302
feat: Improve SignatureResolver
2022-04-08 18:19:48 +02:00
oSumAtrIX
a9e4e8ac32
feat: Finish first patcher test
2022-04-06 23:10:52 +02:00
oSumAtrIX
d5e694c306
fix: Search method map for existing class proxy
2022-04-06 23:09:58 +02:00
oSumAtrIX
dde0a22642
add: MutableMethodImplementation.addInstructions extension
2022-04-06 23:09:16 +02:00
oSumAtrIX
9a67aa3ff4
add: TODO for mutable encoded value clones
2022-04-06 23:08:31 +02:00
oSumAtrIX
e69708f21e
refactor: lazy initialize implementation field for mutable methods
2022-04-06 19:37:29 +02:00
oSumAtrIX
c49071aff7
fix: match to correct signature method parameters
2022-04-06 19:36:44 +02:00
oSumAtrIX
d15240d033
fix: Patcher not writing resolved methods
2022-04-06 19:36:02 +02:00
oSumAtrIX
6767c8fbc1
feat: Add first tests
2022-04-06 02:15:40 +02:00
oSumAtrIX
4543b36616
refactor: Improve SignatureResolver
2022-04-06 01:25:45 +02:00
oSumAtrIX
ec6d462ade
refactor: Use String instead of CharSequence for method parameter signature
2022-04-06 01:25:10 +02:00
oSumAtrIX
84bc7e0dc7
fix: return mutable set of classes
2022-04-06 01:23:53 +02:00
oSumAtrIX
6ad51aad9a
fix: write all classes
2022-04-05 04:45:43 +02:00
oSumAtrIX
b711b8001e
fix: fix classes having multiple instances of fields
2022-04-05 03:54:16 +02:00
oSumAtrIX
12c10d8c64
fix: fix classes having multiple method instances
2022-04-05 03:52:00 +02:00
Lucaskyy
05e44007d8
perf: lazy-ify all mutable clones
2022-04-03 23:52:36 +02:00
Lucaskyy
dbafe2ab37
feat: add inline smali compiler
2022-04-03 23:51:01 +02:00
Lucaskyy
78235d1abe
feat: add findClass method with className
2022-03-31 23:22:14 +02:00
Lucaskyy
aec5eeb597
feat: add or extension for AccessFlags
2022-03-31 22:46:46 +02:00
Lucaskyy
d98c9eeb30
style: reformat code
2022-03-31 22:46:12 +02:00
Lucaskyy
f8e978af88
perf: optimize indexOf call away
2022-03-31 22:45:22 +02:00
oSumAtrIX
86cb053566
docs: Document important parts of the code
2022-03-31 19:25:46 +02:00
oSumAtrIX
c1ccb70de4
refactor: Replacing original classes with mutated ones
2022-03-31 18:56:36 +02:00
oSumAtrIX
bb42fa3c6f
fix: Fixed writer & signature resolver, improved tests & speed, minor refactoring
2022-03-31 18:37:35 +02:00
oSumAtrIX
2d3c61113d
feat: Minor refactor and return proxy, if class has been proxied already
2022-03-30 19:15:00 +02:00
oSumAtrIX
6bc4e7eab7
fix: Move proxy package out of cache package
2022-03-30 15:12:47 +02:00
oSumAtrIX
be51f42710
feat: migrate to dexlib
...
BREAKING CHANGE: Removed usage of ASM library
2022-03-30 15:10:18 +02:00
Lucaskyy
47eb493f54
perf: check type instead of class
...
this is way better, thank you oSumAtrIX!
2022-03-24 23:37:28 +01:00
Lucaskyy
1af31b2aa3
fix(MethodResolver): fix cd57a8c9a0
2022-03-24 23:29:32 +01:00
Lucaskyy
cd57a8c9a0
fix(MethodResolver): strip labels nodes so opcode patterns match
...
this commit is also a fix for 8d1bb5f3d9 because it corrupted the stack by completely removing the nodes
2022-03-24 22:48:34 +01:00
Lucaskyy
ddef338631
refactor: log as trace instead of debug
...
so there's less spam in console
2022-03-24 21:38:13 +01:00
Lucaskyy
8d1bb5f3d9
fix(MethodResolver): strip labels and line numbers so opcode patterns match
2022-03-24 21:27:44 +01:00
Lucaskyy
c8a017a4c0
refactor: only compute maxs and use existing stack frames
2022-03-24 19:45:13 +01:00
Lucaskyy
e8f6973938
fix: give ClassWriter a ClassReader for symtable
...
removed SafeClassWriter as it was unused
2022-03-23 23:01:13 +01:00
Lucaskyy
ca6b94d943
feat: add SafeClassWriter
...
the standard ClassWriter implementation uses the ClassLoader to find a common superclass. this won't work for us since we are not loading the JAR into the classpath. using this SafeClassWriter should fix that issue.
2022-03-23 22:32:50 +01:00
Lucaskyy
ab6453ca8a
fix: set marklimit to Integer.MAX_VALUE
2022-03-23 22:08:51 +01:00
Lucaskyy
49beec9fc6
refactor: Optimize Signature class ( #11 )
...
BREAKING CHANGE: Array<Int> was changed to IntArray. This breaks existing patches.
2022-03-23 20:00:35 +01:00
Lucaskyy
3ab42a932c
refactor: Rename net.revanced to app.revanced
...
BREAKING CHANGE: Package name was changed from "net.revanced" to "app.revanced"
2022-03-23 19:56:37 +01:00