diff --git a/inventory/src/main/java/org/flyve/inventory/Utils.java b/inventory/src/main/java/org/flyve/inventory/Utils.java index 8993cb8ff..4ae7595e2 100644 --- a/inventory/src/main/java/org/flyve/inventory/Utils.java +++ b/inventory/src/main/java/org/flyve/inventory/Utils.java @@ -190,7 +190,7 @@ protected static String createJSON(Context context, ArrayList catego jsonQuery.put("deviceId", getDeviceId()); TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (telephonyManager != null && - (context.checkPermission(android.Manifest.permission.READ_PHONE_STATE, android.os.Process.myPid(), android.os.Process.myUid())) == PackageManager.PERMISSION_GRANTED) { + (context.checkPermission(android.Manifest.permission.READ_PHONE_STATE, android.os.Process.myPid(), android.os.Process.myUid()) == PackageManager.PERMISSION_GRANTED)) { jsonQuery.put("IMEI", telephonyManager.getDeviceId()); } jsonQuery.put("content", content);