Back to project page ShellAndroid.
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.
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; } }