【发布时间】:2013-04-23 18:36:00
【问题描述】:
我已经植根我的设备,然后在我的应用程序中
Process p = Runtime.getRuntime().exec("su");
它工作正常,我的应用程序将是根模式。然后我尝试添加wlan地址空间,但它不起作用,当我在终端中签出时,显示以下错误消息
busybox ifconfig there is not a new wlan address space.
我尝试以下方式:
Process p = Runtime.getRuntime().exec("su");
p = Runtime.getRuntime().exec("busybox ifconfig wlan0 add xxxxxxxxxxxx");
p.waitfor();
当我运行我的应用程序时,toast 显示应用程序是 root 模式但没有添加 wlan0。
【问题讨论】:
-
当然,如果我写在终端su,busybox ifconfig wlan0 add xxxxxxxx,就可以了,还有一个新的wlan0地址空间。
标签: android