-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·140 lines (133 loc) · 4.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!doctype html>
<html>
<head>
<script type="text/javascript" src="qrc:///js/jquery.js"></script>
<script type="text/javascript" src="qrc:///js/ign.js"></script>
<script type="text/javascript">
var sys = ign.sys();
var fs = ign.filesystem();
var home = fs.homePath();
var res = "(*^*&$^&$)";
var adbServ = false;
var os = sys.exec('uname');
function exec(comm){
var exec = sys.exec(comm);
exec.out.connect(function(out){
if(out != res){
console.log(res);
res = out;
$('#out').append(res+"<br>");
}
});
}
function adb(){
$('#out').empty();
exec("bin/connadb");
$('#fastdev').attr('disabled');
$('#fast_reboot').attr('disabled')
}
function adbkill(){
$('#out').empty();
exec("bin/killadb");
$('#fastdev').attr('disabled');
$('#fast_reboot').attr('disabled')
}
function fastdev(){
$('#out').empty();
exec("bin/fastdev");
}
function fast_reboot(){
$('#out').empty();
exec("bin/fast_reboot");
}
function fastboot(){
$('#out').empty();
$('.step').hide();
$('#step1').show();
$('.stepnav').removeClass('active');
$('#stepnav2').addClass('active');
exec("bin/fastboot");
}
function fastdev(){
$('#out').empty();
exec("bin/fastdev");
}
</script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-nav-12">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" style="padding-top:5px"><img src="icons/icon.png"> Somay</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Persiapan</a></li>
<li><a href="flash.html">Nge-Flash</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Seting <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onclick="reset()">Reset Semua Data</a></li>
<li><a href="#" onclick="ign.getToggleFullScreen()">Layar Penuh</a></li>
<li><a href="#" onclick="ign.quit()">Keluar</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-info disabled">
<h3 class="panel-title">Tahapan Awal</h3>
</a>
<a href="#" id="stepnav1" class="list-group-item stepnav active">Koneksi Perangkat</a>
<a href="#" id="stepnav2" class="list-group-item stepnav">Fastboot</a>
</div>
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Persiapan Perangkat</h3>
</div>
<div class="panel-body">
<div id="s1" style="">
Prasyarat:
<ol type="1">
<li>Buka "Settings | About Phone | MIUI version."</li>
<li>Klik "MIUI version" sampai mode developer mode muncul.</li>
<li>Buka "Setting | Additional setting | Developer Options" </li>
<li>Buka "Developer options | USB debugging | OK"</li>
<li>Aktifkan "Fastboot mode | Next 4x | Accept"</li>
</ol>
<input type="submit" id="adb" onclick="adb()" value="Terhubung Ke Device" class="btn btn-primary">
<input type="submit" id="adb-kill" onclick="adbkill()" value="Memuat Ulang ADB Server" class="btn btn-primary">
<input type="submit" id="fastdev" onclick="fastdev()" value="Fastboot Devices" class="btn btn-primary">
<input type="submit" id="fast_reboot" onclick="fast_reboot()" value="Fastboot Reboot" class="btn btn-primary"><hr>
</div>
<div id="out" style="height:100%"></div>
</div>
<div class="panel-footer">
<input type="submit" id="step1" onclick="fastboot()" value="Next" class="btn btn-primary step" style="">
</div>
</div>
</div>
</div>
</body>
</html>