I was using the following code without any problem for my app.
inputstream = Runtime.getRuntime().exec("/system/bootmenu/recovery/sbin/tune2fs -l /data.img").getInputStream();
However recently the tune2fs executable was replaced by tune2fs library. I cant no longer get this code to work.
I tried :
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();
But without sucess, how do I solve this problem?
I suggest using
ProcessBuilderinstead ofRuntime: