getTasks: caller 10035 does not hold REAL_GET_TASKS; limiting output的处理

调试时,遇到一个问题,记录一下,以作备忘。


运行一个apk,一直出现如下警告信息:

04-05 09:33:25.410 W/ActivityManager( 2450): getTasks: caller 10035 does not hold REAL_GET_TASKS; limiting output
04-05 09:33:25.513 W/ActivityManager( 2450): getTasks: caller 10035 does not hold REAL_GET_TASKS; limiting output

频率很快,也不知道原因,10035也不是ps后得到的进程号。所以有点不知所措,后来百度一下,也有人遇到这样的问题,说问题是“目前在Android API 21的Logcat输出存在一个Bug没有解决”,他的解决方法是:

想要解决这个问题,我在这里加入了版本检查:

 if(Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP); 
并且在清单配置文件中加入以下权限:
<uses-permission android:name="android.permission.GET_TASKS" />  

因为我是莫名遇到这个问题,所以不需要验证方法是否可行,只需要找到哪个apk,出现这个问题,后来也是在论坛中找一个方法找到元凶:

串口或者adb中运行:

dumpsys package | grep -A1 "userId=10035"

哈哈,原来元凶是你啊,果断删除应用:

shell@msm8909:/ # dumpsys package | grep -A1 "userId=10035"
    userId=10035 gids=[3003, 1028, 1015]
    pkg=Package{3dd31f76 com.baidu.music.lebo}



安卓手机在刷快手直播时,直播模糊图片停留时间长一直不出现直播内容,这是相关log,看下一下有什么异常 行 168039: 03-20 11:29:27.604 01928 01944 W WindowManager: getRunningAppProcesses: caller 10286 does not hold REAL_GET_TASKS; limiting output 03-20 11:29:28.115 01928 01974 I ActivityManager: Start proc 19905:com.smile.gifmaker:messagesdk/u0a286 for service {com.smile.gifmaker/com.kwai.chat.kwailink.service.NewKwaiLinkService} 03-20 11:29:28.469 18416 18416 W System.err: java.lang.UnsatisfiedLinkError: dlopen failed: library "libentryexpro.so" not found 03-20 11:29:28.471 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 168875: 03-20 11:29:28.471 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 168876: 03-20 11:29:28.471 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.a(Unknown Source:0) 行 168928: 03-20 11:29:28.479 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 168929: 03-20 11:29:28.479 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.a(Unknown Source:0) 行 168985: 03-20 11:29:28.491 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 168986: 03-20 11:29:28.491 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.a(Unknown Source:0) 行 169038: 03-20 11:29:28.495 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 169039: 03-20 11:29:28.496 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.a(Unknown Source:0) 行 169089: 03-20 11:29:28.507 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.e(kSourceFile:327680) 行 169090: 03-20 11:29:28.507 18416 18416 W System.err: at com.kwai.framework.exceptionhandler.b.a(Unknown Source:0) 03-20 11:29:29.162 01928 02591 W WindowManager: getRunningAppProcesses: caller 10119 does not hold REAL_GET_TASKS; limiting output 03-20 11:29:31.595 18416 18416 D nativeloader: Load /data/app/~~ZN4caS1LVYF6Dvq--8BI1Q==/com.smile.gifmaker-Sag6SsTgYAkBGyuOZLKA5g==/lib/arm64/libskwai.so using ns clns-8 from class loader (caller=/data/app/~~ZN4caS1LVYF6Dvq--8BI1Q==/com.smile.gifmaker-Sag6SsTgYAkBGyuOZLKA5g==/base.apk!classes20.dex): ok 03-20 11:29:32.986 18416 18416 W System.err: at com.kwai.video.waynelive.wayneplayer.StaticsProcessor$onKernelPlayerCreated$1.onQosStat(kSourceFile:37487026) 行 174074: 03-20 11:29:35.549 19905 20251 D libc-netbsd: [getaddrinfo]: hostname=kuaishou.com; servname=(null); app_pid=19905; app_uid=10286; ai_flags=0; ai_family=0; ai_socktype=1 from prox result 0 03-20 11:29:42.515 02715 02812 V WindowManagerShell: Transition animation finished (aborted=false), notifying core (#590) android.os.BinderProxy@8aa99df@0 03-20 11:29:42.054 02990 02990 D VRI[Launcher]: draw finished. seqId=0 03-20 11:29:43.142 18416 20127 W System.err: at com.kwai.video.waynelive.wayneplayer.StaticsProcessor$onKernelPlayerCreated$1.onQosStat(kSourceFile:37487026)
最新发布
03-27
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值