You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> __NOTE__ Android 12 introduced the BLUETOOTH_CONNECT permission, protected at the dangerous level. Refer to the [official Android documentation](https://developer.android.com/about/versions/12/features/bluetooth-permissions) on how to include it.
35
+
33
36
> __NOTE__ Regarding Android 11 background location changes: The Device Risk SDK neither requires nor requests location when the application is in a background state.
34
37
35
38
> __NOTE__ If the permissions listed are not required by the application, the values collected using those permissions will be ignored. The permissions are not required to obtain a usable blackbox, but they do help obtain some unique device information.
36
39
37
40
> __NOTE__ Android 10 introduced the ACCESS_BACKGROUND_LOCATION permission, protected at the dangerous level as is the case for ACCESS_FINE_LOCATION. Refer to the official Android documentation for when to incorporate this permission.
38
41
39
-
Version 4.3.0 of the TruValidate Device Risk SDK for Android supports Android 5.0 or higher.
42
+
Version 4.3.1 of the TruValidate Device Risk SDK for Android supports Android 5.0 or higher.
40
43
41
44
## Installing the Device Risk SDK for Android
42
45
43
-
1. Download iovation-android-sdk-4.3.0.zip from here: [iovation Mobile SDK for Android](https://github.com/iovation/deviceprint-SDK-Android).
46
+
1. Download iovation-android-sdk-4.3.1.zip from here: [iovation Mobile SDK for Android](https://github.com/iovation/deviceprint-SDK-Android).
44
47
45
-
2. Unzip iovation-android-sdk-4.3.0.zip.
48
+
2. Unzip iovation-android-sdk-4.3.1.zip.
46
49
47
50
3. Depending on your IDE, do one of the following:
48
51
49
-
- In __Eclipse and Maven__, deploy the AAR file to your local Maven repository, using maven-deploy. For more information, see [Guide to installing 3rd party JARs](http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html).
52
+
- In __Maven__, deploy the AAR file to your local Maven repository, using maven-deploy. For more information, see [Guide to installing 3rd party JARs](http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html).
50
53
51
-
- If you are using __Android Studio with Gradle__, add the *fraudforce-lib-release-4.3.0.aar* file to your application module's libs directory. Then, edit the *build.gradle* file in order to add the libs directory as a flat-file repository to the `buildscript` and `repository` sections. This makes the fraudforce-lib-release-4.3.0.aar file accessible to Gradle.
54
+
- If you are using __Gradle__, add the *fraudforce-lib-release-4.3.1.aar* file to your application module's libs directory. Then, edit the *build.gradle* file in order to add the libs directory as a flat-file repository to the `buildscript` and `repository` sections. This makes the fraudforce-lib-release-4.3.1.aar file accessible to Gradle.
52
55
53
56
```
54
57
buildscript {
@@ -65,12 +68,21 @@ Version 4.3.0 of the TruValidate Device Risk SDK for Android supports Android 5.
65
68
}
66
69
}
67
70
```
68
-
Also in the application module's `build.gradle` file, make sure that fraudforce-lib-release-4.3.0 is a compile-time dependency:
71
+
Also in the application module's `build.gradle` file, make sure that fraudforce-lib-release-4.3.1 is included as a dependency:
Alternatively, you can include the dependency without exposing your libs folder as a repository by declaring it in the module's `build.gradle` file as follows:
4. Call the `refresh()` method in the same Activity or Fragment where `getBlackbox()` will be called. The integrating application only needs to call this method on the Fragments where the `getBlackbox()` method will be called.
130
+
4. Call the `refresh()` method in the same Activity/Fragment/ViewModel where `getBlackbox()` will be called. The integrating application only needs to call this method on the Fragments where the `getBlackbox()` method will be called.
119
131
120
132
> __NOTE__: This method calls updates the geolocation and network information, if enabled.
121
133
@@ -125,27 +137,8 @@ To integrate into native apps:
125
137
FraudForceManager.getInstance().refresh(context);
126
138
```
127
139
128
-
4. Do one of the following to generate the blackbox:
129
-
* To build a blackbox **asynchronously**, create an AsyncTask object to generate the blackbox off the main thread.
130
-
```
131
-
private class FraudForceThread extends AsyncTask<Void, Void, String> {
4. To generate the blackbox, call the getBlackbox(Context context) function on an instance of FraudForceManager. This method is a **blocking** call so it is **recommended** to call it on a background thread/coroutine.
136
141
137
-
@Override
138
-
protected void onPostExecute(String blackbox) {
139
-
// Integrator's code to store the blackbox
140
-
}
141
-
}
142
-
```
143
-
* Then execute the FraudForceThread object to get the blackbox.
144
-
```
145
-
new FraudForceThread().execute();
146
-
```
147
-
148
-
* To build a blackbox **synchronously**, call the `getBlackbox(Context context)` function on a FraudForceManager object.
Copy file name to clipboardExpand all lines: android-studio-sample-app/app/src/androidTest/java/com/iovation/mobile/android/sample/androidstudiosampleapp/ApplicationTest.java
Copy file name to clipboardExpand all lines: android-studio-sample-app/app/src/main/java/com/iovation/mobile/android/sample/sampleapp/MainApplication.java
0 commit comments