package de.stephanlindauer.criticalmaps.helper.clientinfo;


public class DeviceInformation {
    public static String getString() {
        String returnString = "";
        returnString += "\n\n---------------------------------------------------------------\n";
        returnString += "OS_VERSION= " + System.getProperty("os.version") + "\n";
        returnString += "RELEASE= " + android.os.Build.VERSION.RELEASE + "\n";
        returnString += "DEVICE= " + android.os.Build.DEVICE + "\n";
        returnString += "MODEL= " + android.os.Build.MODEL + "\n";
        returnString += "PRODUCT= " + android.os.Build.PRODUCT + "\n";
        returnString += "BRAND= " + android.os.Build.BRAND + "\n";
        returnString += "DISPLAY= " + android.os.Build.DISPLAY + "\n";
        returnString += "CPU_ABI= " + android.os.Build.CPU_ABI + "\n";
        returnString += "CPU_ABI2= " + android.os.Build.CPU_ABI2 + "\n";
        returnString += "UNKNOWN= " + android.os.Build.UNKNOWN + "\n";
        returnString += "HARDWARE= " + android.os.Build.HARDWARE + "\n";
        returnString += "ID= " + android.os.Build.ID + "\n";
        returnString += "MANUFACTURER= " + android.os.Build.MANUFACTURER + "\n";
        returnString += "SERIAL= " + android.os.Build.SERIAL + "\n";
        returnString += "USER= " + android.os.Build.USER + "\n";
        returnString += "HOST= " + android.os.Build.HOST + "\n";

        return returnString;
    }
}

@@ -53,16 +53,72 @@
 tinfo;%0A%0A
+import android.os.Build;%0Aimport android.text.TextUtils;%0A
 %0Apublic 
@@ -429,35 +429,24 @@
 ELEASE= %22 + 
-android.os.
 Build.VERSIO
@@ -496,35 +496,24 @@
 DEVICE= %22 + 
-android.os.
 Build.DEVICE
@@ -553,35 +553,24 @@
 %22MODEL= %22 + 
-android.os.
 Build.MODEL 
@@ -611,35 +611,24 @@
 RODUCT= %22 + 
-android.os.
 Build.PRODUC
@@ -669,35 +669,24 @@
 %22BRAND= %22 + 
-android.os.
 Build.BRAND 
@@ -727,35 +727,24 @@
 ISPLAY= %22 + 
-android.os.
 Build.DISPLA
@@ -745,32 +745,143 @@
 DISPLAY + %22%5Cn%22;%0A
+        if (Build.VERSION.SDK_INT %3C Build.VERSION_CODES.LOLLIPOP) %7B%0A            //noinspection deprecation%0A    
         returnSt
@@ -898,35 +898,24 @@
 PU_ABI= %22 + 
-android.os.
 Build.CPU_AB
@@ -936,64 +936,213 @@
     
-returnString += %22CPU_ABI2= %22 + android.os.Build.CPU
+    //noinspection deprecation%0A            returnString += %22CPU_ABI2= %22 + Build.CPU_ABI2 + %22%5Cn%22;%0A        %7D else %7B%0A            returnString += %22SUPPORTED_ABIS= %22 + TextUtils.join(%22, %22, Build.SUPPORTED
 _ABI
-2
+S)
  + %22
@@ -1138,32 +1138,42 @@
 D_ABIS) + %22%5Cn%22;%0A
+        %7D%0A
         returnSt
@@ -1190,35 +1190,24 @@
 NKNOWN= %22 + 
-android.os.
 Build.UNKNOW
@@ -1251,35 +1251,24 @@
 RDWARE= %22 + 
-android.os.
 Build.HARDWA
@@ -1307,35 +1307,24 @@
 += %22ID= %22 + 
-android.os.
 Build.ID + %22
@@ -1367,35 +1367,24 @@
 CTURER= %22 + 
-android.os.
 Build.MANUFA
@@ -1431,35 +1431,24 @@
 SERIAL= %22 + 
-android.os.
 Build.SERIAL
@@ -1487,35 +1487,24 @@
  %22USER= %22 + 
-android.os.
 Build.USER +
@@ -1545,27 +1545,16 @@
 ST= %22 + 
-android.os.
 Build.HO

handle deprecated Build constants