BTW,rootexplorer就是用了/system/xbin/su -c sh 来开启root shell来执行各种命令,比如显示文件列表,最终就是通过sh ls /data/xxx来实现的,只是解析命令的输出结果输出到UI层的listview中;建议你反编译rootexplorer的代码,就清楚了
即使是rooted的设备,app是没有权限写/data的,因为/data是system.system,普通app一般是app_xxx用户组,除非你能shareuserid到system,
不过可以通过su来辅助实现,默认rooted过的机器,大部分都装有SuperUser.apk,及/system/xbin/su,直接通过Runtime相关类执行/system/xbin/su -c your cmd这些命令,来完成你需要的操作