想在java代码中执行shell命令,可以执行ls命令,但是执行chmod 777 这样的命令时不能成功,控制台出现这样的信息:(这是信息的一部分)
java.io.IOException: Error running exec(). Command: [chmod 777] Working Directory: /data Environment: [ANDROID_SOCKET_zygote=10, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/storage/sdcard0, ANDROID_ASSETS=/system/app, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ASEC_MOUNTPOINT=/mnt/asec, LOOP_MOUNTPOINT=/mnt/obb, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/hwframework.jar:/system/framework/framework.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar:/system/framework/qcnvitems.jar:/system/framework/qcrilhook.jar, ANDROID_DATA=/data, LD_LIBRARY_PATH=/vendor/lib:/data/cust/lib:/system/lib:/data/datalib, ANDROID_ROOT=/system, ANDROID_PROPERTY_WORKSPACE=9,65536]
Caused by: java.io.IOException: Permission denied
求解,求助?