Android Open Source - ShellAndroid Shell Chmod






From Project

Back to project page ShellAndroid.

License

The source code is released under:

Apache License

If you think the Android project ShellAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package z.hol.shellandroid;
/*from ww  w . j  av a 2  s. co  m*/
/**
 * Chmod impelemnted by shell.<br>
 * sh --> chmod mode file
 * @author holmes
 *
 */
public final class ShellChmod implements Chmod{
  
  private Shell mShell;
  
  public ShellChmod(Shell shell) {
    // This is Auto-generated constructor stub
    mShell = shell;
  }

  @Override
  public boolean setChmod(String file, String mode) {
    // This is Auto-generated method stub
    if (mShell != null){
      mShell.exec(false, "chmod " + mode + " " + file);
      return true;
    }
    return false;
  }

}




Java Source Code List

z.hol.shellandroid.AbsReleaser.java
z.hol.shellandroid.CFlagRelease.java
z.hol.shellandroid.Chmod.java
z.hol.shellandroid.Cpu.java
z.hol.shellandroid.DefaultChmod.java
z.hol.shellandroid.LollipopReleaser.java
z.hol.shellandroid.NormalReleaser.java
z.hol.shellandroid.ShellAndroid.java
z.hol.shellandroid.ShellChmod.java
z.hol.shellandroid.Shell.java
z.hol.shellandroid.example.MainActivity.java
z.hol.shellandroid.exception.ShellExecuteException.java
z.hol.shellandroid.utils.AssetUtils.java
z.hol.shellandroid.utils.ShellUtils.java