Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lisineng/article/details/44156809
01-10 08:26:15.694: W/CropActivity(11674): lsn cannot write  e= java.lang.SecurityException: External path: /storage/sdcard1/_19700110_082615.JPG: Neither user 10029 nor current process has android.permission.WRITE_MEDIA_STORAGE.
01-10 08:26:15.702: W/CropActivity(11674): cannot write file: content://media/external/images/media/5956

看到这样的log估计大部分人员都会不假思索的跑去AndroidManifest.xml文件中加上下面这句。

<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />

跑进去结果发现没有用,网上很多种方法都试了也没有用。

后面是重复的实验了之后,发现,其实是改了没有起效啊,遇到这种情况先看看Android.mk文件中有没有签名:

LOCAL_CERTIFICATE := platform


没有请加上。

然后利用签名文件signapk.jar将应用push进相应文件中。成功生效。

另外一种方式就是在AndroidManifest.xml文件中添加如下一句,

android:sharedUserId="android.uid.system"

添加系统级应用权限后要添加一下这句,将应用定为系统级的应用。


看你有什么样的环境两种方式自行选择,问题解决。

展开阅读全文

current process (0x5c005c) infected with 11

09-15

版本sybase12.5.3:6月29日生产库有张表通过app无法读取,但是通过sybase后台能查询到数据,整个交易都断断续续,后来重启数据库问题解决,麻烦帮忙分析一下啥原因:rn Error: 1544, Severity: 20, State: 2rn04:00313:00313:2017/06/29 09:26:23.90 server Parallel Sort: Cannot initiate producers and consumers.rn04:00313:00313:2017/06/29 09:27:03.54 server Error: 1544, Severity: 20, State: 2rn04:00313:00313:2017/06/29 09:27:03.54 server Parallel Sort: Cannot initiate producers and consumers.rn[color=#FF0000]02:00000:00019:2017/06/29 09:32:14.44 kernel current process (0x5c005c) infected with 11[/color]rn02:00000:00019:2017/06/29 09:32:14.44 kernel Address 0x0x000000000047a351 (init_translate+0x11), siginfo (code, address) = (1, 0x0x000000000000007d)rn02:00000:00019:2017/06/29 09:32:14.44 kernel ************************************rn02:00000:00019:2017/06/29 09:32:14.44 kernel curdb = 0 tempdb = 0 pstat = 0x10000rn02:00000:00019:2017/06/29 09:32:14.44 kernel lasterror = 0 preverror = 0 transtate = 1rn02:00000:00019:2017/06/29 09:32:14.44 kernel curcmd = 0 program = qhbu708 rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000aee389 pcstkwalk+0x289()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000aedfbf ucstkgentrace+0x17f()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000aa8bdf ucbacktrace+0x8f()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x00000000004405cf terminate_process+0xc2f()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000ac2535 kisignal+0x195()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x000000000047a351 init_translate+0x11()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000862001 cem_ces_conn+0x41()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pcstkwalk: exception stack underflow occurred.rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x000000000082347d child_driver+0x27d()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x00000000004cf8f4 ex_cleanup()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000b01008 kw_member+0x1d8()rn02:00000:00019:2017/06/29 09:32:14.44 kernel pc: 0x0x0000000000adb248 kpstartproc+0x48()rn02:00000:00019:2017/06/29 09:32:14.44 kernel end of stack trace, spid 19, kpid 6029404, suid 3rn02:00000:00019:2017/06/29 09:32:14.44 kernel current process (0x5c005c) infected with 11rn02:00000:00019:2017/06/29 09:32:14.44 kernel Address 0x0x0000000000491af6 (ex_subhandle+0x56), siginfo (code, address) = (1, 0x0x0000000000000100)rn04:00313:00313:2017/06/29 09:32:23.94 server Error: 1544, Severity: 20, State: 2rn04:00313:00313:2017/06/29 09:32:23.94 server Parallel Sort: Cannot initiate producers and consumers.rnrn9月14日又遇到同样的问题:(app无法读取数据,sybase后台能查询到数据,重启恢复)rn12:00000:00186:2017/09/14 15:42:24.86 server Error: 709, Severity: 17, State: 1rn12:00000:00186:2017/09/14 15:42:24.86 server There is insufficient system memory to continue login process for spid 1104605840.rn12:00000:00119:2017/09/14 15:42:24.99 server Error: 709, Severity: 17, State: 1rn12:00000:00119:2017/09/14 15:42:24.99 server There is insufficient system memory to continue login process for spid 1104933680.rn08:00073:00073:2017/09/14 15:48:42.72 server Error: 1545, Severity: 20, State: 1rn08:00073:00073:2017/09/14 15:48:42.72 server Parallel sort parent driver cannot send message to child thread.rn02:00073:00073:2017/09/14 15:51:41.20 server Error: 1545, Severity: 20, State: 3rn02:00073:00073:2017/09/14 15:51:41.20 server Parallel sort parent driver cannot send message to child thread.rn12:00073:00073:2017/09/14 15:52:01.20 server Error: 1545, Severity: 20, State: 3rn12:00073:00073:2017/09/14 15:52:01.20 server Parallel sort parent driver cannot send message to child thread.rn02:00073:00073:2017/09/14 15:55:21.31 server Error: 1544, Severity: 20, State: 2rn02:00073:00073:2017/09/14 15:55:21.31 server Parallel Sort: Cannot initiate producers and consumers.rn02:00073:00073:2017/09/14 15:56:21.35 server Error: 1545, Severity: 20, State: 1rn02:00073:00073:2017/09/14 15:56:21.35 server Parallel sort parent driver cannot send message to child thread.rn02:00073:00073:2017/09/14 15:56:41.31 server Error: 1544, Severity: 20, State: 2rn02:00073:00073:2017/09/14 15:56:41.31 server Parallel Sort: Cannot initiate producers and consumers.rn10:00258:00258:2017/09/14 15:57:01.30 server Error: 1544, Severity: 20, State: 2rn10:00258:00258:2017/09/14 15:57:01.30 server Parallel Sort: Cannot initiate producers and consumers.rn07:00258:00258:2017/09/14 15:57:21.70 server Error: 1544, Severity: 20, State: 2rn07:00258:00258:2017/09/14 15:57:21.70 server Parallel Sort: Cannot initiate producers and consumers.rn02:00258:00258:2017/09/14 15:57:42.53 server Error: 1544, Severity: 20, State: 2rn02:00258:00258:2017/09/14 15:57:42.53 server Parallel Sort: Cannot initiate producers and consumers.rn02:00073:00073:2017/09/14 15:58:01.69 server Error: 1544, Severity: 20, State: 2rn02:00073:00073:2017/09/14 15:58:01.69 server Parallel Sort: Cannot initiate producers and consumers.rn10:00258:00258:2017/09/14 15:58:22.22 server Error: 1544, Severity: 20, State: 2rn10:00258:00258:2017/09/14 15:58:22.22 server Parallel Sort: Cannot initiate producers and consumers.rn10:00258:00258:2017/09/14 15:58:41.85 server Error: 1544, Severity: 20, State: 2rn10:00258:00258:2017/09/14 15:58:41.85 server Parallel Sort: Cannot initiate producers and consumers.rn10:00258:00258:2017/09/14 15:59:01.47 server Error: 1544, Severity: 20, State: 2rn10:00258:00258:2017/09/14 15:59:01.47 server Parallel Sort: Cannot initiate producers and consumers.rn05:00258:00258:2017/09/14 15:59:22.04 server Error: 1544, Severity: 20, State: 2rn05:00258:00258:2017/09/14 15:59:22.04 server Parallel Sort: Cannot initiate producers and consumers.rn08:00073:00073:2017/09/14 15:59:42.09 server Error: 1544, Severity: 20, State: 2rn08:00073:00073:2017/09/14 15:59:42.09 server Parallel Sort: Cannot initiate producers and consumers.rn02:00073:00073:2017/09/14 16:00:01.46 server Error: 1544, Severity: 20, State: 2rn02:00073:00073:2017/09/14 16:00:01.46 server Parallel Sort: Cannot initiate producers and consumers.rn02:00258:00258:2017/09/14 16:00:21.36 server Error: 1544, Severity: 20, State: 2rn02:00258:00258:2017/09/14 16:00:21.36 server Parallel Sort: Cannot initiate producers and consumers.rn08:00258:00258:2017/09/14 16:00:42.00 server Error: 1544, Severity: 20, State: 2rn08:00258:00258:2017/09/14 16:00:42.00 server Parallel Sort: Cannot initiate producers and consumers.rn02:00073:00073:2017/09/14 16:01:01.41 server Error: 1544, Severity: 20, State: 2rn02:00073:00073:2017/09/14 16:01:01.41 server Parallel Sort: Cannot initiate producers and consumers.rn01:00073:00073:2017/09/14 16:01:21.88 server Error: 1544, Severity: 20, State: 2rn01:00073:00073:2017/09/14 16:01:21.88 server Parallel Sort: Cannot initiate producers and consumers.rn00:00258:00258:2017/09/14 16:01:42.26 server Error: 1544, Severity: 20, State: 2rn00:00258:00258:2017/09/14 16:01:42.26 server Parallel Sort: Cannot initiate producers and consumers.rn10:00258:00258:2017/09/14 16:02:01.41 server Error: 1544, Severity: 20, State: 2rn10:00258:00258:2017/09/14 16:02:01.41 server Parallel Sort: Cannot initiate producers and consumers.rn09:00073:00073:2017/09/14 16:02:22.58 server Error: 1544, Severity: 20, State: 2rn09:00073:00073:2017/09/14 16:02:22.58 server Parallel Sort: Cannot initiate producers and consumers.rn12:00258:00258:2017/09/14 16:02:41.45 server Error: 1544, Severity: 20, State: 2rn12:00258:00258:2017/09/14 16:02:41.45 server Parallel Sort: Cannot initiate producers and consumers. 论坛

没有更多推荐了,返回首页