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

RUN_COMMAND Permission Message in the Permission Controller #1713

@MuntashirAkon

Description

@MuntashirAkon

Problem description

This is not exactly a friendly message when asking for permission through permission controller.

Screenshot_Permission_controller

Steps to reproduce

Add the following code in the main activity of any sample code:

        if (ContextCompat.checkSelfPermission(this, "com.termux.permission.RUN_COMMAND") != PackageManager.PERMISSION_GRANTED) {
            ActivityCompat.requestPermissions(this, new String[]{"com.termux.permission.RUN_COMMAND"}, requestCode);
        }

Expected behavior

The message should be more concise and clear without any full stop. For example, “execute arbitrary commands within Termux environment” so that the whole message should be read as “Allow App Manager to execute arbitrary commands within Termux environment?”.

Additional information

  • Termux application version: 0.95

I can make a PR if you're interested.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions