Exploit database

GH-15c5bc82a645186235e570cbaed15511

rxinnotrstar/cve-2019-2215-formipad4-new-gui

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-2215

37 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files10

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

app/src/main/java/rxi/root/the/mipad4/cve20192215/UiState.java

Java · 981 bytes
package rxi.root.the.mipad4.cve20192215;

/** 全局界面状态:设备状态、选中的管理器、是否已提权。由状态泵每 1 秒刷新一次。 */
public class UiState {

    public static final int ROOT_NONE = 0;     // 尚未提权,不染色
    public static final int ROOT_OK = 1;       // 已提权,绿
    public static final int ROOT_UNKNOWN = 2;  // 无法判定,黄
    public static final int ROOT_ERROR = 3;    // 判定失败,红

    public static final int MGR_NONE = 0;
    public static final int MGR_SU = 1;
    public static final int MGR_MAGISK = 2;

    public int rootState = ROOT_NONE;
    public int manager = MGR_NONE;
    public boolean granted = false;

    public String managerName() {
        if (manager == MGR_SU) return "SuperSU";
        if (manager == MGR_MAGISK) return "Magisk";
        return "";
    }

    public void reset() {
        rootState = ROOT_NONE;
        manager = MGR_NONE;
        granted = false;
    }
}