@@ -14,14 +14,11 @@ import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMu
14
14
import app.revanced.patches.shared.extension.Constants.SPOOF_PATH
15
15
import app.revanced.patches.shared.formatStreamModelConstructorFingerprint
16
16
import app.revanced.util.findInstructionIndicesReversedOrThrow
17
- import app.revanced.util.findMethodOrThrow
18
17
import app.revanced.util.fingerprint.definingClassOrThrow
19
18
import app.revanced.util.fingerprint.injectLiteralInstructionBooleanCall
20
19
import app.revanced.util.fingerprint.matchOrThrow
21
20
import app.revanced.util.fingerprint.methodOrThrow
22
- import app.revanced.util.fingerprint.mutableClassOrThrow
23
21
import app.revanced.util.getReference
24
- import app.revanced.util.getWalkerMethod
25
22
import app.revanced.util.indexOfFirstInstructionOrThrow
26
23
import com.android.tools.smali.dexlib2.AccessFlags
27
24
import com.android.tools.smali.dexlib2.Opcode
@@ -370,35 +367,4 @@ fun baseSpoofStreamingDataPatch(
370
367
executeBlock()
371
368
372
369
}
373
-
374
- finalize {
375
- gmsServiceBrokerFingerprint.methodOrThrow()
376
- .addInstructionsWithLabels(
377
- 0 , """
378
- invoke-static {}, $EXTENSION_CLASS_DESCRIPTOR ->isSpoofingEnabled()Z
379
- move-result v0
380
- if-eqz v0, :ignore
381
- return-void
382
- :ignore
383
- nop
384
- """
385
- )
386
-
387
- gmsServiceBrokerExceptionFingerprint.matchOrThrow().let {
388
- val walkerIndex = it.patternMatch!! .startIndex
389
- val walkerMethod = it.getWalkerMethod(walkerIndex)
390
-
391
- walkerMethod.apply {
392
- val insertIndex = indexOfFirstInstructionOrThrow(Opcode .CHECK_CAST )
393
- val insertRegister = getInstruction<OneRegisterInstruction >(insertIndex).registerA
394
-
395
- addInstructions(
396
- insertIndex + 1 , """
397
- invoke-static {v$insertRegister }, $EXTENSION_CLASS_DESCRIPTOR ->isSpoofingEnabled(Ljava/lang/Object;)Ljava/lang/Object;
398
- move-result-object v$insertRegister
399
- """
400
- )
401
- }
402
- }
403
- }
404
370
}
0 commit comments