com.stericson.RootTools.internal
Class Remounter

java.lang.Object
  extended by com.stericson.RootTools.internal.Remounter

public class Remounter
extends java.lang.Object


Constructor Summary
Remounter()
           
 
Method Summary
 boolean remount(java.lang.String file, java.lang.String mountType)
          This will take a path, which can contain the file name as well, and attempt to remount the underlying partition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Remounter

public Remounter()
Method Detail

remount

public boolean remount(java.lang.String file,
                       java.lang.String mountType)
This will take a path, which can contain the file name as well, and attempt to remount the underlying partition.

For example, passing in the following string: "/system/bin/some/directory/that/really/would/never/exist" will result in /system ultimately being remounted. However, keep in mind that the longer the path you supply, the more work this has to do, and the slower it will run.

Parameters:
file - file path
mountType - mount type: pass in RO (Read only) or RW (Read Write)
Returns:
a boolean which indicates whether or not the partition has been remounted as specified.