diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 3426875db7b1bdbe922db40e0658a8022609669c..dc5d04a4bcefec9387e03ddc06f33a33cb681765 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -91,10 +91,10 @@
-
+
syncCategories = new ArrayList<>();
syncCategories.addAll(Arrays.asList(MEDIA_SYNCABLE_CATEGORIES));
diff --git a/app/src/main/java/foundation/e/drive/utils/CommonUtils.java b/app/src/main/java/foundation/e/drive/utils/CommonUtils.java
index e3461d2d481166bf62c1ba05d252156dabc8d46e..34665df12618fd626a388d30cef4480324892544 100644
--- a/app/src/main/java/foundation/e/drive/utils/CommonUtils.java
+++ b/app/src/main/java/foundation/e/drive/utils/CommonUtils.java
@@ -12,6 +12,7 @@ package foundation.e.drive.utils;
import android.accounts.Account;
import android.accounts.AccountManager;
+import android.annotation.SuppressLint;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.Service;
@@ -37,6 +38,7 @@ import com.owncloud.android.lib.common.accounts.AccountUtils;
import com.owncloud.android.lib.resources.files.FileUtils;
import java.io.File;
+import java.lang.reflect.Method;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
import java.util.Locale;
@@ -480,4 +482,23 @@ public abstract class CommonUtils {
workManager.enqueueUniquePeriodicWork(AccountUserInfoWorker.UNIQUE_WORK_NAME, ExistingPeriodicWorkPolicy.REPLACE, periodicUserInfoScanRequest);
}
+
+ /**
+ * Function for get build props through reflection
+ *
+ * @param prop key that you want to get value for
+ * @return value of the prop, returns empty if not found
+ */
+ @SuppressLint("PrivateApi")
+ public static String getProp(String prop) {
+ String value = "";
+ try {
+ Class> c = Class.forName("android.os.SystemProperties");
+ Method get = c.getMethod("get", String.class);
+ value = (String) get.invoke(c, prop);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return value;
+ }
}