这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-notification-list hangs: Calling startActivity() from outside of an Activity #286

@AgentConDier

Description

@AgentConDier

Problem description
termux-notification-list hangs indefinitely and does not output anything. Seems to be caused by android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? (see adb log)

Steps to reproduce
Run termux-notification-list

Expected behavior
Notification list printed to stdout in json format

Additional information

termux-info
Updatable packages:
mosh/stable 1.3.2-16 aarch64 [upgradable from: 1.3.2-16]
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 4.9.148 #1 SMP PREEMPT Thu Jul 4 00:12:42 CST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
HUAWEI
Device model:
LYA-L29
adb logcat
08-23 14:49:43.487 12625 12625 I appproc : CLASSPATH=/data/data/com.termux/files/usr/libexec/termux-am/am.apk
08-23 14:49:43.487 12625 12625 I appproc : Command=/system/bin/app_process / com.example.termuxam.Am broadcast --user 0 -n com.termux.api/.TermuxApiReceiver --es socket_input ea592991c5d68171-3150-4f5c-8f46-b569a7714eda7000c53c0bb3 --es socket_output 2c8e5142b3e943fd-3150-411e-ac0e-96de4318ef75ef6631dc424e --es api_method NotificationList
08-23 14:49:43.487 12625 12625 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10224 <<<<<<
08-23 14:49:43.494 12625 12625 I AndroidRuntime: readDownloadBoosterConfig: 'false'
08-23 14:49:43.550 867 867 D SensorHub: -------------------------->SENSOR_TYPE_PROXIMITY data[0] = 5.000000
08-23 14:49:43.629 867 867 D SensorHub: -------------------------->SENSOR_TYPE_PROXIMITY data[0] = 5.000000
08-23 14:49:43.646 2179 2179 D HwInnerWifiManagerImpl: fetchWifiSignalInfoForVoWiFi
08-23 14:49:43.656 1262 4029 E WificondControl: Noise: -92, Snr: 65, Chload: 53
08-23 14:49:43.658 1262 4029 D HwWifiStateMachine: rssi=-60,nativeTxBad=157, nativeTxGood=962919, dpktcnt=0, linkSpeed=78, frequency=2412, noise=0, mac=c80e14
08-23 14:49:43.659 2179 2802 W VoWifiQoe_N: processSignalInfoInd phoneId 1 is not qoe started!
08-23 14:49:43.662 12625 12625 I /system/bin/app_process: Reinit property: dalvik.vm.checkjni= false
08-23 14:49:43.666 12625 12625 V HwFrameworkFactory: : successes to get AllImpl object and return....
08-23 14:49:43.679 12625 12625 I HWSERVICES: hwnative_get_component_register:libdrmbitmap,JNI
08-23 14:49:43.699 12625 12625 E Zygote : register_com_android_internal_os_Zygote num = 0
08-23 14:49:43.700 12625 12625 I : power log dlsym ok
08-23 14:49:43.702 12625 12625 D : APS:IFLoad: importExternalFunctions, dlopen libhwaps ok
08-23 14:49:43.705 12625 12625 E libc : Access denied finding property "ro.config.vol_steps"
08-23 14:49:43.709 867 867 D SensorHub: -------------------------->SENSOR_TYPE_PROXIMITY data[0] = 5.000000
08-23 14:49:43.719 12625 12625 D AndroidRuntime: Calling main entry com.example.termuxam.Am
08-23 14:49:43.724 803 20323 I iked : [INFO]: ike_localsocket.c:2851: Get WakeLock begin. vowifi_wake_lock_network
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: sockmisc.c:201: memcpy to = 192.***.***.24[4500] ,len=16,sslen=16,tolen=128
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: isakmp.c:863: isakmp_handler socket =33 ,local: 192.***.***.24[4500] remote 89.***.***.64[4500]
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: sockmisc.c:201: memcpy to = 192.***.***.24[4500] ,len=0,sslen=16,tolen=0
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: isakmp.c:959: chopping 4 bytes
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: isakmp.c:972: 80 bytes message received from 89.***.***.64[4500], rec = 0
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: ikev2.c:387: ikev2_input(0x7075331cf0, 0x7074dff268, 0x7074dff1e8)
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: ikev2.c:392: processing message version 2.000
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: ikev2_payload.c:114: ikev2_check_payloads(0x7075331cf0, 1)
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: ikev2_payload.c:145: offset 0x1c type 46 (ENCRYPTED) len 52
08-23 14:49:43.724 803 20323 I iked : [INFO]: ikev2_payload.c:257: ikev2_donot_check_payload_before_decrypt, 46
08-23 14:49:43.724 803 20323 D iked : [DEBUG]: ikev2.c:496: ike_sa: 0x7074e48800 ipsecid 0
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:735: ikev2_decrypt(0x7074e48800, 0x7075331cf0)
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:780: encryptor_decrypt begin
08-23 14:49:43.725 803 20323 I iked : [INFO]: ikev2.c:579: payload info is not fragment payload, check payload
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:114: ikev2_check_payloads(0x7075331cf0, 0)
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:145: offset 0x1c type 46 (ENCRYPTED) len 4
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ike_sa.c:1288: dpd polling interval 900
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2.c:630: dispatching ike_sa 0x7074e48800 state 7
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2.c:5594: request exch type 37
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2.c:855: update request message_id 0x3b6
08-23 14:49:43.725 803 20323 I iked : [INFO]: ikev2.c:9820: pcscf_reselection_support is 0
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_packet.c:322: ipsecid:0,ikev2_packet_construct(37, 0x28, 0x3b6, 0x7074e48800, [0x7074e15098, 0])
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:847: ikev2_encrypt(0x7074e48800, 0x7075331d00)
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:880: pad_len =15,block_len=16,n=0,max_padlen=-1
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:904: plaintext->l = 16,iv_len=16
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_payload.c:965: result 0x7075331d10
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2_packet.c:453: result 0x7075331cb0,rec = 0
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: ikev2.c:904: ikev2_transmit_response(0x7074e48800, 0x7075331cb0) len 80
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: isakmp.c:2007: isakmp_transmit_noretry src: 192.***.***.24[4500] dst 89.***.***.64[4500] socket
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: sockmisc.c:368: send packet from 192.***.***.24[4500]
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: sockmisc.c:370: send packet to 89.***.***.64[4500]
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: sockmisc.c:547: update_card get_tos = 184
08-23 14:49:43.725 803 20323 D iked : [DEBUG]: sockmisc.c:565: 1 times of 84 bytes message will be sent to 89.***.***.64[4500]
08-23 14:49:43.725 803 20323 I iked : [INFO]: ikev2.c:9864: no available pcscf addr!!!
08-23 14:49:43.725 803 20323 I iked : [INFO]: ike_localsocket.c:2882: Release WakeLock. vowifi_wake_lock_network
08-23 14:49:43.758 1262 1285 I ActivityManager: App 10224/com.termux.api targets O+, restricted
08-23 14:49:43.783 6836 6836 E termux-api: Error in TermuxApiReceiver
08-23 14:49:43.783 6836 6836 E termux-api: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ContextImpl.startActivity(ContextImpl.java:1040)
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ContextImpl.startActivity(ContextImpl.java:1009)
08-23 14:49:43.783 6836 6836 E termux-api: at android.content.ContextWrapper.startActivity(ContextWrapper.java:379)
08-23 14:49:43.783 6836 6836 E termux-api: at android.content.ContextWrapper.startActivity(ContextWrapper.java:379)
08-23 14:49:43.783 6836 6836 E termux-api: at com.termux.api.TermuxApiReceiver.doWork(TermuxApiReceiver.java:122)
08-23 14:49:43.783 6836 6836 E termux-api: at com.termux.api.TermuxApiReceiver.onReceive(TermuxApiReceiver.java:20)
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3996)
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ActivityThread.access$2300(ActivityThread.java:273)
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2050)
08-23 14:49:43.783 6836 6836 E termux-api: at android.os.Handler.dispatchMessage(Handler.java:112)
08-23 14:49:43.783 6836 6836 E termux-api: at android.os.Looper.loop(Looper.java:216)
08-23 14:49:43.783 6836 6836 E termux-api: at android.app.ActivityThread.main(ActivityThread.java:7625)
08-23 14:49:43.783 6836 6836 E termux-api: at java.lang.reflect.Method.invoke(Native Method)
08-23 14:49:43.783 6836 6836 E termux-api: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
08-23 14:49:43.783 6836 6836 E termux-api: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
08-23 14:49:43.783 1262 4029 V BroadcastQueue: Finished with ordered broadcast BroadcastRecord{bacbffb u0 null}
08-23 14:49:43.785 12625 12625 D AndroidRuntime: Shutting down VM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions