Android Open Source - ShellAndroid C Flag Release






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   w  ww.java2 s  .com
import android.content.Context;
import android.os.Build;

/**
 * To release cflag file
 * Created by holmes on 11/21/14.
 */
public class CFlagRelease {

    private CFlagRelease(){

    }

    /**
     * Get a releaser for cflag
     * @param context
     * @return
     */
    public static AbsReleaser getReleaser(Context context){
        final int sdk = Build.VERSION.SDK_INT;
        if (sdk >= 21){
            // Lollipop
            return new LollipopReleaser(context);
        }
        return new NormalReleaser(context);
    }
}




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