Skip to content
This repository was archived by the owner on Oct 19, 2025. It is now read-only.
This repository was archived by the owner on Oct 19, 2025. It is now read-only.

通过读取“/proc/${pid}/cmdline” 获取的进程的名称不准确 #12

@WanDa1993

Description

@WanDa1993

举个例子:
PackageName:com.example.hello

通过“/proc/${pid}/cmdline” 获取的进程名称为:com.example.hello������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

获取应用下的其他进程也是这样:
com.example.hello:channel�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������

通过ActivityManager的RunProcesses可以获取到正确的进程名称
com.example.hello
com.example.hello:channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions