Change rootCommands to fit Android API level 24
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 5d19981..fbb6828 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
diff --git a/app/build.gradle b/app/build.gradle
index 8462e2d..ba0b5bd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -18,7 +18,7 @@
defaultConfig {
applicationId "masquerade.substratum"
- minSdkVersion 23
+ minSdkVersion 21
targetSdkVersion 23
versionCode 12
versionName "twelve"
diff --git a/app/src/main/java/masquerade/substratum/util/Root.java b/app/src/main/java/masquerade/substratum/util/Root.java
index ccda162..6e398e1 100644
--- a/app/src/main/java/masquerade/substratum/util/Root.java
+++ b/app/src/main/java/masquerade/substratum/util/Root.java
@@ -34,8 +34,8 @@
}
public static void mount(boolean writeable, String mountpoint) {
- runCommand(writeable ? "mount -o remount,rw " + mountpoint + " " + mountpoint :
- "mount -o remount,ro " + mountpoint + " " + mountpoint);
+ runCommand(writeable ? "mount -o rw,remount " + mountpoint + " " + mountpoint :
+ "mount -o ro,remount " + mountpoint + " " + mountpoint);
}
public static void closeSU() {