我使用以下代码对我的应用程序没有任何问题。
inputstream = Runtime.getRuntime().exec("/system/bootmenu/recovery/sbin/tune2fs -l /data.img").getInputStream();
然而最近 tune2fs 可执行文件被 tune2fs 库取代。我不能再让这个代码工作了。
我试过 :
inputstream = Runtime.getRuntime().exec("/system/bootmenu/recovery/sbin/tune2fs -l data.img",new String[]{"LD_LIBRARY_PATH=/system/bootmenu/recovery/sbin:$LD_LIBRARY_PATH"}).getInputStream();
但是没有成功,我该如何解决这个问题?