转: The System Server in Android

本文详细介绍了Android系统中系统服务的启动过程。从SystemServer进程的初始化开始,深入解析了核心服务如PowerManagerService、ActivityManagerService等的启动顺序及初始化方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The System Server in Android

In this post I will add some more detail on the system server in Android. The system server is the core of the Android system and as described in the boot sequence post it is started as soon as Dalvik is initialized and running. The other system services will be running in the context of the System Server process. We will start by looking at the code that runs when the System Server starts. This code is found in the file frameworks/base/services/java/com/android/server/SystemServer.java (in the open source project tree) and we will start this discussion from the main entry point.


 /**
     * This method is called from Zygote to initialize the system. This will cause the native
     * services (SurfaceFlinger, AudioFlinger, etc..) to be started. After that it will call back
     * up into init2() to start the Android services.
     */
    native public static void init1(String[] args);

    public static void main(String[] args) {
        // The system server has to run all of the time, so it needs to be
        // as efficient as possible with its memory usage.
        VMRuntime.getRuntime().setTargetHeapUtilization(0.8f);
       
        System.loadLibrary("android_servers");
        init1(args);
    }

    public static final void init2() {
        Log.i(TAG, "Entered the Android system server!");
        Thread thr = new ServerThread();
        thr.setName("android.server.ServerThread");
        thr.start();
    }


The first thing that happens is that the server will load a native library called android_servers that provides interfaces to native functionality. Source files for this lib are placed in frameworks/base/services/jni/. Then the native init method that will setup native services is called, init1(args), and executed. The name of the function that implements this is system_init() and the it resides in frameworks/base/cmds/system_server/library/system_init.cpp. After setting up the native services there is a callback:


runtime->callStatic("com/android/server/SystemServer", "init2");


