我通过android程序执行一些shell命令,比如: chmod 777 mFilePath, su, ls等命令时,会报异常.
java.io.IOException: Error running exec(). Command: [chmod, 777, /data/data/com.zltd.uniossupgrde/cache] Working Directory: null Environment: null.
若debug运行到Runtime.getRuntime().exec(cmd),停顿一会的话,会报这个异常如下,
java.lang.OutOfMemoryError: thread creation failed。
请知道的给个解决方案,多谢。。。
最后
以上就是听话小兔子最近收集整理的关于android程序中执行shell命令报异常的全部内容,更多相关android程序中执行shell命令报异常内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复