diff --git a/app/src/main/java/com/lovejoy777/rroandlayersmanager/DeviceSingleton.java b/app/src/main/java/com/lovejoy777/rroandlayersmanager/DeviceSingleton.java index ab7cb44..4672ac2 100644 --- a/app/src/main/java/com/lovejoy777/rroandlayersmanager/DeviceSingleton.java +++ b/app/src/main/java/com/lovejoy777/rroandlayersmanager/DeviceSingleton.java @@ -26,14 +26,17 @@ public static Singleton getInstance() { boolean vendorDevice = false; if (mountDataArray != null) { - for (String mountDataLine : mountDataArray) { + if(mountData.contains ("/vendor")){ + vendorDevice = true; + } + /*for (String mountDataLine : mountDataArray) { String[] anotherStringArray = StringUtils.split(mountDataLine); if (anotherStringArray != null && anotherStringArray.length >= 2 && anotherStringArray[1].equals("/vendor")) { vendorDevice = true; break; } - } + }*/ } if (vendorDevice) { diff --git a/app/src/main/java/com/lovejoy777/rroandlayersmanager/utils/Utils.java b/app/src/main/java/com/lovejoy777/rroandlayersmanager/utils/Utils.java index 019482e..691d46f 100644 --- a/app/src/main/java/com/lovejoy777/rroandlayersmanager/utils/Utils.java +++ b/app/src/main/java/com/lovejoy777/rroandlayersmanager/utils/Utils.java @@ -140,8 +140,8 @@ public static boolean remount(String mountType) { public static boolean remount(String mountType, String location) { if (!isRootAvailable()) return false; - CommandOutput out = runCommand("mount -o remount," - + mountType + " " + location + "\n", true); + CommandOutput out = runCommand("mount -o " + + mountType + ",remount " + location + "\n", true); return out != null && out.exitCode == 0; } @@ -401,4 +401,4 @@ public static String getStringFromFile(String path) { if (out != null) Log.d("TEST", out.output); return out != null ? out.output : null; } -} \ No newline at end of file +}