mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-19 20:17:05 +02:00
add common usecase example
This commit is contained in:
parent
635d23c9b7
commit
f62e952514
@ -267,6 +267,15 @@ you can match the fingerprint on the list of classes:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Another common usecase is to use a fingerprint to reduce the search space of a method to a single class.
|
||||||
|
|
||||||
|
```kt
|
||||||
|
execute {
|
||||||
|
// Match showAdsFingerprint in the class of the ads loader found by adsLoaderClassFingerprint.
|
||||||
|
val match by showAdsFingerprint.match(adsLoaderClassFingerprint.match!!.classDef)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
- Match a **single method**, to extract certain information about it
|
- Match a **single method**, to extract certain information about it
|
||||||
|
|
||||||
The match of a fingerprint contains useful information about the method,
|
The match of a fingerprint contains useful information about the method,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user