@@ -82,7 +82,8 @@ class DeviceInfo {
82
82
int uiMode ;
83
83
String appSetId ;
84
84
85
- DeviceInfo (Context context , String sdkPrefix ) {
85
+ DeviceInfo (AdjustConfig adjustConfig ) {
86
+ Context context = adjustConfig .context ;
86
87
Resources resources = context .getResources ();
87
88
DisplayMetrics displayMetrics = resources .getDisplayMetrics ();
88
89
Configuration configuration = resources .getConfiguration ();
@@ -104,15 +105,17 @@ class DeviceInfo {
104
105
screenDensity = getScreenDensity (displayMetrics );
105
106
displayWidth = getDisplayWidth (displayMetrics );
106
107
displayHeight = getDisplayHeight (displayMetrics );
107
- clientSdk = getClientSdk (sdkPrefix );
108
+ clientSdk = getClientSdk (adjustConfig . sdkPrefix );
108
109
fbAttributionId = getFacebookAttributionId (context );
109
110
hardwareName = getHardwareName ();
110
111
abi = getABI ();
111
112
buildName = getBuildName ();
112
113
appInstallTime = getAppInstallTime (context );
113
114
appUpdateTime = getAppUpdateTime (context );
114
115
uiMode = getDeviceUiMode (configuration );
115
- appSetId = Reflection .getAppSetId (context , AdjustFactory .getLogger ());
116
+ if (Util .canReadPlayIds (adjustConfig )) {
117
+ appSetId = Reflection .getAppSetId (context , AdjustFactory .getLogger ());
118
+ }
116
119
}
117
120
118
121
void reloadPlayIds (final AdjustConfig adjustConfig ) {
0 commit comments