Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Verkhovsky committed Nov 20, 2020
1 parent 0e0931c commit 2a16600
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ The library by default uses 1,2 and 3, and this gives the optimal stablility/uni

But there is an ability to customize the ratio. You can choose the set of signal providers with bit mask.

Here is the example, how to use all available signal providers for fingerprint calculation. This will improve the uniqueness of the fingerprint, but also it will reduce the stability and it will change more frequently.
Here is the example, how to use all available signal providers for fingerprint calculation. This will improve the uniqueness of the fingerprint, but also it will reduce the stability i.e. the `fingerprint` will change more frequently.

```kotlin

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<string name="custom_fingerprint_heading">Custom fingerprint:</string>
<string name="about_ok_button_text">Got it</string>
<string name="about_text">
This is an application, which shows you all the features of Fingerprint-Android library. \nThere is a few fingerprinters, and public method, that allows you to calculate custom fingerprint from existing.
By changing the list of fingerprinters you can make a fingerprint that works for your requirements of stability and entropy. Enjoy!
The application shows you all the features of Fingerprint-Android library. \nThere is a few signal providers, and public method, that allows you to calculate custom fingerprint from existing.
By changing the list of fingerprinters you can make a fingerprint that works for your requirements of stability and uniquiness. Enjoy!
\n\n\n
FingerprintJS Inc. 2020
</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.fingerprintjs.android.fingerprint.signal_providers.device_state.Devic
import com.fingerprintjs.android.fingerprint.signal_providers.hardware.HardwareSignalProvider
import com.fingerprintjs.android.fingerprint.signal_providers.installed_apps.InstalledAppsSignalProvider
import com.fingerprintjs.android.fingerprint.signal_providers.os_build.OsBuildSignalProvider
import java.lang.StringBuilder
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors

Expand Down Expand Up @@ -69,7 +68,6 @@ internal class FingerprinterImpl(
fingerprintSb.append(installedAppsSignalProvider.fingerprint())
}


val result = object : FingerprintResult {
override val fingerprint = configuration.hasher.hash(fingerprintSb.toString())

Expand Down

0 comments on commit 2a16600

Please sign in to comment.