to init2() above to create the server thread. This thread will start the remaining services in the system according to the necessary start order. A snippet of the initial sequence gives:


 // Critical services...
        try {
            Log.i(TAG, "Starting Power Manager.");
            power = new PowerManagerService();
            ServiceManager.addService(Context.POWER_SERVICE, power);

            Log.i(TAG, "Starting Activity Manager.");
            context = ActivityManagerService.main(factoryTest);

            Log.i(TAG, "Starting telephony registry");
            ServiceManager.addService("telephony.registry", new TelephonyRegistry(context));

            AttributeCache.init(context);

            Log.i(TAG, "Starting Package Manager.");
            pm = PackageManagerService.main(context,
                    factoryTest != SystemServer.FACTORY_TEST_OFF);

            ActivityManagerService.setSystemProcess();

            mContentResolver = context.getContentResolver();

            Log.i(TAG, "Starting Content Manager.");
            ContentService.main(context,
                    factoryTest == SystemServer.FACTORY_TEST_LOW_LEVEL);

            Log.i(TAG, "Starting System Content Providers.");
            ActivityManagerService.installSystemProviders();

            Log.i(TAG, "Starting Battery Service.");
            BatteryService battery = new BatteryService(context);
            ServiceManager.addService("battery", battery);

            Log.i(TAG, "Starting Hardware Service.");
            hardware = new HardwareService(context);
            ServiceManager.addService("hardware", hardware);

            // only initialize the power service after we have started the
            // hardware service, content providers and the battery service.
            power.init(context, hardware, ActivityManagerService.getDefault(), battery);

            Log.i(TAG, "Starting Alarm Manager.");
            AlarmManagerService alarm = new AlarmManagerService(context);
            ServiceManager.addService(Context.ALARM_SERVICE, alarm);

...


We see that the power manager is started first, followed by the activity manager and the other services. There are a lot more services started after these initial and if you are interested take look in the SystemServer.java file. Each service is running in a separate Dalvik thread in the SystemServer process. To give some info on the components making up the system server we may have look at it using the DDMS tool:

We see that the main Android services such as the activity manager, package manager, alarm manager etc. are running in their separate threads but as parts of the system server process.

 

 

--------- beginning of crash 06-15 04:08:26.793 996 996 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 996 (init), pid 996 (init) 06-15 04:08:26.809 996 996 F libc : crash_dump helper failed to exec, or was killed 06-15 04:08:46.925 5241 5241 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5241 (init), pid 5241 (init) 06-15 04:08:47.009 5241 5241 F libc : crash_dump helper failed to exec, or was killed 06-15 04:19:49.126 20112 30927 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 30927 (Signal Catcher), pid 20112 (m.obric.camera2) 06-15 04:19:50.637 430 430 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:19:50.637 430 430 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:19:50.637 430 430 F DEBUG : Revision: '0' 06-15 04:19:50.637 430 430 F DEBUG : ABI: 'arm64' 06-15 04:19:50.637 430 430 F DEBUG : Timestamp: 2025-06-15 04:19:49.413255468+0800 06-15 04:19:50.637 430 430 F DEBUG : Process uptime: 396s 06-15 04:19:50.637 430 430 F DEBUG : Cmdline: com.obric.camera2 06-15 04:19:50.637 430 430 F DEBUG : pid: 20112, tid: 30927, name: Signal Catcher >>> com.obric.camera2 <<< 06-15 04:19:50.637 430 430 F DEBUG : uid: 10057 06-15 04:19:50.637 430 430 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:19:50.637 430 430 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:19:50.637 430 430 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:19:50.637 430 430 F DEBUG : Abort message: 'Caused HeapTaskDaemon failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=30927,Runnable,Thread*=0x717887c630,peer=0x158c02d0,"Signal Catcher"], Info for Thread[2,tid=30927,Runnable,Thread*=0x717887c630,peer=0x158c02d0,"Signal Catcher"]:Signal Catcher tid: 30927, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [30927 (Signal Catcher) S 1585 1585 0 0 -1 4194368 53581 0 210 0 455 116 0 0 0 -20 120 0 6, 30927 (Signal Catcher) S 1585 1585 0 0 -1 4194368 53581 0 210 0 455 116 0 0 0 -20 120 0 6]1@481294200252 Final wait time: 2.023s' 06-15 04:19:50.637 430 430 F DEBUG : x0 fffffffffffffffc x1 0000000000000089 x2 0000000000000010 x3 00000070108fdd18 06-15 04:19:50.637 430 430 F DEBUG : x4 0000000000000000 x5 00000000ffffffff x6 00000000ffffffff x7 7365786574756d20 06-15 04:19:50.637 430 430 F DEBUG : x8 0000000000000062 x9 590991cad317e6aa x10 ffffffffffd13893 x11 0000000033e148f4 06-15 04:19:50.637 430 430 F DEBUG : x12 00000000684dd964 x13 000000007fffffff x14 0000000000052a7a x15 000000031f353f17 06-15 04:19:50.637 430 430 F DEBUG : x16 00000072c251a0d8 x17 00000072c24c6f00 x18 000000701078c000 x19 0000000000000010 06-15 04:19:50.637 430 430 F DEBUG : x20 00000070108fdd18 x21 0000007178a68578 x22 0000000000000089 x23 00000070108ff860 06-15 04:19:50.637 430 430 F DEBUG : x24 00000070108ff8c0 x25 0000000000000000 x26 00000000ee3c61b7 x27 0000000000000001 06-15 04:19:50.637 430 430 F DEBUG : x28 0000000000000000 x29 00000070108fdd30 06-15 04:19:50.637 430 430 F DEBUG : lr 00000072c249f5b8 sp 00000070108fdd10 pc 00000072c24c6f24 pst 0000000060001000 06-15 04:19:50.637 430 430 F DEBUG : 18 total frames 06-15 04:19:50.637 430 430 F DEBUG : backtrace: 06-15 04:19:50.637 430 430 F DEBUG : #00 pc 000000000008bf24 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+36) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #01 pc 00000000000645b4 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+148) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #02 pc 0000000000072f48 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_timedwait+136) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #03 pc 00000000000b0aec /apex/com.android.art/lib64/libc++.so (std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)+96) (BuildId: 53e0091d25a788802d2d3a5324f79b527df4913f) 06-15 04:19:50.637 430 430 F DEBUG : #04 pc 0000000000093530 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadEntry::Wait(unwindstack::WaitType)+140) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #05 pc 00000000000939e4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::SendSignalToThread(int, int)+296) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #06 pc 0000000000093bec /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::UnwindWithSignal(int, int, std::__1::unique_ptr<unwindstack::Regs, std::__1::default_delete<unwindstack::Regs>>*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*)+104) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #07 pc 00000000000606f4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::AndroidLocalUnwinder::InternalUnwind(std::__1::optional<int>, unwindstack::AndroidUnwinderData&)+364) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #08 pc 00000000007a3be0 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, int, char const*, art::ArtMethod*, void*, bool)+184) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #09 pc 000000000087fe1c /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, bool, bool) const+360) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #10 pc 00000000008a21d0 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1204) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #11 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #12 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #13 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #14 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #15 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #16 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #17 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:25:49.660 3607 3607 F libc : Fatal signal 6 (SIGABRT), code 128 (SI_KERNEL) in tid 3607 (system_server), pid 3607 (system_server) 06-15 04:25:50.946 11521 11521 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:25:50.946 11521 11521 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:25:50.946 11521 11521 F DEBUG : Revision: '0' 06-15 04:25:50.946 11521 11521 F DEBUG : ABI: 'arm64' 06-15 04:25:50.946 11521 11521 F DEBUG : Timestamp: 2025-06-15 04:25:50.026572831+0800 06-15 04:25:50.946 11521 11521 F DEBUG : Process uptime: 1036s 06-15 04:25:50.946 11521 11521 F DEBUG : Cmdline: system_server 06-15 04:25:50.946 11521 11521 F DEBUG : pid: 3607, tid: 3607, name: system_server >>> system_server <<< 06-15 04:25:50.946 11521 11521 F DEBUG : uid: 1000 06-15 04:25:50.946 11521 11521 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:25:50.946 11521 11521 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:25:50.946 11521 11521 F DEBUG : signal 6 (SIGABRT), code 128 (SI_KERNEL), fault addr -------- 06-15 04:25:50.946 11521 11521 F DEBUG : x0 b4000071b8893c60 x1 0000000000000080 x2 00000000000007d3 x3 0000000000000000 06-15 04:25:50.947 11521 11521 F DEBUG : x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 000000702465b92c 06-15 04:25:50.947 11521 11521 F DEBUG : x8 0000000000000062 x9 aae30b8c88d99a37 x10 0000000000000001 x11 0000000000008001 06-15 04:25:50.947 11521 11521 F DEBUG : x12 0000000000000004 x13 000000007fffffff x14 0000000000056ae6 x15 0000000344f4d1c1 06-15 04:25:50.947 11521 11521 F DEBUG : x16 0000007024a22a20 x17 00000072c24c6f00 x18 00000072efc34000 x19 b4000071b8893c50 06-15 04:25:50.947 11521 11521 F DEBUG : x20 0000000000000000 x21 00000000000007d3 x22 0000007024c0e390 x23 00000070240537d5 06-15 04:25:50.947 11521 11521 F DEBUG : x24 00000072eef598c0 x25 0000000000000001 x26 00000072eef598c0 x27 0000000000fffff7 06-15 04:25:50.947 11521 11521 F DEBUG : x28 b4000070a88b5e80 x29 0000007ff5cfcd50 06-15 04:25:50.947 11521 11521 F DEBUG : lr 000000702447cb68 sp 0000007ff5cfcd40 pc 00000072c24c6f20 pst 0000000060001000 06-15 04:25:50.947 11521 11521 F DEBUG : 33 total frames 06-15 04:25:50.947 11521 11521 F DEBUG : backtrace: 06-15 04:25:50.947 11521 11521 F DEBUG : #00 pc 000000000008bf20 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+32) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:25:50.947 11521 11521 F DEBUG : #01 pc 000000000047cb64 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+140) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #02 pc 000000000066c880 /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+492) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #03 pc 00000000000df234 /system/lib64/libandroid_runtime.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, ...)+124) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #04 pc 00000000001fe4b4 /system/lib64/libandroid_runtime.so ((anonymous namespace)::Receiver::handleEvent(int, int, void*)+100) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #05 pc 00000000000142e8 /system/lib64/libutils.so (android::Looper::pollInner(int)+1236) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:25:50.947 11521 11521 F DEBUG : #06 pc 0000000000013db0 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+124) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:25:50.947 11521 11521 F DEBUG : #07 pc 000000000019e220 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #08 pc 000000000037fd40 [anon_shmem:dalvik-jit-code-cache] (offset 0x2000000) (art_jni_trampoline+112) 06-15 04:25:50.947 11521 11521 F DEBUG : #09 pc 0000000000034e58 [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.MessageQueue.next+264) 06-15 04:25:50.947 11521 11521 F DEBUG : #10 pc 00000000008e10ec [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loopOnce+92) 06-15 04:25:50.947 11521 11521 F DEBUG : #11 pc 000000000005a4ec [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loop+252) 06-15 04:25:50.947 11521 11521 F DEBUG : #12 pc 0000000000209408 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #13 pc 00000000002a2e80 /system/framework/services.jar (com.android.server.SystemServer.run+1276) 06-15 04:25:50.947 11521 11521 F DEBUG : #14 pc 000000000020a2c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #15 pc 00000000002a27ea /system/framework/services.jar (com.android.server.SystemServer.main+10) 06-15 04:25:50.947 11521 11521 F DEBUG : #16 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #17 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #18 pc 000000000082cf80 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+2108) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #19 pc 00000000007995a8 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277)+36) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #20 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #21 pc 000000000020a320 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #22 pc 000000000020d112 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+18) 06-15 04:25:50.947 11521 11521 F DEBUG : #23 pc 000000000020b0e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #24 pc 0000000000211a06 /system/framework/framework.jar (com.android.internal.os.ZygoteInit.main+558) 06-15 04:25:50.947 11521 11521 F DEBUG : #25 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #26 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #27 pc 000000000082d918 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+472) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #28 pc 00000000006f4248 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+560) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #29 pc 00000000000e2f9c /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+108) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #30 pc 00000000000fa244 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #31 pc 00000000000047d8 /system/bin/app_process64 (main+1816) (BuildId: a3e8d583af2cdcff29751370d5826827) 06-15 04:25:50.947 11521 11521 F DEBUG : #32 pc 000000000005b9e4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+120) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:26:31.344 4216 4216 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.344 4216 4216 E AndroidRuntime: Process: com.obric.assistant:interactor, PID: 4216 06-15 04:26:31.344 4216 4216 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.345 6667 13825 E AndroidRuntime: FATAL EXCEPTION: DataStallThread 06-15 04:26:31.345 6667 13825 E AndroidRuntime: Process: com.bytedance.radioservice, PID: 6667 06-15 04:26:31.345 6667 13825 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.347 12431 12539 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#5 06-15 04:26:31.347 12431 12539 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.347 12431 12539 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.361 12431 12528 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#3 06-15 04:26:31.361 12431 12528 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.361 12431 12528 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.371 12431 12181 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#8 06-15 04:26:31.371 12431 12181 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.371 12431 12181 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.376 4068 4068 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.376 4068 4068 E AndroidRuntime: Process: com.android.systemui, PID: 4068 06-15 04:26:31.376 4068 4068 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.392 5764 8003 E AndroidRuntime: FATAL EXCEPTION: long-time-task-thread-4 06-15 04:26:31.392 5764 8003 E AndroidRuntime: Process: com.obric.memorydata, PID: 5764 06-15 04:26:31.392 5764 8003 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.393 26358 26358 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.393 26358 26358 E AndroidRuntime: Process: com.obric.feedback, PID: 26358 06-15 04:26:31.393 26358 26358 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.394 20846 20846 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.394 20846 20846 E AndroidRuntime: Process: com.android.launcher3, PID: 20846 06-15 04:26:31.394 20846 20846 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.398 11069 11069 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.398 11069 11069 E AndroidRuntime: Process: com.obric.mediametadataservice, PID: 11069 06-15 04:26:31.398 11069 11069 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.401 6234 7313 E AndroidRuntime: FATAL EXCEPTION: WsSurvivalHelper 06-15 04:26:31.401 6234 7313 E AndroidRuntime: Process: com.obric.matrix, PID: 6234 06-15 04:26:31.401 6234 7313 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.408 31180 31369 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#6 06-15 04:26:31.408 31180 31369 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.408 31180 31369 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.427 31180 31180 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.427 31180 31180 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.427 31180 31180 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.435 31180 31389 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#15 06-15 04:26:31.435 31180 31389 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.435 31180 31389 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.436 31180 31280 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#2 06-15 04:26:31.436 31180 31280 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.436 31180 31280 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.436 31180 31386 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#14 06-15 04:26:31.436 31180 31386 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.436 31180 31386 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.443 4535 4535 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.443 4535 4535 E AndroidRuntime: Process: com.android.phone, PID: 4535 06-15 04:26:31.443 4535 4535 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.450 12431 12558 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#8 06-15 04:26:31.450 12431 12558 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.450 12431 12558 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.452 12069 12069 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.452 12069 12069 E AndroidRuntime: Process: com.obric.weather, PID: 12069 06-15 04:26:31.452 12069 12069 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.456 12431 12697 E AndroidRuntime: FATAL EXCEPTION: default_matrix_thread 06-15 04:26:31.456 12431 12697 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.456 12431 12697 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.457 12431 12522 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#0 06-15 04:26:31.457 12431 12522 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.457 12431 12522 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.458 6025 7427 E AndroidRuntime: FATAL EXCEPTION: Thread-6 06-15 04:26:31.458 6025 7427 E AndroidRuntime: Process: com.obric.cae, PID: 6025 06-15 04:26:31.458 6025 7427 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.470 31180 31408 E AndroidRuntime: FATAL EXCEPTION: default_matrix_thread 06-15 04:26:31.470 31180 31408 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.470 31180 31408 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.470 12431 12530 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#5 06-15 04:26:31.470 12431 12530 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.470 12431 12530 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.490 12431 12431 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.490 12431 12431 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.490 12431 12431 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.495 12431 12586 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#13 06-15 04:26:31.495 12431 12586 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.495 12431 12586 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.502 12431 12532 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#6 06-15 04:26:31.502 12431 12532 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.502 12431 12532 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:27:20.283 18660 18660 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18660 (init), pid 18660 (init) 06-15 04:27:20.325 18660 18660 F libc : crash_dump helper failed to exec, or was killed 06-15 04:34:31.899 13872 13872 F libc : Fatal signal 6 (SIGABRT), code 128 (SI_KERNEL) in tid 13872 (system_server), pid 13872 (system_server) 06-15 04:34:33.102 6200 6200 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:34:33.102 6200 6200 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:34:33.102 6200 6200 F DEBUG : Revision: '0' 06-15 04:34:33.102 6200 6200 F DEBUG : ABI: 'arm64' 06-15 04:34:33.102 6200 6200 F DEBUG : Timestamp: 2025-06-15 04:34:32.331351694+0800 06-15 04:34:33.102 6200 6200 F DEBUG : Process uptime: 470s 06-15 04:34:33.102 6200 6200 F DEBUG : Cmdline: system_server 06-15 04:34:33.102 6200 6200 F DEBUG : pid: 13872, tid: 13872, name: system_server >>> system_server <<< 06-15 04:34:33.102 6200 6200 F DEBUG : uid: 1000 06-15 04:34:33.102 6200 6200 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:34:33.102 6200 6200 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:34:33.102 6200 6200 F DEBUG : signal 6 (SIGABRT), code 128 (SI_KERNEL), fault addr -------- 06-15 04:34:33.102 6200 6200 F DEBUG : x0 fffffffffffffffc x1 0000007fee5feea0 x2 0000000000000010 x3 0000000000002710 06-15 04:34:33.102 6200 6200 F DEBUG : x4 0000000000000000 x5 0000000000000008 x6 0000007fee5fdd30 x7 0006f4f48f1df93c 06-15 04:34:33.102 6200 6200 F DEBUG : x8 0000000000000016 x9 ffffffffffb9b170 x10 0000000000000009 x11 00000000000d800b 06-15 04:34:33.102 6200 6200 F DEBUG : x12 0000000000000006 x13 0000000000000005 x14 00000000000be490 x15 00000000ebad6a89 06-15 04:34:33.102 6200 6200 F DEBUG : x16 0000007488763c40 x17 000000747d31cf30 x18 0000007493608000 x19 b40000737fa9dd50 06-15 04:34:33.102 6200 6200 F DEBUG : x20 0000000000002710 x21 0000007fee5feea0 x22 0000000000002710 x23 0000007492d8c8c0 06-15 04:34:33.102 6200 6200 F DEBUG : x24 0000000000000030 x25 000000007fffffff x26 0000000000000001 x27 0000000000000006 06-15 04:34:33.102 6200 6200 F DEBUG : x28 0000007fee5ff090 x29 0000007fee5fefc0 06-15 04:34:33.102 6200 6200 F DEBUG : lr 0000007488756edc sp 0000007fee5fee60 pc 000000747d36a78c pst 0000000080001000 06-15 04:34:33.102 6200 6200 F DEBUG : 29 total frames 06-15 04:34:33.102 6200 6200 F DEBUG : backtrace: 06-15 04:34:33.102 6200 6200 F DEBUG : #00 pc 00000000000ca78c /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+12) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:34:33.102 6200 6200 F DEBUG : #01 pc 0000000000013ed8 /system/lib64/libutils.so (android::Looper::pollInner(int)+196) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:34:33.102 6200 6200 F DEBUG : #02 pc 0000000000013db0 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+124) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:34:33.102 6200 6200 F DEBUG : #03 pc 000000000019e220 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #04 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #05 pc 0000000000035038 [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.MessageQueue.next+264) 06-15 04:34:33.102 6200 6200 F DEBUG : #06 pc 0000000000910abc [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loopOnce+92) 06-15 04:34:33.102 6200 6200 F DEBUG : #07 pc 000000000005b9fc [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loop+252) 06-15 04:34:33.102 6200 6200 F DEBUG : #08 pc 0000000000209408 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #09 pc 00000000002a2e80 /system/framework/services.jar (com.android.server.SystemServer.run+1276) 06-15 04:34:33.102 6200 6200 F DEBUG : #10 pc 000000000020a2c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #11 pc 00000000002a27ea /system/framework/services.jar (com.android.server.SystemServer.main+10) 06-15 04:34:33.102 6200 6200 F DEBUG : #12 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #13 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #14 pc 000000000082cf80 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+2108) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #15 pc 00000000007995a8 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277)+36) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #16 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #17 pc 000000000020a320 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #18 pc 000000000020d112 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+18) 06-15 04:34:33.102 6200 6200 F DEBUG : #19 pc 000000000020b0e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #20 pc 0000000000211a06 /system/framework/framework.jar (com.android.internal.os.ZygoteInit.main+558) 06-15 04:34:33.102 6200 6200 F DEBUG : #21 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #22 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #23 pc 000000000082d918 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+472) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #24 pc 00000000006f4248 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+560) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #25 pc 00000000000e2f9c /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+108) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #26 pc 00000000000fa244 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #27 pc 00000000000047d8 /system/bin/app_process64 (main+1816) (BuildId: a3e8d583af2cdcff29751370d5826827) 06-15 04:34:33.102 6200 6200 F DEBUG : #28 pc 000000000005b9e4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+120) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:34:33.511 23497 24117 E AndroidRuntime: FATAL EXCEPTION: DatabaseSyncService 06-15 04:34:33.511 23497 24117 E AndroidRuntime: Process: com.smartisanos.gallery, PID: 23497 06-15 04:34:33.511 23497 24117 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.519 19416 31631 E AndroidRuntime: FATAL EXCEPTION: DataStallThread 06-15 04:34:33.519 19416 31631 E AndroidRuntime: Process: com.bytedance.radioservice, PID: 19416 06-15 04:34:33.519 19416 31631 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.525 23759 23759 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.525 23759 23759 E AndroidRuntime: Process: com.obric.mediametadataservice, PID: 23759 06-15 04:34:33.525 23759 23759 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.562 27764 27764 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.562 27764 27764 E AndroidRuntime: Process: com.android.systemui, PID: 27764 06-15 04:34:33.562 27764 27764 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.570 17071 17071 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.570 17071 17071 E AndroidRuntime: Process: com.qti.qcc, PID: 17071 06-15 04:34:33.570 17071 17071 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.588 30577 30748 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#10 06-15 04:34:33.588 30577 30748 E AndroidRuntime: Process: com.tencent.mm, PID: 30577 06-15 04:34:33.588 30577 30748 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.619 20917 20917 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.619 20917 20917 E AndroidRuntime: Process: com.android.providers.weather, PID: 20917 06-15 04:34:33.619 20917 20917 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.641 29760 30119 E AndroidRuntime: FATAL EXCEPTION: WM.task-4 06-15 04:34:33.641 29760 30119 E AndroidRuntime: Process: com.android.rkpdapp, PID: 29760 06-15 04:34:33.641 29760 30119 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.644 16591 22658 E AndroidRuntime: FATAL EXCEPTION: pool-12-thread-1 06-15 04:34:33.644 16591 22658 E AndroidRuntime: Process: com.bytedance.os.mermaid, PID: 16591 06-15 04:34:33.644 16591 22658 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.670 30577 30776 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#14 06-15 04:34:33.670 30577 30776 E AndroidRuntime: Process: com.tencent.mm, PID: 30577 06-15 04:34:33.670 30577 30776 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:35:16.613 11852 11852 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 11852 (init), pid 11852 (init) 06-15 04:35:16.682 11852 11852 F libc : crash_dump helper failed to exec, or was killed 06-15 04:36:05.261 12659 12670 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 12670 (Signal Catcher), pid 12659 (com.obric.cae) 06-15 04:36:07.796 10043 10052 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 10052 (Signal Catcher), pid 10043 (ndroid.systemui) 06-15 04:36:09.096 16114 16114 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:36:09.096 16114 16114 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:36:09.096 16114 16114 F DEBUG : Revision: '0' 06-15 04:36:09.096 16114 16114 F DEBUG : ABI: 'arm64' 06-15 04:36:09.096 16114 16114 F DEBUG : Timestamp: 2025-06-15 04:36:06.131456971+0800 06-15 04:36:09.096 16114 16114 F DEBUG : Process uptime: 46s 06-15 04:36:09.096 16114 16114 F DEBUG : Cmdline: com.obric.cae 06-15 04:36:09.096 16114 16114 F DEBUG : pid: 12659, tid: 12670, name: Signal Catcher >>> com.obric.cae <<< 06-15 04:36:09.096 16114 16114 F DEBUG : uid: 1000 06-15 04:36:09.096 16114 16114 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:36:09.096 16114 16114 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:36:09.096 16114 16114 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:36:09.096 16114 16114 F DEBUG : Abort message: 'Caused BootImagePollingThread failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=12670,Runnable,Thread*=0xb400007073e4ff50,peer=0x146408b0,"Signal Catcher"], Info for Thread[2,tid=12670,Runnable,Thread*=0xb400007073e4ff50,peer=0x146408b0,"Signal Catcher"]:Signal Catcher tid: 12670, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [12670 (Signal Catcher) D 6404 6404 0 0 -1 4194368 7865 0 0 0 28 11 0 0 0 -20 31 0 161685 , 12670 (Signal Catcher) D 6404 6404 0 0 -1 4194368 7907 0 0 0 29 11 0 0 0 -20 31 0 161685 ]1@474460762748 Final wait time: 1.041s' 06-15 04:36:09.096 16114 16114 F DEBUG : x0 000000000000005f x1 0000006e780051f8 x2 0000000000001000 x3 0000000000000000 06-15 04:36:09.096 16114 16114 F DEBUG : x4 0000006e78005d24 x5 b400007063ecaf6c x6 65732f636f72702f x7 2f6b7361742f666c 06-15 04:36:09.096 16114 16114 F DEBUG : x8 000000000000003f x9 0000000000000000 x10 00000000ece8b1a8 x11 00000000ace540c2 06-15 04:36:09.096 16114 16114 F DEBUG : x12 373632312f6b7361 x13 70756f7267632f34 x14 0000000000000000 x15 0000000000000000 06-15 04:36:09.096 16114 16114 F DEBUG : x16 00000071428f0650 x17 00000071417024a0 x18 0000006e72c44000 x19 0000006e78006340 06-15 04:36:09.096 16114 16114 F DEBUG : x20 0000000000000077 x21 0000006e780078c0 x22 0000000000000077 x23 0000006e780078c0 06-15 04:36:09.096 16114 16114 F DEBUG : x24 0000006e78006329 x25 0000006e78006548 x26 000000712dfa65f0 x27 000000712dfa65b0 06-15 04:36:09.097 16114 16114 F DEBUG : x28 0000006e78006328 x29 0000006e78006200 06-15 04:36:09.097 16114 16114 F DEBUG : lr 00000071428d2274 sp 0000006e78005170 pc 00000071417024ac pst 0000000080001000 06-15 04:36:09.097 16114 16114 F DEBUG : 12 total frames 06-15 04:36:09.097 16114 16114 F DEBUG : backtrace: 06-15 04:36:09.097 16114 16114 F DEBUG : #00 pc 00000000000c94ac /apex/com.android.runtime/lib64/bionic/libc.so (read+12) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:09.097 16114 16114 F DEBUG : #01 pc 0000000000012270 /apex/com.android.art/lib64/libbase.so (android::base::ReadFdToString(android::base::borrowed_fd, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+280) (BuildId: 8367396248ab14cf4164f2cfe0829082) 06-15 04:36:09.097 16114 16114 F DEBUG : #02 pc 00000000000123e0 /apex/com.android.art/lib64/libbase.so (android::base::ReadFileToString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool)+192) (BuildId: 8367396248ab14cf4164f2cfe0829082) 06-15 04:36:09.097 16114 16114 F DEBUG : #03 pc 0000000000883f68 /apex/com.android.art/lib64/libart.so (art::Thread::DumpState(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, art::Thread const*, int)+1764) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #04 pc 00000000008a21b8 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1180) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #05 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #06 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #07 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #08 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #09 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #10 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:09.097 16114 16114 F DEBUG : #11 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:36:10.991 16353 16353 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:36:10.991 16353 16353 F DEBUG : Revision: '0' 06-15 04:36:10.991 16353 16353 F DEBUG : ABI: 'arm64' 06-15 04:36:10.991 16353 16353 F DEBUG : Timestamp: 2025-06-15 04:36:09.222489157+0800 06-15 04:36:10.991 16353 16353 F DEBUG : Process uptime: 65s 06-15 04:36:10.991 16353 16353 F DEBUG : Cmdline: com.android.systemui 06-15 04:36:10.991 16353 16353 F DEBUG : pid: 10043, tid: 10052, name: Signal Catcher >>> com.android.systemui <<< 06-15 04:36:10.991 16353 16353 F DEBUG : uid: 10147 06-15 04:36:10.991 16353 16353 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:36:10.991 16353 16353 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:36:10.991 16353 16353 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:36:10.991 16353 16353 F DEBUG : Abort message: 'Caused BootImagePollingThread failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=10052,Runnable,Thread*=0xb400007073e552c0,peer=0x161c2338,"Signal Catcher"], Info for Thread[2,tid=10052,Runnable,Thread*=0xb400007073e552c0,peer=0x161c2338,"Signal Catcher"]:Signal Catcher tid: 10052, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [10052 (Signal Catcher) D 6404 6404 0 0 -1 4194368 72694 715 0 0 864 114 0 1 0 -20 99 0 16, 10052 (Signal Catcher) S 6404 6404 0 0 -1 4194368 72694 715 0 0 864 114 0 1 0 -20 99 0 16]1@474460861052 Final wait time: 1.014s' 06-15 04:36:10.991 16353 16353 F DEBUG : x0 fffffffffffffffc x1 0000000000000089 x2 0000000000000010 x3 0000006e7701dd18 06-15 04:36:10.991 16353 16353 F DEBUG : x4 0000000000000000 x5 00000000ffffffff x6 00000000ffffffff x7 7365786574756d20 06-15 04:36:10.991 16353 16353 F DEBUG : x8 0000000000000062 x9 aacc454f7c510c3f x10 fffffffffffef005 x11 0000000031f4eed8 06-15 04:36:10.991 16353 16353 F DEBUG : x12 00000000684ddd36 x13 000000007fffffff x14 00000000000ca068 x15 000000077e673b1c 06-15 04:36:10.991 16353 16353 F DEBUG : x16 00000071417180d8 x17 00000071416c4f00 x18 0000006e73d6c000 x19 0000000000000010 06-15 04:36:10.991 16353 16353 F DEBUG : x20 0000006e7701dd18 x21 b4000070741074a8 x22 0000000000000089 x23 0000006e7701f860 06-15 04:36:10.991 16353 16353 F DEBUG : x24 0000006e7701f8c0 x25 0000000000000000 x26 00000000ee6a1a05 x27 0000000000000001 06-15 04:36:10.991 16353 16353 F DEBUG : x28 0000000000000000 x29 0000006e7701dd30 06-15 04:36:10.991 16353 16353 F DEBUG : lr 000000714169d5b8 sp 0000006e7701dd10 pc 00000071416c4f24 pst 0000000060001000 06-15 04:36:10.991 16353 16353 F DEBUG : 18 total frames 06-15 04:36:10.991 16353 16353 F DEBUG : backtrace: 06-15 04:36:10.991 16353 16353 F DEBUG : #00 pc 000000000008bf24 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+36) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #01 pc 00000000000645b4 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+148) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #02 pc 0000000000072f48 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_timedwait+136) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #03 pc 00000000000b0aec /apex/com.android.art/lib64/libc++.so (std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)+96) (BuildId: 53e0091d25a788802d2d3a5324f79b527df4913f) 06-15 04:36:10.991 16353 16353 F DEBUG : #04 pc 0000000000093530 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadEntry::Wait(unwindstack::WaitType)+140) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #05 pc 00000000000939e4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::SendSignalToThread(int, int)+296) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #06 pc 0000000000093bec /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::UnwindWithSignal(int, int, std::__1::unique_ptr<unwindstack::Regs, std::__1::default_delete<unwindstack::Regs>>*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*)+104) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #07 pc 00000000000606f4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::AndroidLocalUnwinder::InternalUnwind(std::__1::optional<int>, unwindstack::AndroidUnwinderData&)+364) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #08 pc 00000000007a3be0 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, int, char const*, art::ArtMethod*, void*, bool)+184) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #09 pc 000000000087fe1c /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, bool, bool) const+360) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #10 pc 00000000008a21d0 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1204) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #11 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #12 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #13 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #14 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #15 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #16 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #17 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654)
06-19
<think>首先,用户的问题是关于Android系统日志中的警告信息:"Calling a method in the system process without a qualified user, android.app.ContextImpl.startActivity"。用户想知道可能的原因和解决方案。 我需要参考系统提供的引用内容。这些引用包括: - [^1]: 描述了一个错误日志,涉及ContextImpl.sendBroadcast,并提到了在系统进程中调用方法没有合格用户的问题。 - [^2]: 提供了解决方案:使用sendBroadcastAsUser方法,并指定UserHandle。 - [^3]: 讨论了Android 4.2加入多用户支持,建议使用startActivityAsUsersendBroadcastAsUser等方法,并指定UserHandle如ALL、CURRENT等。 - [^4]: 提到了Context.java类中定义系统服务,如Vibrator,但似乎与问题无关。 用户的问题具体是关于startActivity的,而不是sendBroadcast。引用[^1]和[^2]提到sendBroadcast,但[^3]提到了startActivityAsUser,这更相关。 关键点: - 警告信息表明在系统进程中调用方法(如startActivity)时,没有指定合格的用户上下文。 -Android的多用户环境中,系统服务需要知道在哪个用户上下文中执行操作。 - 解决方案是使用带有UserHandle参数的方法版本,如startActivityAsUser,而不是普通的startActivity。 根据引用[^3],Android 4.2引入了多用户支持,因此需要改用这些方法。 我的回答应该: 1. 解释警告的原因。 2. 提供解决方案。 3. 结构清晰,逐步解决问题。 4. 使用中文回答。 5. 生成相关问题。 6. 在引用的段落末尾自然地添加引用标识。 回答结构: - 先介绍警告的含义和原因。 - 然后解释解决方案。 - 可能给出代码示例。 - 最后生成相关问题。 确保LaTeX语法正确:行内数学表达式用$...$,独立公式用$$...$$,但在这个问题中,可能不需要数学表达式,因为它是关于Android开发的。所以,我可以避免使用LaTeX数学。 现在,构建回答: 1. **解释原因**:警告发生在系统进程中调用startActivity方法时,没有指定用户上下文。这可能导致操作在错误的用户账户下执行,尤其是在多用户设备上。 2. **提供解决方案**:使用startActivityAsUser方法代替startActivity,并传递一个合适的UserHandle对象。例如,UserHandle.ALL表示所有用户,UserHandle.CURRENT表示当前用户。 3. **代码示例**:基于引用[^2]和[^3],给出一个简单的代码片段。 4. **添加引用**:在解释原因和解决方案时,自然地添加引用标识。 5. **生成相关问题**:在最后,添加几个相关问题。 最终回答框架: - 段落1: 解释警告的原因。 - 段落2: 描述解决方案。 - 代码块: 展示如何使用startActivityAsUser- 段落3: 总结或注意事项。 - &sect;&sect;相关问题&sect;&sect;: 列出2-3个相关问题。</think>### Android系统日志警告分析:Calling a method in the system process without a qualified userAndroid开发中,系统日志中出现警告`Calling a method in the system process without a qualified user, android.app.ContextImpl.startActivity`通常表示在系统进程(如系统服务或后台进程)中调用`startActivity`方法时,未指定合格的用户上下文。这可能导致操作在错误的用户账户下执行,尤其是在Android 4.2及以上版本支持多用户环境(如平板或企业设备)时,系统无法确定目标用户,从而引发安全或功能异常[^3]。常见原因包括: - 在系统服务中直接使用`Context.startActivity()`而未传递`UserHandle`参数。 - 代码未适配Android的多用户架构,导致用户上下文缺失。 - 广播或Activity启动请求未关联到具体用户会话[^1][^3]。 ### 可能的原因和解决方案 #### 原因分析 1. **多用户环境不兼容**:Android 4.2引入了多用户支持,系统进程(如`InputManagerService`或自定义服务)调用`startActivity`时,必须指定目标用户。否则,系统会抛出此警告,因为默认方法(如`ContextImpl.startActivity`)缺乏用户上下文[^1][^3]。 2. **代码未使用合格的API**:在系统进程中,直接调用`startActivity()`而不是其多用户兼容版本(如`startActivityAsUser`),这违反了Android的安全模型[^2][^3]。 3. **用户句柄未正确传递**:`UserHandle`对象未初始化或未回收,可能导致资源泄漏或上下文无效[^2]。 #### 解决方案 要解决此警告,需改用Android提供的多用户兼容API,并显式指定`UserHandle`。以下是具体步骤和代码示例: 1. **替换API方法**:将`startActivity`替换为`startActivityAsUser`,并传入合适的`UserHandle`参数(如`UserHandle.ALL`表示所有用户,`UserHandle.CURRENT`表示当前用户)。 2. **正确使用Parcel**:在获取`UserHandle`时,使用`Parcel`对象来序列化用户信息,并在完成后及时回收资源以避免泄漏[^2]。 3. **适配系统服务代码**:如果警告发生在自定义系统服务中,确保在`Context`实现中调用正确的方法。 示例代码(基于引用[^2]和[^3]): ```java // 正确方式:使用startActivityAsUser并指定UserHandle try { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://example.com")); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // 获取Parcel并初始化UserHandle Parcel parcel = Parcel.obtain(); // 创建Parcel对象 UserHandle userHandle = UserHandle.CURRENT; // 使用当前用户,或UserHandle.ALL等 userHandle.writeToParcel(parcel, 0); // 序列化UserHandle // 调用多用户兼容方法 context.startActivityAsUser(intent, userHandle); // 回收Parcel资源 parcel.recycle(); // 必须回收,避免内存泄漏 } catch (Exception e) { Log.e("SystemProcess", "Error starting activity: " + e.getMessage()); } ``` **注意事项**: - 此解决方案适用于Android 4.2(API level 17)及以上版本。在旧版本中,此警告可能不会出现,但建议提前适配。 - 如果警告涉及其他方法(如`sendBroadcast`),同样需替换为`sendBroadcastAsUser`[^2][^3]。 - 测试时,使用模拟多用户环境的设备(如Android Enterprise配置)来验证修复效果[^3]。 通过以上修改,警告将被消除,系统能正确关联用户上下文,提升应用的稳定性和安全性。如果问题在系统级服务(如`InputManagerService`)中出现,需检查框架代码并确保使用合格API[^1][^4]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值