packages/apps/Superuser
修訂 | 92fe0bc1693f643a2b6d9ccd58b61d01faba9af2 (tree) |
---|---|
時間 | 2010-08-17 09:36:27 |
作者 | ChainsDD <chainsdd@gmai...> |
Commiter | ChainsDD |
Oops! That's not quite ready yet...
@@ -182,36 +182,4 @@ public class Su extends TabActivity { | ||
182 | 182 | } |
183 | 183 | |
184 | 184 | } |
185 | - | |
186 | -// private boolean remount(boolean writeable) { | |
187 | -// String device = null; | |
188 | -// String type = null; | |
189 | -// try { | |
190 | -// Process process = Runtime.getRuntime().exec("mount"); | |
191 | -// BufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream())); | |
192 | -// String line; | |
193 | -// while ((line = stdInput.readLine()) != null) { | |
194 | -// String[] array = line.split(" "); | |
195 | -// device = array[0]; | |
196 | -// if (array[1].equals("on") && array[2].equals("/system")) { | |
197 | -// type = array[4]; | |
198 | -// break; | |
199 | -// } else if (array[1].equals("/system")) { | |
200 | -// type = array[2]; | |
201 | -// break; | |
202 | -// } | |
203 | -// } | |
204 | -// if (type != null) { | |
205 | -// String mode = writeable?"rw ":"ro "; | |
206 | -// String mountStr = "su -c mount -o remount," + mode + device + " /system"; | |
207 | -// Log.d(TAG, mountStr); | |
208 | -// process = Runtime.getRuntime().exec(mountStr); | |
209 | -// } | |
210 | -// } catch (IOException e) { | |
211 | -// // TODO Auto-generated catch block | |
212 | -// e.printStackTrace(); | |
213 | -// return false; | |
214 | -// } | |
215 | -// return true; | |
216 | -// } | |
217 | 185 | } |