switch sentence

本文介绍了一个使用Python实现的简易模拟Switch语句的例子。通过定义一个特殊的类并利用迭代器特性,实现了根据不同操作符进行数学运算的功能。具体演示了加、减、乘、除四种基本运算。
#!/usr/bin/env python
# -*- coding: utf-8 -*-


class switch(object):
    def __init__ (self,value): 
        self.value=value
        self.fall=False      
    def __iter__ (self):
        yield self.match     
        raise StopIteration  
    def match (self,*args):
        if self.fall or not args: 
            return True           
        elif self.value in args:  
            self.fall=True
            return True
        else:                     
            return False


operator="-"
x=1
y=2
for case in switch(operator):
 if case("+"):
  print x+y
  break
 if case("-"):
  print x-y
  break
 if case("*"):
  print x*y
  break
 if case("/"):
  print x/y
  break
 else:
  print ""
WindowManager: WIN DEATH: Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} 行 163: 11-07 15:59:08.061 1375 1620 I CodecTracker: release tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: audio/raw, width: 0, height: 0, frameRate: 0, macroblocks: 0, lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED->STARTING->STARTED->RELEASED, scene: 3 行 164: 11-07 15:59:08.061 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1386, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 174: 11-07 15:59:08.064 1759 3787 I WindowManager: removeIfPossible: Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} callers=com.android.server.wm.WindowState.access$400:378 com.android.server.wm.WindowState$DeathRecipient.binderDied:4331 android.os.IBinder$DeathRecipient.binderDied:329 android.os.BinderProxy.sendDeathNotice:7 ... 行 177: 11-07 15:59:08.065 1759 3787 W InputManager-JNI: Input channel object '58ba4d4 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity (client)' was disposed without first being removed with the input manager! 行 180: 11-07 15:59:08.066 1759 3787 I WindowManager: Removing Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} from ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990} 行 180: 11-07 15:59:08.066 1759 3787 I WindowManager: Removing Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} from ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990} 行 188: 11-07 15:59:08.068 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1380, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request)222: 11-07 15:59:08.074 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1383, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request)234: 11-07 15:59:08.075 929 929 I Layer : 58ba4d4 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity#9003: destroyed 行 263: 11-07 15:59:08.080 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1373, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request)266: 11-07 15:59:08.081 1759 5650 I WindowManager: WIN DEATH: Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 269: 11-07 15:59:08.082 1759 5650 I WindowManager: removeIfPossible: Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} callers=com.android.server.wm.WindowState.access$400:378 com.android.server.wm.WindowState$DeathRecipient.binderDied:4331 android.os.IBinder$DeathRecipient.binderDied:329 android.os.BinderProxy.sendDeathNotice:747 <botto ... 行 272: 11-07 15:59:08.082 1759 5650 W InputManager-JNI: Input channel object '9525c49 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity (client)' was disposed without first being removed with the input manager! 行 277: 11-07 15:59:08.082 1759 5650 I WindowManager: Removing Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} from ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990} 行 277: 11-07 15:59:08.082 1759 5650 I WindowManager: Removing Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} from ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990} 行 336: 11-07 15:59:08.093 929 929 I Layer : com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity#9696: destroyed 行 344: 11-07 15:59:08.094 929 929 I Layer : 9525c49 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity#8541: destroyed 行 409: 11-07 15:59:08.108 1759 2017 W ActivityManager: Scheduling restart of crashed service com.shanbay.sentence/org.chromium.content.app.SandboxedProcessService0:0 in 79863ms for connection 行 411: 11-07 15:59:08.110 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:22825 proc: activity:null 行 412: 11-07 15:59:08.110 3586 4712 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 808: 11-07 15:59:08.531 1759 4261 I ActivityManager: appDiedLocked: pid=22647, app=ProcessRecord{c53a6dd 22647:com.shanbay.sentence:pushcore/u0a228}, fromBinderDied=true, reason=null 行 811: 11-07 15:59:08.533 1759 4261 I ActivityManager: Process com.shanbay.sentence:pushcore (pid 22647) has died: vis+2 BTOP 行 816: 11-07 15:59:08.536 1759 4261 W ActivityManager: Scheduling restart of crashed service com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService in 219434ms for connection 行 817: 11-07 15:59:08.538 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:22647 proc: activity:null 行 821: 11-07 15:59:08.542 3586 4712 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 860: 11-07 15:59:08.573 1759 4258 I ActivityManager: appDiedLocked: pid=29927, app=ProcessRecord{e233c88 29927:com.shanbay.sentence/u0a228}, fromBinderDied=true, reason=null 行 862: 11-07 15:59:08.574 1759 4258 I ActivityManager: Process com.shanbay.sentence (pid 29927) has died: vis+2 TOP 行 906: 11-07 15:59:08.600 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:29927 proc: activity:null 行 910: 11-07 15:59:08.603 1759 4234 I SWAP_Scene: This app was killed: com.shanbay.sentence 行 914: 11-07 15:59:08.605 3586 16329 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 915: 11-07 15:59:08.605 1759 4258 I HwRestoreStateManager: com.shanbay.sentence doesn't support recovery 行 916: 11-07 15:59:08.605 1759 4258 W ActivityTaskManager: Force removing ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990}: app died, no saved state 行 937: 11-07 15:59:08.611 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 937: 11-07 15:59:08.611 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 939: 11-07 15:59:08.612 1759 4258 W ActivityTaskManager: stopFreezingScreen return caused by mFreezingScreen=false this=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 941: 11-07 15:59:08.615 3427 3514 I ScenarioService: app is visible from system: com.shanbay.sentence ,visible: false 行 944: 11-07 15:59:08.617 3586 3752 E DollieAdapterService: notifyActivityState pkg:com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity state:19 fg:false mUid:10228 行 946: 11-07 15:59:08.627 1759 4258 W WindowManager: Failed to take screenshot, prepare for Snapshot failed for Task{e9c27d #990 type=standard A=10228:com.shanbay.sentence U=0 visible=true mode=hwMultiwindow-primary translucent=true sz=2} 行 947: 11-07 15:59:08.628 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:null 行 948: 11-07 15:59:08.629 1759 4258 I WindowManager: removeChild: child=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} reason=removeChild 行 949: 11-07 15:59:08.631 1759 4258 W ActivityTaskManager: stopFreezingScreen return caused by mFreezingScreen=false this=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t-1 f}} 行 962: 11-07 15:59:08.643 3427 3514 I ScenarioService: app is visible from system: com.shanbay.sentence ,visible: true 行 978: 11-07 15:59:08.647 3586 3752 I NetPredictEngine: Parent: active app change, old packageName: com.huawei.hinote, new packageName: com.shanbay.sentence 行 991: 11-07 15:59:08.650 3586 3752 I SmartDualCardConfig: getAppType,pkgName=com.shanbay.sentence,appType=33 行 1033: 11-07 15:59:08.675 929 929 I Layer : ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990}#9001: destroyed 行 1336: 11-07 15:59:09.075 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1336: 11-07 15:59:09.075 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1415: 11-07 15:59:09.174 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1415: 11-07 15:59:09.174 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1418: 11-07 15:59:09.174 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} 行 1423: 11-07 15:59:09.175 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 1436: 11-07 15:59:09.201 1759 1860 I ActivityManager: Start proc 19763:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 1436: 11-07 15:59:09.201 1759 1860 I ActivityManager: Start proc 19763:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 1439: 11-07 15:59:09.208 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:19763 proc: activity:null 行 1452: 11-07 15:59:09.208 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:19763 uid:10228 行 1454: 11-07 15:59:09.209 3427 3759 I PG_ash : start process:com.shanbay.sentence reason:activity pid:19763 uid:10228 pkgs:null 行 1455: 11-07 15:59:09.210 3427 3759 I PG_ash : com.shanbay.sentence pop from SHDA 行 1456: 11-07 15:59:09.210 3427 3759 I PG_ash : com.shanbay.sentence should refresh native pids, reason: visible 行 1457: 11-07 15:59:09.210 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: true 行 1472: 11-07 15:59:09.266 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=19763 preloadStatus=0 行 1472: 11-07 15:59:09.266 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=19763 preloadStatus=0 行 1497: 11-07 15:59:09.313 1759 6463 I HwRestoreStateManager: reportAppRestoreScene, app: com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity ,scene:WarmStart 行 1516: 11-07 15:59:09.343 1759 6463 I ActivityTaskManager: onActivityStateChanged: switchFocusedStackIfNeed, now record = ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990}, topResumed = ActivityRecord{2c8737f u0 com.huawei.hinote/.edit.EditActivity t977} 行 1517: 11-07 15:59:09.347 19763 12839 I LifecycleTransaction: activityCallbacks LaunchActivityItem{intent=Intent { cmp=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity },ident=184557856,info=ActivityInfo{a00031e com.shanbay.words.home.mvp.HomeActivity},curConfig={1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw529dp w529dp h673dp 420dpi lrg hdr widecg port night finger -keyb/v/h -nav/h winConfig={ m ... 行 1517: 0 - 1390, 1840) mMaxBounds=Rect(0, 0 - 2800, 1840) mWindowingMode=hwMultiwindow-primary mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOverMode=0} suim:1 extflag:8 s.19 fontWeightAdjustment=0},referrer=com.shanbay.sentence,procState=20,state=Bundle[mParcelledData.dataSize=15268],persistentState=null,pendingResults=null,pendingNewIntents=null,options=null,profilerInfo=null,assistToken=android.os.BinderProxy@a28a7ff,rotationAdj=null,shareableActivityToken=android.os.BinderProxy@4b9 ... 行 1522: 11-07 15:59:09.351 3586 3586 I 00924/HwParentControlInHwSys: ActivityControllerManager - onActivityResuming -> pkgName=com.shanbay.sentence, cls=com.shanbay.words.home.mvp.HomeActivity 行 1525: 11-07 15:59:09.353 3586 3586 I 00924/HwParentControlInHwSys: SysPreAppController - onActivityResuming -> ignore activity, the package com.shanbay.sentence 行 1532: 11-07 15:59:09.362 1759 1840 W 00202/HiDATA_ContentAware: mForegroundAppPackageName: com.shanbay.sentence, score: 0 行 1533: 11-07 15:59:09.362 1759 1840 W 00202/HiDATA: onForegroundAppWifiSleepChange: config:false, sleeptime:-1,type: 33, appname:com.shanbay.sentence 行 1534: 11-07 15:59:09.363 1759 1840 W 00202/HiDATA: APP type: 33 appName= com.shanbay.sentence 行 1535: 11-07 15:59:09.364 1759 1840 W 00202/HiDATA: no game, APP_TYPE_GAME, appName =com.shanbay.sentence 行 1551: 11-07 15:59:09.404 19763 12841 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 1554: 11-07 15:59:09.407 19763 12841 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#0 行 2493: 11-07 15:59:10.382 19763 19763 W Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.shanbay.sentence/tinker 行 2500: 11-07 15:59:10.388 19763 19763 I SkeletonUtils: try to get file lock: /data/user/0/com.shanbay.sentence/app_skeleton/com.shanbay.sentence.lock 行 2500: 11-07 15:59:10.388 19763 19763 I SkeletonUtils: try to get file lock: /data/user/0/com.shanbay.sentence/app_skeleton/com.shanbay.sentence.lock 行 2578: 11-07 15:59:10.452 19763 12841 I AwareBitmapCacher: init processName:com.shanbay.sentence pid=19763 uid=10228 行 2953: 11-07 15:59:10.629 19763 19763 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 3023: 11-07 15:59:10.656 1759 3282 I ContentProviderHelper: publishContentProviders app: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228}, providers.size: 25 行 3061: 11-07 15:59:10.669 19763 19763 W Tinker.Tinker: tinker patch directory: /data/user/0/com.shanbay.sentence/tinker 行 3065: 11-07 15:59:10.670 19763 19763 I Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.shanbay.sentence, main process:true, systemOTA:false, fingerPrint:HUAWEI/BKY-W10D/HWBKY:12/HUAWEIBKY-W10/104.2.0.195C00:user/release-keys, oatDir:null, useInterpretMode:false 行 3067: 11-07 15:59:10.670 19763 19763 I Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.shanbay.sentence/tinker, code: -2, cost: 5ms 行 3223: 11-07 15:59:10.730 19763 19763 I BayXLog : log path: /storage/emulated/0/Android/data/com.shanbay.sentence/files/ShanbayV2/log/words2 行 3226: 11-07 15:59:10.734 19763 13036 W DE N VideoEngine: IsAisrProcessorSupported:314: Failed to getEffectEx(DE_FEATURE_AISR, {DE_EFFECT_TYPE_ENABLE,com.shanbay.sentence},&status(.size()=1)) ret=-1 行 3393: 11-07 15:59:10.835 19763 19763 I ConnectivityManager: requestNetwork and the calling app is: com.shanbay.sentence 行 3395: 3314 I ConnectivityService: requestNetwork for uid/pid:10228/19763 activeRequest: null callbackRequest: 1481 [NetworkRequest [ REQUEST id=1482, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ]] callback flags: 0 priority: 2147483647 行 3544: 1-07 15:59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43305): avc: denied { getattr } for path="/proc/fb" dev="proc" ino=4026532203 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3545: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43306): avc: denied { getattr } for path="/proc/keys" dev="proc" ino=4026532476 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_keys:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3546: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43307): avc: denied { getattr } for path="/proc/kmsg" dev="proc" ino=4026532328 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_kmsg:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3547: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43308): avc: denied { getattr } for path="/proc/misc" dev="proc" ino=4026532204 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_misc:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3548: 9:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43309): avc: denied { getattr } for path="/proc/locks" dev="proc" ino=4026532315 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_locks:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3549: 9:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43310): avc: denied { getattr } for path="/proc/swaps" dev="proc" ino=4026532455 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_swaps:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 4018: 11-07 15:59:11.069 19763 13142 I BayHotLoad: spec: {"application_info":{"channel":"huawei-channel","flavor":"stable64","pkg":"com.shanbay.sentence","version_code":59602,"version_name":"5.9.602"},"device_info":{"arch":"armeabi-v7a,arm64-v8a","id":"","manufacturer":"HUAWEI","model":"BKY-W10","os":31,"root":false,"screen_height":1840,"screen_width":2800},"id_version":"1.0.0","platform":"Android","user_id":"f ... 行 4187: 11-07 15:59:11.147 1759 3791 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=null knownToBeDead=true thread=null pid=-1 preloadStatus=-1 行 4188: 11-07 15:59:11.147 1759 3791 I BigFontUtils: adjustAppProcessConfiguration appInfo:com.shanbay.sentence 行 4189: 11-07 15:59:11.148 1759 3791 I ActivityManager: Posting procStart msg for 0:com.shanbay.sentence:pushcore/u0a228 行 4190: 11-07 15:59:11.149 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} 行 4193: 11-07 15:59:11.149 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 4235: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4235: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4235: 167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4236: 11-07 15:59:11.167 1759 3781 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 4236: 11-07 15:59:11.167 1759 3781 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 4239: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Successfully start provider ContentProviderRecord{1230cc u0 com.shanbay.sentence/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} caller pid= 19763 行 4239: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Successfully start provider ContentProviderRecord{1230cc u0 com.shanbay.sentence/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} caller pid= 19763 行 4356: 11-07 15:59:11.210 1759 1860 I ActivityManager: Start proc 13240:com.shanbay.sentence:pushcore/u0a228 for service {com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService} 行 4356: 11-07 15:59:11.210 1759 1860 I ActivityManager: Start proc 13240:com.shanbay.sentence:pushcore/u0a228 for service {com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService} 行 4361: 11-07 15:59:11.211 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:13240 proc: activity:null 行 4362: 11-07 15:59:11.211 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:13240 uid:10228 行 4387: 11-07 15:59:11.215 3427 3759 I PG_ash : start process:com.shanbay.sentence:pushcore reason:service pid:13240 uid:10228 pkgs:null 行 4396: 11-07 15:59:11.215 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: false 行 5019: 11-07 15:59:11.438 13240 13263 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 5051: 11-07 15:59:11.455 13240 13263 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#0 行 5122: 11-07 15:59:11.493 1759 2017 I ActivityManager: power push bindservice callingPkg:com.shanbay.sentence, pkg:com.huawei.hwid, callerApp pid:19763, pid:0 行 5272: 13865 I ContentProviderHelper: Need to start process com.huawei.appmarket:query for provider ContentProviderInfo{name=com.huawei.appmarket.commondata className=com.huawei.appmarket.service.provider.CommonDataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 5447: 11-07 15:59:11.706 1759 3314 I HwNotificationService_Vibrate: getHwVibratorType pkg=com.shanbay.sentence, channelId=JPush_3_7, userId=10228, vibratorType=haptic.pattern.type4 行 5813: 11-07 15:59:11.957 1759 3791 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 6919: 11-07 15:59:12.539 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7443: 11-07 15:59:12.882 1759 4261 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7481: 11-07 15:59:12.933 588 588 I lowmemorykiller: Kill 'com.shanbay.sentence' (19763), uid 10228, oom_score_adj 102 to free 290396kB rss, 43784kb swap 行 7525: 11-07 15:59:12.939 1759 4261 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7575: 11-07 15:59:12.958 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7751: 11-07 15:59:13.032 1759 4258 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7813: 11-07 15:59:13.041 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7944: 11-07 15:59:13.069 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7945: 11-07 15:59:13.070 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1482, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 7955: 11-07 15:59:13.071 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8029: 11-07 15:59:13.093 1759 3298 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8100: 11-07 15:59:13.132 1759 4653 I ActivityManager: appDiedLocked: pid=19763, app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228}, fromBinderDied=true, reason=null 行 8101: 11-07 15:59:13.133 1759 4653 I ActivityManager: Process com.shanbay.sentence (pid 19763) has died: vis+2 TOP 行 8158: 11-07 15:59:13.148 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:19763 proc: activity:null 行 8159: 11-07 15:59:13.149 3586 22759 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 8360: 11-07 15:59:13.215 1759 1859 W BroadcastQueue: Skipping deliver [background] BroadcastRecord{ccb7d20 u0 android.intent.action.INPUT_METHOD_CHANGED} to ReceiverList{f163403 19763 com.shanbay.sentence/10228/u0 remote:223ecb2}: process gone or crashing 行 8462: 11-07 15:59:13.267 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8602: 11-07 15:59:13.356 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=null knownToBeDead=false thread=null pid=-1 preloadStatus=-1 行 8603: 11-07 15:59:13.356 1759 1842 I BigFontUtils: adjustAppProcessConfiguration appInfo:com.shanbay.sentence 行 8608: 11-07 15:59:13.359 1759 1842 I ActivityManager: Posting procStart msg for 0:com.shanbay.sentence/u0a228 行 8801: 11-07 15:59:13.460 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} 行 8804: 11-07 15:59:13.460 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 8811: 11-07 15:59:13.461 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8811: 11-07 15:59:13.461 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8923: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8923: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8926: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8926: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8928: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8928: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8973: 11-07 15:59:13.514 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8978: 11-07 15:59:13.517 1759 1860 I ActivityManager: Start proc 19764:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 8978: 11-07 15:59:13.517 1759 1860 I ActivityManager: Start proc 19764:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 8981: 11-07 15:59:13.517 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:19764 proc: activity:null 行 8982: 11-07 15:59:13.517 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:19764 uid:10228 行 8999: 11-07 15:59:13.523 3427 3759 I PG_ash : start process:com.shanbay.sentence reason:activity pid:19764 uid:10228 pkgs:null 行 9000: 11-07 15:59:13.523 3427 3759 I PG_ash : com.shanbay.sentence should refresh native pids, reason: visible 行 9001: 11-07 15:59:13.523 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: true 根据这些日志结合分析一下被杀的原因
11-12
HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31099: 11-07 15:59:00.993 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31105: 11-07 15:59:00.998 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31107: 11-07 15:59:01.002 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31113: 11-07 15:59:01.015 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31119: 11-07 15:59:01.047 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31128: 11-07 15:59:01.077 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31134: 11-07 15:59:01.080 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31146: 11-07 15:59:01.116 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31153: 11-07 15:59:01.304 1759 1865 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31155: 11-07 15:59:01.310 1759 3780 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31157: 11-07 15:59:01.313 1759 12340 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31159: 11-07 15:59:01.316 1759 3780 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31161: 11-07 15:59:01.319 1759 12340 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31163: 11-07 15:59:01.321 1759 3780 I ActivityManager: App 10228/com.shanbay.sentence targets O+, restricted 行 31165: 11-07 15:59:01.324 1759 12340 I BroadcastQueue: Finished with ordered [bgthirdapp] broadcast BroadcastRecord{7ec5393 u0 shanbay.appwidget.action.APPWIDGET_UPDATE} cost time 20,receiversNum 6,max receiver ResolveInfo{7c88fd0 com.shanbay.sentence/com.shanbay.biz.words.widget.provider.Goal4x2Provider m=0x108000} cost time 6 行 31167: 11-07 15:59:01.340 1759 1854 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31199: 11-07 15:59:01.601 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31204: 11-07 15:59:01.607 1759 3780 I MediaFocusControl: requestAudioFocus() from uid/pid 10228/29927 AA=USAGE_MEDIA/CONTENT_TYPE_MUSIC clientId=android.media.AudioManager@741e8bauw.a$a@f3bb650 callingPack=com.shanbay.sentence req=3 flags=0x2 sdk=30 targetStack=null zoneId-1 行 31207: 11-07 15:59:01.608 1759 3780 I HwMediaFocusControl: isRemoteApp: false, packageName: com.shanbay.sentence 行 31217: 11-07 15:59:01.608 1759 3780 I HwMediaFocusControl: isRemoteApp: false, packageName: com.shanbay.sentence 行 31223: 11-07 15:59:01.609 3427 3759 I PG_ash : com.shanbay.sentence BinderCallState: true, nextBinderCallTriggeringTime:83343368 行 31224: 11-07 15:59:01.609 3427 3514 I PGAudioState: audio focus pkg: com.shanbay.sentence last focus pkg : com.shanbay.sentence 行 31224: 11-07 15:59:01.609 3427 3514 I PGAudioState: audio focus pkg: com.shanbay.sentence last focus pkg : com.shanbay.sentence 行 31225: 11-07 15:59:01.609 3427 3514 I AppManager: audio focus pkg: com.shanbay.sentence 行 31240: 11-07 15:59:01.623 1759 3780 I HwOcrImeController: updateMultiWindow focus window = com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity mIsInMultiScreen = true 行 31259: 11-07 15:59:01.627 29927 29865 I ServiceUtilities: GetPackageNameByUid packages size is 1, packages[0] com.shanbay.sentence, uid(10228) 行 31261: 11-07 15:59:01.627 29927 29865 I ServiceUtilities: GetPackageNameByUid packages size is 1, packages[0] com.shanbay.sentence, uid(10228) 行 31267: 11-07 15:59:01.630 1375 1620 I CodecTracker: tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: , width: , height: , frameRate: , macroblocks: , lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING, scene: 行 31273: 11-07 15:59:01.631 1375 1620 I CodecTracker: tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: , width: , height: , frameRate: , macroblocks: , lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED, scene: 行 31275: 11-07 15:59:01.631 1375 2007 I CodecTracker: tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: audio/raw, width: 0, height: 0, frameRate: 0, macroblocks: 0, lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED, scene: 3 行 31278: 11-07 15:59:01.632 1375 1620 I CodecTracker: tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: audio/raw, width: 0, height: 0, frameRate: 0, macroblocks: 0, lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED->STARTING, scene: 3 行 31283: 11-07 15:59:01.636 1375 1620 I CodecTracker: tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: audio/raw, width: 0, height: 0, frameRate: 0, macroblocks: 0, lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED->STARTING->STARTED, scene: 3 行 31284: 11-07 15:59:01.637 3427 3514 I DeviceStateService: app: com.shanbay.sentence pid: 29927 start mediacodec. 行 31334: 11-07 15:59:01.656 1759 1831 I HwAudioService: getPackageNameByPid, packageName=com.shanbay.sentence 行 31365: 11-07 15:59:01.660 844 28832 I AudioAlgoService: setParameterToDsp: params is PLAYING_APP_NAME=[com.shanbay.sentence] 行 31405: 11-07 15:59:01.705 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31483: 11-07 15:59:01.732 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31526: 11-07 15:59:01.767 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31537: 11-07 15:59:01.804 1759 4649 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31540: 11-07 15:59:01.831 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31568: 11-07 15:59:02.210 1759 3161 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31584: 11-07 15:59:02.310 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31634: 11-07 15:59:02.729 1759 3780 I HwMediaFocusControl: isRemoteApp: false, packageName: com.shanbay.sentence 行 31640: 11-07 15:59:02.730 1759 3780 I HwMediaFocusControl: isRemoteApp: false, packageName: com.shanbay.sentence 行 31672: 11-07 15:59:02.836 1759 4649 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31717: 11-07 15:59:03.342 1759 4649 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31855: 11-07 15:59:03.848 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31859: 11-07 15:59:03.900 1759 3007 W 00202/hw_netstat: total/2130/43552,com.shanbay.sentence/2130/41602,com.huawei.hinote/0/1383,com.huawei.intelligent/0/352,com.huawei.hiaction.share_user:5514/0/215 行 31890: 11-07 15:59:04.357 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 31927: 11-07 15:59:04.605 3427 3920 I ThermalTraceService: code:1, appInfo:com.shanbay.sentence#10000, levelInfo:0,warm_system_h,2#26,warm_dot,1 行 31970: 11-07 15:59:04.870 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 32037: 11-07 15:59:05.379 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=true windowMode=100 行 32203: 11-07 15:59:05.567 1759 1842 I WindowManager: Changing focus from Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} to Window{9070d86 u0 com.huawei.hinote/com.huawei.hinote.edit.EditActivity} displayId=0 行 32249: 11-07 15:59:05.576 1759 1842 W HwActivityTaskManagerServiceEx: appSwitch from: com.shanbay.sentence to: com.huawei.hinote 行 32252: 11-07 15:59:05.577 29927 29927 I TopResumedActivityChangeItem: execute start, ActivityClientRecord = ActivityRecord{8c17465 token=android.os.BinderProxy@3b36ced {com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity}} 行 32275: 11-07 15:59:05.582 3427 3514 I ScenarioService: app focus change from: com.shanbay.sentence to:com.huawei.hinote 行 32320: 11-07 15:59:05.594 3193 5686 I CapsuleManager: onAppSwitch package=com.huawei.hinote, current=com.shanbay.sentence 行 32434: 11-07 15:59:05.616 1759 3787 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 32499: 11-07 15:59:05.624 3586 4712 I {AssistantService-13.9.1.300}_AssistantApkNotifier: registerHwActivityNotifier call fromPackage:com.shanbay.sentence, toPackage:com.huawei.hinote 行 32500: 11-07 15:59:05.624 1759 1854 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:APP_SWITCH_FROM pkg:com.shanbay.sentence uid:10228 pid:0 proc: activity:null 行 32577: 11-07 15:59:05.637 3586 3752 I NetPredictEngine: Parent: active app change, old packageName: com.shanbay.sentence, new packageName: com.huawei.hinote 行 32622: 11-07 15:59:05.646 1759 15446 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 32623: Queue: [com.huawei.hwstartupguide, com.huawei.iconnect.ui, com.huawei.stylus.floatmenu, tv.danmaku.bilibilihd, com.quark.browser, com.huawei.browser, com.ss.android.ugc.aweme, com.tencent.mm, com.huawei.notepad, com.android.settings, com.huawei.phoneservice, com.shanbay.sentence, com.huawei.hinote] 行 32639: 11-07 15:59:05.650 1759 4234 I SWAP_AK : BG com.shanbay.sentence M 行 32752: 11-07 15:59:05.689 3427 3514 I ScenarioService: refresh visibleApp:[com.huawei.hinote, com.shanbay.sentence] 行 32799: 11-07 15:59:05.699 3427 3514 I ScenarioService: multiScreenVisibleApps: 0:com.huawei.hinote#com.shanbay.sentence:10188#10228 行 32800: 11-07 15:59:05.699 3427 3514 I PGServer: report state:15 event type:1 pid:-1 uid:-1 pkg:0:com.huawei.hinote#com.shanbay.sentence:10188#10228 to pid: 3427 行 33169: 11-07 15:59:05.897 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33228: 11-07 15:59:05.925 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33259: 11-07 15:59:05.945 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33274: 11-07 15:59:05.964 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33434: 11-07 15:59:06.059 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33446: 11-07 15:59:06.077 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33454: 11-07 15:59:06.079 1759 1854 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33456: 11-07 15:59:06.081 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33474: 11-07 15:59:06.112 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33476: 11-07 15:59:06.114 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33478: 11-07 15:59:06.117 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33595: 11-07 15:59:06.229 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33613: 11-07 15:59:06.232 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33731: 11-07 15:59:06.285 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33757: 11-07 15:59:06.292 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 33986: 11-07 15:59:06.449 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34017: 11-07 15:59:06.491 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34021: 11-07 15:59:06.493 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34053: 11-07 15:59:06.512 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34060: 11-07 15:59:06.517 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34136: 11-07 15:59:06.618 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34138: 11-07 15:59:06.620 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34191: 11-07 15:59:06.664 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34210: 11-07 15:59:06.677 1759 1831 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34465: 11-07 15:59:06.966 1759 2016 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34638: 11-07 15:59:07.063 1759 2017 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 34681: 11-07 15:59:07.079 1759 4653 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 35263: 11-07 15:59:07.267 588 588 I lowmemorykiller: Kill 'com.shanbay.sentence' (29927), uid 10228, oom_score_adj 102 to free 291240kB rss, 328664kb swap 行 35301: 11-07 15:59:07.280 588 588 I lowmemorykiller: Kill 'com.shanbay.sentence:pushcore' (22647), uid 10228, oom_score_adj 102 to free 74832kB rss, 225304kb swap 行 35312: 11-07 15:59:07.287 1759 3282 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 35355: 11-07 15:59:07.303 1759 3282 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 36135: 11-07 15:59:07.963 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1377, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 36179: 11-07 15:59:08.027 3427 3759 I ash_trans: com.shanbay.sentence { running duration=2006220 Uptime=2006219 } transition to: end, reason: not_running 行 36180: 11-07 15:59:08.028 3427 3759 I PG_ash : delete app record pkg: com.shanbay.sentence 根据日志给我分析一下com.shanbay.sentence被杀的原因是什么,不要分析什么可能是啥问题,给我直接问题和解决方案
最新发布
11-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值