Skip to content

Logcat warnings about cross-user access #174

@Terrance

Description

@Terrance

I've noticed this being logged repeatedly against LogFox itself:

W PackageManager: getPackagesForUid: UID 10549 requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS or android.permission.INTERACT_ACROSS_PROFILES to access user 10.

I use Insular as an Android work profile which occupies UID 10. I'm not sure if LogFox is supposed to support accessing logs of work profiles -- there doesn't seem to be any UI for enabling this, and the system seems to prevent manually granting those permissions:

$ pm grant com.f0x1d.logfox android.permission.INTERACT_ACROSS_USERS

Exception occurred while executing 'grant':
java.lang.SecurityException: Package com.f0x1d.logfox has not requested permission android.permission.INTERACT_ACROSS_USERS
$ pm grant com.f0x1d.logfox android.permission.INTERACT_ACROSS_PROFILES

Exception occurred while executing 'grant':
java.lang.SecurityException: Permission android.permission.INTERACT_ACROSS_PROFILES requested by com.f0x1d.logfox is not a changeable permission type
$ pm grant com.f0x1d.logfox android.permission.INTERACT_ACROSS_USERS_FULL

Exception occurred while executing 'grant':
java.lang.SecurityException: Permission android.permission.INTERACT_ACROSS_USERS_FULL is managed by role

Supposedly this can also be enabled via AppOps, though the log messages still persist so I'm not sure if this actually did anything:

$ appops set 10549 INTERACT_ACROSS_PROFILES allow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions