From 509ecc81e19bac28057f812d1b30f5622487f941 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 10 Mar 2025 13:47:55 +0100 Subject: [PATCH] docs: Correct API usage of fingerprints --- docs/2_2_patch_anatomy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2_2_patch_anatomy.md b/docs/2_2_patch_anatomy.md index dd78c58..a24eb19 100644 --- a/docs/2_2_patch_anatomy.md +++ b/docs/2_2_patch_anatomy.md @@ -85,14 +85,14 @@ val disableAdsPatch = bytecodePatch( // Business logic of the patch to disable ads in the app. execute { // Fingerprint to find the method to patch. - val showAdsMatch by showAdsFingerprint { + val showAdsFingerprint = fingerprint { // More about fingerprints on the next page of the documentation. } // In the method that shows ads, // call DisableAdsPatch.shouldDisableAds() from the extension (precompiled DEX file) // to enable or disable ads. - showAdsMatch.method.addInstructions( + showAdsFingerprint.method.addInstructions( 0, """ invoke-static {}, LDisableAdsPatch;->shouldDisableAds()Z