refactor: migrate to changes from ReVanced Patcher

This commit is contained in:
badawoll
2023-05-14 02:02:43 +02:00
committed by oSumAtrIX
parent 8399eaa288
commit 386d687ca1
103 changed files with 124 additions and 110 deletions
@@ -18,7 +18,7 @@ object DisableCaptureRestrictionAudioDriverFingerprint : MethodFingerprint(
Opcode.MOVE_RESULT_OBJECT,
Opcode.RETURN_OBJECT
),
customFingerprint = { methodDef ->
customFingerprint = { methodDef, _ ->
// Check for method call to AudioAttributes$Builder.setAllowedCapturePolicy Android API
methodDef.implementation?.instructions?.any {
((it as? ReferenceInstruction)?.reference as? MethodReference)?.name == "setAllowedCapturePolicy"