refactor: migrate to changes from ReVanced Patcher

This commit is contained in:
badawoll
2023-05-13 01:18:48 +00:00
committed by oSumAtrIX
parent eafe5b54a8
commit 24c57b80dd
103 changed files with 124 additions and 110 deletions

View File

@ -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"