한 수퍼 유저 명령 안드로이드보다이 :더 내가 실행 트링있어
슬프게도 String[] hin1 = { "su", "-c",
"mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system" };
try {
Runtime.getRuntime().exec(hin1);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String[] hin2 = { "su", "-c", "m /system/etc/hosts" };
try {
Runtime.getRuntime().exec(hin2);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String[] hin = { "su", "-c",
"cp /sdcard/hosts /system/etc/" };
try {
Runtime.getRuntime().exec(hin);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
나는 모든 행동에 대한 새로운 버튼을 때만 작동하고 .. :(
는 방법이 있나요 한 번에 할 수있는 쉘보다 일반적인 린에이 하듯이 접근하는 것을 시작 않다면, su 명령, 즉 (구현 방식에 따라감사
다음과 같은 질문에서 살펴 본다보십시오 http://stackoverflow.com/questions/4905743/android-how-to-gain-root-in-an-anroid-application – Muzikant