Error running exec(). Command: [chmod 777] Working Directory: /data Environment:
来源:互联网 发布:mac的复制快捷键 编辑:程序博客网 时间:2024/05/23 16:12
想在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
求解,求助?
- Error running exec(). Command: [chmod 777] Working Directory: /data Environment:
- java.io.IOException Error running exec().Command: [su] Working Directory: null Environment: null
- java.io.IOException Error running exec(). Command: [su] Working Directory: null Environment: null
- java.io.IOException: Error running exec(). Command: [/system/xbin/su] Working Directory: null Enviro
- 使用Runtime.getRuntime().exec()方法时要注意Working Directory
- error in cryptography setup command: Invalid environment marker: python_version < '3'
- Error running command bat scripts that include parentheses
- VC working directory
- VS2010的Working Directory
- Print Current Working Directory
- eclipse 设置working directory
- Xcode的working directory
- VC2010 Working Directory
- Working on Command Line
- Linux Command: chmod, cat
- LINUX Command: chmod
- LINUX Command: chown & chmod
- Linux command:chmod
- Android高效加载大图、多图解决方案,有效避免程序OOM
- mpi遇到的问题,及解决步骤
- 社会化海量数据采集爬虫框架搭建
- Silverlight Toolkit for Wp中的DatePicker TimePicher英文修改
- JAVA加减日期(代码)
- Error running exec(). Command: [chmod 777] Working Directory: /data Environment:
- B/S和C/S的区别
- NYOJ 187 快速查找素数
- 二值图像
- .Net MVC4 使用心得(一)使用uploadify和wcf存储服务时的文件上传问题
- 浅谈java多线程之创建线程方式
- HDU 4504
- 谷歌步快播“后尘”推Chromecast,巧合 OR 抄袭?
- 黑马程序员------类和对象