Skip to content

Commit fa881ec

Browse files
committed
Updated remounter to properly remount on Lineage OS (And possibly others)
1 parent 1025787 commit fa881ec

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/main/java/com/stericson/RootTools/Constants.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class Constants
44
{
5-
public static final String TAG = "RootTools v4.6";
5+
public static final String TAG = "RootTools v5.0";
66
public static final int FPS = 1;
77
public static final int BBA = 3;
88
public static final int BBV = 4;

src/main/java/com/stericson/RootTools/internal/Remounter.java

+10-4
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,20 @@ public boolean remount(String file, String mountType)
120120
true,
121121
"busybox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
122122
"busybox mount -o remount," + mountType.toLowerCase() + " " + file,
123+
"busybox mount -o " + mountType.toLowerCase() + ",remount " + mountPoint.getDevice().getAbsolutePath(),
124+
"busybox mount -o " + mountType.toLowerCase() + ",remount " + file,
123125
"toolbox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
124126
"toolbox mount -o remount," + mountType.toLowerCase() + " " + file, "toybox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
127+
"toolbox mount -o " + mountType.toLowerCase() + ",remount " + mountPoint.getDevice().getAbsolutePath(),
128+
"toolbox mount -o " + mountType.toLowerCase() + ",remount " + file,
125129
"mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
126130
"mount -o remount," + mountType.toLowerCase() + " " + file,
127-
"/system/bin/toolbox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
128-
"/system/bin/toolbox mount -o remount," + mountType.toLowerCase() + " " + file,
129-
"/system/bin/toybox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
130-
"/system/bin/toybox mount -o remount," + mountType.toLowerCase() + " " + file);
131+
"mount -o " + mountType.toLowerCase() + ",remount " + mountPoint.getDevice().getAbsolutePath(),
132+
"mount -o " + mountType.toLowerCase() + ",remount " + file,
133+
"toybox mount -o remount," + mountType.toLowerCase() + " " + mountPoint.getDevice().getAbsolutePath() + " " + mountPoint.getMountPoint().getAbsolutePath(),
134+
"toybox mount -o remount," + mountType.toLowerCase() + " " + file,
135+
"toybox mount -o " + mountType.toLowerCase() + ",remount " + mountPoint.getDevice().getAbsolutePath(),
136+
"toybox mount -o " + mountType.toLowerCase() + ",remount " + file);
131137
Shell.startRootShell().add(command);
132138
commandWait(command);
133139

0 commit comments

Comments
 (0)